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.
161 lines
410 KiB
161 lines
410 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4795],{84249:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return me}});var ae=oe(87462),he=oe(67294),Xe={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"},Re=Xe,ce=oe(74643),je=function(Ce,Ge){return he.createElement(ce.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Re}))},me=he.forwardRef(je)},90674:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return me}});var ae=oe(87462),he=oe(67294),Xe={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"},Re=Xe,ce=oe(74643),je=function(Ce,Ge){return he.createElement(ce.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Re}))},me=he.forwardRef(je)},33859:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return me}});var ae=oe(87462),he=oe(67294),Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Re=Xe,ce=oe(74643),je=function(Ce,Ge){return he.createElement(ce.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Re}))},me=he.forwardRef(je)},22751:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return me}});var ae=oe(87462),he=oe(67294),Xe={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"},Re=Xe,ce=oe(74643),je=function(Ce,Ge){return he.createElement(ce.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Re}))},me=he.forwardRef(je)},91034:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return me}});var ae=oe(87462),he=oe(67294),Xe={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"},Re=Xe,ce=oe(74643),je=function(Ce,Ge){return he.createElement(ce.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Re}))},me=he.forwardRef(je)},71736:function($e,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function $e(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty($e.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty($e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty($e.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty($e.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof $e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var dt=[];function oe(ne,a){var y=dt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=dt.pop();return ne===void 0?new go.Point:ne}function he(ne){dt.push(ne)}function Xe(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ne-y,ie=b-z,ge=NaN,se=NaN;if(re===0)if(ie===0)ne===y&&(ge=ne,se=a);else{var le=(x-ee)/ie,ze=x-le*b;ge=ne,se=le*ge+ze}else if(ie===0){var Ae=(a-E)/re,ft=a-Ae*ne;ge=b,se=Ae*ge+ft}else{var Ae=(a-E)/re,le=(x-ee)/ie,ft=a-Ae*ne,ze=x-le*b;ge=(ze-ft)/(Ae-le),se=Ae*ge+ft}return te.x=ge,te.y=se,te}function Re(ne,a,y,E,b,x,z,ee,te,re,ie,ge,se,le){var ze=1-te,Ae=te,ft=ne*ze+y*Ae,Bt=a*ze+E*Ae,Rt=y*ze+b*Ae,be=E*ze+x*Ae,Qe=b*ze+z*Ae,ut=x*ze+ee*Ae,ot=ft*ze+Rt*Ae,mt=Bt*ze+be*Ae,nt=Rt*ze+Qe*Ae,rt=be*ze+ut*Ae,it=ot*ze+nt*Ae,nn=mt*ze+rt*Ae;re.x=ft,re.y=Bt,ie.x=ot,ie.y=mt,ge.x=it,ge.y=nn,se.x=nt,se.y=rt,le.x=Qe,le.y=ut}var ce=new go.Spot(.156,.156),je=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new $e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=je,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new $e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new $e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new $e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ke=[];function Ce(){var ne=Ke.pop();return ne===void 0?[]:ne}function Ge(ne){ne.length=0,Ke.push(ne)}function ke(ne){for(var a=Ce(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ie(ne){var a=we(ne),y=Ce();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 Ge(a),y}function we(ne){for(var a=ke(ne),y=Ce(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Xe(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Ge(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=ke(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()),Ge(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=we(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=we(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=we(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=we(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=we(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=we(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ge(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Ie(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(),Ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new $e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new $e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ce,x.spot2=je,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new $e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new $e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new $e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var re=ae(),ie=ae(),ge=ae(),se=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,se,se);var le=ae(),ze=ae(),Ae=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ae,le,ze);var ft=ae(),Bt=ae(),Rt=ae();Re(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ft,Bt,Rt,se,se);var be=ae(),Qe=ae(),ut=ae();return Re(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,ut,be,Qe),te.add(new go.PathSegment(go.PathSegment.Move,ut.x*a,ut.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Qe.x*a,Qe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ut.x*a,ut.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Rt.x*a,Rt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Rt.x*a,Rt.y*y,ft.x*a,ft.y*y,Bt.x*a,Bt.y*y).close()),he(re),he(ie),he(ge),he(se),he(le),he(ze),he(Ae),he(ft),he(Bt),he(Rt),he(be),he(Qe),he(ut),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),re=ae(),ie=ae(),ge=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var le=oe(re.x,re.y);Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var ze=oe(re.x,re.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=me*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.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 ft=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ft),he(te),he(re),he(ie),he(ge),he(le),he(ze),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new $e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),he(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new $e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),he(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new $e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Xe(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Xe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new $e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return re.spot1=new go.Spot(ge.x,ge.y),ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),he(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new $e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new $e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ae());return re.spot2=new go.Spot(ge.x,ge.y),he(ge),re}),go.Shape.setFigureParameter("Pointer",0,new $e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new $e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new $e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new $e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new $e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,se=me*ge;te=.05,re=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+se)*a,(re-ge)*y,(te+ge)*a,(re-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,se=me*ge,te=.825,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-se)*y,(te+se)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-se)*a,(re-ge)*y,(te-ge)*a,(re-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,se=me*ge,te=.5,re=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-se)*y,(te+se)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-se)*a,(re-ge)*y,(te-ge)*a,(re-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,se=me*ge,te=.175,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-se)*y,(te+se)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-se)*a,(re-ge)*y,(te-ge)*a,(re-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,se=me*ge,te=.05,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-se)*y,(te-se)*a,(re-ge)*y)),le.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 $e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=me*.4,ee=.4,te=.2,re=.5;var le=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=me*.2,ee=.2,te=.5,re=.5;var ze=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=me*.4,ee=.4,te=.8,re=.5;var Ae=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=me*.8,ee=.8,te=1,re=.5;var ft=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),re=ae(),ie=ae(),ge=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var se=oe(re.x,re.y),le=new go.PathFigure(re.x*a,re.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Re(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=me*.3,x=.3,Re(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),le.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),le.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(re),he(ie),he(ge),he(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,se=.5,le=0,ze=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,se=z,le=z,ze=ie*se,Ae=ie*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ze+se)/2)*a,(te+(le+Ae)/2)*y,(ee-se)*a,(te+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ae)*y,(ee-ze)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ze)*a,(te-le)*y,(ee+se)*a,(te-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ae)*y,(ee+(ze+se)/2)*a,(te+(le+Ae)/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 ft=new go.PathFigure(.2*a,y,!1);E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Bt=new go.PathFigure(.8*a,y,!1);return E.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=me*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=me*.1,ie=.1,ge=.9,se=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=me*.1,ie=.4,ge=.9;var le=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=me*.05,se=.175,le=.95,ee=new go.PathFigure((se-ie)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ie)*y,(se-ie)*a,(le-ge)*y,(se-ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ie)*a,le*y,(se+ge)*a,(le-ie)*y,(se+ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ie)*y,(se+ie)*a,(le+ge)*y,(se+ge)*a,(le+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ie)*a,le*y,(se-ge)*a,(le+ie)*y,(se-ie)*a,(le+ge)*y));var ie=.05,ge=me*.05,se=.375,le=.95,te=new go.PathFigure((se-ie)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ie)*y,(se-ie)*a,(le-ge)*y,(se-ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ie)*a,le*y,(se+ge)*a,(le-ie)*y,(se+ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ie)*y,(se+ie)*a,(le+ge)*y,(se+ge)*a,(le+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ie)*a,le*y,(se-ge)*a,(le+ie)*y,(se-ie)*a,(le+ge)*y));var ie=.05,ge=me*.05,se=.625,le=.95,re=new go.PathFigure((se-ie)*a,le*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ie)*y,(se-ie)*a,(le-ge)*y,(se-ge)*a,(le-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(se+ie)*a,le*y,(se+ge)*a,(le-ie)*y,(se+ie)*a,(le-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ie)*y,(se+ie)*a,(le+ge)*y,(se+ge)*a,(le+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(se-ie)*a,le*y,(se-ge)*a,(le+ie)*y,(se-ie)*a,(le+ge)*y));var ie=.05,ge=me*.05,se=.825,le=.95,ze=new go.PathFigure((se-ie)*a,le*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ie)*y,(se-ie)*a,(le-ge)*y,(se-ge)*a,(le-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se+ie)*a,le*y,(se+ge)*a,(le-ie)*y,(se+ie)*a,(le-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ie)*y,(se+ie)*a,(le+ge)*y,(se+ge)*a,(le+ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se-ie)*a,le*y,(se-ge)*a,(le+ie)*y,(se-ie)*a,(le+ge)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var $e={},dt="5.0",oe={},ae=null,he=!1,Xe=!1,Re=null,ce=!1,je=null,me=null,Ke=0;Ke<arguments.length;Ke++){var Ce=arguments[Ke];if(Ce!==null)switch(typeof Ce){case"number":dt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Ce:Re=Ce;break;case"object":typeof Ce.is3D!="undefined"?ae=Ce:oe=Ce;break;case"boolean":he=Ce,Xe=!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},oe.material_id!==void 0&&!Xe&&(he=!0)),Re!==null&&oe.id===void 0&&(oe.id=Re);var Ge="",ke="",Ie=!1,we=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};$e.setHTML5Codebase=function(Fe,Me){me=Fe,rt(Fe,Me)},$e.setJavaCodebase=$e.setJavaCodebaseVersion=$e.isCompiledInstalled=$e.setPreCompiledScriptPath=$e.setPreCompiledResourcePath=function(){},$e.setHTML5CodebaseVersion=function(Fe,Me){var Je=parseFloat(Fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}je=Fe,nt(Fe,Me)},$e.getHTML5CodebaseVersion=function(){return ne},$e.getParameters=function(){return oe},$e.setFontsCSSURL=function(Fe){z=Fe},$e.setGiacJSURL=function(Fe){},$e.setJNLPFile=function(Fe){Ge=Fe},$e.setJNLPBaseDir=function(Fe){},$e.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",Je=oe.id,$t,Ve=!1,ct=0;ct<arguments.length;ct++){var de=arguments[ct];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Me=de:Je=arguments[ct]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&($t=de)}lt();function lt(){if(!ce){setTimeout(lt,200);return}Me=ot(Me);var jt=$t||document.getElementById(Je);if(!jt){console.log("possibly bug on ajax loading? ");return}if($e.removeExistingApplet(jt,!1),oe.width===void 0&&jt.clientWidth&&(oe.width=jt.clientWidth),oe.height===void 0&&jt.clientHeight&&(oe.height=jt.clientHeight),!(oe.width&&oe.height)&&Me==="html5"&&(delete oe.width,delete oe.height),we=Me,Me==="screenshot")Bt(jt,oe);else{var Jt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Jt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Jt=(!re()||Fe())&&ie()),Jt?(we="screenshot",be(jt,oe,Ve,Me)):ft(jt,oe,Ve)}}};function re(){try{return window.self!==window.top}catch(Fe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}$e.getViews=function(){return ae},$e.isJavaInstalled=function(){return!1};var ge=function(Fe){var Me=function(ct){var de=JSON.parse(ct),lt=function(vt){return vt.type=="G"||vt.type=="E"},jt=de.elements?de.elements.filter(lt)[0]:de;if(!jt||!jt.url){Je();return}oe.fileName=jt.url,se(jt.settings||{}),ae.is3D=!0;var Jt="https://www.geogebra.org/images/";$e.setPreviewImage(E||jt.previewUrl,Jt+"GeoGebra_loading.png",Jt+"applet_play.png"),Fe()},Je=function(){oe.onError&&oe.onError(),it("Error: Fetching material (id "+oe.material_id+") failed.",oe)},$t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+oe.material_id+"?scope=basic";le("https://"+$t+"/api/proxy.php?path="+encodeURIComponent(Ve),Me,Je)};function se(Fe){var Me=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Fe[Je]=!!Fe[Je]}),Me.forEach(function(Je){oe[Je]===void 0&&Fe[Je]!==void 0&&(oe[Je]=Fe[Je])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function le(Fe,Me,Je){var $t=new XMLHttpRequest;$t.open("GET",Fe),$t.onload=function(){Me($t.responseText)},$t.onerror=Je,$t.send()}$e.isHTML5Installed=function(){return!0},$e.getLoadedAppletType=function(){return we},$e.setPreviewImage=function(Fe,Me,Je){E=Fe,b=Me,x=Je},$e.removeExistingApplet=function(Fe,Me){var Je;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),we=null;var $t=null;for(Je=0;Je<Fe.childNodes.length;Je++){var Ve=Fe.childNodes[Je],ct=Ve.className;ct==="applet_screenshot"?Me?(Ve.style.display="block",we="screenshot"):Ve.style.display="none":ct!=="applet_scaler prerender"&&(Fe.removeChild(Ve),$t=ct&&ct.indexOf("appletParameters")!=-1?Ve.id:null,Je--)}var de=oe.id!==void 0?oe.id:$t,lt=window[de];lt&&typeof lt.getBase64=="function"&&(lt.remove(),window[de]=null)},$e.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=$e.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},$e.startAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},$e.stopAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},$e.getAppletObject=function(){var Fe=oe.id!==void 0?oe.id:"ggbApplet";return window[Fe]},$e.resize=function(){};var ze=function(Fe,Me,Je){var $t=document.createElement("param");$t.setAttribute("name",Me),$t.setAttribute("value",Je),Fe.appendChild($t)},Ae=function(Fe){return Fe&&Fe!=="false"},ft=function(Fe,Me,Je){te(ne)<=4.2&&(Je=!0);var $t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&($t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var ct=Me.width,de=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(te(ne)<=4.4)Ae(Me.showToolBar)&&(Me.height-=7),Ae(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Ae(Me.showToolBar)&&(Me.width=605,ct=605);else{var lt=100;(Ae(Me.showToolBar)||Ae(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),lt=Ae(Me.showMenuBar)?245:155),ct<lt&&(Me.width=lt,ct=lt)}Ve.style.border="none",Ve.style.display="inline-block";for(var jt in Me)Me.hasOwnProperty(jt)&&jt!=="appletOnLoad"&&Ve.setAttribute("data-param-"+jt,Me[jt]);z&&Ve.setAttribute("data-param-fontscssurl",z),$e.resize=function(){GGBAppletUtils.responsiveResize(Fe,Me)},window.addEventListener("resize",function(Dt){$e.resize()});var Jt=typeof Me.appletOnLoad=="function"?Me.appletOnLoad:function(){};if(!Je&&Me.width!==void 0){Me.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var vt=Fe.querySelector(".applet_scaler.prerender"),Ue=vt!==null;if(Ue)var xe=vt.querySelector(".ggb_preview");else{var xe=ut(ct,de,Me.borderColor,!1);vt=document.createElement("div"),vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.style.width=ct+"px",vt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vt,"66%"),te(ne)>=5?(Me.appletOnLoad=function(Dt){var yt=Fe.querySelector(".ggb_preview");yt&&yt.parentNode.removeChild(yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),Jt(Dt)},Ue||vt.appendChild(xe)):Ve.appendChild(xe),vt.appendChild(Ve),Ue||Fe.appendChild(vt),setTimeout(function(){$e.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Ve),Fe.appendChild(ve),Me.appletOnLoad=function(Dt){$e.resize(),Jt(Dt)}}function pe(Dt,yt){yt&&typeof yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,yt.appletOnLoad):renderGGBElement(Dt),it("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yt)}function Le(Dt,yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(_t){pe(_t.article,_t.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Dt.className+=" geogebraweb")):pe(Dt,yt)}if($t){scriptLoadStarted=!0;for(var He=0;He<Ve.childNodes.length;He++){var gt=Ve.childNodes[He].tagName;gt==="TABLE"&&(Ve.removeChild(Ve.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ht!=null&&ht.parentNode.removeChild(ht)}var bt=document.createElement("script"),Ot=function(){Le(Ve,Me)};bt.src=ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=bt.src,it("GeoGebra HTML5 codebase loaded: '"+ke+"'.",Me),!me&&(!je||je=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):ke.requirejs?__webpack_require__.e(12).then(function(){var Dt=[__webpack_require__(12)];Ot.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=Ot,Fe.appendChild(bt))}else Le(Ve,Me);Me.height=de,Me.width=ct},Bt=function(Fe,Me,Je){var $t=ut(Me.width,Me.height,Me.borderColor,Je),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=Me.width+"px",Ve.style.height=Me.height+"px",Ve.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),Ve.appendChild($t);var ct=GGBAppletUtils.getScale(Me,Fe,Je);Je?(Fe.appendChild(Qe()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),Fe.appendChild(Ve),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(Ve,ct),Ve.style.width=Me.width+"px",Ve.style.height=Me.height+"px",Ve.parentNode.style.width=Me.width*ct+"px",Ve.parentNode.style.height=Me.height*ct+"px"),$e.resize=function(){Rt(Fe,$t,Ve,Je)},window.addEventListener("resize",function(de){$e.resize()}),$e.resize()};function Rt(Fe,Me,Je,$t){if(Fe.contains(Me)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var Ve=GGBAppletUtils.getScale(oe,Fe,$t);Je.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(Je,Ve),Je.parentNode.style.width=oe.width*Ve+"px",Je.parentNode.style.height=oe.height*Ve+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=oe.width+"px",Je.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}$e.onExitFullscreen=function(Fe,Me){Me.appendChild(Fe)};var be=function(Fe,Me,Je,$t){Bt(Fe,Me,!0);for(var Ve=function(){var lt=[];for(de=0;de<Fe.childNodes.length;de++)lt.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var jt=window.GGBT_wsf_view.renderFullScreen(Fe,Me.id),Jt=document.getElementById("fullscreencontainer"),vt=jQuery(Fe).find(".fullscreencontent");vt.length>0?(jt.remove(),vt.attr("id","fullscreencontent").show(),jQuery(Jt).append(vt),window.dispatchEvent(new Event("resize"))):ft(jt,Me,!1),window.GGBT_wsf_view.launchFullScreen(Jt)}else we=$t,ft(Fe,Me,!1);if(!window.GGBT_wsf_view)for(de=0;de<lt.length;de++)Fe.removeChild(lt[de])},ct=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<ct.length;de++)ct[de].addEventListener("click",Ve,!1),ct[de].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Me='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Me:Je.appendChild(document.createTextNode(Me)),document.getElementsByTagName("head")[0].appendChild(Je)}return Fe},ut=function(Fe,Me,Je,$t){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=Fe-2+"px",Ve.style.height=Me-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var ct="lightgrey";Je!==void 0&&(Je==="none"?ct="transparent":ct=Je),Ve.style.border="1px solid "+ct;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 lt,jt,Jt;if(!$t){lt=document.createElement("img"),lt.style.position="absolute",lt.style.zIndex="1001",lt.style.opacity=1,de.style.opacity=.3,jt=360,jt>Fe/4*3&&(jt=Fe/4*3),Jt=jt/5.8,lt.setAttribute("src",b),lt.setAttribute("width",jt),lt.setAttribute("height",Jt);var vt=(Fe-jt)/2,Ue=(Me-Jt)/2;lt.style.left=vt+"px",lt.style.top=Ue+"px",Ve.appendChild(lt)}}return Ve.appendChild(de),Ve},ot=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},mt=["web","webSimple","web3d","tablet","tablet3d","phone"],nt=function(Fe,Me){if(ne=Fe,Me){rt(ne,!0);return}var Je=!he;if(Je){var $t=te(ne);!isNaN($t)&&$t<4.4&&(Je=!1)}var Ve,ct;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ne.indexOf("//");de>0?ct=ne:de===0?ct=Ve+ne:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var lt in mt)if(ne.slice(mt[lt].length*-1)===mt[lt]||ne.slice((mt[lt].length+1)*-1)===mt[lt]+"/"){rt(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ae(oe.showToolBar)&&!Ae(oe.showMenuBar)&&!Ae(oe.showAlgebraInput)&&!Ae(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?ct+="webSimple/":ct+="web3d/",rt(ct,!1)},rt=function(Fe,Me){if(Fe.requirejs){ke=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),ke=Fe,Me===null&&(Me=Fe.indexOf("http")===-1),Ie=Me,a="web.nocache.js",y=!1;var Je=ke.split("/");Je.length>1&&(!Me&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):mt.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Fe.split("/"),ne=Je[Je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var $t=parseFloat(ne);$t!==NaN&&$t<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$t+" is deprecated. Using version latest instead."),nt("5.0",Me))},it=function(Fe,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(Fe)};oe.material_id!==void 0?ge(nn):nn();function nn(){var Fe=dt;je!==null?Fe=je:parseFloat(Fe)<5&&(Fe="5.0"),nt(Fe,!1),me!==null&&rt(me,Ie),ce=!0}return $e},GGBAppletUtils=function(){"use strict";function $e(){return window.GGBT_wsf_edit!==void 0}function dt(ce,je){je!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+je+","+je+")",ce.style.webkitTransform="scale("+je+","+je+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function oe(ce,je,me,Ke,Ce,Ge){var ke=null;if(Ge!=null&&Ge!="")for(var Ie=ce.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+Ge+" ")>-1){ke=Ie;break}else Ie=Ie.parentNode;var we=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ke)we=ke.offsetWidth,ne=Math.max(Ke?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(we=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=we):(we=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=we&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(E=we-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((me===void 0||!me)&&je>0&&je+y<we?we=je:we-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:we,height:ne}}function ae(ce,je,me,Ke,Ce){if(ce.isScreenshoGenerator)return 1;var Ge=Ke!==void 0&&Ke,ke=ce.noScaleMargin!=null&&ce.noScaleMargin,Ie=function(ee){return ee&&ee!=="false"},we=Ie(ce.autoHeight),ne=oe(je,ce.width,me,we,Ge&&window.GGBT_wsf_view||ke,Ce),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=je.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ge?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function he(ce,je,me){var Ke=1,Ce,Ge=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ge=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ke=parseFloat(ce.scale),(isNaN(Ke)||Ke===null||Ke===0)&&(Ke=1),Ke>1&&(Ge=!0)),je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ce=ae(ce,je,Ge,me,ce.scaleContainerClass);else return Ke;return Ge&&(!ce.hasOwnProperty("scale")||Ke===1)?Ce:Math.min(Ke,Ce)}function Xe(ce){var je=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=ce.getBoundingClientRect(),Ce=(je-Ke.width)/2,Ge=(me-Ke.height)/2;Ge<0&&(Ge=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?ce.style.left="40px":ce.style.left=Ce+"px",ce.style.top=Ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge<40?ce.style.top="40px":ce.style.top=Ge+"px",ce.style.left=Ce+"px")}function Re(ce,je){var me=ce.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(je.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ke=he(je,ce);$e()&&me.setAttribute("data-param-scale",Ke);for(var Ce=null,Ge=0;Ge<ce.childNodes.length;Ge++)if(ce.childNodes[Ge].className!==void 0&&ce.childNodes[Ge].className.match(/^applet_scaler/)){Ce=ce.childNodes[Ge];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var ke=je.id!==void 0?je.id:"ggbApplet",Ie=window[ke];(Ie==null||!Ie.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Ke)&&Ke!==1?(Ce.parentNode.style.width=je.width*Ke+"px",Ce.parentNode.style.height=je.height*Ke+"px",dt(Ce,Ke)):(dt(Ce,1),Ce.parentNode.style.width=je.width+"px",Ce.parentNode.style.height=je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:$e,positionCenter:Xe,getScale:he,scaleElement:dt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var $e=n.location.search;return $e.indexOf(J)!=-1||$e.indexOf(K)!=-1}function q($e,dt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function($e){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ae=$e[webModule.__softPermutationId],he=O;he<ae.length;he++){var Xe=ae[he];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var $e=o.createElement(Q);if($e.id=L,$e.style.cssText=R+S,$e.tabIndex=-1,o.body.appendChild($e),t=$e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w($e){function dt(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=he();if(Xe){ae();return}function Re(){if(!Xe){if(!he())return;Xe=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var ce=setInterval(function(){Re()},$)}function oe(ae){var he=u(),Xe=he.body,Re=he.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=ae,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Xe.appendChild(Re)}dt(function(){oe($e)})}webModule.__startLoadingFragment=function($e){return C($e)},webModule.__installRunAsyncCode=function($e){var dt=u(),oe=dt.body,ae=dt.createElement(_);ae.language=ab,ae.text=$e,oe.appendChild(ae),oe.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($e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($e){var dt=c[$e];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function $e(ce){var je=ce.lastIndexOf(rb);je==-1&&(je=ce.length);var me=ce.indexOf(sb);me==-1&&(me=ce.length);var Ke=ce.lastIndexOf(tb,Math.min(me,je));return Ke>=O?ce.substring(O,Ke+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var je=o.createElement(ub);je.src=ce+vb,ce=$e(je.src)}return ce}function oe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),je=O;je<ce.length;++je)if(ce[je].src.indexOf(xb)!=-1)return $e(ce[je].src);return W}function he(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Xe(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Re=oe();return Re==W&&(Re=ae()),Re==W&&(Re=he()),Re==W&&Xe()&&(Re=$e(o.location.href)),Re=dt(Re),Re}function C($e){return $e.match(/^\//)||$e.match(/^[a-zA-Z]+:\/\//)?$e:webModule.__moduleBase+$e}function D(){var $e=[],dt=O,oe=[],ae=[];function he(ce){var je=ae[ce](),me=oe[ce];if(je in me)return je;var Ke=[];for(var Ce in me)Ke[me[Ce]]=Ce;throw r&&r(ce,Ke,je),null}if(__gwt_isKnownPropertyValue=function(ce,je){return je in oe[ce]},webModule.__getPropMap=function(){var ce={};for(var je in oe)oe.hasOwnProperty(je)&&(ce[je]=he(je));return ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Re=Xe.indexOf(Db);Re!=-1&&(dt=parseInt(Xe.substring(Re+P),$),Xe=Xe.substring(O,Re))}catch(ce){}return webModule.__softPermutationId=dt,C(Xe+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($e,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Re},Ds:function(){return ce},KI:function(){return me},SI:function(){return Xe},f1:function(){return he}});var ae=oe(11320);function he(Ke){let Ce=!0;if(Ke.length>0){for(let Ge=0;Ge<Ke.length;Ge++)if(Ke[Ge].compile_success==0||!Ke[Ge].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function Xe(Ke,Ce=""){let Ge=[];for(let ke=0;ke<Ke.length;ke++){let Ie=Ke[ke],we=Ce?`${Ce}/${Ie.name}`:`${Ie.name}`;Ge.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:we})}return Ge}function Re(Ke,Ce,Ge){for(let ke=0;ke<Ke.length;ke++){let Ie=Ke[ke];if(Ie.key===Ce){Ie.children=Ge;break}Ie.children&&Re(Ie.children,Ce,Ge)}return Ke}function ce(Ke,Ce,Ge){let ke;return function(){let Ie=this,we=arguments,ne=function(){ke=null,Ge||Ke.apply(Ie,we)},a=Ge&&!ke;clearTimeout(ke),ke=setTimeout(ne,Ce),a&&Ke.apply(Ie,we)}}const je=!0,me=ae.Z.API_SERVER},63205:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return ke}});var ae=oe(67294),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(94184),Re=oe.n(Xe),ce=oe(57953),je=oe(15979),me=oe(33170),Ke=oe(28706),Ce=(Ie,we,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Ie,we)).next())}),ke=({data:Ie,className:we,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),re=(0,ae.useRef)(null),[ie,ge]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ie==null?void 0:Ie.visible]);const ze=()=>Ce(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ke.ZJ)(Ie==null?void 0:Ie.src);z.current.src="",z.current.src=be,z.current.onload=function(){Rt()},ge(!1),le("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ft=be=>Ce(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:be.dataUrl}});Qe!=null&&Qe.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(be.state)}})).status===0&&E():Qe!=null&&Qe.id&&E(Qe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),Bt=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ut=>{const ot=document.querySelector(ut.name);ot&&ot.setAttribute("title",ut.title)})},Rt=()=>{ee.current=new je.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ft),ee.current.addEventListener("beforeclose",Ae),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ie!=null&&Ie.snapshotData&&ee.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Bt()},300)};return ae.createElement(ae.Fragment,null,(Ie==null?void 0:Ie.visible)&&ae.createElement(ce.Z,{spinning:ie,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:re,className:Re()(he.imageDimensions,we,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},36527:function($e,dt,oe){"use strict";var ae=oe(67294),he=oe(71230),Xe=oe(15746),Re=oe(66368),ce=oe(71577),je=oe(85725),me=oe(71736),Ke=oe(84279),Ce=oe(67294);const Ge=(0,ae.forwardRef)(({callback:ke,showSaveButton:Ie,value:we=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ce.createElement(Xe.Z,{flex:"110px",className:me.Z.item},Ce.createElement("div",null,Ce.createElement(je.Z,{value:`$$${ee.value}$$`}),ee.name),Ce.createElement("div",{className:me.Z.children},ee.children.map((re,ie)=>Ce.createElement("div",{key:ie},Ce.createElement("h1",null,re.name),Ce.createElement(he.Z,{gutter:[10,10]},re.data.map((ge,se)=>Ce.createElement(Xe.Z,{key:se,onClick:()=>b(ge),className:me.Z.diamond},Ce.createElement(je.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ce.createElement(Xe.Z,{flex:"110px",className:me.Z.item},Ce.createElement("div",null,Ce.createElement(je.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ce.createElement("div",{className:me.Z.children},ee.children.map((re,ie)=>Ce.createElement("div",{key:ie},re.name&&Ce.createElement("h1",null,re.name),Ce.createElement(he.Z,{gutter:[10,10]},re.data.map((ge,se)=>Ce.createElement(Xe.Z,{key:se,onClick:()=>b(ge),className:me.Z.diamond},Ce.createElement(je.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return ke&&ke(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ce.createElement("div",{className:me.Z.mathWrap},Ce.createElement(Re.default,{defaultActiveKey:"1",items:x}),Ce.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},we||""),Ie&&Ce.createElement("div",{className:me.Z.button},Ce.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=Ge},65866:function($e,dt,oe){"use strict";oe.d(dt,{z:function(){return ot},Z:function(){return mt}});var ae=oe(67294),he=oe(59810),Xe=oe(2453),Re=oe(14446),ce=oe(71577),je=oe(11320),me=oe(4440),Ke=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ie=(nt,rt,it)=>rt in nt?Ke(nt,rt,{enumerable:!0,configurable:!0,writable:!0,value:it}):nt[rt]=it,we=(nt,rt)=>{for(var it in rt||(rt={}))Ge.call(rt,it)&&Ie(nt,it,rt[it]);if(Ce)for(var it of Ce(rt))ke.call(rt,it)&&Ie(nt,it,rt[it]);return nt},ne=(nt,rt,it)=>new Promise((nn,Fe)=>{var Me=Ve=>{try{$t(it.next(Ve))}catch(ct){Fe(ct)}},Je=Ve=>{try{$t(it.throw(Ve))}catch(ct){Fe(ct)}},$t=Ve=>Ve.done?nn(Ve.value):Promise.resolve(Ve.value).then(Me,Je);$t((it=it.apply(nt,rt)).next())});const a="\u3000\u3000";function y(nt){var rt=["Bytes","KB","MB","GB","TB"];if(nt==0)return"0 Byte";var it=parseInt(""+Math.floor(Math.log(nt)/Math.log(1024)),10);return(nt/Math.pow(1024,it)).toFixed(1)+" "+rt[it]}var E=({value:nt=[],action:rt,onChange:it,className:nn,maxSize:Fe=150,title:Me="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const $t={multiple:!1,fileList:nt,accept:Je,withCredentials:!0,beforeUpload:ct=>ct.size/1024/1024<Fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Fe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(ct){var de,lt,jt,Jt;let vt=[...ct.fileList];if(vt=vt.map(Ue=>(Ue.name.indexOf(a)===-1&&(Ue.name=`${Ue.name}${a}${y(Ue.size)}`),we({},Ue))),ct.file.status==="done"&&((lt=(de=ct.file)==null?void 0:de.response)==null?void 0:lt.status)===-1){message.error((Jt=(jt=ct.file)==null?void 0:jt.response)==null?void 0:Jt.message),it([]);return}it(vt)},onRemove:ct=>ne(void 0,null,function*(){const de=ct.size/1024/1024;return ct.status==="uploading"?!0:de<Fe&&(ct.response?ct.response.id:ct.uid)?yield removeAttachment(ct.response?ct.response.id:ct.id):!0})};function Ve(ct){ct.preventDefault(),ct.stopPropagation()}return React.createElement("div",{className:`single-upload ${nn||""}`},React.createElement(Upload,we({},$t),React.createElement(Button,{type:"primary",title:nt.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:nt.length>0,ghost:!0},Me),React.createElement("span",{onClick:Ve,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Fe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(nt,rt,it)=>rt in nt?z(nt,rt,{enumerable:!0,configurable:!0,writable:!0,value:it}):nt[rt]=it,ge=(nt,rt)=>{for(var it in rt||(rt={}))te.call(rt,it)&&ie(nt,it,rt[it]);if(ee)for(var it of ee(rt))re.call(rt,it)&&ie(nt,it,rt[it]);return nt};const se=nt=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},nt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ze=Object.defineProperty,Ae=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Rt=(nt,rt,it)=>rt in nt?ze(nt,rt,{enumerable:!0,configurable:!0,writable:!0,value:it}):nt[rt]=it,be=(nt,rt)=>{for(var it in rt||(rt={}))ft.call(rt,it)&&Rt(nt,it,rt[it]);if(Ae)for(var it of Ae(rt))Bt.call(rt,it)&&Rt(nt,it,rt[it]);return nt},Qe=(nt,rt,it)=>new Promise((nn,Fe)=>{var Me=Ve=>{try{$t(it.next(Ve))}catch(ct){Fe(ct)}},Je=Ve=>{try{$t(it.throw(Ve))}catch(ct){Fe(ct)}},$t=Ve=>Ve.done?nn(Ve.value):Promise.resolve(Ve.value).then(Me,Je);$t((it=it.apply(nt,rt)).next())});const{Dragger:ut}=he.default;function ot(nt){let rt=[];return nt&&nt.length>0&&(rt=nt.map(it=>({uid:it.id,id:it.id,name:it.title+a+it.filesize,url:it.url,filesize:it.filesize,status:"done",response:{id:it.id}}))),rt}var mt=({value:nt,onChange:rt,action:it,data:nn,className:Fe,maxSize:Me=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:$t=!1,accept:Ve="",additionalText:ct,isDragger:de,number:lt=1e3,aloneClear:jt=!1,realTimeRemove:Jt=!0,uploadText:vt,setFileProgress:Ue,showFileProgress:xe})=>{const[ve,pe]=(0,ae.useState)(!1);let[Le,He]=(0,ae.useState)(nt||[]),[gt,ht]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{nt&&(gt===1&&He([...nt]),ht(2),lt===(nt==null?void 0:nt.length)&&pe(!0))},[nt]);const bt=()=>{setTimeout(()=>{Le.pop(),He([...Le])},500)};xe&&Ue(Le.some(yt=>yt.status==="uploading"));const Ot={multiple:!0,disabled:ve,accept:Ve,withCredentials:!0,fileList:Le,beforeUpload:(yt,_t)=>{const Zt=yt.size/1024/1024;return Le.concat(_t).length>lt?(Le.pop(),He([...Le]),Xe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${lt}\u4E2A\u6587\u4EF6`),jt?Promise.reject():(bt(),!1)):Zt<Me?!0:(Xe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Me}MB).`),jt?Promise.reject():(bt(),!1))},data:nn,action:it||`${je.Z.API_SERVER}/api/attachments.json`,onChange(yt){var _t,Zt,Ut,Ht;if(yt.file.status==="removed"?Le=yt.fileList:Le=(0,x.uniqBy)([...yt.fileList,...Le],"uid"),yt.file.status==="done"&&((Zt=(_t=yt.file)==null?void 0:_t.response)==null?void 0:Zt.status)===-1){Xe.ZP.error((Ht=(Ut=yt.file)==null?void 0:Ut.response)==null?void 0:Ht.message);return}Le.length>=lt?pe(!0):pe(!1),He([...Le]),Le=Le.map(Yt=>{var Pe,Be;return(Pe=Yt==null?void 0:Yt.response)!=null&&Pe.id&&(Yt.url=(Be=Yt==null?void 0:Yt.response)==null?void 0:Be.url),Yt.name.indexOf(a)===-1&&(Yt.name=`${Yt.name}${a}${y(Yt.size)}`),be({},Yt)}),console.log("info:",yt,Le),rt(Le)},onRemove:yt=>Qe(void 0,null,function*(){if(!Jt)return!0;const _t=()=>Qe(void 0,null,function*(){if(yt.response?yt.response.id:yt.id){let Ut=yield(0,me.JZ)(yt.response?yt.response.id:yt.uid);return Promise.resolve(Ut)}else return!0});return $t?new Promise((Zt,Ut)=>{Re.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Qe(void 0,null,function*(){const Ht=yield _t();Xe.ZP.success("\u5220\u9664\u6210\u529F"),Zt(!0)}),onCancel:()=>Zt(!1)})}):yield _t()})};function Dt(yt){yt.preventDefault(),yt.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${Fe||""}`},de&&ae.createElement(ut,be({},Ot),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(b.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Me,"MB)"," "),ct),!de&&ae.createElement(he.default,be({},Ot),ae.createElement(ce.ZP,{disabled:ve,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:le}),Je),ae.createElement("span",{onClick:Dt,className:"upload_text"},vt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Me}MB)`)))}},57444:function($e,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ae=oe(67294),he=oe(11713),Xe=oe(22150),Re=oe(71577),ce=oe(4631),je=oe.n(ce),me=oe(71749),Ke=oe(30483),Ce=Object.defineProperty,Ge=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Ce(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))we.call(re,ie)&&a(te,ie,re[ie]);if(Ie)for(var ie of Ie(re))ne.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Ge(te,ke(re));const b=he.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ae.useState)("python");function se(ze){ge(z[ze][1])}function le(ze){te(ze)}return ae.createElement(Xe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:ze=>ze.parentNode,onChange:se},Object.keys(z).map(ze=>ae.createElement(b,{key:ze,value:ze},z[ze][0])))),ae.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Re.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const se=(0,ae.useRef)(),[le,ze]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ae=function(ft){const Bt=ft.getValue();re&&re(Bt)};return le.on("change",Ae),()=>{le.off("change",Ae)}}},[le,re]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ie)},[le,ie]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ae=je().fromTextArea(se.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));ze(Ae)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},35567:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Zn}});var ae=oe(67294),he=oe(4631),Xe=oe.n(he),Re=oe(91033),ce=oe(71749),je=oe(57341),me=oe(82801),Ke=oe(88386),Ce=oe(49047),Ge=oe(80785),ke=oe(85725),Ie=({value:Se="",className:ye,showTextOnly:fe,showLines:qe,style:wt={}})=>{const Ct=(0,ae.useMemo)(()=>"",[Se]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},we=oe(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,ye,fe)=>ye in Se?ne(Se,ye,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ye]=fe,ee=(Se,ye)=>{for(var fe in ye||(ye={}))b.call(ye,fe)&&z(Se,fe,ye[fe]);if(E)for(var fe of E(ye))x.call(ye,fe)&&z(Se,fe,ye[fe]);return Se},te=(Se,ye)=>a(Se,y(ye));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:Se,title:ye,icon:fe,actionName:qe,className:wt="",children:Ct}){function Pn(){Se(qe)}return we.createElement("a",{title:ye,className:wt,onClick:Pn},we.createElement("i",{className:`${fe}`}),Ct)}var ge=({watch:Se,showNullButton:ye,showNullProgramButton:fe,onActionCallback:qe,fullScreen:wt,insertTemp:Ct,hidetoolBar:Pn,extraUse:Vt})=>{const sn=[...re,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return we.createElement("ul",{className:"markdown-toolbar-container"},!Pn&&sn.map((En,Un)=>we.createElement("li",{key:Un},En.actionName?we.createElement(ie,te(ee({},En),{onActionCallback:qe})):we.createElement("span",{className:"v-line"}))),ye?we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},we.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,fe?we.createElement(we.Fragment,null,we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},we.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},we.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&we.createElement("li",null,we.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ct}`,onActionCallback:qe},we.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&we.createElement("li",null,Vt),we.createElement("li",{className:"btn-full-screen"},we.createElement(ie,{icon:`${wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qe})))},se=oe(76621),le=oe(22150),ze=oe(69677),Ae=oe(71577),ft=Object.defineProperty,Bt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ot=(Se,ye,fe)=>ye in Se?ft(Se,ye,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ye]=fe,mt=(Se,ye)=>{for(var fe in ye||(ye={}))Qe.call(ye,fe)&&ot(Se,fe,ye[fe]);if(be)for(var fe of be(ye))ut.call(ye,fe)&&ot(Se,fe,ye[fe]);return Se},nt=(Se,ye)=>Bt(Se,Rt(ye));const rt={labelCol:{span:4},wrapperCol:{span:20}};var it=({callback:Se,onCancel:ye})=>{function fe(qe){Se(qe)}return ae.createElement(le.default,nt(mt({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fe,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ze.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ze.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},nn=oe(57444),Fe=oe(70859),Me=oe(14446),Je=oe(71230),$t=oe(63205),Ve=oe(67294),ct=({callback:Se,onCancel:ye})=>{const fe=document.createElement("canvas"),qe=fe.getContext("2d");fe.width=1e3,fe.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,fe.width,fe.height);const wt=fe.toDataURL("image/png");return Ve.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(Je.Z,{style:{height:"100vh"}},Ve.createElement($t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wt,visible:!0,title:String(Date.now())},onOk:Ct=>{Se({src:Ct.url})},onClose:ye})))},de=oe(23495);function lt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(lt,go.CommandHandler),lt.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},lt.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var ye=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ye=Math.min(fe.position.x,ye))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ye,fe.position.y))}),Se.commitTransaction("aligning left")},lt.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var ye=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var qe=fe.actualBounds.x+fe.actualBounds.width;ye=Math.max(qe,ye)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ye-fe.actualBounds.width,fe.position.y))}),Se.commitTransaction("aligning right")},lt.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var ye=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ye=Math.min(fe.position.y,ye))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.position.x,ye))}),Se.commitTransaction("alignTop")},lt.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var ye=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var qe=fe.actualBounds.y+fe.actualBounds.height;ye=Math.max(qe,ye)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,ye-fe.actualBounds.height))}),Se.commitTransaction("aligning bottom")},lt.prototype.alignCenterX=function(){var Se=this.diagram,ye=Se.selection.first();if(ye){Se.startTransaction("aligning Center X");var fe=ye.actualBounds.x+ye.actualBounds.width/2;Se.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(fe-qe.actualBounds.width/2,qe.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},lt.prototype.alignCenterY=function(){var Se=this.diagram,ye=Se.selection.first();if(ye){Se.startTransaction("aligning Center Y");var fe=ye.actualBounds.y+ye.actualBounds.height/2;Se.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,fe-qe.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},lt.prototype.alignColumn=function(Se){var ye=this.diagram;ye.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var fe=new Array;ye.selection.each(function(Vt){Vt instanceof go.Link||fe.push(Vt)});for(var qe=0;qe<fe.length-1;qe++){var wt=fe[qe],Ct=wt.actualBounds.y+wt.actualBounds.height+Se,Pn=fe[qe+1];Pn.move(new go.Point(wt.actualBounds.x,Ct))}ye.commitTransaction("align Column")},lt.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var ye=this.diagram;ye.startTransaction("align Row");var fe=new Array;ye.selection.each(function(Vt){Vt instanceof go.Link||fe.push(Vt)});for(var qe=0;qe<fe.length-1;qe++){var wt=fe[qe],Ct=wt.actualBounds.x+wt.actualBounds.width+Se,Pn=fe[qe+1];Pn.move(new go.Point(Ct,wt.actualBounds.y))}ye.commitTransaction("align Row")},lt.prototype.canRotate=function(Se){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<1)},lt.prototype.rotate=function(Se){Se===void 0&&(Se=90);var ye=this.diagram;ye.startTransaction("rotate "+Se.toString());var ye=this.diagram;ye.selection.each(function(fe){fe instanceof go.Link||fe instanceof go.Group||(fe.angle+=Se)}),ye.commitTransaction("rotate "+Se.toString())},lt.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var ye=new go.Map;Se.selection.each(function(fe){ye.set(fe.layer,0)}),ye.iteratorKeys.each(function(fe){var qe=0;fe.parts.each(function(wt){if(!wt.isSelected){var Ct=wt.zOrder;isNaN(Ct)?wt.zOrder=0:qe=Math.max(qe,Ct)}}),ye.set(fe,qe)}),Se.selection.each(function(fe){lt._assignZOrder(fe,ye.get(fe.layer)+1)}),Se.commitTransaction("pullToFront")},lt.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var ye=new go.Map;Se.selection.each(function(fe){ye.set(fe.layer,0)}),ye.iteratorKeys.each(function(fe){var qe=0;fe.parts.each(function(wt){if(!wt.isSelected){var Ct=wt.zOrder;isNaN(Ct)?wt.zOrder=0:qe=Math.min(qe,Ct)}}),ye.set(fe,qe)}),Se.selection.each(function(fe){lt._assignZOrder(fe,ye.get(fe.layer)-1-lt._findGroupDepth(fe))}),Se.commitTransaction("pushToBack")},lt._assignZOrder=function(Se,ye,fe){fe===void 0&&(fe=Se),Se.layer===fe.layer&&(Se.zOrder=ye),Se instanceof go.Group&&Se.memberParts.each(function(qe){lt._assignZOrder(qe,ye+1,fe)})},lt._findGroupDepth=function(Se){if(Se instanceof go.Group){var ye=0;return Se.memberParts.each(function(fe){ye=Math.max(ye,lt._findGroupDepth(fe))}),ye+1}else return 0},lt.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var ye=Se.lastInput;if(ye.key==="Up"||ye.key==="Down"||ye.key==="Left"||ye.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)}},lt.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(ye){Se.push(ye)}),this.diagram.parts.each(function(ye){Se.push(ye)}),Se},lt.prototype._arrowKeyMove=function(){var Se=this.diagram,ye=Se.lastInput,fe=0,qe=0;if(ye.control||ye.meta)fe=1,qe=1;else if(Se.grid!==null){var wt=Se.grid.gridCellSize;qe=wt.width,fe=wt.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(Ct){ye.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-fe)):ye.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+fe)):ye.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-qe,Ct.actualBounds.y)):ye.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+qe,Ct.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},lt.prototype._arrowKeySelect=function(){var Se=this.diagram,ye=Se.lastInput,fe=null;ye.key==="Up"?fe=this._findNearestPartTowards(270):ye.key==="Down"?fe=this._findNearestPartTowards(90):ye.key==="Left"?fe=this._findNearestPartTowards(180):ye.key==="Right"&&(fe=this._findNearestPartTowards(0)),fe!==null&&(ye.shift?fe.isSelected=!0:ye.control||ye.meta?fe.isSelected=!fe.isSelected:Se.select(fe))},lt.prototype._findNearestPartTowards=function(Se){var ye=this.diagram.selection.first();if(ye===null)return null;for(var fe=ye.actualBounds.center,qe=this._getAllParts(),wt=1/0,Ct=ye,Pn=0;Pn<qe.length;Pn++){var Vt=qe[Pn];if(Vt!==ye&&Vt.canSelect()){var sn=Vt.actualBounds.center,En=fe.directionPoint(sn),Un=this._angleCloseness(En,Se);if(Un<=45){var et=fe.distanceSquaredPoint(sn);et*=1+Math.sin(Un*Math.PI/180),et<wt&&(wt=et,Ct=Vt)}}}return Ct},lt.prototype._angleCloseness=function(Se,ye){return Math.min(Math.abs(ye-Se),Math.min(Math.abs(ye+360-Se),Math.abs(ye-360-Se)))},lt.prototype._arrowKeyTree=function(){var Se=this.diagram,ye=Se.selection.first();if(ye instanceof go.Node){var fe=Se.lastInput;if(fe.key==="Right"){if(!ye.isTreeLeaf)if(!ye.isTreeExpanded)Se.commandHandler.canExpandTree(ye)&&Se.commandHandler.expandTree(ye);else{var qe=this._sortTreeChildrenByY(ye).first();qe!==null&&Se.select(qe)}}else if(fe.key==="Left")if(!ye.isTreeLeaf&&ye.isTreeExpanded)Se.commandHandler.canCollapseTree(ye)&&Se.commandHandler.collapseTree(ye);else{var wt=ye.findTreeParentNode();wt!==null&&Se.select(wt)}else if(fe.key==="Up"){var wt=ye.findTreeParentNode();if(wt!==null){var Ct=this._sortTreeChildrenByY(wt),Pn=Ct.indexOf(ye);if(Pn>0){for(var Vt=Ct.elt(Pn-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var sn=this._sortTreeChildrenByY(Vt);Vt=sn.last()}Vt!==null&&Se.select(Vt)}else Se.select(wt)}}else if(fe.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var qe=this._sortTreeChildrenByY(ye).first();qe!==null&&Se.select(qe)}else for(;ye!==null;){var wt=ye.findTreeParentNode();if(wt===null)break;var Ct=this._sortTreeChildrenByY(wt),Pn=Ct.indexOf(ye);if(Pn<Ct.length-1){Se.select(Ct.elt(Pn+1));break}else ye=wt}var En=Se.selection.first();En!==null&&Se.scrollToRect(En.actualBounds)}},lt.prototype._sortTreeChildrenByY=function(Se){var ye=new go.List().addAll(Se.findTreeChildrenNodes());return ye.sort(function(fe,qe){var wt=fe.location,Ct=qe.location;return wt.y<Ct.y?-1:wt.y>Ct.y?1:wt.x<Ct.x?-1:wt.x>Ct.x?1:0}),ye},lt.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},lt.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(lt.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(lt.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 jt=lt,Jt=oe(18023),vt=oe(15746),Ue=oe(33170),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=oe(67294),pe=(Se,ye,fe)=>new Promise((qe,wt)=>{var Ct=sn=>{try{Vt(fe.next(sn))}catch(En){wt(En)}},Pn=sn=>{try{Vt(fe.throw(sn))}catch(En){wt(En)}},Vt=sn=>sn.done?qe(sn.value):Promise.resolve(sn.value).then(Ct,Pn);Vt((fe=fe.apply(Se,ye)).next())});function Le({onCancel:Se,callback:ye}){let fe=(0,ae.useRef)(),qe=(0,ae.useRef)(),wt=(0,ae.useRef)(),Ct=(0,ae.useRef)(!1);const Pn=(0,ae.useRef)(!1),[Vt,sn]=(0,ae.useState)(0);function En(){const et=de.bx.make,gn={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(qe.current,{padding:20,grid:et(de.s_,"Grid",et(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_e=>{var pt=_e.diagram.commandHandler.addTopLevelParts(_e.diagram.selection,!0);pt||_e.diagram.currentTool.doCancel()},commandHandler:et(jt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_e=>{var pt=_e.subject;pt.location=pt.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 pt=_e.subject;setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()})},LinkRelinked:_e=>{var pt=_e.parameter.part;pt.invalidateConnectedLinks();var It=_e.subject;_e.diagram.toolManager.linkingTool.isForwards?It.toNode.invalidateConnectedLinks():It.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),fe.current.nodeTemplate=et(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),et(de.bn,{name:"SHAPE",fill:gn.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")),et(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),et(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=et("ToolTip",et(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},et(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),et(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ue(_e,pt){var It=(at,en)=>{at.handled=!0,at.diagram.model.commit(tn=>{var Bn=en.part.adornedPart,xn=new de.E9().setRectSpot(Bn.actualBounds,_e);xn.subtract(Bn.location),xn.scale(2,2),xn.x+=Math.sign(xn.x)*130,xn.y+=Math.sign(xn.y)*130,xn.add(Bn.location),xn.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var Cn=tn.copyNodeData(Bn.data);tn.setGroupKeyForNodeData(Cn,tn.getGroupKeyForNodeData(Bn.data)),tn.addNodeData(Cn);var ga={from:Bn.key,to:tn.getKeyForNodeData(Cn)};tn.addLinkData(ga);var ta=at.diagram.findNodeForData(Cn);ta.location=xn,at.diagram.select(ta),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return et(de.bn,{figure:pt,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:gn.white,strokeWidth:4,mouseEnter:(at,en)=>en.fill="dodgerblue",mouseLeave:(at,en)=>en.fill="orange",isActionable:!0,click:It,contextClick:It})}function Oe(_e){return et(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:(pt,It)=>It.fill="dodgerblue",mouseLeave:(pt,It)=>It.fill="orange",click:(pt,It)=>{pt.diagram.commandHandler.showContextMenu(It.part.adornedPart)}},_e||{})}fe.current.nodeTemplate.selectionAdornmentTemplate=et(de.uz,"Spot",et(de.Vm,{padding:10}),ue(de.z6.Top,"TriangleUp"),ue(de.z6.Left,"TriangleLeft"),ue(de.z6.Right,"TriangleRight"),ue(de.z6.Bottom,"TriangleDown"),Oe({alignment:new de.z6(.75,0)}));function Ee(_e,pt){return(It,at)=>{It.handled=!0,It.diagram.model.commit(en=>{en.set(at.part.adornedPart.data,_e,pt)})}}function Ne(_e,pt){return pt||(pt="color"),et(de.bn,{width:16,height:16,stroke:"lightgray",fill:_e,margin:1,background:"transparent",mouseEnter:(It,at)=>at.stroke="dodgerblue",mouseLeave:(It,at)=>at.stroke="lightgray",click:Ee(pt,_e),contextClick:Ee(pt,_e)})}function tt(){return[et("ContextMenuButton",et(de.s_,"Horizontal",Ne(gn.white,"fill"),Ne(gn.beige,"fill"),Ne(gn.extralightblue,"fill"),Ne(gn.extralightred,"fill"))),et("ContextMenuButton",et(de.s_,"Horizontal",Ne(gn.lightgray,"fill"),Ne(gn.lightgreen,"fill"),Ne(gn.lightblue,"fill"),Ne(gn.lightred,"fill")))]}function Ze(){return[et("ContextMenuButton",et(de.s_,"Horizontal",Ne(gn.black),Ne(gn.green),Ne(gn.blue),Ne(gn.red))),et("ContextMenuButton",et(de.s_,"Horizontal",Ne(gn.white),Ne(gn.magenta),Ne(gn.purple),Ne(gn.orange)))]}function Ye(_e,pt){return pt||(pt="thickness"),et(de.bn,"LineH",{width:16,height:16,strokeWidth:_e,margin:1,background:"transparent",mouseEnter:(It,at)=>at.background="dodgerblue",mouseLeave:(It,at)=>at.background="transparent",click:Ee(pt,_e),contextClick:Ee(pt,_e)})}function De(_e,pt){return pt||(pt="dash"),et(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_e,margin:1,background:"transparent",mouseEnter:(It,at)=>at.background="dodgerblue",mouseLeave:(It,at)=>at.background="transparent",click:Ee(pt,_e),contextClick:Ee(pt,_e)})}function Tt(){return[et("ContextMenuButton",et(de.s_,"Horizontal",Ye(1),Ye(2),Ye(3),Ye(4))),et("ContextMenuButton",et(de.s_,"Horizontal",De(null),De([2,4]),De([4,4])))]}function Et(_e,pt){return pt||(pt="figure"),et(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_e,margin:1,background:"transparent",mouseEnter:(It,at)=>at.fill="dodgerblue",mouseLeave:(It,at)=>at.fill="lightgray",click:Ee(pt,_e),contextClick:Ee(pt,_e)})}fe.current.nodeTemplate.contextMenu=et("ContextMenu",et("ContextMenuButton",et(de.s_,"Horizontal",Et("Rectangle"),Et("RoundedRectangle"),Et("Ellipse"),Et("Diamond"))),et("ContextMenuButton",et(de.s_,"Horizontal",Et("Parallelogram2"),Et("ManualOperation"),Et("Procedure"),Et("Cylinder1"))),et("ContextMenuButton",et(de.s_,"Horizontal",Et("Terminator"),Et("CreateRequest"),Et("Document"),Et("TriangleDown"))),tt(),Ze(),Tt()),fe.current.groupTemplate=et(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_e,pt)=>{var It=pt.addMembers(pt.diagram.selection,!0);It||pt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),et(de.s_,"Auto",{name:"BODY"},et(de.bn,{parameter1:10,fill:gn.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")),et(de.Vm,{background:"transparent",margin:20})),et(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=et(de.uz,"Spot",et(de.s_,"Auto",et(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),et(de.Vm,{margin:1.5})),Oe({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),fe.current.groupTemplate.contextMenu=et("ContextMenu",tt(),Ze(),Tt()),fe.current.linkTemplate=et(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(),et(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),et(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)),et(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))),et(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))),et(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=et(de.uz,et(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:kt(2)},new de.KX("pathPattern","thickness",kt)),Oe({alignmentFocus:new de.z6(0,0,-6,-4)}));function kt(_e){return et(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_e+4).toString()+" H3"})}function qt(_e){var pt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _e===0?pt="M0 0 M16 16 M0 8 L16 8":_e===2&&(pt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),et(de.bn,{geometryString:pt,margin:2,background:"transparent",mouseEnter:(It,at)=>at.background="dodgerblue",mouseLeave:(It,at)=>at.background="transparent",click:Ee("dir",_e),contextClick:Ee("dir",_e)})}function mn(_e){var pt=(It,at)=>{It.handled=!0,It.diagram.model.commit(en=>{var tn=at.part.adornedPart;en.set(tn.data,_e?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(_e?tn.toNode:tn.fromNode).invalidateConnectedLinks()})};return et(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(It,at)=>at.background="dodgerblue",mouseLeave:(It,at)=>at.background="transparent",click:pt,contextClick:pt})}function Te(_e,pt){var It=0,at=de.z6.RightSide;_e.equals(de.z6.Top)?(It=270,at=de.z6.TopSide):_e.equals(de.z6.Left)?(It=180,at=de.z6.LeftSide):_e.equals(de.z6.Bottom)&&(It=90,at=de.z6.BottomSide),pt||(It-=180);var en=(tn,Bn)=>{tn.handled=!0,tn.diagram.model.commit(xn=>{var Cn=Bn.part.adornedPart;xn.set(Cn.data,pt?"toSpot":"fromSpot",de.z6.stringify(at)),(pt?Cn.toNode:Cn.fromNode).invalidateConnectedLinks()})};return et(de.bn,{alignment:_e,alignmentFocus:_e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:It,background:"transparent",mouseEnter:(tn,Bn)=>Bn.background="dodgerblue",mouseLeave:(tn,Bn)=>Bn.background="transparent",click:en,contextClick:en})}fe.current.linkTemplate.contextMenu=et("ContextMenu",Ze(),Tt(),et("ContextMenuButton",et(de.s_,"Horizontal",qt(0),qt(1),qt(2))),et("ContextMenuButton",et(de.s_,"Horizontal",et(de.s_,"Spot",mn(!1),Te(de.z6.Top,!1),Te(de.z6.Left,!1),Te(de.z6.Right,!1),Te(de.z6.Bottom,!1)),et(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},mn(!0),Te(de.z6.Top,!0),Te(de.z6.Left,!0),Te(de.z6.Right,!0),Te(de.z6.Bottom,!0)))));const Hn=`{ "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 In=["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 Wn(_e){return console.log("shapeName:",_e),In.indexOf(_e)>=0}var wn=new de.YI(wt.current,{maxSelectionCount:1,linkTemplate:et(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:et(de.uz,"Link",{locationSpot:de.z6.Center},et(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),et(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),et(de.bn,{isPanelMain:!0,strokeWidth:2}),et(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 pt;const It=_e.subject.part;var at=(pt=document.activeElement)==null?void 0:pt.value;typeof at=="string"&&at.trim()===""&&fe.current.model.commit(function(en){en.set(It.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=et(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),et(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")),et(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=et(de.s_,"Grid",et(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(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 Un=()=>pe(this,null,function*(){var et=fe.current.makeImage();const gn=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:et.src}});ye({src:gn.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{En()},500),sn(Vt+1),()=>{fe.current=null}),[]),ve.createElement("div",{ref:Pn,className:Ct.current?`${xe.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Me.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Je.Z,null,ve.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(vt.Z,{onClick:()=>{var et,gn,ue=fe.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&ue){let Oe=(gn=(et=document.activeElement)==null?void 0:et.value)==null?void 0:gn.trim();typeof Oe=="string"&&fe.current.model.commit(function(Ee){Ee.set(ue.data,"text",Oe||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}sn(Vt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:xe.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:xe.myPaletteDiv,ref:wt})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:qe,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(Ae.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var He=Le,gt=oe(78045),ht=oe(31795);const bt=gt.ZP.Group,Ot={margin:"0 8px"};var Dt=({callback:Se,onCancel:ye})=>{function fe(qe){Se(qe)}return ae.createElement(le.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:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Ot},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ht.Z,null)),ae.createElement("span",{style:Ot},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ht.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(bt,null,ae.createElement(gt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(gt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(gt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(gt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},yt=oe(47897),_t=oe(61016),Zt=oe.n(_t),Ht=(0,ae.forwardRef)(({use3d:Se,width:ye,height:fe,callback:qe,showSaveButton:wt},Ct)=>{const Pn=(0,ae.useRef)(),Vt=(0,ae.useRef)(),[sn,En]=(0,ae.useState)(!1),Un=(0,ae.useRef)({id:Pn,appName:"graphing",width:ye||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)(()=>{Vt.current=new(Zt())(Un.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const et=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(gn),gn};return(0,ae.useEffect)(()=>{Un.current.appName=sn?"3D":"graphing",Vt.current.inject("applet_container")},[sn]),(0,ae.useEffect)(()=>{En(Se)},[Se]),(0,ae.useImperativeHandle)(Ct,()=>({getImgData:et})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Pn}),ae.createElement(Je.Z,{align:"middle"},ae.createElement(vt.Z,{flex:1},ae.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:sn,onChange:gn=>En(gn)})),ae.createElement(vt.Z,null,ae.createElement(Ae.ZP,{size:"large",onClick:et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yt=oe(36527),Pe=oe(25934),Be=oe(2453);const We="link",st="upload-image",St="add-flowchart",zt="draw-image",Mt="add-flowchart",Ft="code-block",Nt="add-table",Xt="------------",Wt={default:Xt,left:`:${Xt}`,center:`:${Xt}:`,right:`${Xt}:`};var rn=oe(99914),on=(Se,ye,fe)=>new Promise((qe,wt)=>{var Ct=sn=>{try{Vt(fe.next(sn))}catch(En){wt(En)}},Pn=sn=>{try{Vt(fe.throw(sn))}catch(En){wt(En)}},Vt=sn=>sn.done?qe(sn.value):Promise.resolve(sn.value).then(Ct,Pn);Vt((fe=fe.apply(Se,ye)).next())});function hn(){}let vn=0;const an=1e4,Qt="\u2581",Sn="@\u2581\u2581@",pn="@\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`,cn=["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 Fn(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"},Yn={[We]:"\u6DFB\u52A0\u94FE\u63A5",[Ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[st]:"\u6DFB\u52A0\u56FE\u7247",[zt]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:Se="",onChange:ye,width:fe="100%",height:qe=400,miniToolbar:wt=!1,isFocus:Ct=!1,watch:Pn,insertTemp:Vt,mode:sn="markdown",id:En="markdown-editor-id",showResizeBar:Un=!1,noStorage:et=!1,showNullButton:gn=!1,showNullProgramButton:ue=!1,hidetoolBar:Oe=!1,fullScreen:Ee=!1,onBlur:Ne,onCMBeforeChange:tt,onFullScreen:Ze,className:Ye="",disablePaste:De=!1,disabled:Tt=!1,disabledFill:Et=!1,placeholder:kt="",values:qt="",extraUse:mn})=>{const[Te,Hn]=(0,ae.useState)(null),[In,Wn]=(0,ae.useState)(Se),[wn,_e]=(0,ae.useState)(Pn),[pt,It]=(0,ae.useState)(Ee),[at,en]=(0,ae.useState)(""),[tn,Bn]=(0,ae.useState)(0),[xn,Cn]=(0,ae.useState)(qe),[ga,ta]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,Pe.Z)()),da=(0,ae.useRef)(!1),_n=(0,ae.useRef)(),[$n,la]=(0,ae.useState)(0),[sa,ma]=(0,ae.useState)(0),Qn=(0,ae.useRef)(),Xn=(0,ae.useRef)(),oa=(0,ae.useRef)(),Kt=(0,ae.useRef)(),zn=()=>on(void 0,null,function*(){var Gt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Gt=Pt==null?void 0:Pt.attachments)!=null&&Gt.length&&(console.log("cm:",Te,Qn),Pt.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?Te.replaceSelection(``):Lt.content_type.indexOf("video")>-1?Te.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Lt.content_type.indexOf("pdf")>-1?Te.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type}&disposition=inline" target="_blank">${Lt.name}</a>`):Te.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,ae.useEffect)(()=>{const Gt=window.scrollY||window.pageYOffset;Wn(qt),Te==null||Te.setValue(qt),window.scrollTo(0,Gt)},[qt]),(0,ae.useEffect)(()=>{Ze==null||Ze(pt)},[pt]),(0,ae.useEffect)(()=>{if(Qn.current){let Gt=function(Lt,xt){var fn;if(De){xt.preventDefault();return}const Gn=xt.clipboardData;if(Gn){const Kn=Gn.types.toString(),An=Gn.items;if(Kn==="Files"||Gn.types.indexOf("Files")>-1){if(xt.preventDefault(),sn=="stex")return;try{let Dn=An[1];((fn=An[0])==null?void 0:fn.kind)==="file"&&(Dn=An[0]);const At=Dn.getAsFile(),dn=At.name.split(".").pop();(0,Fe.I)(At,un=>{var ln,Ln,Rn;un.id?((ln=At==null?void 0:At.type)==null?void 0:ln.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${un.id}?type=${un.content_type})" alt="" />`):((Ln=At==null?void 0:At.type)==null?void 0:Ln.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${un.id}"></video>`):((Rn=At==null?void 0:At.type)==null?void 0:Rn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${un.id}?type=${At.type}&disposition=inline" target="_blank">${At.name}</a>`):cn.includes(dn)?Pt.replaceSelection(`<a href="/api/attachments/${un.id}?type=office&disposition=inline" target="_blank">${At.name}</a>`):Pt.replaceSelection(`[${At.name}](/api/attachments/${un.id}?type=${un.content_type})`):(un==null?void 0:un.status)===401&&(Be.ZP.warning((un==null?void 0:un.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Xe().fromTextArea(Qn.current,{mode:sn,lineNumbers:!wt,lineWrapping:!0,value:Se,autoCloseTags:!ue,autoCloseBrackets:!0});return Pt.on("keyup",function(Lt,xt){xt.keyCode===8&&(Lt.getValue()==""?Pt.setOption("placeholder",kt):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(Lt,xt){if(xt.keyCode===8){var fn=Vn(Lt);fn&&xt.preventDefault()}}),Ct&&Pt.focus(),Pt.on("paste",Gt),Pt.on("dragleave",function(Lt,xt){Xn.current.classList.remove("mouse-hover-md")}),Tt&&Pt.on("beforeChange",function(Lt,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),Hn(Pt),()=>{Pt.off("paste",Gt)}}},[]);const Jn=(0,ae.useCallback)(()=>{if(Xn.current)try{}catch(Gt){console.log(Gt,"---- to set md editor body height")}},[xn,Xn,pt]);(0,ae.useEffect)(()=>{function Gt(){let Pt=new Re.Z(Lt=>{for(let xt of Lt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(Jn(),Te.setSize("100%","100%"),Te.refresh())});return Pt.observe(Qn.current.parentElement),Pt}if(Te){const Pt=Gt();return()=>{var Lt,xt;(Lt=Qn.current)!=null&&Lt.parentElement&&Pt.unobserve((xt=Qn.current)==null?void 0:xt.parentElement)}}},[Te,Jn]),(0,ae.useEffect)(()=>{if(Te){let Gt=[];for(const[Pt,Lt]of Object.entries(Mn)){let xt={[Pt]:()=>{na(Lt)}};Gt.push(xt),Te.addKeyMap(xt)}return _n.current=setInterval(()=>{da.current&&zn()},4e3),()=>{clearInterval(_n.current);for(let Pt of Gt)Te.removeKeyMap(Pt)}}},[Te]),(0,ae.useEffect)(()=>{Ee!==pt&&It(Ee)},[Ee]),(0,rn.Z)(()=>{if(!et&&tn>0){let Gt=new Date().getTime(),Pt=window.sessionStorage.getItem(En);Gt>=tn+an&&(!Pt||Pt!==In)&&(window.sessionStorage.setItem(En,In),ta(!0))}},an),(0,ae.useEffect)(()=>{_e(Pn)},[Te,Pn]),(0,ae.useEffect)(()=>{Te&&Ct&&Te.focus()},[Te,Ct]),(0,ae.useEffect)(()=>{if(wn&&Te){let Gt=function(Lt){let xt=Lt.target;if(Kt.current){let fn=xt.scrollTop/xt.scrollHeight;Kt.current.scrollTop=Kt.current.scrollHeight*fn}};const Pt=Te.getScrollerElement();return Pt.addEventListener("scroll",Gt),()=>{Pt.removeEventListener("scroll",Gt)}}},[Te,wn]),(0,ae.useEffect)(()=>{if(Te&&tt){let Gt=function(Pt,Lt){tt(Pt,Lt)};return Te.on("beforeChange",Gt),()=>{Te.off("beforeChange",Gt)}}},[Te,tt]),(0,ae.useEffect)(()=>{if(Te&&Ne){let Gt=function(){Ne(Te.getValue())};return Te.on("blur",Gt),()=>{Te.off("blur",Gt)}}},[Te,Ne]);function Vn(Gt,Pt){var Lt=Gt.getDoc(),xt=Lt.getCursor(),fn=Lt.getLine(xt.line),Gn=fn.charAt(xt.ch-1),Kn=fn.lastIndexOf("@\u2581@",xt.ch),An=fn.lastIndexOf("@\u2581\u2581@",xt.ch),Dn=Kn>An?Kn:An,At=Kn>An?3:4;if(Sn.indexOf(Gn)===-1)return null;if(console.log("change1:",Pt,Gt,fn,xt,Dn,Kn,An,Gn),Dn>=0&&xt.ch-Dn<5){var dn=Dn+At;return Lt.replaceRange("",{line:xt.line,ch:Dn},{line:xt.line,ch:dn}),{line:xt.line,ch:dn}}return null}(0,ae.useEffect)(()=>{if(Te){let Gt=function(Pt,Lt){const xt=Pt.getValue();Wn(xt),Bn(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ye&&(ue?ye(xt,Pa(xt)):ye(xt))};return Te.on("change",Gt),()=>{Te.off("change",Gt)}}},[Te,ye]),(0,ae.useEffect)(()=>{if(Te)if(Se==null)Te.setValue(""),Wn("");else{const Gt=window.scrollY||window.pageYOffset;Se!==Te.getValue()&&(Te.setValue(Se),Wn(Se),Te.setCursor(Tt?1:Te.lineCount(),0),window.scrollTo(0,Gt))}},[Te,Se]);const na=(0,ae.useCallback)(Gt=>{const Pt=Te.getCursor(),Lt=Te.getSelection();let xt=Lt.split(`
|
|
`);switch(Gt){case"bold":return Te.replaceSelection("**"+Lt+"**"),Lt===""&&Te.setCursor(Pt.line,Pt.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+Lt+"*"),Lt===""&&Te.setCursor(Pt.line,Pt.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+Lt+"`"),Lt===""&&Te.setCursor(Pt.line,Pt.ch+1),Te.focus();case"inline-latex":return en("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+Lt+"\n```"),Te.setCursor(Pt.line+1,Lt.length+1),Te.focus();case"line-break":return Te.replaceSelection(`<br/>
|
|
`),Te.focus();case"list-ul":return Lt===""?Te.replaceSelection("- "+Lt):Te.replaceSelection(xt.map(fn=>fn===""?"":`- ${fn}`).join(`
|
|
`)),Te.focus();case"list-ol":return Lt===""?Te.replaceSelection("1. "+Lt):Te.replaceSelection(xt.map((fn,Gn)=>fn===""?"":`${Gn+1}. ${fn}`).join(`
|
|
`)),Te.focus();case"add-null-ch":return Lt===""&&Te.setCursor(Pt.line,Pt.ch),Te.replaceSelection(Qt),Te.focus();case"add-signal":return Lt===""&&Te.setCursor(Pt.line,Pt.ch),Te.replaceSelection(pn),Te.focus();case"add-multiple":return Lt===""&&Te.setCursor(Pt.line,Pt.ch),Te.replaceSelection(Sn),Te.focus();case"inster-template-1":return Lt===""&&Te.setCursor(Pt.line,Pt.ch),Te.replaceSelection(yn),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return _e(!wn),Te.focus();case"trigger-full-screen":return It(!pt),Te.focus();case We:en(We);return;case Ft:en(Ft);return;case st:en(st);return;case zt:en(zt);return;case"maths-latex":en("maths-latex");return;case St:en(St);return;case Nt:en(Nt);return;default:throw new Error}},[Te,wn,pt]),Tn=(0,ae.useCallback)((Gt,Pt)=>{var Lt,xt,fn,Gn,Kn,An;switch(en(""),at){case We:const{title:ln,link:Ln}=Gt;return Te.replaceSelection(`[${ln}](${Ln})`),Te.focus();case Ft:const{language:Rn,content:ua}=Gt;return Te.replaceSelection(["```"+Rn,ua,"```"].join(`
|
|
`)),Te.focus();case"maths-latex":for(var Dn=atob(Gt),At=new Uint8Array(Dn.length),dn=0;dn<Dn.length;dn++)At[dn]=Dn.charCodeAt(dn);var un=new Blob([At],{type:"image/png"});(0,Fe.I)(un,ia=>{ia.id?Te.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Te.replaceSelection("`$$"+Gt+"$$`");break;case st:case zt:case Mt:const{src:ea,alt:ra}=Gt,jn=Pt,Ba=(fn=(xt=(Lt=jn==null?void 0:jn.name)==null?void 0:Lt.split("."))==null?void 0:xt.pop)==null?void 0:fn.call(xt);return((Gn=jn==null?void 0:jn.type)==null?void 0:Gn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?Te.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ea}" alt="${ra||""}" /></p>`):Te.replaceSelection(`<img width="100%" src="${ea}" alt="${ra||""}" />`):((Kn=jn==null?void 0:jn.type)==null?void 0:Kn.indexOf("video"))>-1?Te.replaceSelection(`<video width="100%" controls src="${ea}"></video>`):((An=jn==null?void 0:jn.type)==null?void 0:An.indexOf("pdf"))>-1?Te.replaceSelection(`<a href="${ea}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):cn.includes(Ba)?Te.replaceSelection(`<a href="${ea}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):Te.replaceSelection(`[${jn.name}](${ea})`),Te.focus();case Nt:const{row:xa,col:ba,align:Ca}=Gt;let va=`
|
|
`;for(let ia=0;ia<xa;ia++){let wa=[],Fa=[];for(let Ea=0;Ea<ba;Ea++)ia===1&&Fa.push(Wt[Ca]),wa.push(" ");ia===1&&(va+=`| ${Fa.join(" | ")} |
|
|
`),va+=`| ${wa.join(ba===1?"":" | ")} |
|
|
`}return Te.replaceSelection(va+`
|
|
`),Te.focus();default:throw new Error}},[Te,at]),Sa=(0,ae.useMemo)(()=>{switch(at){case We:return ae.createElement(it,{callback:Tn,onCancel:qn});case Ft:return ae.createElement(nn.Z,{callback:Tn,onCancel:qn});case st:return ae.createElement(Fe.Z,{callback:Tn,onCancel:qn});case St:return ae.createElement(He,{callback:Tn,onCancel:qn});case Nt:return ae.createElement(Dt,{callback:Tn,onCancel:qn});case"maths-latex":return ae.createElement(Ht,{showSaveButton:!0,callback:Tn});case"inline-latex":return ae.createElement(Yt.Z,{showSaveButton:!0,callback:Tn});default:return null}},[at]);function qn(){en("")}(0,ae.useEffect)(()=>{if(oa.current){let Gt=function(Kn){fn=!0,Gn=Kn.pageY},Pt=function(){fn=!1},Lt=function(Kn){if(fn){let An=Kn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let Dn=qe+An+"px";Cn(Dn)}},xt=oa.current,fn=!1,Gn=0;return xt.addEventListener("mousedown",Gt),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",Pt),()=>{xt.removeEventListener("mousedown",Gt),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Pt)}}},[Te,oa]),(0,ae.useEffect)(()=>{Cn(qe)},[qe]);const On=Fn(fe),Nn=Fn(xn),aa={width:On,height:Nn},fa=(0,ae.useMemo)(()=>{if(tn){let Gt=new Date(tn),Pt=Gt.getHours(),Lt=Gt.getMinutes(),xt=Gt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,Lt=Lt<10?"0"+Lt:Lt,xt=xt<10?"0"+xt:xt,`${Pt}:${Lt}:${xt}`}return 0},[tn]),Pa=Gt=>{const Pt=[];if(ue){let Lt=-1;Gt=Gt.replace(/(@▁▁@|@▁@)/g,function(xt,fn,Gn){Pt.push({multiLine:xt!==pn})})}return Pt};function ya(){window.sessionStorage.removeItem(En),ta(!1),Bn(0)}function La(){ta(!1),Bn(0),Te.setValue(window.sessionStorage.getItem(En))}(0,ae.useEffect)(()=>{Yn[at]&&at!==zt&&at!==St&&setTimeout(()=>{const Gt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-Gt.offsetWidth/2,Lt=window.innerHeight/2-Gt.offsetHeight/2;la(Pt),ma(Lt)},0)},[at]);const ha=Gt=>{Gt.preventDefault();const Pt=Gt.clientX-$n,Lt=Gt.clientY-sa;document.body.onmousemove=xt=>{let fn=xt.clientX-Pt,Gn=xt.clientY-Lt;const Kn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Kn.offsetWidth,Dn=window.innerHeight-Kn.offsetHeight;fn=Math.max(0,Math.min(fn,An)),Gn=Math.max(0,Math.min(Gn,Dn)),pa(xt.clientX,xt.clientY,Pt,Lt)&&(la(fn),ma(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Gt,Pt,Lt,xt)=>{const fn=document.body.clientHeight,Gn=document.body.clientWidth;return Gt<20&&Lt>Gt||Gt>Gn-20&&Lt<Gt||Pt<20&&xt>Pt||Pt>fn-20&&xt<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Xn},ae.createElement("div",{className:`markdown-editor-container ${Ye} ${wn?"on-preview":""} ${wt?"mini":""} ${pt?"full-screen":""}`,style:aa},ae.createElement(ge,{insertTemp:Vt,watch:wn,fullScreen:pt,showNullButton:gn,showNullProgramButton:ue,onActionCallback:na,hidetoolBar:Oe,extraUse:mn}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Qn,placeholder:kt})),wn?ae.createElement("div",{ref:Kt,className:"preview-container"},sn==="stex"&&ae.createElement(Ie,{value:In}),sn!=="stex"&&ae.createElement(ke.Z,{disabledFill:Et,showProgramFill:ue,value:In})):null))),Un?ae.createElement("a",{ref:oa,className:"editor-resize"}):null,at===zt&&ae.createElement(ct,{callback:Tn,onCancel:qn}),at===St&&ae.createElement(He,{callback:Tn,onCancel:qn}),ae.createElement(se.Z,null,Yn[at]&&at!==zt&&at!==St?ae.createElement(Me.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:sa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Yn[at]),open:!0,onCancel:qn,footer:null,destroyOnClose:!0,width:at===St?"1200px":null,height:at===St?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return ie},I:function(){return se}});var ae=oe(22150),he=oe(2453),Xe=oe(69677),Re=oe(93421),ce=oe(31795),je=oe(78045),me=oe(71577),Ke=oe(15476),Ce=oe(67294),Ge=oe(52262),ke=oe(67294),Ie=Object.defineProperty,we=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,ze,Ae)=>ze in le?Ie(le,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):le[ze]=Ae,x=(le,ze)=>{for(var Ae in ze||(ze={}))y.call(ze,Ae)&&b(le,Ae,ze[Ae]);if(a)for(var Ae of a(ze))E.call(ze,Ae)&&b(le,Ae,ze[Ae]);return le},z=(le,ze)=>we(le,ne(ze));const{useForm:ee}=ae.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:le,onCancel:ze})=>{const[Ae]=ee();let ft=(0,Ce.useRef)();function Bt(Qe){ft.current.width=Ae.getFieldValue("width"),ft.current.align=Ae.getFieldValue("align"),le(Qe,ft.current)}function Rt(Qe,ut){if(Qe.status===-1){he.ZP.error(Qe.message);return}Ae.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:ut.type})}function be(Qe){let ut=Qe.target.files[0];ft.current=ut,se(ut,Rt)}return ke.createElement(ae.default,z(x({form:Ae},re),{className:"upload-image-panel",onFinish:Bt,style:{width:470,overflow:"hidden"}}),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(Xe.default,{style:te})),ke.createElement(ge,{onFileChange:be}))),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(Xe.default,{style:{width:264}})),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(Re.Z,null,ke.createElement(ae.default.Item,{name:"width",style:{margin:0}},ke.createElement(ce.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.createElement(je.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ke.createElement("aside",null,ke.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(me.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ge({onFileChange:le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:le}))}function se(le,ze){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ge.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",le),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(Bt){ze(JSON.parse(Bt.target.responseText),le)},!1),ft.addEventListener("error",function(Bt){console.error(Bt)},!1),ft.open("POST",`${Ke.KI}/api/attachments.json`),ft.send(Ae)}},76621:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Xe}});var ae=oe(67294),he=oe(73935);class Xe extends ae.Component{constructor(ce){super(ce);const je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,he.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return he}});var ae=oe(67294);function he(Xe,Re){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Xe}),(0,ae.useEffect)(()=>{function je(){ce.current()}if(Re!==null){let me=setInterval(je,Re);return()=>clearInterval(me)}},[Re])}},84959:function($e,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return ie}});var ae=oe(67294),he=oe(35567),Xe=oe(35973),Re=oe(22150),ce=oe(2453),je=oe(85673),me=oe(71230),Ke=oe(15746),Ce=oe(11713),Ge=oe(69677),ke=oe(96074),Ie=oe(71577),we={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ne=oe(49711),a=oe(65866),y=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ge,se,le)=>se in ge?y(ge,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[se]=le,ee=(ge,se)=>{for(var le in se||(se={}))b.call(se,le)&&z(ge,le,se[le]);if(E)for(var le of E(se))x.call(se,le)&&z(ge,le,se[le]);return ge},te=(ge,se,le)=>new Promise((ze,Ae)=>{var ft=be=>{try{Rt(le.next(be))}catch(Qe){Ae(Qe)}},Bt=be=>{try{Rt(le.throw(be))}catch(Qe){Ae(Qe)}},Rt=be=>be.done?ze(be.value):Promise.resolve(be.value).then(ft,Bt);Rt((le=le.apply(ge,se)).next())});const re=({graduation:ge,globalSetting:se,loading:le,user:ze,dispatch:Ae})=>{var ft;const Bt=(0,Xe.useParams)(),Rt=(0,Xe.useLocation)(),{userInfo:be}=ze,[Qe]=Re.default.useForm(),{addTopicData:ut}=ge,ot=()=>te(void 0,null,function*(){var mt;const nt=Qe.getFieldsValue(),rt=ee({},nt);rt!=null&&rt.attachment_ids&&(rt.attachment_ids=(mt=rt.attachment_ids)==null?void 0:mt.map(nn=>nn.id||nn.response.id));const it=yield(0,ne.Sv)(ee({coursesId:Bt.coursesId,attachment_ids:[]},rt));it.status?ce.ZP.error(it.message):Xe.history.push(`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`)});return(0,ae.useEffect)(()=>{Ae({type:"graduation/addTopicDefaultData",payload:ee({},Bt)})},[Bt.coursesId]),ae.createElement("section",{className:"edu-container"},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},be&&ae.createElement(je.Z,{separator:">"},ae.createElement(je.Z.Item,null,ae.createElement(Xe.Link,{to:`${be.first_category_url}`},(ft=be==null?void 0:be.course)==null?void 0:ft.course_name)),ae.createElement(je.Z.Item,null,ae.createElement(Xe.Link,{to:`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(je.Z.Item,null,"\u65B0\u5EFA"))),ae.createElement("aside",{className:[we.title,"mt20"].join(" ")},ae.createElement(me.Z,{style:{width:"100%"}},ae.createElement(Ke.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Ke.Z,null,ae.createElement(Xe.Link,{className:"font16 c-light-black",to:`/classrooms/${Bt.coursesId}/exercise`},"\u8FD4\u56DE"))))),ae.createElement("section",{className:[we.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ae.createElement(Re.default,{layout:"vertical",form:Qe,scrollToFirstError:!0,onFinish:mt=>te(void 0,null,function*(){ot()})},ae.createElement(Re.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},ae.createElement(Ce.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},ae.createElement(Ce.default.Option,{value:1},"\u666E\u901A"),ae.createElement(Ce.default.Option,{value:2},"\u5206\u7EC4"))),ae.createElement(Re.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},ae.createElement(Ge.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ae.createElement(ke.Z,null),ae.createElement(Re.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(he.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),ae.createElement(me.Z,null,ae.createElement(Ke.Z,null,ae.createElement(Re.default.Item,{name:"attachment_ids"},ae.createElement(a.Z,null)))))),ae.createElement("aside",{className:we.btns},ae.createElement(Ie.ZP,{type:"primary",onClick:()=>{Qe.submit()}},"\u4FDD\u5B58"),ae.createElement(Xe.Link,{to:`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`},"\u53D6\u6D88")))};var ie=(0,Xe.connect)(({graduation:ge,loading:se,user:le,globalSetting:ze})=>({graduation:ge,globalSetting:ze,user:le,loading:se.effects}))(re)},4440:function($e,dt,oe){"use strict";oe.d(dt,{$J:function(){return Xe},JZ:function(){return ce},bN:function(){return me},jP:function(){return je},rO:function(){return Re}});var ae=oe(33170),he=(Ke,Ce,Ge)=>new Promise((ke,Ie)=>{var we=y=>{try{a(Ge.next(y))}catch(E){Ie(E)}},ne=y=>{try{a(Ge.throw(y))}catch(E){Ie(E)}},a=y=>y.done?ke(y.value):Promise.resolve(y.value).then(we,ne);a((Ge=Ge.apply(Ke,Ce)).next())});function Xe(Ke){return(0,ae.U2)(`libraries/${Ke}.json`)}function Re(Ke){return(0,ae.U2)("library_tags.json",Ke)}function ce(Ke){return he(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ke}.json`)).status===0})}function je(Ke){return(0,ae.v_)("libraries.json",Ke)}function me(Ke,Ce){return(0,ae.gz)(`libraries/${Ke}.json`,Ce)}},57838:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return he}});var ae=oe(67294);function he(){const[,Xe]=ae.useReducer(Re=>Re+1,0);return Xe}},85673:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Rt}});var ae=oe(94184),he=oe.n(ae),Xe=oe(37419),Re=oe(1337),ce=oe(67294),je=oe(96159),me=oe(53124),Ke=oe(42922),Ce=oe(35874);const Ge=be=>{let{children:Qe}=be;const{getPrefixCls:ut}=ce.useContext(me.E_),ot=ut("breadcrumb");return ce.createElement("li",{className:`${ot}-separator`,"aria-hidden":"true"},Qe===""?Qe:Qe||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=Ge,Ie=function(be,Qe){var ut={};for(var ot in be)Object.prototype.hasOwnProperty.call(be,ot)&&Qe.indexOf(ot)<0&&(ut[ot]=be[ot]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ot=Object.getOwnPropertySymbols(be);mt<ot.length;mt++)Qe.indexOf(ot[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ot[mt])&&(ut[ot[mt]]=be[ot[mt]]);return ut};function we(be,Qe){if(be.title===void 0||be.title===null)return null;const ut=Object.keys(Qe).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${ut})`,"g"),(ot,mt)=>Qe[mt]||ot)}function ne(be,Qe,ut,ot){if(ut==null)return null;const{className:mt,onClick:nt}=Qe,rt=Ie(Qe,["className","onClick"]),it=Object.assign(Object.assign({},(0,Re.Z)(rt,{data:!0,aria:!0})),{onClick:nt});return ot!==void 0?ce.createElement("a",Object.assign({},it,{className:he()(`${be}-link`,mt),href:ot}),ut):ce.createElement("span",Object.assign({},it,{className:he()(`${be}-link`,mt)}),ut)}function a(be,Qe){return(ot,mt,nt,rt,it)=>{if(Qe)return Qe(ot,mt,nt,rt);const nn=we(ot,mt);return ne(be,ot,nn,it)}}var y=function(be,Qe){var ut={};for(var ot in be)Object.prototype.hasOwnProperty.call(be,ot)&&Qe.indexOf(ot)<0&&(ut[ot]=be[ot]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ot=Object.getOwnPropertySymbols(be);mt<ot.length;mt++)Qe.indexOf(ot[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ot[mt])&&(ut[ot[mt]]=be[ot[mt]]);return ut};const E=be=>{const{prefixCls:Qe,separator:ut="/",children:ot,menu:mt,overlay:nt,dropdownProps:rt,href:it}=be,Fe=(Me=>{if(mt||nt){const Je=Object.assign({},rt);if(mt){const $t=mt||{},{items:Ve}=$t,ct=y($t,["items"]);Je.menu=Object.assign(Object.assign({},ct),{items:Ve==null?void 0:Ve.map((de,lt)=>{var{key:jt,title:Jt,label:vt,path:Ue}=de,xe=y(de,["key","title","label","path"]);let ve=vt!=null?vt:Jt;return Ue&&(ve=ce.createElement("a",{href:`${it}${Ue}`},ve)),Object.assign(Object.assign({},xe),{key:jt!=null?jt:lt,label:ve})})})}else nt&&(Je.overlay=nt);return ce.createElement(Ce.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${Qe}-overlay-link`},Me,ce.createElement(Ke.Z,null)))}return Me})(ot);return Fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Fe),ut&&ce.createElement(ke,null,ut)):null},b=be=>{const{prefixCls:Qe,children:ut,href:ot}=be,mt=y(be,["prefixCls","children","href"]),{getPrefixCls:nt}=ce.useContext(me.E_),rt=nt("breadcrumb",Qe);return ce.createElement(E,Object.assign({},mt,{prefixCls:rt}),ne(rt,mt,ut,ot))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=be=>{const{componentCls:Qe,iconCls:ut}=be;return{[Qe]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[ut]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Qe}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Qe}-link`]:{[`
|
|
> ${ut} + span,
|
|
> ${ut} + a
|
|
`]:{marginInlineStart:be.marginXXS}},[`${Qe}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${ut}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",be=>{const Qe=(0,te.TS)(be,{});return[re(Qe)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ge=function(be,Qe){var ut={};for(var ot in be)Object.prototype.hasOwnProperty.call(be,ot)&&Qe.indexOf(ot)<0&&(ut[ot]=be[ot]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ot=Object.getOwnPropertySymbols(be);mt<ot.length;mt++)Qe.indexOf(ot[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ot[mt])&&(ut[ot[mt]]=be[ot[mt]]);return ut};function se(be){const{breadcrumbName:Qe,children:ut}=be,ot=ge(be,["breadcrumbName","children"]),mt=Object.assign({title:Qe},ot);return ut&&(mt.menu={items:ut.map(nt=>{var{breadcrumbName:rt}=nt,it=ge(nt,["breadcrumbName"]);return Object.assign(Object.assign({},it),{title:rt})})}),mt}function le(be,Qe){return(0,ce.useMemo)(()=>be||(Qe?Qe.map(se):null),[be,Qe])}var ze=function(be,Qe){var ut={};for(var ot in be)Object.prototype.hasOwnProperty.call(be,ot)&&Qe.indexOf(ot)<0&&(ut[ot]=be[ot]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ot=Object.getOwnPropertySymbols(be);mt<ot.length;mt++)Qe.indexOf(ot[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ot[mt])&&(ut[ot[mt]]=be[ot[mt]]);return ut};const Ae=(be,Qe)=>{if(Qe===void 0)return Qe;let ut=(Qe||"").replace(/^\//,"");return Object.keys(be).forEach(ot=>{ut=ut.replace(`:${ot}`,be[ot])}),ut},ft=be=>{const{prefixCls:Qe,separator:ut="/",style:ot,className:mt,rootClassName:nt,routes:rt,items:it,children:nn,itemRender:Fe,params:Me={}}=be,Je=ze(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:Ve,breadcrumb:ct}=ce.useContext(me.E_);let de;const lt=$t("breadcrumb",Qe),[jt,Jt]=ie(lt),vt=le(it,rt),Ue=a(lt,Fe);if(vt&&vt.length>0){const pe=[],Le=it||rt;de=vt.map((He,gt)=>{const{path:ht,key:bt,type:Ot,menu:Dt,overlay:yt,onClick:_t,className:Zt,separator:Ut,dropdownProps:Ht}=He,Yt=Ae(Me,ht);Yt!==void 0&&pe.push(Yt);const Pe=bt!=null?bt:gt;if(Ot==="separator")return ce.createElement(ke,{key:Pe},Ut);const Be={},We=gt===vt.length-1;Dt?Be.menu=Dt:yt&&(Be.overlay=yt);let{href:st}=He;return pe.length&&Yt!==void 0&&(st=`#/${pe.join("/")}`),ce.createElement(E,Object.assign({key:Pe},Be,(0,Re.Z)(He,{data:!0,aria:!0}),{className:Zt,dropdownProps:Ht,href:st,separator:We?"":ut,onClick:_t,prefixCls:lt}),Ue(He,Me,Le,pe,st))})}else if(nn){const pe=(0,Xe.Z)(nn).length;de=(0,Xe.Z)(nn).map((Le,He)=>{if(!Le)return Le;const gt=He===pe-1;return(0,je.Tm)(Le,{separator:gt?"":ut,key:He})})}const xe=he()(lt,ct==null?void 0:ct.className,{[`${lt}-rtl`]:Ve==="rtl"},mt,nt,Jt),ve=Object.assign(Object.assign({},ct==null?void 0:ct.style),ot);return jt(ce.createElement("nav",Object.assign({className:xe,style:ve},Je),ce.createElement("ol",null,de)))};ft.Item=x,ft.Separator=ke;var Bt=ft,Rt=Bt},96074:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ae=oe(94184),he=oe.n(ae),Xe=oe(67294),Re=oe(53124),ce=oe(14747),je=oe(67968),me=oe(45503);const Ke=we=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=we;return{[ne]:Object.assign(Object.assign({},(0,ce.Wf)(we)),{borderBlockStart:`${E}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${we.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${we.dividerHorizontalWithTextGutterMargin}px 0`,color:we.colorTextHeading,fontWeight:500,fontSize:we.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:we.colorText,fontWeight:"normal",fontSize:we.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var Ce=(0,je.Z)("Divider",we=>{const ne=(0,me.TS)(we,{dividerHorizontalWithTextGutterMargin:we.margin,dividerHorizontalGutterMargin:we.marginLG,sizePaddingEdgeHorizontal:0});return[Ke(ne)]},we=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:we.marginXS})),Ge=function(we,ne){var a={};for(var y in we)Object.prototype.hasOwnProperty.call(we,y)&&ne.indexOf(y)<0&&(a[y]=we[y]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(we);E<y.length;E++)ne.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(we,y[E])&&(a[y[E]]=we[y[E]]);return a},Ie=we=>{const{getPrefixCls:ne,direction:a,divider:y}=Xe.useContext(Re.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:re,dashed:ie,plain:ge,style:se}=we,le=Ge(we,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ze=ne("divider",E),[Ae,ft]=Ce(ze),Bt=x.length>0?`-${x}`:x,Rt=!!re,be=x==="left"&&z!=null,Qe=x==="right"&&z!=null,ut=he()(ze,y==null?void 0:y.className,ft,`${ze}-${b}`,{[`${ze}-with-text`]:Rt,[`${ze}-with-text${Bt}`]:Rt,[`${ze}-dashed`]:!!ie,[`${ze}-plain`]:!!ge,[`${ze}-rtl`]:a==="rtl",[`${ze}-no-default-orientation-margin-left`]:be,[`${ze}-no-default-orientation-margin-right`]:Qe},ee,te),ot=Xe.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),mt=Object.assign(Object.assign({},be&&{marginLeft:ot}),Qe&&{marginRight:ot});return Ae(Xe.createElement("div",Object.assign({className:ut,style:Object.assign(Object.assign({},y==null?void 0:y.style),se)},le,{role:"separator"}),re&&b!=="vertical"&&Xe.createElement("span",{className:`${ze}-inner-text`,style:mt},re)))}},35874:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return ve}});var ae=oe(67294),he=oe(91034),Xe=oe(94184),Re=oe.n(Xe),ce=oe(87462),je=oe(4942),me=oe(97685),Ke=oe(45987),Ce=oe(62709),Ge=oe(71002),ke=oe(12060);function Ie(pe,Le,He){var gt=React.useRef({});return(!("value"in gt.current)||He(gt.current.condition,Le))&&(gt.current.value=pe(),gt.current.condition=Le),gt.current.value}function we(pe,Le){typeof pe=="function"?pe(Le):(0,Ge.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=Le)}function ne(){for(var pe=arguments.length,Le=new Array(pe),He=0;He<pe;He++)Le[He]=arguments[He];var gt=Le.filter(function(ht){return ht});return gt.length<=1?gt[0]:function(ht){Le.forEach(function(bt){we(bt,ht)})}}function a(){for(var pe=arguments.length,Le=new Array(pe),He=0;He<pe;He++)Le[He]=arguments[He];return useMemo(function(){return ne.apply(void 0,Le)},Le,function(gt,ht){return gt.length===ht.length&>.every(function(bt,Ot){return bt===ht[Ot]})})}function y(pe){var Le,He,gt=(0,ke.isMemo)(pe)?pe.type.type:pe.type;return!(typeof gt=="function"&&!((Le=gt.prototype)!==null&&Le!==void 0&&Le.render)||typeof pe=="function"&&!((He=pe.prototype)!==null&&He!==void 0&&He.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Le){var He=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.metaKey||He>=E.F1&&He<=E.F12)return!1;switch(He){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Le){if(Le>=E.ZERO&&Le<=E.NINE||Le>=E.NUM_ZERO&&Le<=E.NUM_MULTIPLY||Le>=E.A&&Le<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Le){return+setTimeout(Le,16)},z=function(Le){return clearTimeout(Le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Le){return window.requestAnimationFrame(Le)},z=function(Le){return window.cancelAnimationFrame(Le)});var ee=0,te=new Map;function re(pe){te.delete(pe)}var ie=function(Le){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var gt=ee;function ht(bt){if(bt===0)re(gt),Le();else{var Ot=x(function(){ht(bt-1)});te.set(gt,Ot)}}return ht(He),gt};ie.cancel=function(pe){var Le=te.get(pe);return re(Le),z(Le)};var ge=ie,se=b.ESC,le=b.TAB;function ze(pe){var Le=pe.visible,He=pe.triggerRef,gt=pe.onVisibleChange,ht=pe.autoFocus,bt=pe.overlayRef,Ot=ae.useRef(!1),Dt=function(){if(Le){var Ut,Ht;(Ut=He.current)===null||Ut===void 0||(Ht=Ut.focus)===null||Ht===void 0||Ht.call(Ut),gt==null||gt(!1)}},yt=function(){var Ut;return(Ut=bt.current)!==null&&Ut!==void 0&&Ut.focus?(bt.current.focus(),Ot.current=!0,!0):!1},_t=function(Ut){switch(Ut.keyCode){case se:Dt();break;case le:{var Ht=!1;Ot.current||(Ht=yt()),Ht?Ut.preventDefault():Dt();break}}};ae.useEffect(function(){return Le?(window.addEventListener("keydown",_t),ht&&ge(yt,3),function(){window.removeEventListener("keydown",_t),Ot.current=!1}):function(){Ot.current=!1}},[Le])}var Ae=(0,ae.forwardRef)(function(pe,Le){var He=pe.overlay,gt=pe.arrow,ht=pe.prefixCls,bt=(0,ae.useMemo)(function(){var Dt;return typeof He=="function"?Dt=He():Dt=He,Dt},[He]),Ot=ne(Le,bt==null?void 0:bt.ref);return ae.createElement(ae.Fragment,null,gt&&ae.createElement("div",{className:"".concat(ht,"-arrow")}),ae.cloneElement(bt,{ref:y(bt)?Ot:void 0}))}),ft=Ae,Bt={adjustX:1,adjustY:1},Rt=[0,0],be={topLeft:{points:["bl","tl"],overflow:Bt,offset:[0,-4],targetOffset:Rt},top:{points:["bc","tc"],overflow:Bt,offset:[0,-4],targetOffset:Rt},topRight:{points:["br","tr"],overflow:Bt,offset:[0,-4],targetOffset:Rt},bottomLeft:{points:["tl","bl"],overflow:Bt,offset:[0,4],targetOffset:Rt},bottom:{points:["tc","bc"],overflow:Bt,offset:[0,4],targetOffset:Rt},bottomRight:{points:["tr","br"],overflow:Bt,offset:[0,4],targetOffset:Rt}},Qe=be,ut=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ot(pe,Le){var He,gt=pe.arrow,ht=gt===void 0?!1:gt,bt=pe.prefixCls,Ot=bt===void 0?"rc-dropdown":bt,Dt=pe.transitionName,yt=pe.animation,_t=pe.align,Zt=pe.placement,Ut=Zt===void 0?"bottomLeft":Zt,Ht=pe.placements,Yt=Ht===void 0?Qe:Ht,Pe=pe.getPopupContainer,Be=pe.showAction,We=pe.hideAction,st=pe.overlayClassName,St=pe.overlayStyle,zt=pe.visible,Mt=pe.trigger,Ft=Mt===void 0?["hover"]:Mt,Nt=pe.autoFocus,Xt=pe.overlay,Wt=pe.children,rn=pe.onVisibleChange,on=(0,Ke.Z)(pe,ut),hn=ae.useState(),vn=(0,me.Z)(hn,2),an=vn[0],Qt=vn[1],Sn="visible"in pe?zt:an,pn=ae.useRef(null),yn=ae.useRef(null),cn=ae.useRef(null);ae.useImperativeHandle(Le,function(){return pn.current});var Fn=function(qe){Qt(qe),rn==null||rn(qe)};ze({visible:Sn,triggerRef:cn,onVisibleChange:Fn,autoFocus:Nt,overlayRef:yn});var kn=function(qe){var wt=pe.onOverlayClick;Qt(!1),wt&&wt(qe)},bn=function(){return ae.createElement(ft,{ref:yn,overlay:Xt,prefixCls:Ot,arrow:ht})},Mn=function(){return typeof Xt=="function"?bn:bn()},Yn=function(){var qe=pe.minOverlayWidthMatchTrigger,wt=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?qe:!wt},Zn=function(){var qe=pe.openClassName;return qe!==void 0?qe:"".concat(Ot,"-open")},Se=ae.cloneElement(Wt,{className:Re()((He=Wt.props)===null||He===void 0?void 0:He.className,Sn&&Zn()),ref:y(Wt)?ne(cn,Wt.ref):void 0}),ye=We;return!ye&&Ft.indexOf("contextMenu")!==-1&&(ye=["click"]),ae.createElement(Ce.Z,(0,ce.Z)({builtinPlacements:Yt},on,{prefixCls:Ot,ref:pn,popupClassName:Re()(st,(0,je.Z)({},"".concat(Ot,"-show-arrow"),ht)),popupStyle:St,action:Ft,showAction:Be,hideAction:ye,popupPlacement:Ut,popupAlign:_t,popupTransitionName:Dt,popupAnimation:yt,popupVisible:Sn,stretch:Yn()?"minWidth":"",popup:Mn(),onPopupVisibleChange:Fn,onPopupClick:kn,getPopupContainer:Pe}),Se)}var mt=ae.forwardRef(ot),nt=mt,rt=oe(60276),it=oe(5663),nn=oe(10366),Fe=oe(80636),Me=oe(8745),Je=oe(96159),$t=oe(53124),Ve=oe(68508),ct=oe(76529),de=oe(46605),lt=oe(66748);const jt=null,Jt=pe=>{const{menu:Le,arrow:He,prefixCls:gt,children:ht,trigger:bt,disabled:Ot,dropdownRender:Dt,getPopupContainer:yt,overlayClassName:_t,rootClassName:Zt,open:Ut,onOpenChange:Ht,visible:Yt,onVisibleChange:Pe,mouseEnterDelay:Be=.15,mouseLeaveDelay:We=.1,autoAdjustOverflow:st=!0,placement:St="",overlay:zt,transitionName:Mt}=pe,{getPopupContainer:Ft,getPrefixCls:Nt,direction:Xt}=ae.useContext($t.E_),Wt=ae.useMemo(()=>{const Se=Nt();return Mt!==void 0?Mt:St.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[Nt,St,Mt]),rn=ae.useMemo(()=>St?St.includes("Center")?St.slice(0,St.indexOf("Center")):St:Xt==="rtl"?"bottomRight":"bottomLeft",[St,Xt]),on=Nt("dropdown",gt),[hn,vn]=(0,lt.Z)(on),[,an]=(0,de.Z)(),Qt=ae.Children.only(ht),Sn=(0,Je.Tm)(Qt,{className:Re()(`${on}-trigger`,{[`${on}-rtl`]:Xt==="rtl"},Qt.props.className),disabled:Ot}),pn=Ot?[]:bt;let yn;pn&&pn.includes("contextMenu")&&(yn=!0);const[cn,Fn]=(0,it.Z)(!1,{value:Ut!=null?Ut:Yt}),kn=(0,rt.useEvent)(Se=>{Ht==null||Ht(Se),Pe==null||Pe(Se),Fn(Se)}),bn=Re()(_t,Zt,vn,{[`${on}-rtl`]:Xt==="rtl"}),Mn=(0,Fe.Z)({arrowPointAtCenter:typeof He=="object"&&He.pointAtCenter,autoAdjustOverflow:st,offset:an.marginXXS,arrowWidth:He?an.sizePopupArrow:0,borderRadius:an.borderRadius}),Yn=ae.useCallback(()=>{Fn(!1)},[]),Zn=()=>{let Se;return Le!=null&&Le.items?Se=ae.createElement(Ve.default,Object.assign({},Le)):typeof zt=="function"?Se=zt():Se=zt,Dt&&(Se=Dt(Se)),Se=ae.Children.only(typeof Se=="string"?ae.createElement("span",null,Se):Se),ae.createElement(ct.J,{prefixCls:`${on}-menu`,expandIcon:ae.createElement("span",{className:`${on}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Yn,validator:ye=>{let{mode:fe}=ye}},Se)};return hn(ae.createElement(nt,Object.assign({alignPoint:yn},(0,nn.Z)(pe,["rootClassName"]),{mouseEnterDelay:Be,mouseLeaveDelay:We,visible:cn,builtinPlacements:Mn,arrow:!!He,overlayClassName:bn,prefixCls:on,getPopupContainer:yt||Ft,transitionName:Wt,trigger:pn,overlay:Zn,placement:rn,onVisibleChange:kn}),Sn))};function vt(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ue=(0,Me.Z)(Jt,"dropdown",pe=>pe,vt),xe=pe=>ae.createElement(Ue,Object.assign({},pe),ae.createElement("span",null));Jt._InternalPanelDoNotUseOrYouWillBeFired=xe;var ve=Jt},66748:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return ke}});var ae=oe(14747),he=oe(67771),Xe=oe(33297),Re=oe(50438),ce=oe(97414),je=oe(67968),me=oe(45503),Ce=Ie=>{const{componentCls:we,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ie,E=`${ne}-item`;return{[`${we}, ${we}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ge=Ie=>{const{componentCls:we,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:se,colorBgElevated:le}=Ie;return[{[we]:Object.assign(Object.assign({},(0,ae.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${we}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${we}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${we}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${we}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${we}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${we}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${we}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${we}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${we}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${we}-placement-topRight`]:{animationName:he.ly}})},(0,ce.ZP)(Ie,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${we} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${we}, ${we}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,ae.Qy)(Ie)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Ie.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${se}px`,color:Ie.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,ae.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${we}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${we}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Ie.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${we}-menu-submenu-title`]:{[`&, ${we}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${we}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,he.oN)(Ie,"slide-up"),(0,he.oN)(Ie,"slide-down"),(0,Xe.Fm)(Ie,"move-up"),(0,Xe.Fm)(Ie,"move-down"),(0,Re._y)(Ie,"zoom-big")]]};var ke=(0,je.Z)("Dropdown",(Ie,we)=>{let{rootPrefixCls:ne}=we;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ie,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,me.TS)(Ie,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ge(ge),Ce(ge)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},71322:function($e,dt,oe){"use strict";oe.d(dt,{D:function(){return x},Z:function(){return te}});var ae=oe(87462),he=oe(67294),Xe={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"},Re=Xe,ce=oe(74643),je=function(ie,ge){return he.createElement(ce.Z,(0,ae.Z)({},ie,{ref:ge,icon:Re}))},me=he.forwardRef(je),Ke=oe(22751),Ce=oe(91034),Ge=oe(94184),ke=oe.n(Ge),Ie=oe(10366),ne=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(ge[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(re);le<se.length;le++)ie.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(re,se[le])&&(ge[se[le]]=re[se[le]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=he.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=he.forwardRef((re,ie)=>{const{prefixCls:ge,className:se,trigger:le,children:ze,defaultCollapsed:Ae=!1,theme:ft="dark",style:Bt={},collapsible:Rt=!1,reverseArrow:be=!1,width:Qe=200,collapsedWidth:ut=80,zeroWidthTriggerStyle:ot,breakpoint:mt,onCollapse:nt,onBreakpoint:rt}=re,it=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nn}=(0,he.useContext)(y.Gs),[Fe,Me]=(0,he.useState)("collapsed"in re?re.collapsed:Ae),[Je,$t]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Me(re.collapsed)},[re.collapsed]);const Ve=(vt,Ue)=>{"collapsed"in re||Me(vt),nt==null||nt(vt,Ue)},ct=(0,he.useRef)();ct.current=vt=>{$t(vt.matches),rt==null||rt(vt.matches),Fe!==vt.matches&&Ve(vt.matches,"responsive")},(0,he.useEffect)(()=>{function vt(xe){return ct.current(xe)}let Ue;if(typeof window!="undefined"){const{matchMedia:xe}=window;if(xe&&mt&&mt in b){Ue=xe(`(max-width: ${b[mt]})`);try{Ue.addEventListener("change",vt)}catch(ve){Ue.addListener(vt)}vt(Ue)}}return()=>{try{Ue==null||Ue.removeEventListener("change",vt)}catch(xe){Ue==null||Ue.removeListener(vt)}}},[mt]),(0,he.useEffect)(()=>{const vt=z("ant-sider-");return nn.addSider(vt),()=>nn.removeSider(vt)},[]);const de=()=>{Ve(!Fe,"clickTrigger")},{getPrefixCls:lt}=(0,he.useContext)(a.E_),jt=()=>{const vt=lt("layout-sider",ge),Ue=(0,Ie.Z)(it,["collapsed"]),xe=Fe?ut:Qe,ve=ne(xe)?`${xe}px`:String(xe),pe=parseFloat(String(ut||0))===0?he.createElement("span",{onClick:de,className:ke()(`${vt}-zero-width-trigger`,`${vt}-zero-width-trigger-${be?"right":"left"}`),style:ot},le||he.createElement(me,null)):null,gt={expanded:be?he.createElement(Ce.Z,null):he.createElement(Ke.Z,null),collapsed:be?he.createElement(Ke.Z,null):he.createElement(Ce.Z,null)}[Fe?"collapsed":"expanded"],ht=le!==null?pe||he.createElement("div",{className:`${vt}-trigger`,onClick:de,style:{width:ve}},le||gt):null,bt=Object.assign(Object.assign({},Bt),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),Ot=ke()(vt,`${vt}-${ft}`,{[`${vt}-collapsed`]:!!Fe,[`${vt}-has-trigger`]:Rt&&le!==null&&!pe,[`${vt}-below`]:!!Je,[`${vt}-zero-width`]:parseFloat(ve)===0},se);return he.createElement("aside",Object.assign({className:Ot},Ue,{style:bt,ref:ie}),he.createElement("div",{className:`${vt}-children`},ze),Rt||Je&&pe?ht:null)},Jt=he.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return he.createElement(x.Provider,{value:Jt},jt())})},84321:function($e,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return we},ZP:function(){return ee}});var ae=oe(74902),he=oe(94184),Xe=oe.n(he),Re=oe(10366),ce=oe(67294),je=oe(53124),me=oe(67968),Ce=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:le,background:se},[`${re}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ge=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:se,footerBg:le,triggerBg:ze,headerHeight:Ae,headerPadding:ft,headerColor:Bt,footerPadding:Rt,triggerHeight:be,zeroTriggerHeight:Qe,zeroTriggerWidth:ut,motionDurationMid:ot,motionDurationSlow:mt,fontSize:nt,borderRadius:rt,bodyBg:it,headerBg:nn,siderBg:Fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:it,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Fe,transition:`all ${ot}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:se,lineHeight:`${be}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${ot}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-ut,zIndex:1,width:ut,height:Qe,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:rt,borderEndEndRadius:rt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${mt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${mt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ut,borderStartStartRadius:rt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:rt}}}}},Ce(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ae,padding:ft,color:Bt,lineHeight:`${Ae}px`,background:nn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Rt,color:ge,fontSize:nt,background:le},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,me.Z)("Layout",te=>[Ge(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:se,controlHeightSM:le,marginXXS:ze,colorTextLightSolid:Ae,colorBgContainer:ft}=te,Bt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Bt}px`,headerColor:se,footerPadding:`${le}px ${Bt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+ze*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ge=Object.getOwnPropertySymbols(te);se<ge.length;se++)re.indexOf(ge[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[se])&&(ie[ge[se]]=te[ge[se]]);return ie};const we=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return se=>ce.forwardRef((ze,Ae)=>ce.createElement(se,Object.assign({ref:Ae,suffixCls:re,tagName:ie},ze)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:se,tagName:le}=te,ze=Ie(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=ce.useContext(je.E_),ft=Ae("layout",ie),[Bt,Rt]=ke(ft),be=ge?`${ft}-${ge}`:ft;return Bt(ce.createElement(le,Object.assign({className:Xe()(ie||be,se,Rt),ref:re},ze)))}),y=ce.forwardRef((te,re)=>{const{direction:ie}=ce.useContext(je.E_),[ge,se]=ce.useState([]),{prefixCls:le,className:ze,rootClassName:Ae,children:ft,hasSider:Bt,tagName:Rt,style:be}=te,Qe=Ie(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ut=(0,Re.Z)(Qe,["suffixCls"]),{getPrefixCls:ot,layout:mt}=ce.useContext(je.E_),nt=ot("layout",le),[rt,it]=ke(nt),nn=Xe()(nt,{[`${nt}-has-sider`]:typeof Bt=="boolean"?Bt:ge.length>0,[`${nt}-rtl`]:ie==="rtl"},mt==null?void 0:mt.className,ze,Ae,it),Fe=ce.useMemo(()=>({siderHook:{addSider:Me=>{se(Je=>[].concat((0,ae.Z)(Je),[Me]))},removeSider:Me=>{se(Je=>Je.filter($t=>$t!==Me))}}}),[]);return rt(ce.createElement(we.Provider,{value:Fe},ce.createElement(Rt,Object.assign({ref:re,className:nn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),be)},ut),ft)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function($e,dt,oe){"use strict";oe.d(dt,{J:function(){return je}});var ae=oe(67294),he=oe(4173),Xe=oe(60276),Re=function(me,Ke){var Ce={};for(var Ge in me)Object.prototype.hasOwnProperty.call(me,Ge)&&Ke.indexOf(Ge)<0&&(Ce[Ge]=me[Ge]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ge=Object.getOwnPropertySymbols(me);ke<Ge.length;ke++)Ke.indexOf(Ge[ke])<0&&Object.prototype.propertyIsEnumerable.call(me,Ge[ke])&&(Ce[Ge[ke]]=me[Ge[ke]]);return Ce};const ce=ae.createContext(null),je=ae.forwardRef((me,Ke)=>{const{children:Ce}=me,Ge=Re(me,["children"]),ke=ae.useContext(ce),Ie=ae.useMemo(()=>Object.assign(Object.assign({},ke),Ge),[ke,Ge.prefixCls,Ge.mode,Ge.selectable]);return ae.createElement(ce.Provider,{value:Ie},ae.createElement(he.BR,null,(0,Xe.supportNodeRef)(Ce)?ae.cloneElement(Ce,{ref:Ke}):Ce))});dt.Z=ce},68508:function($e,dt,oe){"use strict";oe.d(dt,{default:function(){return vt}});var ae=oe(78595),he=oe(67294),Xe=oe(71322),Re=oe(94184),ce=oe.n(Re),je=oe(53124),me=function(Ue,xe){var ve={};for(var pe in Ue)Object.prototype.hasOwnProperty.call(Ue,pe)&&xe.indexOf(pe)<0&&(ve[pe]=Ue[pe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,pe=Object.getOwnPropertySymbols(Ue);Le<pe.length;Le++)xe.indexOf(pe[Le])<0&&Object.prototype.propertyIsEnumerable.call(Ue,pe[Le])&&(ve[pe[Le]]=Ue[pe[Le]]);return ve},Ce=Ue=>{const{prefixCls:xe,className:ve,dashed:pe}=Ue,Le=me(Ue,["prefixCls","className","dashed"]),{getPrefixCls:He}=he.useContext(je.E_),gt=He("menu",xe),ht=ce()({[`${gt}-item-divider-dashed`]:!!pe},ve);return he.createElement(ae.iz,Object.assign({className:ht},Le))},Ge=oe(37419),ke=oe(10366),Ie=oe(83062),we=oe(96159),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ue=>{var xe;const{className:ve,children:pe,icon:Le,title:He,danger:gt}=Ue,{prefixCls:ht,firstLevel:bt,direction:Ot,disableMenuItemTitleTooltip:Dt,inlineCollapsed:yt}=he.useContext(a),_t=Be=>{const We=he.createElement("span",{className:`${ht}-title-content`},pe);return(!Le||(0,we.l$)(pe)&&pe.type==="span")&&pe&&Be&&bt&&typeof pe=="string"?he.createElement("div",{className:`${ht}-inline-collapsed-noicon`},pe.charAt(0)):We},{siderCollapsed:Zt}=he.useContext(Xe.D);let Ut=He;typeof He=="undefined"?Ut=bt?pe:"":He===!1&&(Ut="");const Ht={title:Ut};!Zt&&!yt&&(Ht.title=null,Ht.open=!1);const Yt=(0,Ge.Z)(pe).length;let Pe=he.createElement(ae.ck,Object.assign({},(0,ke.Z)(Ue,["title","icon","danger"]),{className:ce()({[`${ht}-item-danger`]:gt,[`${ht}-item-only-child`]:(Le?Yt+1:Yt)===1},ve),title:typeof He=="string"?He:void 0}),(0,we.Tm)(Le,{className:ce()((0,we.l$)(Le)?(xe=Le.props)===null||xe===void 0?void 0:xe.className:"",`${ht}-item-icon`)}),_t(yt));return Dt||(Pe=he.createElement(Ie.Z,Object.assign({},Ht,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${ht}-inline-collapsed-tooltip`}),Pe)),Pe},x=Ue=>{var xe;const{popupClassName:ve,icon:pe,title:Le,theme:He}=Ue,gt=he.useContext(a),{prefixCls:ht,inlineCollapsed:bt,theme:Ot}=gt,Dt=(0,ae.Xl)();let yt;if(!pe)yt=bt&&!Dt.length&&Le&&typeof Le=="string"?he.createElement("div",{className:`${ht}-inline-collapsed-noicon`},Le.charAt(0)):he.createElement("span",{className:`${ht}-title-content`},Le);else{const Zt=(0,we.l$)(Le)&&Le.type==="span";yt=he.createElement(he.Fragment,null,(0,we.Tm)(pe,{className:ce()((0,we.l$)(pe)?(xe=pe.props)===null||xe===void 0?void 0:xe.className:"",`${ht}-item-icon`)}),Zt?Le:he.createElement("span",{className:`${ht}-title-content`},Le))}const _t=he.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]);return he.createElement(a.Provider,{value:_t},he.createElement(ae.Wd,Object.assign({},(0,ke.Z)(Ue,["icon"]),{title:yt,popupClassName:ce()(ht,ve,`${ht}-${He||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Ue,xe){var ve={};for(var pe in Ue)Object.prototype.hasOwnProperty.call(Ue,pe)&&xe.indexOf(pe)<0&&(ve[pe]=Ue[pe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,pe=Object.getOwnPropertySymbols(Ue);Le<pe.length;Le++)xe.indexOf(pe[Le])<0&&Object.prototype.propertyIsEnumerable.call(Ue,pe[Le])&&(ve[pe[Le]]=Ue[pe[Le]]);return ve};function ge(Ue){return(Ue||[]).map((xe,ve)=>{if(xe&&typeof xe=="object"){const pe=xe,{label:Le,children:He,key:gt,type:ht}=pe,bt=ie(pe,["label","children","key","type"]),Ot=gt!=null?gt:`tmp-${ve}`;return He||ht==="group"?ht==="group"?he.createElement(ae.BW,Object.assign({key:Ot},bt,{title:Le}),ge(He)):he.createElement(x,Object.assign({key:Ot},bt,{title:Le}),ge(He)):ht==="divider"?he.createElement(Ce,Object.assign({key:Ot},bt)):he.createElement(E,Object.assign({key:Ot},bt),Le)}return null}).filter(xe=>xe)}function se(Ue){return he.useMemo(()=>Ue&&ge(Ue),[Ue])}var le=oe(84780),ze=oe(14747),Ae=oe(33507),ft=oe(67771),Bt=oe(50438),Rt=oe(67968),be=oe(45503),ut=Ue=>{const{componentCls:xe,motionDurationSlow:ve,horizontalLineHeight:pe,colorSplit:Le,lineWidth:He,lineType:gt,itemPaddingInline:ht}=Ue;return{[`${xe}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${He}px ${gt} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${xe}-item, ${xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ht},[`> ${xe}-item:hover,
|
|
> ${xe}-item-active,
|
|
> ${xe}-submenu ${xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${xe}-item, ${xe}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${xe}-submenu-arrow`]:{display:"none"}}}},mt=Ue=>{let{componentCls:xe,menuArrowOffset:ve}=Ue;return{[`${xe}-rtl`]:{direction:"rtl"},[`${xe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${xe}-rtl${xe}-vertical,
|
|
${xe}-submenu-rtl ${xe}-vertical`]:{[`${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const nt=Ue=>Object.assign({},(0,ze.oN)(Ue));var it=(Ue,xe)=>{const{componentCls:ve,itemColor:pe,itemSelectedColor:Le,groupTitleColor:He,itemBg:gt,subMenuItemBg:ht,itemSelectedBg:bt,activeBarHeight:Ot,activeBarWidth:Dt,activeBarBorderWidth:yt,motionDurationSlow:_t,motionEaseInOut:Zt,motionEaseOut:Ut,itemPaddingInline:Ht,motionDurationMid:Yt,itemHoverColor:Pe,lineType:Be,colorSplit:We,itemDisabledColor:st,dangerItemColor:St,dangerItemHoverColor:zt,dangerItemSelectedColor:Mt,dangerItemActiveBg:Ft,dangerItemSelectedBg:Nt,itemHoverBg:Xt,itemActiveBg:Wt,menuSubMenuBg:rn,horizontalItemSelectedColor:on,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:an,popupBg:Qt}=Ue;return{[`${ve}-${xe}, ${ve}-${xe} > ${ve}`]:{color:pe,background:gt,[`&${ve}-root:focus-visible`]:Object.assign({},nt(Ue)),[`${ve}-item-group-title`]:{color:He},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Le}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${st} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:Pe}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Xt},"&:active":{backgroundColor:Wt}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Xt},"&:active":{backgroundColor:Wt}}},[`${ve}-item-danger`]:{color:St,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:zt}},[`&${ve}-item:active`]:{background:Ft}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Le,[`&${ve}-item-danger`]:{color:Mt},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:bt,[`&${ve}-item-danger`]:{backgroundColor:Nt}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},nt(Ue))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:rn},[`&${ve}-popup > ${ve}`]:{backgroundColor:Qt},[`&${ve}-horizontal`]:Object.assign(Object.assign({},xe==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:yt,marginTop:-yt,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Ht,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${_t} ${Zt}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:Ot,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:on}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${yt}px ${Be} ${We}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:ht},[`${ve}-item, ${ve}-submenu-title`]:yt&&Dt?{width:`calc(100% + ${yt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Dt}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Yt} ${Ut}`,`opacity ${Yt} ${Ut}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Mt}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Yt} ${Zt}`,`opacity ${Yt} ${Zt}`].join(",")}}}}}};const nn=Ue=>{const{componentCls:xe,itemHeight:ve,itemMarginInline:pe,padding:Le,menuArrowSize:He,marginXS:gt,itemMarginBlock:ht}=Ue,bt=Le+He+gt;return{[`${xe}-item`]:{position:"relative",overflow:"hidden"},[`${xe}-item, ${xe}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:ht,width:`calc(100% - ${pe*2}px)`},[`> ${xe}-item,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${xe}-item-group-list ${xe}-submenu-title,
|
|
${xe}-submenu-title`]:{paddingInlineEnd:bt}}};var Me=Ue=>{const{componentCls:xe,iconCls:ve,itemHeight:pe,colorTextLightSolid:Le,dropdownWidth:He,controlHeightLG:gt,motionDurationMid:ht,motionEaseOut:bt,paddingXL:Ot,itemMarginInline:Dt,fontSizeLG:yt,motionDurationSlow:_t,paddingXS:Zt,boxShadowSecondary:Ut,collapsedWidth:Ht,collapsedIconSize:Yt}=Ue,Pe={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[xe]:{"&-inline, &-vertical":Object.assign({[`&${xe}-root`]:{boxShadow:"none"}},nn(Ue))},[`${xe}-submenu-popup`]:{[`${xe}-vertical`]:Object.assign(Object.assign({},nn(Ue)),{boxShadow:Ut})}},{[`${xe}-submenu-popup ${xe}-vertical${xe}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${xe}-inline`]:{width:"100%",[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_t}`,`background ${_t}`,`padding ${ht} ${bt}`].join(","),[`> ${xe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${xe}-sub${xe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${xe}-submenu > ${xe}-submenu-title`]:Pe,[`& ${xe}-item-group-title`]:{paddingInlineStart:Ot}},[`${xe}-item`]:Pe}},{[`${xe}-inline-collapsed`]:{width:Ht,[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu ${xe}-submenu-title`]:{[`> ${xe}-inline-collapsed-noicon`]:{fontSize:yt,textAlign:"center"}}},[`> ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-submenu > ${xe}-submenu-title,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${yt/2}px - ${Dt}px)`,textOverflow:"clip",[`
|
|
${xe}-submenu-arrow,
|
|
${xe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${xe}-item-icon, ${ve}`]:{margin:0,fontSize:Yt,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${xe}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${xe}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Le}},[`${xe}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:Zt})}}]};const Je=Ue=>{const{componentCls:xe,motionDurationSlow:ve,motionDurationMid:pe,motionEaseInOut:Le,motionEaseOut:He,iconCls:gt,iconSize:ht,iconMarginInlineEnd:bt}=Ue;return{[`${xe}-item, ${xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Le}`].join(","),[`${xe}-item-icon, ${gt}`]:{minWidth:ht,fontSize:ht,transition:[`font-size ${pe} ${He}`,`margin ${ve} ${Le}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${ve} ${Le}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${xe}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${xe}-item-only-child`]:{[`> ${gt}, > ${xe}-item-icon`]:{marginInlineEnd:0}}},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${xe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$t=Ue=>{const{componentCls:xe,motionDurationSlow:ve,motionEaseInOut:pe,borderRadius:Le,menuArrowSize:He,menuArrowOffset:gt}=Ue;return{[`${xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ue.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${pe}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${ve} ${pe}`,`transform ${ve} ${pe}`,`top ${ve} ${pe}`,`color ${ve} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${gt})`},"&::after":{transform:`rotate(-45deg) translateY(${gt})`}}}}},Ve=Ue=>{const{antCls:xe,componentCls:ve,fontSize:pe,motionDurationSlow:Le,motionDurationMid:He,motionEaseInOut:gt,paddingXS:ht,padding:bt,colorSplit:Ot,lineWidth:Dt,zIndexPopup:yt,borderRadiusLG:_t,subMenuItemBorderRadius:Zt,menuArrowSize:Ut,menuArrowOffset:Ht,lineType:Yt,menuPanelMaskInset:Pe,groupTitleLineHeight:Be,groupTitleFontSize:We}=Ue;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Ue)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Ue.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${ht}px ${bt}px`,fontSize:We,lineHeight:Be,transition:`all ${Le}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Le} ${gt}`,`background ${Le} ${gt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Le} ${gt}`,`background ${Le} ${gt}`,`padding ${He} ${gt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Le} ${gt}`,`padding ${Le} ${gt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Le}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:Yt,borderWidth:0,borderTopWidth:Dt,marginBlock:Dt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(Ue)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${pe*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:yt,borderRadius:_t,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\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:Ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ue.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:_t},Je(Ue)),$t(Ue)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:Zt},[`${ve}-submenu-title::after`]:{transition:`transform ${Le} ${gt}`}})}}),$t(Ue)),{[`&-inline-collapsed ${ve}-submenu-arrow,
|
|
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ht})`},"&::after":{transform:`rotate(45deg) translateX(-${Ht})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${Ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ht})`},"&::before":{transform:`rotate(45deg) translateX(${Ht})`}}})},{[`${xe}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var ct=(Ue,xe)=>(0,Rt.Z)("Menu",pe=>{if(xe===!1)return[];const{colorBgElevated:Le,colorPrimary:He,colorTextLightSolid:gt,controlHeightLG:ht,fontSize:bt,darkItemColor:Ot,darkDangerItemColor:Dt,darkItemBg:yt,darkSubMenuItemBg:_t,darkItemSelectedColor:Zt,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:Ht,darkItemHoverBg:Yt,darkGroupTitleColor:Pe,darkItemHoverColor:Be,darkItemDisabledColor:We,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:zt}=pe,Mt=bt/7*5,Ft=(0,be.TS)(pe,{menuArrowSize:Mt,menuHorizontalHeight:ht*1.15,menuArrowOffset:`${Mt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),Nt=(0,be.TS)(Ft,{itemColor:Ot,itemHoverColor:Be,groupTitleColor:Pe,itemSelectedColor:Zt,itemBg:yt,popupBg:yt,subMenuItemBg:_t,itemActiveBg:"transparent",itemSelectedBg:Ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Yt,itemDisabledColor:We,dangerItemColor:Dt,dangerItemHoverColor:st,dangerItemSelectedColor:St,dangerItemActiveBg:zt,dangerItemSelectedBg:Ht,menuSubMenuBg:_t,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:He});return[Ve(Ft),ut(Ft),Me(Ft),it(Ft,"light"),it(Nt,"dark"),mt(Ft),(0,Ae.Z)(Ft),(0,ft.oN)(Ft,"slide-up"),(0,ft.oN)(Ft,"slide-down"),(0,Bt._y)(Ft,"zoom-big")]},pe=>{const{colorPrimary:Le,colorError:He,colorTextDisabled:gt,colorErrorBg:ht,colorText:bt,colorTextDescription:Ot,colorBgContainer:Dt,colorFillAlter:yt,colorFillContent:_t,lineWidth:Zt,lineWidthBold:Ut,controlItemBgActive:Ht,colorBgTextHover:Yt,controlHeightLG:Pe,lineHeight:Be,colorBgElevated:We,marginXXS:st,padding:St,fontSize:zt,controlHeightSM:Mt,fontSizeLG:Ft,colorTextLightSolid:Nt,colorErrorHover:Xt}=pe,Wt=new le.C(Nt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:Dt,itemBg:Dt,colorItemBgHover:Yt,itemHoverBg:Yt,colorItemBgActive:_t,itemActiveBg:Ht,colorSubItemBg:yt,subMenuItemBg:yt,colorItemBgSelected:Ht,itemSelectedBg:Ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:Zt,activeBarBorderWidth:Zt,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:ht,dangerItemActiveBg:ht,colorDangerItemBgSelected:ht,dangerItemSelectedBg:ht,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:Be,collapsedWidth:Pe*2,popupBg:We,itemMarginBlock:st,itemPaddingInline:St,horizontalLineHeight:`${Pe*1.15}px`,iconSize:zt,iconMarginInlineEnd:Mt-zt,collapsedIconSize:Ft,groupTitleFontSize:zt,darkItemDisabledColor:new le.C(Nt).setAlpha(.25).toRgbString(),darkItemColor:Wt,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nt,darkItemSelectedBg:Le,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:Wt,darkItemHoverColor:Nt,darkDangerItemHoverColor:Xt,darkDangerItemSelectedColor:Nt,darkDangerItemActiveBg:He}},{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"]]})(Ue),de=function(Ue,xe){var ve={};for(var pe in Ue)Object.prototype.hasOwnProperty.call(Ue,pe)&&xe.indexOf(pe)<0&&(ve[pe]=Ue[pe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,pe=Object.getOwnPropertySymbols(Ue);Le<pe.length;Le++)xe.indexOf(pe[Le])<0&&Object.prototype.propertyIsEnumerable.call(Ue,pe[Le])&&(ve[pe[Le]]=Ue[pe[Le]]);return ve},jt=(0,he.forwardRef)((Ue,xe)=>{var ve,pe;const Le=he.useContext(re.Z),He=Le||{},{getPrefixCls:gt,getPopupContainer:ht,direction:bt,menu:Ot}=he.useContext(je.E_),Dt=gt(),{prefixCls:yt,className:_t,style:Zt,theme:Ut="light",expandIcon:Ht,_internalDisableMenuItemTitleTooltip:Yt,inlineCollapsed:Pe,siderCollapsed:Be,items:We,children:st,rootClassName:St,mode:zt,selectable:Mt,onClick:Ft,overflowedIndicatorPopupClassName:Nt}=Ue,Xt=de(Ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wt=(0,ke.Z)(Xt,["collapsedWidth"]),rn=se(We)||st;(ve=He.validator)===null||ve===void 0||ve.call(He,{mode:zt});const on=(0,ee.useEvent)(function(){var bn;Ft==null||Ft.apply(void 0,arguments),(bn=He.onClick)===null||bn===void 0||bn.call(He)}),hn=He.mode||zt,vn=Mt!=null?Mt:He.selectable,an=he.useMemo(()=>Be!==void 0?Be:Pe,[Pe,Be]),Qt={horizontal:{motionName:`${Dt}-slide-up`},inline:(0,te.Z)(Dt),other:{motionName:`${Dt}-zoom-big`}},Sn=gt("menu",yt||He.prefixCls),[pn,yn]=ct(Sn,!Le),cn=ce()(`${Sn}-${Ut}`,Ot==null?void 0:Ot.className,_t);let Fn;if(typeof Ht=="function")Fn=Ht;else if(Ht===null||Ht===!1)Fn=null;else if(He.expandIcon===null||He.expandIcon===!1)Fn=null;else{const bn=Ht!=null?Ht:He.expandIcon;Fn=(0,we.Tm)(bn,{className:ce()(`${Sn}-submenu-expand-icon`,(0,we.l$)(bn)?(pe=bn.props)===null||pe===void 0?void 0:pe.className:"")})}const kn=he.useMemo(()=>({prefixCls:Sn,inlineCollapsed:an||!1,direction:bt,firstLevel:!0,theme:Ut,mode:hn,disableMenuItemTitleTooltip:Yt}),[Sn,an,bt,Yt,Ut]);return pn(he.createElement(re.Z.Provider,{value:null},he.createElement(a.Provider,{value:kn},he.createElement(ae.ZP,Object.assign({getPopupContainer:ht,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(Sn,`${Sn}-${Ut}`,Nt),mode:hn,selectable:vn,onClick:on},Wt,{inlineCollapsed:an,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Zt),className:cn,prefixCls:Sn,direction:bt,defaultMotions:Qt,expandIcon:Fn,ref:xe,rootClassName:ce()(St,yn)}),rn))))});const Jt=(0,he.forwardRef)((Ue,xe)=>{const ve=(0,he.useRef)(null),pe=he.useContext(Xe.D);return(0,he.useImperativeHandle)(xe,()=>({menu:ve.current,focus:Le=>{var He;(He=ve.current)===null||He===void 0||He.focus(Le)}})),he.createElement(jt,Object.assign({ref:ve},Ue,pe))});Jt.Item=E,Jt.SubMenu=x,Jt.Divider=Ce,Jt.ItemGroup=ae.BW;var vt=Jt},38703:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Yt}});var ae=oe(67294),he=oe(87725),Xe=oe(18299),Re=oe(16646),ce=oe(73475),je=oe(94184),me=oe.n(je),Ke=oe(10366),Ce=oe(53124),Ge=oe(87462),ke=oe(1413),Ie=oe(45987),we={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Be=(0,ae.useRef)([]),We=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var st=Date.now(),St=!1;Be.current.forEach(function(zt){if(zt){St=!0;var Mt=zt.style;Mt.transitionDuration=".3s, .3s, .3s, .06s",We.current&&st-We.current<100&&(Mt.transitionDuration="0s, 0s")}}),St&&(We.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var We=(0,ke.Z)((0,ke.Z)({},we),Be),st=We.className,St=We.percent,zt=We.prefixCls,Mt=We.strokeColor,Ft=We.strokeLinecap,Nt=We.strokeWidth,Xt=We.style,Wt=We.trailColor,rn=We.trailWidth,on=We.transition,hn=(0,Ie.Z)(We,a);delete hn.gapPosition;var vn=Array.isArray(St)?St:[St],an=Array.isArray(Mt)?Mt:[Mt],Qt=ne(),Sn=Nt/2,pn=100-Nt/2,yn="M ".concat(Ft==="round"?Sn:0,",").concat(Sn,`
|
|
L `).concat(Ft==="round"?pn:100,",").concat(Sn),cn="0 0 100 ".concat(Nt),Fn=0;return ae.createElement("svg",(0,Ge.Z)({className:me()("".concat(zt,"-line"),st),viewBox:cn,preserveAspectRatio:"none",style:Xt},hn),ae.createElement("path",{className:"".concat(zt,"-line-trail"),d:yn,strokeLinecap:Ft,stroke:Wt,strokeWidth:rn||Nt,fillOpacity:"0"}),vn.map(function(kn,bn){var Mn=1;switch(Ft){case"round":Mn=1-Nt/100;break;case"square":Mn=1-Nt/2/100;break;default:Mn=1;break}var Yn={strokeDasharray:"".concat(kn*Mn,"px, 100px"),strokeDashoffset:"-".concat(Fn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=an[bn]||an[an.length-1];return Fn+=kn,ae.createElement("path",{key:bn,className:"".concat(zt,"-line-path"),d:yn,strokeLinecap:Ft,stroke:Zn,strokeWidth:Nt,fillOpacity:"0",ref:function(ye){Qt[bn]=ye},style:Yn})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var ie=function(Pe){var Be=ae.useState(),We=(0,x.Z)(Be,2),st=We[0],St=We[1];return ae.useEffect(function(){St("rc_progress_".concat(re()))},[]),Pe||st},ge=function(Be){var We=Be.bg,st=Be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:We}},st)};function se(Pe,Be){return Object.keys(Pe).map(function(We){var st=parseFloat(We),St="".concat(Math.floor(st*Be),"%");return"".concat(Pe[We]," ").concat(St)})}var le=ae.forwardRef(function(Pe,Be){var We=Pe.prefixCls,st=Pe.color,St=Pe.gradientId,zt=Pe.radius,Mt=Pe.style,Ft=Pe.ptg,Nt=Pe.strokeLinecap,Xt=Pe.strokeWidth,Wt=Pe.size,rn=Pe.gapDegree,on=st&&(0,b.Z)(st)==="object",hn=on?"#FFF":void 0,vn=Wt/2,an=ae.createElement("circle",{className:"".concat(We,"-circle-path"),r:zt,cx:vn,cy:vn,stroke:hn,strokeLinecap:Nt,strokeWidth:Xt,opacity:Ft===0?0:1,style:Mt,ref:Be});if(!on)return an;var Qt="".concat(St,"-conic"),Sn=rn?"".concat(180+rn/2,"deg"):"0deg",pn=se(st,(360-rn)/360),yn=se(st,1),cn="conic-gradient(from ".concat(Sn,", ").concat(pn.join(", "),")"),Fn="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(yn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Qt},an),ae.createElement("foreignObject",{x:0,y:0,width:Wt,height:Wt,mask:"url(#".concat(Qt,")")},ae.createElement(ge,{bg:Fn},ae.createElement(ge,{bg:cn}))))}),ze=le,Ae=100,ft=function(Be,We,st,St,zt,Mt,Ft,Nt,Xt,Wt){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=st/100*360*((360-Mt)/360),hn=Mt===0?0:{bottom:0,top:180,left:90,right:-90}[Ft],vn=(100-St)/100*We;Xt==="round"&&St!==100&&(vn+=Wt/2,vn>=We&&(vn=We-.01));var an=Ae/2;return{stroke:typeof Nt=="string"?Nt:void 0,strokeDasharray:"".concat(We,"px ").concat(Be),strokeDashoffset:vn+rn,transform:"rotate(".concat(zt+on+hn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"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}},Bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Rt(Pe){var Be=Pe!=null?Pe:[];return Array.isArray(Be)?Be:[Be]}var be=function(Be){var We=(0,ke.Z)((0,ke.Z)({},we),Be),st=We.id,St=We.prefixCls,zt=We.steps,Mt=We.strokeWidth,Ft=We.trailWidth,Nt=We.gapDegree,Xt=Nt===void 0?0:Nt,Wt=We.gapPosition,rn=We.trailColor,on=We.strokeLinecap,hn=We.style,vn=We.className,an=We.strokeColor,Qt=We.percent,Sn=(0,Ie.Z)(We,Bt),pn=Ae/2,yn=ie(st),cn="".concat(yn,"-gradient"),Fn=pn-Mt/2,kn=Math.PI*2*Fn,bn=Xt>0?90+Xt/2:-90,Mn=kn*((360-Xt)/360),Yn=(0,b.Z)(zt)==="object"?zt:{count:zt,space:2},Zn=Yn.count,Se=Yn.space,ye=Rt(Qt),fe=Rt(an),qe=fe.find(function(Un){return Un&&(0,b.Z)(Un)==="object"}),wt=qe&&(0,b.Z)(qe)==="object",Ct=wt?"butt":on,Pn=ft(kn,Mn,0,100,bn,Xt,Wt,rn,Ct,Mt),Vt=ne(),sn=function(){var et=0;return ye.map(function(gn,ue){var Oe=fe[ue]||fe[fe.length-1],Ee=ft(kn,Mn,et,gn,bn,Xt,Wt,Oe,Ct,Mt);return et+=gn,ae.createElement(ze,{key:ue,color:Oe,ptg:gn,radius:Fn,prefixCls:St,gradientId:cn,style:Ee,strokeLinecap:Ct,strokeWidth:Mt,gapDegree:Xt,ref:function(tt){Vt[ue]=tt},size:Ae})}).reverse()},En=function(){var et=Math.round(Zn*(ye[0]/100)),gn=100/Zn,ue=0;return new Array(Zn).fill(null).map(function(Oe,Ee){var Ne=Ee<=et-1?fe[0]:rn,tt=Ne&&(0,b.Z)(Ne)==="object"?"url(#".concat(cn,")"):void 0,Ze=ft(kn,Mn,ue,gn,bn,Xt,Wt,Ne,"butt",Mt,Se);return ue+=(Mn-Ze.strokeDashoffset+Se)*100/Mn,ae.createElement("circle",{key:Ee,className:"".concat(St,"-circle-path"),r:Fn,cx:pn,cy:pn,stroke:tt,strokeWidth:Mt,opacity:1,style:Ze,ref:function(De){Vt[Ee]=De}})})};return ae.createElement("svg",(0,Ge.Z)({className:me()("".concat(St,"-circle"),vn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:hn,id:st,role:"presentation"},Sn),!Zn&&ae.createElement("circle",{className:"".concat(St,"-circle-trail"),r:Fn,cx:pn,cy:pn,stroke:rn,strokeLinecap:Ct,strokeWidth:Ft||Mt,style:Pn}),Zn?En():sn())},Qe=be,ut={Line:E,Circle:Qe},ot=oe(83062),mt=oe(47448);function nt(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function rt(Pe){let{success:Be,successPercent:We}=Pe,st=We;return Be&&"progress"in Be&&(st=Be.progress),Be&&"percent"in Be&&(st=Be.percent),st}const it=Pe=>{let{percent:Be,success:We,successPercent:st}=Pe;const St=nt(rt({success:We,successPercent:st}));return[St,nt(nt(Be)-St)]},nn=Pe=>{let{success:Be={},strokeColor:We}=Pe;const{strokeColor:st}=Be;return[st||mt.presetPrimaryColors.green,We||null]},Fe=(Pe,Be,We)=>{var st,St,zt,Mt;let Ft=-1,Nt=-1;if(Be==="step"){const Xt=We.steps,Wt=We.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(Ft=Pe==="small"?2:14,Nt=Wt!=null?Wt:8):typeof Pe=="number"?[Ft,Nt]=[Pe,Pe]:[Ft=14,Nt=8]=Pe,Ft*=Xt}else if(Be==="line"){const Xt=We==null?void 0:We.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Nt=Xt||(Pe==="small"?6:8):typeof Pe=="number"?[Ft,Nt]=[Pe,Pe]:[Ft=-1,Nt=8]=Pe}else(Be==="circle"||Be==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[Ft,Nt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[Ft,Nt]=[Pe,Pe]:(Ft=(St=(st=Pe[0])!==null&&st!==void 0?st:Pe[1])!==null&&St!==void 0?St:120,Nt=(Mt=(zt=Pe[0])!==null&&zt!==void 0?zt:Pe[1])!==null&&Mt!==void 0?Mt:120));return[Ft,Nt]},Me=3,Je=Pe=>Me/Pe*100;var Ve=Pe=>{const{prefixCls:Be,trailColor:We=null,strokeLinecap:st="round",gapPosition:St,gapDegree:zt,width:Mt=120,type:Ft,children:Nt,success:Xt,size:Wt=Mt}=Pe,[rn,on]=Fe(Wt,"circle");let{strokeWidth:hn}=Pe;hn===void 0&&(hn=Math.max(Je(rn),6));const vn={width:rn,height:on,fontSize:rn*.15+6},an=ae.useMemo(()=>{if(zt||zt===0)return zt;if(Ft==="dashboard")return 75},[zt,Ft]),Qt=St||Ft==="dashboard"&&"bottom"||void 0,Sn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",pn=nn({success:Xt,strokeColor:Pe.strokeColor}),yn=me()(`${Be}-inner`,{[`${Be}-circle-gradient`]:Sn}),cn=ae.createElement(Qe,{percent:it(Pe),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:st,trailColor:We,prefixCls:Be,gapDegree:an,gapPosition:Qt});return ae.createElement("div",{className:yn,style:vn},rn<=20?ae.createElement(ot.Z,{title:Nt},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,Nt))},ct=function(Pe,Be){var We={};for(var st in Pe)Object.prototype.hasOwnProperty.call(Pe,st)&&Be.indexOf(st)<0&&(We[st]=Pe[st]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(Pe);St<st.length;St++)Be.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,st[St])&&(We[st[St]]=Pe[st[St]]);return We};const de=Pe=>{let Be=[];return Object.keys(Pe).forEach(We=>{const st=parseFloat(We.replace(/%/g,""));isNaN(st)||Be.push({key:st,value:Pe[We]})}),Be=Be.sort((We,st)=>We.key-st.key),Be.map(We=>{let{key:st,value:St}=We;return`${St} ${st}%`}).join(", ")},lt=(Pe,Be)=>{const{from:We=mt.presetPrimaryColors.blue,to:st=mt.presetPrimaryColors.blue,direction:St=Be==="rtl"?"to left":"to right"}=Pe,zt=ct(Pe,["from","to","direction"]);if(Object.keys(zt).length!==0){const Mt=de(zt);return{backgroundImage:`linear-gradient(${St}, ${Mt})`}}return{backgroundImage:`linear-gradient(${St}, ${We}, ${st})`}};var Jt=Pe=>{const{prefixCls:Be,direction:We,percent:st,size:St,strokeWidth:zt,strokeColor:Mt,strokeLinecap:Ft="round",children:Nt,trailColor:Xt=null,success:Wt}=Pe,rn=Mt&&typeof Mt!="string"?lt(Mt,We):{backgroundColor:Mt},on=Ft==="square"||Ft==="butt"?0:void 0,hn={backgroundColor:Xt||void 0,borderRadius:on},vn=St!=null?St:[-1,zt||(St==="small"?6:8)],[an,Qt]=Fe(vn,"line",{strokeWidth:zt}),Sn=Object.assign({width:`${nt(st)}%`,height:Qt,borderRadius:on},rn),pn=rt(Pe),yn={width:`${nt(pn)}%`,height:Qt,borderRadius:on,backgroundColor:Wt==null?void 0:Wt.strokeColor},cn={width:an<0?"100%":an,height:Qt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Be}-outer`,style:cn},ae.createElement("div",{className:`${Be}-inner`,style:hn},ae.createElement("div",{className:`${Be}-bg`,style:Sn}),pn!==void 0?ae.createElement("div",{className:`${Be}-success-bg`,style:yn}):null)),Nt)},Ue=Pe=>{const{size:Be,steps:We,percent:st=0,strokeWidth:St=8,strokeColor:zt,trailColor:Mt=null,prefixCls:Ft,children:Nt}=Pe,Xt=Math.round(We*(st/100)),Wt=Be==="small"?2:14,rn=Be!=null?Be:[Wt,St],[on,hn]=Fe(rn,"step",{steps:We,strokeWidth:St}),vn=on/We,an=new Array(We);for(let Qt=0;Qt<We;Qt++){const Sn=Array.isArray(zt)?zt[Qt]:zt;an[Qt]=ae.createElement("div",{key:Qt,className:me()(`${Ft}-steps-item`,{[`${Ft}-steps-item-active`]:Qt<=Xt-1}),style:{backgroundColor:Qt<=Xt-1?Sn:Mt,width:vn,height:hn}})}return ae.createElement("div",{className:`${Ft}-steps-outer`},an,Nt)},xe=oe(45930),ve=oe(14747),pe=oe(67968),Le=oe(45503);const He=Pe=>{const Be=Pe?"100%":"-100%";return new xe.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},gt=Pe=>{const{componentCls:Be,iconCls:We}=Pe;return{[Be]:Object.assign(Object.assign({},(0,ve.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[We]:{fontSize:Pe.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:He(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:He(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:Pe.colorError},[`${Be}-text`]:{color:Pe.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Be}-text`]:{color:Pe.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.colorSuccess}}})}},ht=Pe=>{const{componentCls:Be,iconCls:We}=Pe;return{[Be]:{[`${Be}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[We]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:Pe.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:Pe.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},bt=Pe=>{const{componentCls:Be}=Pe;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},Ot=Pe=>{const{componentCls:Be,iconCls:We}=Pe;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${We}`]:{fontSize:Pe.fontSizeSM}}}};var Dt=(0,pe.Z)("Progress",Pe=>{const Be=Pe.marginXXS/2,We=(0,Le.TS)(Pe,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[gt(We),ht(We),bt(We),Ot(We)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),yt=function(Pe,Be){var We={};for(var st in Pe)Object.prototype.hasOwnProperty.call(Pe,st)&&Be.indexOf(st)<0&&(We[st]=Pe[st]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(Pe);St<st.length;St++)Be.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,st[St])&&(We[st[St]]=Pe[st[St]]);return We};const _t=null,Zt=["normal","exception","active","success"];var Ht=ae.forwardRef((Pe,Be)=>{const{prefixCls:We,className:st,rootClassName:St,steps:zt,strokeColor:Mt,percent:Ft=0,size:Nt="default",showInfo:Xt=!0,type:Wt="line",status:rn,format:on,style:hn}=Pe,vn=yt(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=ae.useMemo(()=>{var ye,fe;const qe=rt(Pe);return parseInt(qe!==void 0?(ye=qe!=null?qe:0)===null||ye===void 0?void 0:ye.toString():(fe=Ft!=null?Ft:0)===null||fe===void 0?void 0:fe.toString(),10)},[Ft,Pe.success,Pe.successPercent]),Qt=ae.useMemo(()=>!Zt.includes(rn)&&an>=100?"success":rn||"normal",[rn,an]),{getPrefixCls:Sn,direction:pn,progress:yn}=ae.useContext(Ce.E_),cn=Sn("progress",We),[Fn,kn]=Dt(cn),bn=ae.useMemo(()=>{if(!Xt)return null;const ye=rt(Pe);let fe;const qe=on||(Ct=>`${Ct}%`),wt=Wt==="line";return on||Qt!=="exception"&&Qt!=="success"?fe=qe(nt(Ft),nt(ye)):Qt==="exception"?fe=wt?ae.createElement(Re.Z,null):ae.createElement(ce.Z,null):Qt==="success"&&(fe=wt?ae.createElement(he.Z,null):ae.createElement(Xe.Z,null)),ae.createElement("span",{className:`${cn}-text`,title:typeof fe=="string"?fe:void 0},fe)},[Xt,Ft,an,Qt,Wt,cn,on]),Mn=Array.isArray(Mt)?Mt[0]:Mt,Yn=typeof Mt=="string"||Array.isArray(Mt)?Mt:void 0;let Zn;Wt==="line"?Zn=zt?ae.createElement(Ue,Object.assign({},Pe,{strokeColor:Yn,prefixCls:cn,steps:zt}),bn):ae.createElement(Jt,Object.assign({},Pe,{strokeColor:Mn,prefixCls:cn,direction:pn}),bn):(Wt==="circle"||Wt==="dashboard")&&(Zn=ae.createElement(Ve,Object.assign({},Pe,{strokeColor:Mn,prefixCls:cn,progressStatus:Qt}),bn));const Se=me()(cn,`${cn}-status-${Qt}`,`${cn}-${Wt==="dashboard"&&"circle"||zt&&"steps"||Wt}`,{[`${cn}-inline-circle`]:Wt==="circle"&&Fe(Nt,"circle")[0]<=20,[`${cn}-show-info`]:Xt,[`${cn}-${Nt}`]:typeof Nt=="string",[`${cn}-rtl`]:pn==="rtl"},yn==null?void 0:yn.className,st,St,kn);return Fn(ae.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),hn),className:Se,role:"progressbar","aria-valuenow":an},(0,Ke.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),Yt=Ht},59810:function($e,dt,oe){"use strict";oe.d(dt,{default:function(){return gn}});var ae=oe(67294),he=oe(74902),Xe=oe(94184),Re=oe.n(Xe),ce=oe(87462),je=oe(15671),me=oe(43144),Ke=oe(60136),Ce=oe(51630),Ge=oe(4942),ke=oe(45987),Ie=oe(74165),we=oe(71002),ne=oe(15861),a=oe(64217);function y(ue,Oe){var Ee="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Oe.status,"'"),Ne=new Error(Ee);return Ne.status=Oe.status,Ne.method=ue.method,Ne.url=ue.action,Ne}function E(ue){var Oe=ue.responseText||ue.response;if(!Oe)return Oe;try{return JSON.parse(Oe)}catch(Ee){return Oe}}function b(ue){var Oe=new XMLHttpRequest;ue.onProgress&&Oe.upload&&(Oe.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),ue.onProgress(Ze)});var Ee=new FormData;ue.data&&Object.keys(ue.data).forEach(function(tt){var Ze=ue.data[tt];if(Array.isArray(Ze)){Ze.forEach(function(Ye){Ee.append("".concat(tt,"[]"),Ye)});return}Ee.append(tt,Ze)}),ue.file instanceof Blob?Ee.append(ue.filename,ue.file,ue.file.name):Ee.append(ue.filename,ue.file),Oe.onerror=function(Ze){ue.onError(Ze)},Oe.onload=function(){return Oe.status<200||Oe.status>=300?ue.onError(y(ue,Oe),E(Oe)):ue.onSuccess(E(Oe),Oe)},Oe.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Oe&&(Oe.withCredentials=!0);var Ne=ue.headers||{};return Ne["X-Requested-With"]!==null&&Oe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ne).forEach(function(tt){Ne[tt]!==null&&Oe.setRequestHeader(tt,Ne[tt])}),Oe.send(Ee),{abort:function(){Oe.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(ue,Oe){if(ue&&Oe){var Ee=Array.isArray(Oe)?Oe:Oe.split(","),Ne=ue.name||"",tt=ue.type||"",Ze=tt.replace(/\/.*$/,"");return Ee.some(function(Ye){var De=Ye.trim();if(/^\*(\/\*)?$/.test(Ye))return!0;if(De.charAt(0)==="."){var Tt=Ne.toLowerCase(),Et=De.toLowerCase(),kt=[Et];return(Et===".jpg"||Et===".jpeg")&&(kt=[".jpg",".jpeg"]),kt.some(function(qt){return Tt.endsWith(qt)})}return/\/\*$/.test(De)?Ze===De.replace(/\/.*$/,""):tt===De?!0:/^\w+$/.test(De)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(De,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Oe){var Ee=ue.createReader(),Ne=[];function tt(){Ee.readEntries(function(Ze){var Ye=Array.prototype.slice.apply(Ze);Ne=Ne.concat(Ye);var De=!Ye.length;De?Oe(Ne):tt()})}tt()}var ge=function(Oe,Ee,Ne){var tt=function Ze(Ye,De){Ye&&(Ye.path=De||"",Ye.isFile?Ye.file(function(Tt){Ne(Tt)&&(Ye.fullPath&&!Tt.webkitRelativePath&&(Object.defineProperties(Tt,{webkitRelativePath:{writable:!0}}),Tt.webkitRelativePath=Ye.fullPath.replace(/^\//,""),Object.defineProperties(Tt,{webkitRelativePath:{writable:!1}})),Ee([Tt]))}):Ye.isDirectory&&ie(Ye,function(Tt){Tt.forEach(function(Et){Ze(Et,"".concat(De).concat(Ye.name,"/"))})}))};Oe.forEach(function(Ze){tt(Ze.webkitGetAsEntry())})},se=ge,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(ue){(0,Ke.Z)(Ee,ue);var Oe=(0,Ce.Z)(Ee);function Ee(){var Ne;(0,je.Z)(this,Ee);for(var tt=arguments.length,Ze=new Array(tt),Ye=0;Ye<tt;Ye++)Ze[Ye]=arguments[Ye];return Ne=Oe.call.apply(Oe,[this].concat(Ze)),Ne.state={uid:ee()},Ne.reqs={},Ne.fileInput=void 0,Ne._isMounted=void 0,Ne.onChange=function(De){var Tt=Ne.props,Et=Tt.accept,kt=Tt.directory,qt=De.target.files,mn=(0,he.Z)(qt).filter(function(Te){return!kt||re(Te,Et)});Ne.uploadFiles(mn),Ne.reset()},Ne.onClick=function(De){var Tt=Ne.fileInput;if(Tt){var Et=Ne.props,kt=Et.children,qt=Et.onClick;if(kt&&kt.type==="button"){var mn=Tt.parentNode;mn.focus(),mn.querySelector("button").blur()}Tt.click(),qt&&qt(De)}},Ne.onKeyDown=function(De){De.key==="Enter"&&Ne.onClick(De)},Ne.onFileDrop=function(De){var Tt=Ne.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Ne.props.directory)se(Array.prototype.slice.call(De.dataTransfer.items),Ne.uploadFiles,function(kt){return re(kt,Ne.props.accept)});else{var Et=(0,he.Z)(De.dataTransfer.files).filter(function(kt){return re(kt,Ne.props.accept)});Tt===!1&&(Et=Et.slice(0,1)),Ne.uploadFiles(Et)}},Ne.uploadFiles=function(De){var Tt=(0,he.Z)(De),Et=Tt.map(function(kt){return kt.uid=ee(),Ne.processFile(kt,Tt)});Promise.all(Et).then(function(kt){var qt=Ne.props.onBatchStart;qt==null||qt(kt.map(function(mn){var Te=mn.origin,Hn=mn.parsedFile;return{file:Te,parsedFile:Hn}})),kt.filter(function(mn){return mn.parsedFile!==null}).forEach(function(mn){Ne.post(mn)})})},Ne.processFile=function(){var De=(0,ne.Z)((0,Ie.Z)().mark(function Tt(Et,kt){var qt,mn,Te,Hn,In,Wn,wn,_e,pt;return(0,Ie.Z)().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(qt=Ne.props.beforeUpload,mn=Et,!qt){at.next=14;break}return at.prev=3,at.next=6,qt(Et,kt);case 6:mn=at.sent,at.next=12;break;case 9:at.prev=9,at.t0=at.catch(3),mn=!1;case 12:if(mn!==!1){at.next=14;break}return at.abrupt("return",{origin:Et,parsedFile:null,action:null,data:null});case 14:if(Te=Ne.props.action,typeof Te!="function"){at.next=21;break}return at.next=18,Te(Et);case 18:Hn=at.sent,at.next=22;break;case 21:Hn=Te;case 22:if(In=Ne.props.data,typeof In!="function"){at.next=29;break}return at.next=26,In(Et);case 26:Wn=at.sent,at.next=30;break;case 29:Wn=In;case 30:return wn=((0,we.Z)(mn)==="object"||typeof mn=="string")&&mn?mn:Et,wn instanceof File?_e=wn:_e=new File([wn],Et.name,{type:Et.type}),pt=_e,pt.uid=Et.uid,at.abrupt("return",{origin:Et,data:Wn,parsedFile:pt,action:Hn});case 35:case"end":return at.stop()}},Tt,null,[[3,9]])}));return function(Tt,Et){return De.apply(this,arguments)}}(),Ne.saveFileInput=function(De){Ne.fileInput=De},Ne}return(0,me.Z)(Ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(tt){var Ze=this,Ye=tt.data,De=tt.origin,Tt=tt.action,Et=tt.parsedFile;if(this._isMounted){var kt=this.props,qt=kt.onStart,mn=kt.customRequest,Te=kt.name,Hn=kt.headers,In=kt.withCredentials,Wn=kt.method,wn=De.uid,_e=mn||b,pt={action:Tt,filename:Te,data:Ye,file:Et,headers:Hn,withCredentials:In,method:Wn||"post",onProgress:function(at){var en=Ze.props.onProgress;en==null||en(at,Et)},onSuccess:function(at,en){var tn=Ze.props.onSuccess;tn==null||tn(at,Et,en),delete Ze.reqs[wn]},onError:function(at,en){var tn=Ze.props.onError;tn==null||tn(at,en,Et),delete Ze.reqs[wn]}};qt(De),this.reqs[wn]=_e(pt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(tt){var Ze=this.reqs;if(tt){var Ye=tt.uid?tt.uid:tt;Ze[Ye]&&Ze[Ye].abort&&Ze[Ye].abort(),delete Ze[Ye]}else Object.keys(Ze).forEach(function(De){Ze[De]&&Ze[De].abort&&Ze[De].abort(),delete Ze[De]})}},{key:"render",value:function(){var tt,Ze=this.props,Ye=Ze.component,De=Ze.prefixCls,Tt=Ze.className,Et=Ze.disabled,kt=Ze.id,qt=Ze.style,mn=Ze.multiple,Te=Ze.accept,Hn=Ze.capture,In=Ze.children,Wn=Ze.directory,wn=Ze.openFileDialogOnClick,_e=Ze.onMouseEnter,pt=Ze.onMouseLeave,It=(0,ke.Z)(Ze,le),at=Re()((tt={},(0,Ge.Z)(tt,De,!0),(0,Ge.Z)(tt,"".concat(De,"-disabled"),Et),(0,Ge.Z)(tt,Tt,Tt),tt)),en=Wn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},tn=Et?{}:{onClick:wn?this.onClick:function(){},onKeyDown:wn?this.onKeyDown:function(){},onMouseEnter:_e,onMouseLeave:pt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ye,(0,ce.Z)({},tn,{className:at,role:"button",style:qt}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(It,{aria:!0,data:!0}),{id:kt,disabled:Et,type:"file",ref:this.saveFileInput,onClick:function(xn){return xn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Te},en,{multiple:mn,onChange:this.onChange},Hn!=null?{capture:Hn}:{})),In)}}]),Ee}(ae.Component),Ae=ze;function ft(){}var Bt=function(ue){(0,Ke.Z)(Ee,ue);var Oe=(0,Ce.Z)(Ee);function Ee(){var Ne;(0,je.Z)(this,Ee);for(var tt=arguments.length,Ze=new Array(tt),Ye=0;Ye<tt;Ye++)Ze[Ye]=arguments[Ye];return Ne=Oe.call.apply(Oe,[this].concat(Ze)),Ne.uploader=void 0,Ne.saveUploader=function(De){Ne.uploader=De},Ne}return(0,me.Z)(Ee,[{key:"abort",value:function(tt){this.uploader.abort(tt)}},{key:"render",value:function(){return ae.createElement(Ae,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ee}(ae.Component);Bt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ft,onError:ft,onSuccess:ft,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Rt=Bt,be=Rt,Qe=oe(5663),ut=oe(73935),ot=oe(53124),mt=oe(98866),nt=oe(10110),rt=oe(24457),it={icon:function(Oe,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ee}},{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:Oe}}]}},name:"file",theme:"twotone"},nn=it,Fe=oe(74643),Me=function(Oe,Ee){return ae.createElement(Fe.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:nn}))},Je=ae.forwardRef(Me),$t=oe(3407),Ve={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"},ct=Ve,de=function(Oe,Ee){return ae.createElement(Fe.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:ct}))},lt=ae.forwardRef(de),jt={icon:function(Oe,Ee){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:Oe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ee}},{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:Ee}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ee}},{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:Oe}}]}},name:"picture",theme:"twotone"},Jt=jt,vt=function(Oe,Ee){return ae.createElement(Fe.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:Jt}))},Ue=ae.forwardRef(vt),xe=oe(38379),ve=oe(57838),pe=oe(33603),Le=oe(96159),He=oe(71577);function gt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function ht(ue,Oe){const Ee=(0,he.Z)(Oe),Ne=Ee.findIndex(tt=>{let{uid:Ze}=tt;return Ze===ue.uid});return Ne===-1?Ee.push(ue):Ee[Ne]=ue,Ee}function bt(ue,Oe){const Ee=ue.uid!==void 0?"uid":"name";return Oe.filter(Ne=>Ne[Ee]===ue[Ee])[0]}function Ot(ue,Oe){const Ee=ue.uid!==void 0?"uid":"name",Ne=Oe.filter(tt=>tt[Ee]!==ue[Ee]);return Ne.length===Oe.length?null:Ne}const Dt=function(){const Oe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ne=Oe[Oe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ne)||[""])[0]},yt=ue=>ue.indexOf("image/")===0,_t=ue=>{if(ue.type&&!ue.thumbUrl)return yt(ue.type);const Oe=ue.thumbUrl||ue.url||"",Ee=Dt(Oe);return/^data:image\//.test(Oe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ee)?!0:!(/^data:/.test(Oe)||Ee)},Zt=200;function Ut(ue){return new Promise(Oe=>{if(!ue.type||!yt(ue.type)){Oe("");return}const Ee=document.createElement("canvas");Ee.width=Zt,Ee.height=Zt,Ee.style.cssText=`position: fixed; left: 0; top: 0; width: ${Zt}px; height: ${Zt}px; z-index: 9999; display: none;`,document.body.appendChild(Ee);const Ne=Ee.getContext("2d"),tt=new Image;if(tt.onload=()=>{const{width:Ze,height:Ye}=tt;let De=Zt,Tt=Zt,Et=0,kt=0;Ze>Ye?(Tt=Ye*(Zt/Ze),kt=-(Tt-De)/2):(De=Ze*(Zt/Ye),Et=-(De-Tt)/2),Ne.drawImage(tt,Et,kt,De,Tt);const qt=Ee.toDataURL();document.body.removeChild(Ee),window.URL.revokeObjectURL(tt.src),Oe(qt)},tt.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&(tt.src=Ze.result)},Ze.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&Oe(Ze.result)},Ze.readAsDataURL(ue)}else tt.src=window.URL.createObjectURL(ue)})}var Ht=oe(84249),Yt=oe(90674),Pe=oe(99569),Be=oe(38703),We=oe(83062),St=ae.forwardRef((ue,Oe)=>{let{prefixCls:Ee,className:Ne,style:tt,locale:Ze,listType:Ye,file:De,items:Tt,progress:Et,iconRender:kt,actionIconRender:qt,itemRender:mn,isImgUrl:Te,showPreviewIcon:Hn,showRemoveIcon:In,showDownloadIcon:Wn,previewIcon:wn,removeIcon:_e,downloadIcon:pt,onPreview:It,onDownload:at,onClose:en}=ue;var tn,Bn;const{status:xn}=De,[Cn,ga]=ae.useState(xn);ae.useEffect(()=>{xn!=="removed"&&ga(xn)},[xn]);const[ta,ca]=ae.useState(!1);ae.useEffect(()=>{const On=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(On)}},[]);const da=kt(De);let _n=ae.createElement("div",{className:`${Ee}-icon`},da);if(Ye==="picture"||Ye==="picture-card"||Ye==="picture-circle")if(Cn==="uploading"||!De.thumbUrl&&!De.url){const On=Re()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:Cn!=="uploading"});_n=ae.createElement("div",{className:On},da)}else{const On=Te!=null&&Te(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${Ee}-list-item-image`,crossOrigin:De.crossOrigin}):da,Nn=Re()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:Te&&!Te(De)});_n=ae.createElement("a",{className:Nn,onClick:aa=>It(De,aa),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},On)}const $n=Re()(`${Ee}-list-item`,`${Ee}-list-item-${Cn}`),la=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,sa=In?qt((typeof _e=="function"?_e(De):_e)||ae.createElement(Ht.Z,null),()=>en(De),Ee,Ze.removeFile):null,ma=Wn&&Cn==="done"?qt((typeof pt=="function"?pt(De):pt)||ae.createElement(Yt.Z,null),()=>at(De),Ee,Ze.downloadFile):null,Qn=Ye!=="picture-card"&&Ye!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Re()(`${Ee}-list-item-actions`,{picture:Ye==="picture"})},ma,sa),Xn=Re()(`${Ee}-list-item-name`),oa=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:De.name},la,{href:De.url,onClick:On=>It(De,On)}),De.name),Qn]:[ae.createElement("span",{key:"view",className:Xn,onClick:On=>It(De,On),title:De.name},De.name),Qn],Kt={pointerEvents:"none",opacity:.5},zn=Hn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:Kt,onClick:On=>It(De,On),title:Ze.previewFile},typeof wn=="function"?wn(De):wn||ae.createElement(Pe.Z,null)):null,Jn=(Ye==="picture-card"||Ye==="picture-circle")&&Cn!=="uploading"&&ae.createElement("span",{className:`${Ee}-list-item-actions`},zn,Cn==="done"&&ma,sa),{getPrefixCls:Vn}=ae.useContext(ot.E_),na=Vn(),Tn=ae.createElement("div",{className:$n},_n,oa,Jn,ta&&ae.createElement(xe.default,{motionName:`${na}-fade`,visible:Cn==="uploading",motionDeadline:2e3},On=>{let{className:Nn}=On;const aa="percent"in De?ae.createElement(Be.Z,Object.assign({},Et,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ae.createElement("div",{className:Re()(`${Ee}-list-item-progress`,Nn)},aa)})),Sa=De.response&&typeof De.response=="string"?De.response:((tn=De.error)===null||tn===void 0?void 0:tn.statusText)||((Bn=De.error)===null||Bn===void 0?void 0:Bn.message)||Ze.uploadError,qn=Cn==="error"?ae.createElement(We.Z,{title:Sa,getPopupContainer:On=>On.parentNode},Tn):Tn;return ae.createElement("div",{className:Re()(`${Ee}-list-item-container`,Ne),style:tt,ref:Oe},mn?mn(qn,De,Tt,{download:at.bind(null,De),preview:It.bind(null,De),remove:en.bind(null,De)}):qn)});const zt=(ue,Oe)=>{const{listType:Ee="text",previewFile:Ne=Ut,onPreview:tt,onDownload:Ze,onRemove:Ye,locale:De,iconRender:Tt,isImageUrl:Et=_t,prefixCls:kt,items:qt=[],showPreviewIcon:mn=!0,showRemoveIcon:Te=!0,showDownloadIcon:Hn=!1,removeIcon:In,previewIcon:Wn,downloadIcon:wn,progress:_e={size:[-1,2],showInfo:!1},appendAction:pt,appendActionVisible:It=!0,itemRender:at,disabled:en}=ue,tn=(0,ve.Z)(),[Bn,xn]=ae.useState(!1);ae.useEffect(()=>{Ee!=="picture"&&Ee!=="picture-card"&&Ee!=="picture-circle"||(qt||[]).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="",Ne&&Ne(Kt.originFileObj).then(zn=>{Kt.thumbUrl=zn||"",tn()}))})},[Ee,qt,Ne]),ae.useEffect(()=>{xn(!0)},[]);const Cn=(Kt,zn)=>{if(tt)return zn==null||zn.preventDefault(),tt(Kt)},ga=Kt=>{typeof Ze=="function"?Ze(Kt):Kt.url&&window.open(Kt.url)},ta=Kt=>{Ye==null||Ye(Kt)},ca=Kt=>{if(Tt)return Tt(Kt,Ee);const zn=Kt.status==="uploading",Jn=Et&&Et(Kt)?ae.createElement(Ue,null):ae.createElement(Je,null);let Vn=zn?ae.createElement($t.Z,null):ae.createElement(lt,null);return Ee==="picture"?Vn=zn?ae.createElement($t.Z,null):Jn:(Ee==="picture-card"||Ee==="picture-circle")&&(Vn=zn?De.uploading:Jn),Vn},da=(Kt,zn,Jn,Vn)=>{const na={type:"text",size:"small",title:Vn,onClick:Tn=>{zn(),(0,Le.l$)(Kt)&&Kt.props.onClick&&Kt.props.onClick(Tn)},className:`${Jn}-list-item-action`,disabled:en};if((0,Le.l$)(Kt)){const Tn=(0,Le.Tm)(Kt,Object.assign(Object.assign({},Kt.props),{onClick:()=>{}}));return ae.createElement(He.ZP,Object.assign({},na,{icon:Tn}))}return ae.createElement(He.ZP,Object.assign({},na),ae.createElement("span",null,Kt))};ae.useImperativeHandle(Oe,()=>({handlePreview:Cn,handleDownload:ga}));const{getPrefixCls:_n}=ae.useContext(ot.E_),$n=_n("upload",kt),la=_n(),sa=Re()(`${$n}-list`,`${$n}-list-${Ee}`),ma=(0,he.Z)(qt.map(Kt=>({key:Kt.uid,file:Kt})));let Xn={motionDeadline:2e3,motionName:`${$n}-${Ee==="picture-card"||Ee==="picture-circle"?"animate-inline":"animate"}`,keys:ma,motionAppear:Bn};const oa=ae.useMemo(()=>{const Kt=Object.assign({},(0,pe.Z)(la));return delete Kt.onAppearEnd,delete Kt.onEnterEnd,delete Kt.onLeaveEnd,Kt},[la]);return Ee!=="picture-card"&&Ee!=="picture-circle"&&(Xn=Object.assign(Object.assign({},oa),Xn)),ae.createElement("div",{className:sa},ae.createElement(xe.CSSMotionList,Object.assign({},Xn,{component:!1}),Kt=>{let{key:zn,file:Jn,className:Vn,style:na}=Kt;return ae.createElement(St,{key:zn,locale:De,prefixCls:$n,className:Vn,style:na,file:Jn,items:qt,progress:_e,listType:Ee,isImgUrl:Et,showPreviewIcon:mn,showRemoveIcon:Te,showDownloadIcon:Hn,removeIcon:In,previewIcon:Wn,downloadIcon:wn,iconRender:ca,actionIconRender:da,itemRender:at,onPreview:Cn,onDownload:ga,onClose:ta})}),pt&&ae.createElement(xe.default,Object.assign({},Xn,{visible:It,forceRender:!0}),Kt=>{let{className:zn,style:Jn}=Kt;return(0,Le.Tm)(pt,Vn=>({className:Re()(Vn.className,zn),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:zn?"none":void 0}),Vn.style)}))}))};var Ft=ae.forwardRef(zt),Nt=oe(14747),Xt=oe(33507),Wt=oe(67968),rn=oe(45503),hn=ue=>{const{componentCls:Oe,iconCls:Ee}=ue;return{[`${Oe}-wrapper`]:{[`${Oe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Oe]:{padding:`${ue.padding}px 0`},[`${Oe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Oe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Oe}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Oe}-drag-icon`]:{marginBottom:ue.margin,[Ee]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Oe}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Oe}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`p${Oe}-drag-icon ${Ee},
|
|
p${Oe}-text,
|
|
p${Oe}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},an=ue=>{const{componentCls:Oe,antCls:Ee,iconCls:Ne,fontSize:tt,lineHeight:Ze}=ue,Ye=`${Oe}-list-item`,De=`${Ye}-actions`,Tt=`${Ye}-action`,Et=Math.round(tt*Ze);return{[`${Oe}-wrapper`]:{[`${Oe}-list`]:Object.assign(Object.assign({},(0,Nt.dF)()),{lineHeight:ue.lineHeight,[Ye]:{position:"relative",height:ue.lineHeight*tt,marginTop:ue.marginXS,fontSize:tt,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ye}-name`]:Object.assign(Object.assign({},Nt.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:Ze,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[De]:{[Tt]:{opacity:0},[`${Tt}${Ee}-btn-sm`]:{height:Et,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Tt}:focus-visible,
|
|
&.picture ${Tt}
|
|
`]:{opacity:1},[Ne]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Ne}`]:{color:ue.colorText}},[`${Oe}-icon ${Ne}`]:{color:ue.colorTextDescription,fontSize:tt},[`${Ye}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:tt+ue.paddingXS,fontSize:tt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ye}:hover ${Tt}`]:{opacity:1,color:ue.colorText},[`${Ye}-error`]:{color:ue.colorError,[`${Ye}-name, ${Oe}-icon ${Ne}`]:{color:ue.colorError},[De]:{[`${Ne}, ${Ne}:hover`]:{color:ue.colorError},[Tt]:{opacity:1}}},[`${Oe}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Qt=oe(45930),Sn=oe(16932);const pn=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 Fn=ue=>{const{componentCls:Oe}=ue,Ee=`${Oe}-animate-inline`;return[{[`${Oe}-wrapper`]:{[`${Ee}-appear, ${Ee}-enter, ${Ee}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ee}-appear, ${Ee}-enter`]:{animationName:pn},[`${Ee}-leave`]:{animationName:yn}}},{[`${Oe}-wrapper`]:(0,Sn.J$)(ue)},pn,yn]},kn=oe(47448),bn=oe(84780);const Mn=ue=>{const{componentCls:Oe,iconCls:Ee,uploadThumbnailSize:Ne,uploadProgressOffset:tt}=ue,Ze=`${Oe}-list`,Ye=`${Ze}-item`;return{[`${Oe}-wrapper`]:{[`
|
|
${Ze}${Ze}-picture,
|
|
${Ze}${Ze}-picture-card,
|
|
${Ze}${Ze}-picture-circle
|
|
`]:{[Ye]:{position:"relative",height:Ne+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ye}-thumbnail`]:Object.assign(Object.assign({},Nt.vS),{width:Ne,height:Ne,lineHeight:`${Ne+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ee]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ye}-progress`]:{bottom:tt,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ne+ue.paddingXS}},[`${Ye}-error`]:{borderColor:ue.colorError,[`${Ye}-thumbnail ${Ee}`]:{[`svg path[fill='${kn.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${kn.blue.primary}']`]:{fill:ue.colorError}}},[`${Ye}-uploading`]:{borderStyle:"dashed",[`${Ye}-name`]:{marginBottom:tt}}},[`${Ze}${Ze}-picture-circle ${Ye}`]:{[`&, &::before, ${Ye}-thumbnail`]:{borderRadius:"50%"}}}}},Yn=ue=>{const{componentCls:Oe,iconCls:Ee,fontSizeLG:Ne,colorTextLightSolid:tt}=ue,Ze=`${Oe}-list`,Ye=`${Ze}-item`,De=ue.uploadPicCardSize;return{[`
|
|
${Oe}-wrapper${Oe}-picture-card-wrapper,
|
|
${Oe}-wrapper${Oe}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Nt.dF)()),{display:"inline-block",width:"100%",[`${Oe}${Oe}-select`]:{width:De,height:De,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Oe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Oe}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle`]:{[`${Ze}-item-container`]:{display:"inline-block",width:De,height:De,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ye]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ye}:hover`]:{[`&::before, ${Ye}-actions`]:{opacity:1}},[`${Ye}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{zIndex:10,width:Ne,margin:`0 ${ue.marginXXS}px`,fontSize:Ne,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ye}-actions, ${Ye}-actions:hover`]:{[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{color:new bn.C(tt).setAlpha(.65).toRgbString(),"&:hover":{color:tt}}},[`${Ye}-thumbnail, ${Ye}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ye}-name`]:{display:"none",textAlign:"center"},[`${Ye}-file + ${Ye}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ye}-uploading`]:{[`&${Ye}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{display:"none"}},[`${Ye}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Oe}-wrapper${Oe}-picture-circle-wrapper`]:{[`${Oe}${Oe}-select`]:{borderRadius:"50%"}}}};var Se=ue=>{const{componentCls:Oe}=ue;return{[`${Oe}-rtl`]:{direction:"rtl"}}};const ye=ue=>{const{componentCls:Oe,colorTextDisabled:Ee}=ue;return{[`${Oe}-wrapper`]:Object.assign(Object.assign({},(0,Nt.Wf)(ue)),{[Oe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Oe}-select`]:{display:"inline-block"},[`${Oe}-disabled`]:{color:Ee,cursor:"not-allowed"}})}};var fe=(0,Wt.Z)("Upload",ue=>{const{fontSizeHeading3:Oe,fontSize:Ee,lineHeight:Ne,lineWidth:tt,controlHeightLG:Ze}=ue,Ye=Math.round(Ee*Ne),De=(0,rn.TS)(ue,{uploadThumbnailSize:Oe*2,uploadProgressOffset:Ye/2+tt,uploadPicCardSize:Ze*2.55});return[ye(De),hn(De),Mn(De),Yn(De),an(De),Fn(De),Se(De),(0,Xt.Z)(De)]},ue=>({actionsColor:ue.colorTextDescription})),qe=function(ue,Oe,Ee,Ne){function tt(Ze){return Ze instanceof Ee?Ze:new Ee(function(Ye){Ye(Ze)})}return new(Ee||(Ee=Promise))(function(Ze,Ye){function De(kt){try{Et(Ne.next(kt))}catch(qt){Ye(qt)}}function Tt(kt){try{Et(Ne.throw(kt))}catch(qt){Ye(qt)}}function Et(kt){kt.done?Ze(kt.value):tt(kt.value).then(De,Tt)}Et((Ne=Ne.apply(ue,Oe||[])).next())})};const wt=`__LIST_IGNORE_${Date.now()}__`,Ct=(ue,Oe)=>{const{fileList:Ee,defaultFileList:Ne,onRemove:tt,showUploadList:Ze=!0,listType:Ye="text",onPreview:De,onDownload:Tt,onChange:Et,onDrop:kt,previewFile:qt,disabled:mn,locale:Te,iconRender:Hn,isImageUrl:In,progress:Wn,prefixCls:wn,className:_e,type:pt="select",children:It,style:at,itemRender:en,maxCount:tn,data:Bn={},multiple:xn=!1,action:Cn="",accept:ga="",supportServerRender:ta=!0,rootClassName:ca}=ue,da=ae.useContext(mt.Z),_n=mn!=null?mn:da,[$n,la]=(0,Qe.Z)(Ne||[],{value:Ee,postState:At=>At!=null?At:[]}),[sa,ma]=ae.useState("drop"),Qn=ae.useRef(null);ae.useMemo(()=>{const At=Date.now();(Ee||[]).forEach((dn,un)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${At}_${un}__`)})},[Ee]);const Xn=(At,dn,un)=>{let ln=(0,he.Z)(dn),Ln=!1;tn===1?ln=ln.slice(-1):tn&&(Ln=ln.length>tn,ln=ln.slice(0,tn)),(0,ut.flushSync)(()=>{la(ln)});const Rn={file:At,fileList:ln};un&&(Rn.event=un),(!Ln||ln.some(ua=>ua.uid===At.uid))&&(0,ut.flushSync)(()=>{Et==null||Et(Rn)})},oa=(At,dn)=>qe(void 0,void 0,void 0,function*(){const{beforeUpload:un,transformFile:ln}=ue;let Ln=At;if(un){const Rn=yield un(At,dn);if(Rn===!1)return!1;if(delete At[wt],Rn===wt)return Object.defineProperty(At,wt,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(Ln=Rn)}return ln&&(Ln=yield ln(Ln)),Ln}),Kt=At=>{const dn=At.filter(Ln=>!Ln.file[wt]);if(!dn.length)return;const un=dn.map(Ln=>gt(Ln.file));let ln=(0,he.Z)($n);un.forEach(Ln=>{ln=ht(Ln,ln)}),un.forEach((Ln,Rn)=>{let ua=Ln;if(dn[Rn].parsedFile)Ln.status="uploading";else{const{originFileObj:ea}=Ln;let ra;try{ra=new File([ea],ea.name,{type:ea.type})}catch(jn){ra=new Blob([ea],{type:ea.type}),ra.name=ea.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=Ln.uid,ua=ra}Xn(ua,ln)})},zn=(At,dn,un)=>{try{typeof At=="string"&&(At=JSON.parse(At))}catch(Rn){}if(!bt(dn,$n))return;const ln=gt(dn);ln.status="done",ln.percent=100,ln.response=At,ln.xhr=un;const Ln=ht(ln,$n);Xn(ln,Ln)},Jn=(At,dn)=>{if(!bt(dn,$n))return;const un=gt(dn);un.status="uploading",un.percent=At.percent;const ln=ht(un,$n);Xn(un,ln,At)},Vn=(At,dn,un)=>{if(!bt(un,$n))return;const ln=gt(un);ln.error=At,ln.response=dn,ln.status="error";const Ln=ht(ln,$n);Xn(ln,Ln)},na=At=>{let dn;Promise.resolve(typeof tt=="function"?tt(At):tt).then(un=>{var ln;if(un===!1)return;const Ln=Ot(At,$n);Ln&&(dn=Object.assign(Object.assign({},At),{status:"removed"}),$n==null||$n.forEach(Rn=>{const ua=dn.uid!==void 0?"uid":"name";Rn[ua]===dn[ua]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(ln=Qn.current)===null||ln===void 0||ln.abort(dn),Xn(dn,Ln))})},Tn=At=>{ma(At.type),At.type==="drop"&&(kt==null||kt(At))};ae.useImperativeHandle(Oe,()=>({onBatchStart:Kt,onSuccess:zn,onProgress:Jn,onError:Vn,fileList:$n,upload:Qn.current}));const{getPrefixCls:Sa,direction:qn,upload:On}=ae.useContext(ot.E_),Nn=Sa("upload",wn),aa=Object.assign(Object.assign({onBatchStart:Kt,onError:Vn,onProgress:Jn,onSuccess:zn},ue),{data:Bn,multiple:xn,action:Cn,accept:ga,supportServerRender:ta,prefixCls:Nn,disabled:_n,beforeUpload:oa,onChange:void 0});delete aa.className,delete aa.style,(!It||_n)&&delete aa.id;const[fa,Pa]=fe(Nn),[ya]=(0,nt.Z)("Upload",rt.Z.Upload),{showRemoveIcon:La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:Gt,previewIcon:Pt,downloadIcon:Lt}=typeof Ze=="boolean"?{}:Ze,xt=(At,dn)=>Ze?ae.createElement(Ft,{prefixCls:Nn,listType:Ye,items:$n,previewFile:qt,onPreview:De,onDownload:Tt,onRemove:na,showRemoveIcon:!_n&&La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:Gt,previewIcon:Pt,downloadIcon:Lt,iconRender:Hn,locale:Object.assign(Object.assign({},ya),Te),isImageUrl:In,progress:Wn,appendAction:At,appendActionVisible:dn,itemRender:en,disabled:_n}):At,fn=Re()(`${Nn}-wrapper`,_e,ca,Pa,On==null?void 0:On.className,{[`${Nn}-rtl`]:qn==="rtl",[`${Nn}-picture-card-wrapper`]:Ye==="picture-card",[`${Nn}-picture-circle-wrapper`]:Ye==="picture-circle"}),Gn=Object.assign(Object.assign({},On==null?void 0:On.style),at);if(pt==="drag"){const At=Re()(Pa,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Nn}-drag-hover`]:sa==="dragover",[`${Nn}-disabled`]:_n,[`${Nn}-rtl`]:qn==="rtl"});return fa(ae.createElement("span",{className:fn},ae.createElement("div",{className:At,style:Gn,onDrop:Tn,onDragOver:Tn,onDragLeave:Tn},ae.createElement(be,Object.assign({},aa,{ref:Qn,className:`${Nn}-btn`}),ae.createElement("div",{className:`${Nn}-drag-container`},It))),xt()))}const Kn=Re()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:_n}),Dn=(At=>ae.createElement("div",{className:Kn,style:At},ae.createElement(be,Object.assign({},aa,{ref:Qn}))))(It?void 0:{display:"none"});return fa(Ye==="picture-card"||Ye==="picture-circle"?ae.createElement("span",{className:fn},xt(Dn,!!It)):ae.createElement("span",{className:fn},Dn,xt()))};var Vt=ae.forwardRef(Ct),sn=function(ue,Oe){var Ee={};for(var Ne in ue)Object.prototype.hasOwnProperty.call(ue,Ne)&&Oe.indexOf(Ne)<0&&(Ee[Ne]=ue[Ne]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ne=Object.getOwnPropertySymbols(ue);tt<Ne.length;tt++)Oe.indexOf(Ne[tt])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ne[tt])&&(Ee[Ne[tt]]=ue[Ne[tt]]);return Ee},Un=ae.forwardRef((ue,Oe)=>{var{style:Ee,height:Ne}=ue,tt=sn(ue,["style","height"]);return ae.createElement(Vt,Object.assign({ref:Oe},tt,{type:"drag",style:Object.assign(Object.assign({},Ee),{height:Ne})}))});const et=Vt;et.Dragger=Un,et.LIST_IGNORE=wt;var gn=et},72665:function($e,dt){"use strict";var oe;var ae=typeof Symbol=="function"&&Symbol.for,he=ae?Symbol.for("react.element"):60103,Xe=ae?Symbol.for("react.portal"):60106,Re=ae?Symbol.for("react.fragment"):60107,ce=ae?Symbol.for("react.strict_mode"):60108,je=ae?Symbol.for("react.profiler"):60114,me=ae?Symbol.for("react.provider"):60109,Ke=ae?Symbol.for("react.context"):60110,Ce=ae?Symbol.for("react.async_mode"):60111,Ge=ae?Symbol.for("react.concurrent_mode"):60111,ke=ae?Symbol.for("react.forward_ref"):60112,Ie=ae?Symbol.for("react.suspense"):60113,we=ae?Symbol.for("react.suspense_list"):60120,ne=ae?Symbol.for("react.memo"):60115,a=ae?Symbol.for("react.lazy"):60116,y=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,b=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case he:switch(te=te.type,te){case Ce:case Ge:case Re:case je:case ce:case Ie:return te;default:switch(te=te&&te.$$typeof,te){case Ke:case ke:case a:case ne:case me:return te;default:return re}}case Xe:return re}}}function ee(te){return z(te)===Ge}oe=Ce,oe=Ge,oe=Ke,oe=me,oe=he,oe=ke,oe=Re,oe=a,oe=ne,oe=Xe,oe=je,oe=ce,oe=Ie,oe=function(te){return ee(te)||z(te)===Ce},oe=ee,oe=function(te){return z(te)===Ke},oe=function(te){return z(te)===me},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===he},oe=function(te){return z(te)===ke},oe=function(te){return z(te)===Re},oe=function(te){return z(te)===a},dt.isMemo=function(te){return z(te)===ne},oe=function(te){return z(te)===Xe},oe=function(te){return z(te)===je},oe=function(te){return z(te)===ce},oe=function(te){return z(te)===Ie},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Re||te===Ge||te===je||te===ce||te===Ie||te===we||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===Ke||te.$$typeof===ke||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function($e,dt,oe){"use strict";$e.exports=oe(72665)},64217:function($e,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ke}});var ae=oe(1413),he=`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`,Xe=`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`,Re="".concat(he," ").concat(Xe).split(/[\s\n]+/),ce="aria-",je="data-";function me(Ce,Ge){return Ce.indexOf(Ge)===0}function Ke(Ce){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke;Ge===!1?ke={aria:!0,data:!0,attr:!0}:Ge===!0?ke={aria:!0}:ke=(0,ae.Z)({},Ge);var Ie={};return Object.keys(Ce).forEach(function(we){(ke.aria&&(we==="role"||me(we,ce))||ke.data&&me(we,je)||ke.attr&&Re.includes(we))&&(Ie[we]=Ce[we])}),Ie}}}]);
|