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

144 lines
396 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4264],{26227:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ve}});var ae=ge(60499),Pe=ge(59301),qe={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"},_e=qe,ce=ge(7657),We=function(Te,ke){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:ke,icon:_e}))},me=Pe.forwardRef(We),Ve=me},41464:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ve}});var ae=ge(60499),Pe=ge(59301),qe={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"},_e=qe,ce=ge(7657),We=function(Te,ke){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:ke,icon:_e}))},me=Pe.forwardRef(We),Ve=me},61481:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ve}});var ae=ge(60499),Pe=ge(59301),qe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},_e=qe,ce=ge(7657),We=function(Te,ke){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:ke,icon:_e}))},me=Pe.forwardRef(We),Ve=me},33853:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ve}});var ae=ge(60499),Pe=ge(59301),qe={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"},_e=qe,ce=ge(7657),We=function(Te,ke){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:ke,icon:_e}))},me=Pe.forwardRef(We),Ve=me},38819:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ve}});var ae=ge(60499),Pe=ge(59301),qe={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"},_e=qe,ce=ge(7657),We=function(Te,ke){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:ke,icon:_e}))},me=Pe.forwardRef(We),Ve=me},14973:function(Ge,ut){"use strict";ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},64242:function(){"use strict";function Ge(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(Ge.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(Ge.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(Ge.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(Ge.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 Ge))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 ut=[];function ge(ne,a){var y=ut.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=ut.pop();return ne===void 0?new go.Point:ne}function Pe(ne){ut.push(ne)}function qe(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,ue=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ue=a);else{var le=(x-ee)/re,Be=x-le*b;ie=ne,ue=le*ie+Be}else if(re===0){var xe=(a-E)/oe,mt=a-xe*ne;ie=b,ue=xe*ie+mt}else{var xe=(a-E)/oe,le=(x-ee)/re,mt=a-xe*ne,Be=x-le*b;ie=(Be-mt)/(xe-le),ue=xe*ie+mt}return te.x=ie,te.y=ue,te}function _e(ne,a,y,E,b,x,z,ee,te,oe,re,ie,ue,le){var Be=1-te,xe=te,mt=ne*Be+y*xe,Mt=a*Be+E*xe,Ut=y*Be+b*xe,be=E*Be+x*xe,Qe=b*Be+z*xe,ot=x*Be+ee*xe,et=mt*Be+Ut*xe,gt=Mt*Be+be*xe,tt=Ut*Be+Qe*xe,nt=be*Be+ot*xe,Ye=et*Be+tt*xe,Xt=gt*Be+nt*xe;oe.x=mt,oe.y=Mt,re.x=et,re.y=gt,ie.x=Ye,ie.y=Xt,ue.x=tt,ue.y=nt,le.x=Qe,le.y=ot}var ce=new go.Spot(.156,.156),We=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("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=We,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Ve=[];function Ie(){var ne=Ve.pop();return ne===void 0?[]:ne}function Te(ne){ne.length=0,Ve.push(ne)}function ke(ne){for(var a=Ie(),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 ze(ne){var a=De(ne),y=Ie();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 Te(a),y}function De(ne){for(var a=ke(ne),y=Ie(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=qe(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Te(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()),Te(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()),Te(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()),Te(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()),Te(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()),Te(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()),Te(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()),Te(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=De(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()),Te(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=De(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()),Te(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=De(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()),Te(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=De(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()),Te(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=De(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()),Te(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=De(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()),Te(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=ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(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=ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(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=ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(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=ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(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=ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(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=ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("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 Ge("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=We,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("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 Ge("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 Ge("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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("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 Ge("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 Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var oe=ae(),re=ae(),ie=ae(),ue=ae();_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ie,ue,ue);var le=ae(),Be=ae(),xe=ae();_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ue,ue,xe,le,Be);var mt=ae(),Mt=ae(),Ut=ae();_e(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,mt,Mt,Ut,ue,ue);var be=ae(),Qe=ae(),ot=ae();return _e(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ue,ue,ot,be,Qe),te.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.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,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ot.x*a,ot.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Ut.x*a,Ut.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,Be.x*a,Be.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,Ut.x*a,Ut.y*y,mt.x*a,mt.y*y,Mt.x*a,Mt.y*y).close()),Pe(oe),Pe(re),Pe(ie),Pe(ue),Pe(le),Pe(Be),Pe(xe),Pe(mt),Pe(Mt),Pe(Ut),Pe(be),Pe(Qe),Pe(ot),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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),ue=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ie,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var le=ge(oe.x,oe.y);_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,re,ie);var Be=ge(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=me*.35;var xe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),xe.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 mt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(mt),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(le),Pe(Be),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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=qe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Pe(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=qe(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Pe(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=qe(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=qe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=qe(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=qe(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=qe(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=qe(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=qe(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=qe(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,ue=me*ie;te=.05,oe=.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,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ue)*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*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)),ie=.025,ue=me*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.05,ue=me*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.025,ue=me*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.05,ue=me*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y,(te-ue)*a,(oe-ie)*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 Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(x-y)/2,ue=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var Be=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var xe=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var mt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ie);var ue=ge(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.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)),_e(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=me*.3,x=.3,_e(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.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)),_e(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.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()),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(ue),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ue=.5,le=0,Be=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Be.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)),Be.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)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ue=z,le=z,Be=re*ue,xe=re*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(Be+ue)/2)*a,(te+(le+xe)/2)*y,(ee-ue)*a,(te+xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-ue)*a,(te-xe)*y,(ee-Be)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+Be)*a,(te-le)*y,(ee+ue)*a,(te-xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+xe)*y,(ee+(Be+ue)/2)*a,(te+(le+xe)/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 mt=new go.PathFigure(.2*a,y,!1);E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Mt=new go.PathFigure(.8*a,y,!1);return E.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,re=.1,ie=.9,ue=new go.PathFigure((re-te)*a,ie*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,re=.4,ie=.9;var le=new go.PathFigure((re-te)*a,ie*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=me*.05,ue=.175,le=.95,ee=new go.PathFigure((ue-re)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-re)*y,(ue-re)*a,(le-ie)*y,(ue-ie)*a,(le-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,le*y,(ue+ie)*a,(le-re)*y,(ue+re)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+re)*y,(ue+re)*a,(le+ie)*y,(ue+ie)*a,(le+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,le*y,(ue-ie)*a,(le+re)*y,(ue-re)*a,(le+ie)*y));var re=.05,ie=me*.05,ue=.375,le=.95,te=new go.PathFigure((ue-re)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-re)*y,(ue-re)*a,(le-ie)*y,(ue-ie)*a,(le-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,le*y,(ue+ie)*a,(le-re)*y,(ue+re)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+re)*y,(ue+re)*a,(le+ie)*y,(ue+ie)*a,(le+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,le*y,(ue-ie)*a,(le+re)*y,(ue-re)*a,(le+ie)*y));var re=.05,ie=me*.05,ue=.625,le=.95,oe=new go.PathFigure((ue-re)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-re)*y,(ue-re)*a,(le-ie)*y,(ue-ie)*a,(le-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,le*y,(ue+ie)*a,(le-re)*y,(ue+re)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+re)*y,(ue+re)*a,(le+ie)*y,(ue+ie)*a,(le+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,le*y,(ue-ie)*a,(le+re)*y,(ue-re)*a,(le+ie)*y));var re=.05,ie=me*.05,ue=.825,le=.95,Be=new go.PathFigure((ue-re)*a,le*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-re)*y,(ue-re)*a,(le-ie)*y,(ue-ie)*a,(le-re)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,le*y,(ue+ie)*a,(le-re)*y,(ue+re)*a,(le-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+re)*y,(ue+re)*a,(le+ie)*y,(ue+ie)*a,(le+re)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,le*y,(ue-ie)*a,(le+re)*y,(ue-re)*a,(le+ie)*y).close());var xe=new go.PathFigure(0,y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},13547: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 Ge={},ut="5.0",ge={},ae=null,Pe=!1,qe=!1,_e=null,ce=!1,We=null,me=null,Ve=0;Ve<arguments.length;Ve++){var Ie=arguments[Ve];if(Ie!==null)switch(typeof Ie){case"number":ut=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?ut=Ie:_e=Ie;break;case"object":typeof Ie.is3D!="undefined"?ae=Ie:ge=Ie;break;case"boolean":Pe=Ie,qe=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!qe&&(Pe=!0)),_e!==null&&ge.id===void 0&&(ge.id=_e);var Te="",ke="",ze=!1,De=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Ge.setHTML5Codebase=function(ye,Ce){me=ye,nt(ye,Ce)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(ye,Ce){var Ue=parseFloat(ye);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}We=ye,tt(ye,Ce)},Ge.getHTML5CodebaseVersion=function(){return ne},Ge.getParameters=function(){return ge},Ge.setFontsCSSURL=function(ye){z=ye},Ge.setGiacJSURL=function(ye){},Ge.setJNLPFile=function(ye){Te=ye},Ge.setJNLPBaseDir=function(ye){},Ge.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Ue=ge.id,ht,Ze=!1,it=0;it<arguments.length;it++){var de=arguments[it];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:Ue=arguments[it]):typeof de=="boolean"?Ze=de:de instanceof HTMLElement&&(ht=de)}rt();function rt(){if(!ce){setTimeout(rt,200);return}Ce=et(Ce);var Nt=ht||document.getElementById(Ue);if(!Nt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(Nt,!1),ge.width===void 0&&Nt.clientWidth&&(ge.width=Nt.clientWidth),ge.height===void 0&&Nt.clientHeight&&(ge.height=Nt.clientHeight),!(ge.width&&ge.height)&&Ce==="html5"&&(delete ge.width,delete ge.height),De=Ce,Ce==="screenshot")Mt(Nt,ge);else{var Wt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Wt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Wt=(!oe()||ye())&&re()),Wt?(De="screenshot",be(Nt,ge,Ze,Ce)):mt(Nt,ge,Ze)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ae},Ge.isJavaInstalled=function(){return!1};var ie=function(ye){var Ce=function(it){var de=JSON.parse(it),rt=function(Dt){return Dt.type=="G"||Dt.type=="E"},Nt=de.elements?de.elements.filter(rt)[0]:de;if(!Nt||!Nt.url){Ue();return}ge.fileName=Nt.url,ue(Nt.settings||{}),ae.is3D=!0;var Wt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||Nt.previewUrl,Wt+"GeoGebra_loading.png",Wt+"applet_play.png"),ye()},Ue=function(){ge.onError&&ge.onError(),Ye("Error: Fetching material (id "+ge.material_id+") failed.",ge)},ht=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ze="/materials/"+ge.material_id+"?scope=basic";le("https://"+ht+"/api/proxy.php?path="+encodeURIComponent(Ze),Ce,Ue)};function ue(ye){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ue){ye[Ue]=!!ye[Ue]}),Ce.forEach(function(Ue){ge[Ue]===void 0&&ye[Ue]!==void 0&&(ge[Ue]=ye[Ue])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function le(ye,Ce,Ue){var ht=new XMLHttpRequest;ht.open("GET",ye),ht.onload=function(){Ce(ht.responseText)},ht.onerror=Ue,ht.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return De},Ge.setPreviewImage=function(ye,Ce,Ue){E=ye,b=Ce,x=Ue},Ge.removeExistingApplet=function(ye,Ce){var Ue;typeof ye=="string"&&(ye=document.getElementById(ye)),De=null;var ht=null;for(Ue=0;Ue<ye.childNodes.length;Ue++){var Ze=ye.childNodes[Ue],it=Ze.className;it==="applet_screenshot"?Ce?(Ze.style.display="block",De="screenshot"):Ze.style.display="none":it!=="applet_scaler prerender"&&(ye.removeChild(Ze),ht=it&&it.indexOf("appletParameters")!=-1?Ze.id:null,Ue--)}var de=ge.id!==void 0?ge.id:ht,rt=window[de];rt&&typeof rt.getBase64=="function"&&(rt.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Ge.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var ye=Ge.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Ge.stopAnimation=function(){var ye=Ge.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},Ge.resize=function(){};var Be=function(ye,Ce,Ue){var ht=document.createElement("param");ht.setAttribute("name",Ce),ht.setAttribute("value",Ue),ye.appendChild(ht)},xe=function(ye){return ye&&ye!=="false"},mt=function(ye,Ce,Ue){te(ne)<=4.2&&(Ue=!0);var ht=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ht=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var it=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ne)<=4.4)xe(Ce.showToolBar)&&(Ce.height-=7),xe(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&xe(Ce.showToolBar)&&(Ce.width=605,it=605);else{var rt=100;(xe(Ce.showToolBar)||xe(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),rt=xe(Ce.showMenuBar)?245:155),it<rt&&(Ce.width=rt,it=rt)}Ze.style.border="none",Ze.style.display="inline-block";for(var Nt in Ce)Ce.hasOwnProperty(Nt)&&Nt!=="appletOnLoad"&&Ze.setAttribute("data-param-"+Nt,Ce[Nt]);z&&Ze.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(ye,Ce)},window.addEventListener("resize",function(Lt){Ge.resize()});var Wt=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!Ue&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||Ze.setAttribute("data-param-showSplash","false");var Dt=ye.querySelector(".applet_scaler.prerender"),we=Dt!==null;if(we)var Le=Dt.querySelector(".ggb_preview");else{var Le=ot(it,de,Ce.borderColor,!1);Dt=document.createElement("div"),Dt.className="applet_scaler",Dt.style.position="relative",Dt.style.display="block",Dt.style.width=it+"px",Dt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),te(ne)>=5?(Ce.appletOnLoad=function(Lt){var vt=ye.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Dt),window.GGBT_wsf_view&&$(window).trigger("resize"),Wt(Lt)},we||Dt.appendChild(Le)):Ze.appendChild(Le),Dt.appendChild(Ze),we||ye.appendChild(Dt),setTimeout(function(){Ge.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Ze),ye.appendChild(he),Ce.appletOnLoad=function(Lt){Ge.resize(),Wt(Lt)}}function Re(Lt,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Lt,vt.appletOnLoad):renderGGBElement(Lt),Ye("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function Ne(Lt,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Lt,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Re(en.article,en.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Lt.className+=" geogebraweb")):Re(Lt,vt)}if(ht){scriptLoadStarted=!0;for(var lt=0;lt<Ze.childNodes.length;lt++){var yt=Ze.childNodes[lt].tagName;yt==="TABLE"&&(Ze.removeChild(Ze.childNodes[lt]),lt--)}if(ggbHTML5LoadedScript!==null){var xt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');xt!=null&&xt.parentNode.removeChild(xt)}var Tt=document.createElement("script"),Rt=function(){Ne(Ze,Ce)};Tt.src=ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Tt.src,Ye("GeoGebra HTML5 codebase loaded: '"+ke+"'.",Ce),!me&&(!We||We=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):ke.requirejs?__webpack_require__.e(8366).then(function(){var Lt=[__webpack_require__(18366)];Rt.apply(null,Lt)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=Rt,ye.appendChild(Tt))}else Ne(Ze,Ce);Ce.height=de,Ce.width=it},Mt=function(ye,Ce,Ue){var ht=ot(Ce.width,Ce.height,Ce.borderColor,Ue),Ze=document.createElement("div");Ze.style.position="relative",Ze.style.display="block",Ze.style.width=Ce.width+"px",Ze.style.height=Ce.height+"px",Ze.className="applet_screenshot applet_scaler"+(Ue?" applet_screenshot_play":""),Ze.appendChild(ht);var it=GGBAppletUtils.getScale(Ce,ye,Ue);Ue?(ye.appendChild(Qe()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ze,"66%"),ye.appendChild(Ze),it!==1&&!isNaN(it)&&(GGBAppletUtils.scaleElement(Ze,it),Ze.style.width=Ce.width+"px",Ze.style.height=Ce.height+"px",Ze.parentNode.style.width=Ce.width*it+"px",Ze.parentNode.style.height=Ce.height*it+"px"),Ge.resize=function(){Ut(ye,ht,Ze,Ue)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function Ut(ye,Ce,Ue,ht){if(ye.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Ze=GGBAppletUtils.getScale(ge,ye,ht);Ue.parentNode!==null&&(!isNaN(Ze)&&Ze!==1?(GGBAppletUtils.scaleElement(Ue,Ze),Ue.parentNode.style.width=ge.width*Ze+"px",Ue.parentNode.style.height=ge.height*Ze+"px"):(GGBAppletUtils.scaleElement(Ue,1),Ue.parentNode.style.width=ge.width+"px",Ue.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(ye,Ce){Ce.appendChild(ye)};var be=function(ye,Ce,Ue,ht){Mt(ye,Ce,!0);for(var Ze=function(){var rt=[];for(de=0;de<ye.childNodes.length;de++)rt.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Nt=window.GGBT_wsf_view.renderFullScreen(ye,Ce.id),Wt=document.getElementById("fullscreencontainer"),Dt=jQuery(ye).find(".fullscreencontent");Dt.length>0?(Nt.remove(),Dt.attr("id","fullscreencontent").show(),jQuery(Wt).append(Dt),window.dispatchEvent(new Event("resize"))):mt(Nt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(Wt)}else De=ht,mt(ye,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<rt.length;de++)ye.removeChild(rt[de])},it=ye.getElementsByClassName("ggb_preview_play"),de=0;de<it.length;de++)it[de].addEventListener("click",Ze,!1),it[de].addEventListener("ontouchstart",Ze,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.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");}',Ue=document.createElement("style");Ue.styleSheet?Ue.styleSheet.cssText=Ce:Ue.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(Ue)}return ye},ot=function(ye,Ce,Ue,ht){var Ze=document.createElement("div");Ze.className="ggb_preview",Ze.style.position="absolute",Ze.style.zIndex="90",Ze.style.width=ye-2+"px",Ze.style.height=Ce-2+"px",Ze.style.top="0px",Ze.style.left="0px",Ze.style.overflow="hidden",Ze.style.backgroundColor="white";var it="lightgrey";Ue!==void 0&&(Ue==="none"?it="transparent":it=Ue),Ze.style.border="1px solid "+it;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var rt,Nt,Wt;if(!ht){rt=document.createElement("img"),rt.style.position="absolute",rt.style.zIndex="1001",rt.style.opacity=1,de.style.opacity=.3,Nt=360,Nt>ye/4*3&&(Nt=ye/4*3),Wt=Nt/5.8,rt.setAttribute("src",b),rt.setAttribute("width",Nt),rt.setAttribute("height",Wt);var Dt=(ye-Nt)/2,we=(Ce-Wt)/2;rt.style.left=Dt+"px",rt.style.top=we+"px",Ze.appendChild(rt)}}return Ze.appendChild(de),Ze},et=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],tt=function(ye,Ce){if(ne=ye,Ce){nt(ne,!0);return}var Ue=!Pe;if(Ue){var ht=te(ne);!isNaN(ht)&&ht<4.4&&(Ue=!1)}var Ze,it;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ne.indexOf("//");de>0?it=ne:de===0?it=Ze+ne:it="https://www.geogebra.org/apps/5.2.814.0/";for(var rt in gt)if(ne.slice(gt[rt].length*-1)===gt[rt]||ne.slice((gt[rt].length+1)*-1)===gt[rt]+"/"){nt(it,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!xe(ge.showToolBar)&&!xe(ge.showMenuBar)&&!xe(ge.showAlgebraInput)&&!xe(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?it+="webSimple/":it+="web3d/",nt(it,!1)},nt=function(ye,Ce){if(ye.requirejs){ke=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),ke=ye,Ce===null&&(Ce=ye.indexOf("http")===-1),ze=Ce,a="web.nocache.js",y=!1;var Ue=ke.split("/");Ue.length>1&&(!Ce&&Ue[Ue.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(Ue[Ue.length-2])>=0&&(a=Ue[Ue.length-2]+".nocache.js")),Ue=ye.split("/"),ne=Ue[Ue.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 ht=parseFloat(ne);ht!==NaN&&ht<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead."),tt("5.0",Ce))},Ye=function(ye,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(Xt):Xt();function Xt(){var ye=ut;We!==null?ye=We:parseFloat(ye)<5&&(ye="5.0"),tt(ye,!1),me!==null&&nt(me,ze),ce=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function ut(ce,We){We!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+We+","+We+")",ce.style.webkitTransform="scale("+We+","+We+")",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 ge(ce,We,me,Ve,Ie,Te){var ke=null;if(Te!=null&&Te!="")for(var ze=ce.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+Te+" ")>-1){ke=ze;break}else ze=ze.parentNode;var De=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ke)De=ke.offsetWidth,ne=Math.max(Ve?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=De):(De=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=De&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(E=De-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)&&We>0&&We+y<De?De=We:De-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:De,height:ne}}function ae(ce,We,me,Ve,Ie){if(ce.isScreenshoGenerator)return 1;var Te=Ve!==void 0&&Ve,ke=ce.noScaleMargin!=null&&ce.noScaleMargin,ze=function(ee){return ee&&ee!=="false"},De=ze(ce.autoHeight),ne=ge(We,ce.width,me,De,Te&&window.GGBT_wsf_view||ke,Ie),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=We.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(ce,We,me){var Ve=1,Ie,Te=!1;if(ce.hasOwnProperty("allowUpscale")&&(Te=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ve=parseFloat(ce.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(Te=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ie=ae(ce,We,Te,me,ce.scaleContainerClass);else return Ve;return Te&&(!ce.hasOwnProperty("scale")||Ve===1)?Ie:Math.min(Ve,Ie)}function qe(ce){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=ce.getBoundingClientRect(),Ie=(We-Ve.width)/2,Te=(me-Ve.height)/2;Te<0&&(Te=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?ce.style.left="40px":ce.style.left=Ie+"px",ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ce.style.top="40px":ce.style.top=Te+"px",ce.style.left=Ie+"px")}function _e(ce,We){var me=ce.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ve=Pe(We,ce);Ge()&&me.setAttribute("data-param-scale",Ve);for(var Ie=null,Te=0;Te<ce.childNodes.length;Te++)if(ce.childNodes[Te].className!==void 0&&ce.childNodes[Te].className.match(/^applet_scaler/)){Ie=ce.childNodes[Te];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var ke=We.id!==void 0?We.id:"ggbApplet",ze=window[ke];(ze==null||!ze.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(Ie.parentNode.style.width=We.width*Ve+"px",Ie.parentNode.style.height=We.height*Ve+"px",ut(Ie,Ve)):(ut(Ie,1),Ie.parentNode.style.width=We.width+"px",Ie.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&qe(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:Ge,positionCenter:qe,getScale:Pe,scaleElement:ut}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,ut){}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(Ge){var ut=s[L].bindings;s[L].bindings=function(){for(var ge=ut?ut():{},ae=Ge[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var qe=ae[Pe];ge[qe[O]]=qe[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ut=document.compatMode==U?V:W;t.write(ut+X),t.close()}}}function w(Ge){function ut(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var qe=Pe();if(qe){ae();return}function _e(){if(!qe){if(!Pe())return;qe=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var ce=setInterval(function(){_e()},$)}function ge(ae){var Pe=u(),qe=Pe.body,_e=Pe.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=ae,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),qe.appendChild(_e)}ut(function(){ge(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var ut=u(),ge=ut.body,ae=ut.createElement(_);ae.language=ab,ae.text=Ge,ge.appendChild(ae),ge.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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var ut=c[Ge];return ut==null?null:ut},r=d,webModule.__errFn=e}function B(){function Ge(ce){var We=ce.lastIndexOf(rb);We==-1&&(We=ce.length);var me=ce.indexOf(sb);me==-1&&(me=ce.length);var Ve=ce.lastIndexOf(tb,Math.min(me,We));return Ve>=O?ce.substring(O,Ve+P):W}function ut(ce){if(!ce.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=ce+vb,ce=Ge(We.src)}return ce}function ge(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),We=O;We<ce.length;++We)if(ce[We].src.indexOf(xb)!=-1)return Ge(ce[We].src);return W}function Pe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function qe(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var _e=ge();return _e==W&&(_e=ae()),_e==W&&(_e=Pe()),_e==W&&qe()&&(_e=Ge(o.location.href)),_e=ut(_e),_e}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],ut=O,ge=[],ae=[];function Pe(ce){var We=ae[ce](),me=ge[ce];if(We in me)return We;var Ve=[];for(var Ie in me)Ve[me[Ie]]=Ie;throw r&&r(ce,Ve,We),null}if(__gwt_isKnownPropertyValue=function(ce,We){return We in ge[ce]},webModule.__getPropMap=function(){var ce={};for(var We in ge)ge.hasOwnProperty(We)&&(ce[We]=Pe(We));return ce},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var qe;try{qe=Cb;var _e=qe.indexOf(Db);_e!=-1&&(ut=parseInt(qe.substring(_e+P),$),qe=qe.substring(O,_e))}catch(ce){}return webModule.__softPermutationId=ut,C(qe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},5862:function(Ge,ut,ge){"use strict";ge.d(ut,{Ax:function(){return _e},Ds:function(){return ce},KI:function(){return me},SI:function(){return qe},f1:function(){return Pe}});var ae=ge(41510);function Pe(Ve){let Ie=!0;if(Ve.length>0){for(let Te=0;Te<Ve.length;Te++)if(Ve[Te].compile_success==0||!Ve[Te].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function qe(Ve,Ie=""){let Te=[];for(let ke=0;ke<Ve.length;ke++){let ze=Ve[ke],De=Ie?`${Ie}/${ze.name}`:`${ze.name}`;Te.push({title:ze.name,type:ze.type,isLeaf:ze.type!=="tree",key:De})}return Te}function _e(Ve,Ie,Te){for(let ke=0;ke<Ve.length;ke++){let ze=Ve[ke];if(ze.key===Ie){ze.children=Te;break}ze.children&&_e(ze.children,Ie,Te)}return Ve}function ce(Ve,Ie,Te){let ke;return function(){let ze=this,De=arguments,ne=function(){ke=null,Te||Ve.apply(ze,De)},a=Te&&!ke;clearTimeout(ke),ke=setTimeout(ne,Ie),a&&Ve.apply(ze,De)}}const We=!0,me=ae.Z.API_SERVER},94094:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return ke}});var ae=ge(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},qe=ge(92310),_e=ge.n(qe),ce=ge(71418),We=ge(2859),me=ge(23789),Ve=ge(21331),Ie=(ze,De,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(ze,De)).next())}),ke=({data:ze,className:De,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ue,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&Be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ze==null?void 0:ze.visible]);const Be=()=>Ie(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ve.ZJ)(ze==null?void 0:ze.src);z.current.src="",z.current.src=be,z.current.onload=function(){Ut()},ie(!1),le("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},mt=be=>Ie(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:be.dataUrl}});Qe!=null&&Qe.id&&!x?(yield(0,me.ZP)(`/api/attachments/${ze.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=" ",ie(!1),le("")}),Mt=()=>{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(ot=>{const et=document.querySelector(ot.name);et&&et.setAttribute("title",ot.title)})},Ut=()=>{ee.current=new We.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",mt),ee.current.addEventListener("beforeclose",xe),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(),ze!=null&&ze.snapshotData&&ee.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Mt()},300)};return ae.createElement(ae.Fragment,null,(ze==null?void 0:ze.visible)&&ae.createElement(ce.Z,{spinning:re,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(Pe.imageDimensions,De,ne?Pe.fullWidth:""),style:a},ae.createElement("img",{className:Pe.img,ref:z}))))}},29386:function(Ge,ut,ge){"use strict";var ae=ge(59301),Pe=ge(95237),qe=ge(43604),_e=ge(99313),ce=ge(3113),We=ge(28900),me=ge(14973),Ve=ge(48136),Ie=ge(59301);const Te=(0,ae.forwardRef)(({callback:ke,showSaveButton:ze,value:De=""},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:Ie.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ie.createElement(qe.Z,{flex:"110px",className:me.Z.item},Ie.createElement("div",null,Ie.createElement(We.Z,{value:`$$${ee.value}$$`}),ee.name),Ie.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Ie.createElement("div",{key:re},Ie.createElement("h1",null,oe.name),Ie.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Ie.createElement(qe.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Ie.createElement(We.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ie.createElement(qe.Z,{flex:"110px",className:me.Z.item},Ie.createElement("div",null,Ie.createElement(We.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ie.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Ie.createElement("div",{key:re},oe.name&&Ie.createElement("h1",null,oe.name),Ie.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Ie.createElement(qe.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Ie.createElement(We.Z,{value:"`$$"+ie.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})),Ie.createElement("div",{className:me.Z.mathWrap},Ie.createElement(_e.default,{defaultActiveKey:"1",items:x}),Ie.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}},De||""),ze&&Ie.createElement("div",{className:me.Z.button},Ie.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ut.Z=Te},26985:function(Ge,ut,ge){"use strict";ge.d(ut,{z:function(){return et},Z:function(){return gt}});var ae=ge(59301),Pe=ge(54580),qe=ge(8591),_e=ge(43418),ce=ge(3113),We=ge(41510),me=ge(53607),Ve=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ze=(tt,nt,Ye)=>nt in tt?Ve(tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):tt[nt]=Ye,De=(tt,nt)=>{for(var Ye in nt||(nt={}))Te.call(nt,Ye)&&ze(tt,Ye,nt[Ye]);if(Ie)for(var Ye of Ie(nt))ke.call(nt,Ye)&&ze(tt,Ye,nt[Ye]);return tt},ne=(tt,nt,Ye)=>new Promise((Xt,ye)=>{var Ce=Ze=>{try{ht(Ye.next(Ze))}catch(it){ye(it)}},Ue=Ze=>{try{ht(Ye.throw(Ze))}catch(it){ye(it)}},ht=Ze=>Ze.done?Xt(Ze.value):Promise.resolve(Ze.value).then(Ce,Ue);ht((Ye=Ye.apply(tt,nt)).next())});const a="\u3000\u3000";function y(tt){var nt=["Bytes","KB","MB","GB","TB"];if(tt==0)return"0 Byte";var Ye=parseInt(""+Math.floor(Math.log(tt)/Math.log(1024)),10);return(tt/Math.pow(1024,Ye)).toFixed(1)+" "+nt[Ye]}var E=({value:tt=[],action:nt,onChange:Ye,className:Xt,maxSize:ye=150,title:Ce="\u6587\u4EF6\u4E0A\u4F20",accept:Ue=null})=>{const ht={multiple:!1,fileList:tt,accept:Ue,withCredentials:!0,beforeUpload:it=>it.size/1024/1024<ye?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ye}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(it){var de,rt,Nt,Wt;let Dt=[...it.fileList];if(Dt=Dt.map(we=>(we.name.indexOf(a)===-1&&(we.name=`${we.name}${a}${y(we.size)}`),De({},we))),it.file.status==="done"&&((rt=(de=it.file)==null?void 0:de.response)==null?void 0:rt.status)===-1){message.error((Wt=(Nt=it.file)==null?void 0:Nt.response)==null?void 0:Wt.message),Ye([]);return}Ye(Dt)},onRemove:it=>ne(void 0,null,function*(){const de=it.size/1024/1024;return it.status==="uploading"?!0:de<ye&&(it.response?it.response.id:it.uid)?yield removeAttachment(it.response?it.response.id:it.id):!0})};function Ze(it){it.preventDefault(),it.stopPropagation()}return React.createElement("div",{className:`single-upload ${Xt||""}`},React.createElement(Upload,De({},ht),React.createElement(Button,{type:"primary",title:tt.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:tt.length>0,ghost:!0},Ce),React.createElement("span",{onClick:Ze,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ye,"M)"," ")))},b=ge(61481),x=ge(78267),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,re=(tt,nt,Ye)=>nt in tt?z(tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):tt[nt]=Ye,ie=(tt,nt)=>{for(var Ye in nt||(nt={}))te.call(nt,Ye)&&re(tt,Ye,nt[Ye]);if(ee)for(var Ye of ee(nt))oe.call(nt,Ye)&&re(tt,Ye,nt[Ye]);return tt};const ue=tt=>React.createElement("svg",ie({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},tt),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=",Be=Object.defineProperty,xe=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ut=(tt,nt,Ye)=>nt in tt?Be(tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):tt[nt]=Ye,be=(tt,nt)=>{for(var Ye in nt||(nt={}))mt.call(nt,Ye)&&Ut(tt,Ye,nt[Ye]);if(xe)for(var Ye of xe(nt))Mt.call(nt,Ye)&&Ut(tt,Ye,nt[Ye]);return tt},Qe=(tt,nt,Ye)=>new Promise((Xt,ye)=>{var Ce=Ze=>{try{ht(Ye.next(Ze))}catch(it){ye(it)}},Ue=Ze=>{try{ht(Ye.throw(Ze))}catch(it){ye(it)}},ht=Ze=>Ze.done?Xt(Ze.value):Promise.resolve(Ze.value).then(Ce,Ue);ht((Ye=Ye.apply(tt,nt)).next())});const{Dragger:ot}=Pe.default;function et(tt){let nt=[];return tt&&tt.length>0&&(nt=tt.map(Ye=>({uid:Ye.id,id:Ye.id,name:Ye.title+a+Ye.filesize,url:Ye.url,filesize:Ye.filesize,status:"done",response:{id:Ye.id}}))),nt}var gt=({value:tt,onChange:nt,action:Ye,data:Xt,className:ye,maxSize:Ce=150,title:Ue="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ht=!1,accept:Ze="",additionalText:it,isDragger:de,number:rt=1e3,aloneClear:Nt=!1,realTimeRemove:Wt=!0,uploadText:Dt,setFileProgress:we,showFileProgress:Le})=>{const[he,Re]=(0,ae.useState)(!1);let[Ne,lt]=(0,ae.useState)(tt||[]),[yt,xt]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{tt&&(yt===1&&lt([...tt]),xt(2),rt===(tt==null?void 0:tt.length)&&Re(!0))},[tt]);const Tt=()=>{setTimeout(()=>{Ne.pop(),lt([...Ne])},500)};Le&&we(Ne.some(vt=>vt.status==="uploading"));const Rt={multiple:!0,disabled:he,accept:Ze,withCredentials:!0,fileList:Ne,beforeUpload:(vt,en)=>{const gn=vt.size/1024/1024;return Ne.concat(en).length>rt?(Ne.pop(),lt([...Ne]),qe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${rt}\u4E2A\u6587\u4EF6`),Nt?Promise.reject():(Tt(),!1)):gn<Ce?!0:(qe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ce}MB).`),Nt?Promise.reject():(Tt(),!1))},data:Xt,action:Ye||`${We.Z.API_SERVER}/api/attachments.json`,onChange(vt){var en,gn,mn,Jt;if(vt.file.status==="removed"?Ne=vt.fileList:Ne=(0,x.uniqBy)([...vt.fileList,...Ne],"uid"),vt.file.status==="done"&&((gn=(en=vt.file)==null?void 0:en.response)==null?void 0:gn.status)===-1){qe.ZP.error((Jt=(mn=vt.file)==null?void 0:mn.response)==null?void 0:Jt.message);return}Ne.length>=rt?Re(!0):Re(!1),lt([...Ne]),Ne=Ne.map(jt=>{var fe,Ee;return(fe=jt==null?void 0:jt.response)!=null&&fe.id&&(jt.url=(Ee=jt==null?void 0:jt.response)==null?void 0:Ee.url),jt.name.indexOf(a)===-1&&(jt.name=`${jt.name}${a}${y(jt.size)}`),be({},jt)}),console.log("info:",vt,Ne),nt(Ne)},onRemove:vt=>Qe(void 0,null,function*(){if(!Wt)return!0;const en=()=>Qe(void 0,null,function*(){if(vt.response?vt.response.id:vt.id){let mn=yield(0,me.JZ)(vt.response?vt.response.id:vt.uid);return Promise.resolve(mn)}else return!0});return ht?new Promise((gn,mn)=>{_e.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 Jt=yield en();qe.ZP.success("\u5220\u9664\u6210\u529F"),gn(!0)}),onCancel:()=>gn(!1)})}):yield en()})};function Lt(vt){vt.preventDefault(),vt.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${ye||""}`},de&&ae.createElement(ot,be({},Rt),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",Ce,"MB)"," "),it),!de&&ae.createElement(Pe.default,be({},Rt),ae.createElement(ce.ZP,{disabled:he,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:le}),Ue),ae.createElement("span",{onClick:Lt,className:"upload_text"},Dt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ce}MB)`)))}},8738:function(Ge,ut,ge){"use strict";ge.d(ut,{h:function(){return ee}});var ae=ge(59301),Pe=ge(57809),qe=ge(78241),_e=ge(3113),ce=ge(89780),We=ge.n(ce),me=ge(42741),Ve=ge(27494),Ie=Object.defineProperty,Te=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Ie(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))De.call(oe,re)&&a(te,re,oe[re]);if(ze)for(var re of ze(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},E=(te,oe)=>Te(te,ke(oe));const b=Pe.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"]};ut.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ue(Be){ie(z[Be][1])}function le(Be){te(Be)}return ae.createElement(qe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:Be=>Be.parentNode,onChange:ue},Object.keys(z).map(Be=>ae.createElement(b,{key:Be,value:Be},z[Be][0])))),ae.createElement(qe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ue=(0,ae.useRef)(),[le,Be]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let xe=function(mt){const Mt=mt.getValue();oe&&oe(Mt)};return le.on("change",xe),()=>{le.off("change",xe)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",re)},[le,re]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(ue.current&&!le){const xe=We().fromTextArea(ue.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Be(xe)}},[ue.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},37962:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Jn}});var ae=ge(59301),Pe=ge(89780),qe=ge.n(Pe),_e=ge(76374),ce=ge(42741),We=ge(6313),me=ge(25717),Ve=ge(99498),Ie=ge(25419),Te=ge(67549),ke=ge(28900),ze=({value:pe="",className:ve,showTextOnly:Se,showLines:dt,style:Et={}})=>{const bt=(0,ae.useMemo)(()=>"",[pe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:bt}}))},De=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(pe,ve,Se)=>ve in pe?ne(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):pe[ve]=Se,ee=(pe,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(pe,Se,ve[Se]);if(E)for(var Se of E(ve))x.call(ve,Se)&&z(pe,Se,ve[Se]);return pe},te=(pe,ve)=>a(pe,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:pe,title:ve,icon:Se,actionName:dt,className:Et="",children:bt}){function ln(){pe(dt)}return De.createElement("a",{title:ve,className:Et,onClick:ln},De.createElement("i",{className:`${Se}`}),bt)}var ie=({watch:pe,showNullButton:ve,showNullProgramButton:Se,onActionCallback:dt,fullScreen:Et,insertTemp:bt,hidetoolBar:ln,extraUse:kt})=>{const Qt=[...oe,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return De.createElement("ul",{className:"markdown-toolbar-container"},!ln&&Qt.map((Ln,kn)=>De.createElement("li",{key:kn},Ln.actionName?De.createElement(re,te(ee({},Ln),{onActionCallback:dt})):De.createElement("span",{className:"v-line"}))),ve?De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},De.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?De.createElement(De.Fragment,null,De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},De.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},De.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bt&&De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bt}`,onActionCallback:dt},De.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),kt&&De.createElement("li",null,kt),De.createElement("li",{className:"btn-full-screen"},De.createElement(re,{icon:`${Et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},ue=ge(23252),le=ge(78241),Be=ge(92832),xe=ge(3113),mt=Object.defineProperty,Mt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,et=(pe,ve,Se)=>ve in pe?mt(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):pe[ve]=Se,gt=(pe,ve)=>{for(var Se in ve||(ve={}))Qe.call(ve,Se)&&et(pe,Se,ve[Se]);if(be)for(var Se of be(ve))ot.call(ve,Se)&&et(pe,Se,ve[Se]);return pe},tt=(pe,ve)=>Mt(pe,Ut(ve));const nt={labelCol:{span:4},wrapperCol:{span:20}};var Ye=({callback:pe,onCancel:ve})=>{function Se(dt){pe(dt)}return ae.createElement(le.default,tt(gt({},nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,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(Be.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(Be.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(xe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Xt=ge(8738),ye=ge(30315),Ce=ge(43418),Ue=ge(95237),ht=ge(94094),Ze=ge(59301),it=({callback:pe,onCancel:ve})=>{const Se=document.createElement("canvas"),dt=Se.getContext("2d");Se.width=1e3,Se.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,Se.width,Se.height);const Et=Se.toDataURL("image/png");return Ze.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(Ue.Z,{style:{height:"100vh"}},Ze.createElement(ht.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Et,visible:!0,title:String(Date.now())},onOk:bt=>{pe({src:bt.url})},onClose:ve})))},de=ge(12378);function rt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(rt,go.CommandHandler),rt.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},rt.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var ve=1/0;pe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),pe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),pe.commitTransaction("aligning left")},rt.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var ve=-1/0;pe.selection.each(function(Se){if(!(Se instanceof go.Link)){var dt=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(dt,ve)}}),pe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),pe.commitTransaction("aligning right")},rt.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var ve=1/0;pe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),pe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),pe.commitTransaction("alignTop")},rt.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var ve=-1/0;pe.selection.each(function(Se){if(!(Se instanceof go.Link)){var dt=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(dt,ve)}}),pe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),pe.commitTransaction("aligning bottom")},rt.prototype.alignCenterX=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;pe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(Se-dt.actualBounds.width/2,dt.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},rt.prototype.alignCenterY=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;pe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,Se-dt.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},rt.prototype.alignColumn=function(pe){var ve=this.diagram;ve.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var Se=new Array;ve.selection.each(function(kt){kt instanceof go.Link||Se.push(kt)});for(var dt=0;dt<Se.length-1;dt++){var Et=Se[dt],bt=Et.actualBounds.y+Et.actualBounds.height+pe,ln=Se[dt+1];ln.move(new go.Point(Et.actualBounds.x,bt))}ve.commitTransaction("align Column")},rt.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(kt){kt instanceof go.Link||Se.push(kt)});for(var dt=0;dt<Se.length-1;dt++){var Et=Se[dt],bt=Et.actualBounds.x+Et.actualBounds.width+pe,ln=Se[dt+1];ln.move(new go.Point(bt,Et.actualBounds.y))}ve.commitTransaction("align Row")},rt.prototype.canRotate=function(pe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},rt.prototype.rotate=function(pe){pe===void 0&&(pe=90);var ve=this.diagram;ve.startTransaction("rotate "+pe.toString());var ve=this.diagram;ve.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=pe)}),ve.commitTransaction("rotate "+pe.toString())},rt.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var ve=new go.Map;pe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var dt=0;Se.parts.each(function(Et){if(!Et.isSelected){var bt=Et.zOrder;isNaN(bt)?Et.zOrder=0:dt=Math.max(dt,bt)}}),ve.set(Se,dt)}),pe.selection.each(function(Se){rt._assignZOrder(Se,ve.get(Se.layer)+1)}),pe.commitTransaction("pullToFront")},rt.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var ve=new go.Map;pe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var dt=0;Se.parts.each(function(Et){if(!Et.isSelected){var bt=Et.zOrder;isNaN(bt)?Et.zOrder=0:dt=Math.min(dt,bt)}}),ve.set(Se,dt)}),pe.selection.each(function(Se){rt._assignZOrder(Se,ve.get(Se.layer)-1-rt._findGroupDepth(Se))}),pe.commitTransaction("pushToBack")},rt._assignZOrder=function(pe,ve,Se){Se===void 0&&(Se=pe),pe.layer===Se.layer&&(pe.zOrder=ve),pe instanceof go.Group&&pe.memberParts.each(function(dt){rt._assignZOrder(dt,ve+1,Se)})},rt._findGroupDepth=function(pe){if(pe instanceof go.Group){var ve=0;return pe.memberParts.each(function(Se){ve=Math.max(ve,rt._findGroupDepth(Se))}),ve+1}else return 0},rt.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var ve=pe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},rt.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(ve){pe.push(ve)}),this.diagram.parts.each(function(ve){pe.push(ve)}),pe},rt.prototype._arrowKeyMove=function(){var pe=this.diagram,ve=pe.lastInput,Se=0,dt=0;if(ve.control||ve.meta)Se=1,dt=1;else if(pe.grid!==null){var Et=pe.grid.gridCellSize;dt=Et.width,Se=Et.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(bt){ve.key==="Up"?bt.move(new go.Point(bt.actualBounds.x,bt.actualBounds.y-Se)):ve.key==="Down"?bt.move(new go.Point(bt.actualBounds.x,bt.actualBounds.y+Se)):ve.key==="Left"?bt.move(new go.Point(bt.actualBounds.x-dt,bt.actualBounds.y)):ve.key==="Right"&&bt.move(new go.Point(bt.actualBounds.x+dt,bt.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},rt.prototype._arrowKeySelect=function(){var pe=this.diagram,ve=pe.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:pe.select(Se))},rt.prototype._findNearestPartTowards=function(pe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,dt=this._getAllParts(),Et=1/0,bt=ve,ln=0;ln<dt.length;ln++){var kt=dt[ln];if(kt!==ve&&kt.canSelect()){var Qt=kt.actualBounds.center,Ln=Se.directionPoint(Qt),kn=this._angleCloseness(Ln,pe);if(kn<=45){var at=Se.distanceSquaredPoint(Qt);at*=1+Math.sin(kn*Math.PI/180),at<Et&&(Et=at,bt=kt)}}}return bt},rt.prototype._angleCloseness=function(pe,ve){return Math.min(Math.abs(ve-pe),Math.min(Math.abs(ve+360-pe),Math.abs(ve-360-pe)))},rt.prototype._arrowKeyTree=function(){var pe=this.diagram,ve=pe.selection.first();if(ve instanceof go.Node){var Se=pe.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)pe.commandHandler.canExpandTree(ve)&&pe.commandHandler.expandTree(ve);else{var dt=this._sortTreeChildrenByY(ve).first();dt!==null&&pe.select(dt)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)pe.commandHandler.canCollapseTree(ve)&&pe.commandHandler.collapseTree(ve);else{var Et=ve.findTreeParentNode();Et!==null&&pe.select(Et)}else if(Se.key==="Up"){var Et=ve.findTreeParentNode();if(Et!==null){var bt=this._sortTreeChildrenByY(Et),ln=bt.indexOf(ve);if(ln>0){for(var kt=bt.elt(ln-1);kt!==null&&kt.isTreeExpanded&&!kt.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(kt);kt=Qt.last()}kt!==null&&pe.select(kt)}else pe.select(Et)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var dt=this._sortTreeChildrenByY(ve).first();dt!==null&&pe.select(dt)}else for(;ve!==null;){var Et=ve.findTreeParentNode();if(Et===null)break;var bt=this._sortTreeChildrenByY(Et),ln=bt.indexOf(ve);if(ln<bt.length-1){pe.select(bt.elt(ln+1));break}else ve=Et}var Ln=pe.selection.first();Ln!==null&&pe.scrollToRect(Ln.actualBounds)}},rt.prototype._sortTreeChildrenByY=function(pe){var ve=new go.List().addAll(pe.findTreeChildrenNodes());return ve.sort(function(Se,dt){var Et=Se.location,bt=dt.location;return Et.y<bt.y?-1:Et.y>bt.y?1:Et.x<bt.x?-1:Et.x>bt.x?1:0}),ve},rt.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},rt.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(rt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(rt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var Nt=rt,Wt=ge(64242),Dt=ge(43604),we=ge(23789),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=ge(59301),Re=(pe,ve,Se)=>new Promise((dt,Et)=>{var bt=Qt=>{try{kt(Se.next(Qt))}catch(Ln){Et(Ln)}},ln=Qt=>{try{kt(Se.throw(Qt))}catch(Ln){Et(Ln)}},kt=Qt=>Qt.done?dt(Qt.value):Promise.resolve(Qt.value).then(bt,ln);kt((Se=Se.apply(pe,ve)).next())});function Ne({onCancel:pe,callback:ve}){let Se=(0,ae.useRef)(),dt=(0,ae.useRef)(),Et=(0,ae.useRef)(),bt=(0,ae.useRef)(!1);const ln=(0,ae.useRef)(!1),[kt,Qt]=(0,ae.useState)(0);function Ln(){const at=de.bx.make,qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Se.current=new de.S0(dt.current,{padding:20,grid:at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ke=>{var ft=Ke.diagram.commandHandler.addTopLevelParts(Ke.diagram.selection,!0);ft||Ke.diagram.currentTool.doCancel()},commandHandler:at(Nt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ke=>{var ft=Ke.subject;ft.location=ft.location.copy().snapToGridPoint(Ke.diagram.grid.gridOrigin,Ke.diagram.grid.gridCellSize),setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ke=>{var ft=Ke.subject;setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ke=>{var ft=Ke.parameter.part;ft.invalidateConnectedLinks();var Ct=Ke.subject;Ke.diagram.toolManager.linkingTool.isForwards?Ct.toNode.invalidateConnectedLinks():Ct.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=at(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),at(de.bn,{name:"SHAPE",fill:qt.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")),at(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=at("ToolTip",at(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},at(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),at(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function An(Ke,ft){var Ct=(Pt,Kt)=>{Pt.handled=!0,Pt.diagram.model.commit(Yt=>{var At=Kt.part.adornedPart,Pn=new de.E9().setRectSpot(At.actualBounds,Ke);Pn.subtract(At.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(At.location),Pn.snapToGridPoint(Pt.diagram.grid.gridOrigin,Pt.diagram.grid.gridCellSize);var fn=Yt.copyNodeData(At.data);Yt.setGroupKeyForNodeData(fn,Yt.getGroupKeyForNodeData(At.data)),Yt.addNodeData(fn);var oa={from:At.key,to:Yt.getKeyForNodeData(fn)};Yt.addLinkData(oa);var Qn=Pt.diagram.findNodeForData(fn);Qn.location=Pn,Pt.diagram.select(Qn),setTimeout(()=>{Pt.diagram.commandHandler.editTextBlock()},20)})};return at(de.bn,{figure:ft,alignment:Ke,alignmentFocus:Ke.opposite(),width:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?25:18,height:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(Pt,Kt)=>Kt.fill="dodgerblue",mouseLeave:(Pt,Kt)=>Kt.fill="orange",isActionable:!0,click:Ct,contextClick:Ct})}function Zn(Ke){return at(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:(ft,Ct)=>Ct.fill="dodgerblue",mouseLeave:(ft,Ct)=>Ct.fill="orange",click:(ft,Ct)=>{ft.diagram.commandHandler.showContextMenu(Ct.part.adornedPart)}},Ke||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.Vm,{padding:10}),An(de.z6.Top,"TriangleUp"),An(de.z6.Left,"TriangleLeft"),An(de.z6.Right,"TriangleRight"),An(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Bn(Ke,ft){return(Ct,Pt)=>{Ct.handled=!0,Ct.diagram.model.commit(Kt=>{Kt.set(Pt.part.adornedPart.data,Ke,ft)})}}function se(Ke,ft){return ft||(ft="color"),at(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ke,margin:1,background:"transparent",mouseEnter:(Ct,Pt)=>Pt.stroke="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.stroke="lightgray",click:Bn(ft,Ke),contextClick:Bn(ft,Ke)})}function Oe(){return[at("ContextMenuButton",at(de.s_,"Horizontal",se(qt.white,"fill"),se(qt.beige,"fill"),se(qt.extralightblue,"fill"),se(qt.extralightred,"fill"))),at("ContextMenuButton",at(de.s_,"Horizontal",se(qt.lightgray,"fill"),se(qt.lightgreen,"fill"),se(qt.lightblue,"fill"),se(qt.lightred,"fill")))]}function $e(){return[at("ContextMenuButton",at(de.s_,"Horizontal",se(qt.black),se(qt.green),se(qt.blue),se(qt.red))),at("ContextMenuButton",at(de.s_,"Horizontal",se(qt.white),se(qt.magenta),se(qt.purple),se(qt.orange)))]}function Me(Ke,ft){return ft||(ft="thickness"),at(de.bn,"LineH",{width:16,height:16,strokeWidth:Ke,margin:1,background:"transparent",mouseEnter:(Ct,Pt)=>Pt.background="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.background="transparent",click:Bn(ft,Ke),contextClick:Bn(ft,Ke)})}function Xe(Ke,ft){return ft||(ft="dash"),at(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ke,margin:1,background:"transparent",mouseEnter:(Ct,Pt)=>Pt.background="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.background="transparent",click:Bn(ft,Ke),contextClick:Bn(ft,Ke)})}function Je(){return[at("ContextMenuButton",at(de.s_,"Horizontal",Me(1),Me(2),Me(3),Me(4))),at("ContextMenuButton",at(de.s_,"Horizontal",Xe(null),Xe([2,4]),Xe([4,4])))]}function He(Ke,ft){return ft||(ft="figure"),at(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ke,margin:1,background:"transparent",mouseEnter:(Ct,Pt)=>Pt.fill="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.fill="lightgray",click:Bn(ft,Ke),contextClick:Bn(ft,Ke)})}Se.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(de.s_,"Horizontal",He("Rectangle"),He("RoundedRectangle"),He("Ellipse"),He("Diamond"))),at("ContextMenuButton",at(de.s_,"Horizontal",He("Parallelogram2"),He("ManualOperation"),He("Procedure"),He("Cylinder1"))),at("ContextMenuButton",at(de.s_,"Horizontal",He("Terminator"),He("CreateRequest"),He("Document"),He("TriangleDown"))),Oe(),$e(),Je()),Se.current.groupTemplate=at(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ke,ft)=>{var Ct=ft.addMembers(ft.diagram.selection,!0);Ct||ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),at(de.s_,"Auto",{name:"BODY"},at(de.bn,{parameter1:10,fill:qt.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")),at(de.Vm,{background:"transparent",margin:20})),at(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.s_,"Auto",at(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=at("ContextMenu",Oe(),$e(),Je()),Se.current.linkTemplate=at(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ke=>Ke>=1?10:0),new de.KX("toShortLength","dir",Ke=>Ke>=1?10:0),new de.KX("points").makeTwoWay(),at(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ke=>Ke===1)),at(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ke=>Ke>=1),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),at(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ke=>Ke===2),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),at(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=at(de.uz,at(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ae(2)},new de.KX("pathPattern","thickness",Ae)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ae(Ke){return at(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ke+4).toString()+" H3"})}function $t(Ke){var ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ke===0?ft="M0 0 M16 16 M0 8 L16 8":Ke===2&&(ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(de.bn,{geometryString:ft,margin:2,background:"transparent",mouseEnter:(Ct,Pt)=>Pt.background="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.background="transparent",click:Bn("dir",Ke),contextClick:Bn("dir",Ke)})}function Ot(Ke){var ft=(Ct,Pt)=>{Ct.handled=!0,Ct.diagram.model.commit(Kt=>{var Yt=Pt.part.adornedPart;Kt.set(Yt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ke?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return at(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ct,Pt)=>Pt.background="dodgerblue",mouseLeave:(Ct,Pt)=>Pt.background="transparent",click:ft,contextClick:ft})}function Fe(Ke,ft){var Ct=0,Pt=de.z6.RightSide;Ke.equals(de.z6.Top)?(Ct=270,Pt=de.z6.TopSide):Ke.equals(de.z6.Left)?(Ct=180,Pt=de.z6.LeftSide):Ke.equals(de.z6.Bottom)&&(Ct=90,Pt=de.z6.BottomSide),ft||(Ct-=180);var Kt=(Yt,At)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{var fn=At.part.adornedPart;Pn.set(fn.data,ft?"toSpot":"fromSpot",de.z6.stringify(Pt)),(ft?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return at(de.bn,{alignment:Ke,alignmentFocus:Ke.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ct,background:"transparent",mouseEnter:(Yt,At)=>At.background="dodgerblue",mouseLeave:(Yt,At)=>At.background="transparent",click:Kt,contextClick:Kt})}Se.current.linkTemplate.contextMenu=at("ContextMenu",$e(),Je(),at("ContextMenuButton",at(de.s_,"Horizontal",$t(0),$t(1),$t(2))),at("ContextMenuButton",at(de.s_,"Horizontal",at(de.s_,"Spot",Ot(!1),Fe(de.z6.Top,!1),Fe(de.z6.Left,!1),Fe(de.z6.Right,!1),Fe(de.z6.Bottom,!1)),at(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ot(!0),Fe(de.z6.Top,!0),Fe(de.z6.Left,!0),Fe(de.z6.Right,!0),Fe(de.z6.Bottom,!0)))));const on=`{ "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 nn=["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 pn(Ke){return console.log("shapeName:",Ke),nn.indexOf(Ke)>=0}var En=new de.YI(Et.current,{maxSelectionCount:1,linkTemplate:at(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:at(de.uz,"Link",{locationSpot:de.z6.Center},at(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),at(de.bn,{isPanelMain:!0,strokeWidth:2}),at(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ke=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ke.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Ke){var ft;const Ct=Ke.subject.part;var Pt=(ft=document.activeElement)==null?void 0:ft.value;typeof Pt=="string"&&Pt.trim()===""&&Se.current.model.commit(function(Kt){Kt.set(Ct.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),En.nodeTemplate=at(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),at(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")),at(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const kn=()=>Re(this,null,function*(){var at=Se.current.makeImage();const qt=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:at.src}});ve({src:qt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Ln()},500),Qt(kt+1),()=>{Se.current=null}),[]),he.createElement("div",{ref:ln,className:bt.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!kt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(Ue.Z,null,he.createElement(Dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(Dt.Z,{onClick:()=>{var at,qt,An=Se.current.selection.first();if(bt.current=!bt.current,document.activeElement&&An){let Zn=(qt=(at=document.activeElement)==null?void 0:at.value)==null?void 0:qt.trim();typeof Zn=="string"&&Se.current.model.commit(function(Bn){Bn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Qt(kt+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Et})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:dt,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(xe.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var lt=Ne,yt=ge(5112),xt=ge(5871);const Tt=yt.ZP.Group,Rt={margin:"0 8px"};var Lt=({callback:pe,onCancel:ve})=>{function Se(dt){pe(dt)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Rt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(xt.Z,null)),ae.createElement("span",{style:Rt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(xt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Tt,null,ae.createElement(yt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(yt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(yt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(yt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(xe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},vt=ge(78673),en=ge(13547),gn=ge.n(en),Jt=(0,ae.forwardRef)(({use3d:pe,width:ve,height:Se,callback:dt,showSaveButton:Et},bt)=>{const ln=(0,ae.useRef)(),kt=(0,ae.useRef)(),[Qt,Ln]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:ln,appName:"graphing",width:ve||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{kt.current=new(gn())(kn.current,!0),window.onload=function(){kt.current.inject("applet_container")}},[]);const at=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(qt),qt};return(0,ae.useEffect)(()=>{kn.current.appName=Qt?"3D":"graphing",kt.current.inject("applet_container")},[Qt]),(0,ae.useEffect)(()=>{Ln(pe)},[pe]),(0,ae.useImperativeHandle)(bt,()=>({getImgData:at})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ae.createElement(Ue.Z,{align:"middle"},ae.createElement(Dt.Z,{flex:1},ae.createElement(vt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qt,onChange:qt=>Ln(qt)})),ae.createElement(Dt.Z,null,ae.createElement(xe.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),jt=ge(29386),fe=ge(1012),Ee=ge(8591);const je="link",st="upload-image",St="add-flowchart",Gt="draw-image",It="add-flowchart",Ft="code-block",zt="add-table",Vt="------------",Zt={default:Vt,left:`:${Vt}`,center:`:${Vt}:`,right:`${Vt}:`};var tn=ge(34500),hn=(pe,ve,Se)=>new Promise((dt,Et)=>{var bt=Qt=>{try{kt(Se.next(Qt))}catch(Ln){Et(Ln)}},ln=Qt=>{try{kt(Se.throw(Qt))}catch(Ln){Et(Ln)}},kt=Qt=>Qt.done?dt(Qt.value):Promise.resolve(Qt.value).then(bt,ln);kt((Se=Se.apply(pe,ve)).next())});function vn(){}let Fn=0;const dn=1e4,an="\u2581",yn="@\u2581\u2581@",xn="@\u2581@",Cn=`
**\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 Nn(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[je]:"\u6DFB\u52A0\u94FE\u63A5",[Ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[st]:"\u6DFB\u52A0\u56FE\u7247",[Gt]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[zt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:pe="",onChange:ve,width:Se="100%",height:dt=400,miniToolbar:Et=!1,isFocus:bt=!1,watch:ln,insertTemp:kt,mode:Qt="markdown",id:Ln="markdown-editor-id",showResizeBar:kn=!1,noStorage:at=!1,showNullButton:qt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:Bn=!1,onBlur:se,onCMBeforeChange:Oe,onFullScreen:$e,className:Me="",disablePaste:Xe=!1,disabled:Je=!1,disabledFill:He=!1,placeholder:Ae="",values:$t="",extraUse:Ot})=>{const[Fe,on]=(0,ae.useState)(null),[nn,pn]=(0,ae.useState)(pe),[En,Ke]=(0,ae.useState)(ln),[ft,Ct]=(0,ae.useState)(Bn),[Pt,Kt]=(0,ae.useState)(""),[Yt,At]=(0,ae.useState)(0),[Pn,fn]=(0,ae.useState)(dt),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,fe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>hn(void 0,null,function*(){var Bt;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Bt=ct==null?void 0:ct.attachments)!=null&&Bt.length&&(console.log("cm:",Fe,ta),ct.attachments.map(pt=>{pt.content_type.indexOf("image")>-1?Fe.replaceSelection(`![,](/api/attachments/${pt.id}?type=${pt.content_type})`):pt.content_type.indexOf("video")>-1?Fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):pt.content_type.indexOf("pdf")>-1?Fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type}&disposition=inline" target="_blank">${pt.name}</a>`):Fe.replaceSelection(`[${pt.name}](${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type})`)}))});(0,ae.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;pn($t),Fe==null||Fe.setValue($t),window.scrollTo(0,Bt)},[$t]),(0,ae.useEffect)(()=>{$e==null||$e(ft)},[ft]),(0,ae.useEffect)(()=>{if(ta.current){let Bt=function(pt,wt){var un;if(Xe){wt.preventDefault();return}const zn=wt.clipboardData;if(zn){const Rn=zn.types.toString(),Tn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(wt.preventDefault(),Qt=="stex")return;try{let jn=Tn[1];((un=Tn[0])==null?void 0:un.kind)==="file"&&(jn=Tn[0]);const _n=jn.getAsFile(),sa=_n.name.split(".").pop();(0,ye.I)(_n,Kn=>{var Ht,sn,bn;Kn.id?((Ht=_n==null?void 0:_n.type)==null?void 0:Ht.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((sn=_n==null?void 0:_n.type)==null?void 0:sn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((bn=_n==null?void 0:_n.type)==null?void 0:bn.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):cn.includes(sa)?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):ct.replaceSelection(`[${_n.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Ee.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ee.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=qe().fromTextArea(ta.current,{mode:Qt,lineNumbers:!Et,lineWrapping:!0,value:pe,autoCloseTags:!An,autoCloseBrackets:!0});return ct.on("keyup",function(pt,wt){wt.keyCode===8&&(pt.getValue()==""?ct.setOption("placeholder",Ae):ct.setOption("placeholder",null))}),ct.on("keydown",function(pt,wt){if(wt.keyCode===8){var un=_t(pt);un&&wt.preventDefault()}}),bt&&ct.focus(),ct.on("paste",Bt),ct.on("dragleave",function(pt,wt){ga.current.classList.remove("mouse-hover-md")}),Je&&ct.on("beforeChange",function(pt,wt){(wt.origin==="paste"||wt.origin==="+input")&&wt.cancel()}),on(ct),()=>{ct.off("paste",Bt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[Pn,ga,ft]);(0,ae.useEffect)(()=>{function Bt(){let ct=new _e.Z(pt=>{for(let wt of pt)(wt.target.offsetHeight>0||wt.target.offsetWidth>0)&&(fa(),Fe.setSize("100%","100%"),Fe.refresh())});return ct.observe(ta.current.parentElement),ct}if(Fe){const ct=Bt();return()=>{var pt,wt;(pt=ta.current)!=null&&pt.parentElement&&ct.unobserve((wt=ta.current)==null?void 0:wt.parentElement)}}},[Fe,fa]),(0,ae.useEffect)(()=>{if(Fe){let Bt=[];for(const[ct,pt]of Object.entries(Wn)){let wt={[ct]:()=>{On(pt)}};Bt.push(wt),Fe.addKeyMap(wt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ct of Bt)Fe.removeKeyMap(ct)}}},[Fe]),(0,ae.useEffect)(()=>{Bn!==ft&&Ct(Bn)},[Bn]),(0,tn.Z)(()=>{if(!at&&Yt>0){let Bt=new Date().getTime(),ct=window.sessionStorage.getItem(Ln);Bt>=Yt+dn&&(!ct||ct!==nn)&&(window.sessionStorage.setItem(Ln,nn),Qn(!0))}},dn),(0,ae.useEffect)(()=>{Ke(ln)},[Fe,ln]),(0,ae.useEffect)(()=>{Fe&&bt&&Fe.focus()},[Fe,bt]),(0,ae.useEffect)(()=>{if(En&&Fe){let Bt=function(pt){let wt=pt.target;if(aa.current){let un=wt.scrollTop/wt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const ct=Fe.getScrollerElement();return ct.addEventListener("scroll",Bt),()=>{ct.removeEventListener("scroll",Bt)}}},[Fe,En]),(0,ae.useEffect)(()=>{if(Fe&&Oe){let Bt=function(ct,pt){Oe(ct,pt)};return Fe.on("beforeChange",Bt),()=>{Fe.off("beforeChange",Bt)}}},[Fe,Oe]),(0,ae.useEffect)(()=>{if(Fe&&se){let Bt=function(){se(Fe.getValue())};return Fe.on("blur",Bt),()=>{Fe.off("blur",Bt)}}},[Fe,se]);function _t(Bt,ct){var pt=Bt.getDoc(),wt=pt.getCursor(),un=pt.getLine(wt.line),zn=un.charAt(wt.ch-1),Rn=un.lastIndexOf("@\u2581@",wt.ch),Tn=un.lastIndexOf("@\u2581\u2581@",wt.ch),jn=Rn>Tn?Rn:Tn,_n=Rn>Tn?3:4;if(yn.indexOf(zn)===-1)return null;if(console.log("change1:",ct,Bt,un,wt,jn,Rn,Tn,zn),jn>=0&&wt.ch-jn<5){var sa=jn+_n;return pt.replaceRange("",{line:wt.line,ch:jn},{line:wt.line,ch:sa}),{line:wt.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(Fe){let Bt=function(ct,pt){const wt=ct.getValue();pn(wt),At(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(An?ve(wt,Gn(wt)):ve(wt))};return Fe.on("change",Bt),()=>{Fe.off("change",Bt)}}},[Fe,ve]),(0,ae.useEffect)(()=>{if(Fe)if(pe==null)Fe.setValue(""),pn("");else{const Bt=window.scrollY||window.pageYOffset;pe!==Fe.getValue()&&(Fe.setValue(pe),pn(pe),Fe.setCursor(Je?1:Fe.lineCount(),0),window.scrollTo(0,Bt))}},[Fe,pe]);const On=(0,ae.useCallback)(Bt=>{const ct=Fe.getCursor(),pt=Fe.getSelection();let wt=pt.split(`
`);switch(Bt){case"bold":return Fe.replaceSelection("**"+pt+"**"),pt===""&&Fe.setCursor(ct.line,ct.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+pt+"*"),pt===""&&Fe.setCursor(ct.line,ct.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+pt+"`"),pt===""&&Fe.setCursor(ct.line,ct.ch+1),Fe.focus();case"inline-latex":return Kt("inline-latex"),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+pt+"\n```"),Fe.setCursor(ct.line+1,pt.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`<br/>
`),Fe.focus();case"list-ul":return pt===""?Fe.replaceSelection("- "+pt):Fe.replaceSelection(wt.map(un=>un===""?"":`- ${un}`).join(`
`)),Fe.focus();case"list-ol":return pt===""?Fe.replaceSelection("1. "+pt):Fe.replaceSelection(wt.map((un,zn)=>un===""?"":`${zn+1}. ${un}`).join(`
`)),Fe.focus();case"add-null-ch":return pt===""&&Fe.setCursor(ct.line,ct.ch),Fe.replaceSelection(an),Fe.focus();case"add-signal":return pt===""&&Fe.setCursor(ct.line,ct.ch),Fe.replaceSelection(xn),Fe.focus();case"add-multiple":return pt===""&&Fe.setCursor(ct.line,ct.ch),Fe.replaceSelection(yn),Fe.focus();case"inster-template-1":return pt===""&&Fe.setCursor(ct.line,ct.ch),Fe.replaceSelection(Cn),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return Ke(!En),Fe.focus();case"trigger-full-screen":return Ct(!ft),Fe.focus();case je:Kt(je);return;case Ft:Kt(Ft);return;case st:Kt(st);return;case Gt:Kt(Gt);return;case"maths-latex":Kt("maths-latex");return;case St:Kt(St);return;case zt:Kt(zt);return;default:throw new Error}},[Fe,En,ft]),Dn=(0,ae.useCallback)((Bt,ct)=>{var pt,wt,un,zn,Rn,Tn;switch(Kt(""),Pt){case je:const{title:Ht,link:sn}=Bt;return Fe.replaceSelection(`[${Ht}](${sn})`),Fe.focus();case Ft:const{language:bn,content:rn}=Bt;return Fe.replaceSelection(["```"+bn,rn,"```"].join(`
`)),Fe.focus();case"maths-latex":for(var jn=atob(Bt),_n=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)_n[sa]=jn.charCodeAt(sa);var Kn=new Blob([_n],{type:"image/png"});(0,ye.I)(Kn,ma=>{ma.id?Fe.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fe.replaceSelection("`$$"+Bt+"$$`");break;case st:case Gt:case It:const{src:Sn,alt:Hn}=Bt,wn=ct,ha=(un=(wt=(pt=wn==null?void 0:wn.name)==null?void 0:pt.split("."))==null?void 0:wt.pop)==null?void 0:un.call(wt);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?Fe.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${Sn}" alt="${Hn||""}" /></p>`):Fe.replaceSelection(`<img width="100%" src="${Sn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?Fe.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((Tn=wn==null?void 0:wn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Fe.replaceSelection(`<a href="${Sn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):cn.includes(ha)?Fe.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):Fe.replaceSelection(`[${wn.name}](${Sn})`),Fe.focus();case zt:const{row:ua,col:wa,align:Ca}=Bt;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ba=[],Ea=[];for(let xa=0;xa<wa;xa++)ma===1&&Ea.push(Zt[Ca]),Ba.push(" ");ma===1&&(Fa+=`| ${Ea.join(" | ")} |
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
`}return Fe.replaceSelection(Fa+`
`),Fe.focus();default:throw new Error}},[Fe,Pt]),Un=(0,ae.useMemo)(()=>{switch(Pt){case je:return ae.createElement(Ye,{callback:Dn,onCancel:Xn});case Ft:return ae.createElement(Xt.Z,{callback:Dn,onCancel:Xn});case st:return ae.createElement(ye.Z,{callback:Dn,onCancel:Xn});case St:return ae.createElement(lt,{callback:Dn,onCancel:Xn});case zt:return ae.createElement(Lt,{callback:Dn,onCancel:Xn});case"maths-latex":return ae.createElement(Jt,{showSaveButton:!0,callback:Dn});case"inline-latex":return ae.createElement(jt.Z,{showSaveButton:!0,callback:Dn});default:return null}},[Pt]);function Xn(){Kt("")}(0,ae.useEffect)(()=>{if(ia.current){let Bt=function(Rn){un=!0,zn=Rn.pageY},ct=function(){un=!1},pt=function(Rn){if(un){let Tn=Rn.pageY-zn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let jn=dt+Tn+"px";fn(jn)}},wt=ia.current,un=!1,zn=0;return wt.addEventListener("mousedown",Bt),document.addEventListener("mousemove",pt),document.addEventListener("mouseup",ct),()=>{wt.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",pt),document.removeEventListener("mouseup",ct)}}},[Fe,ia]),(0,ae.useEffect)(()=>{fn(dt)},[dt]);const ra=Nn(Se),va=Nn(Pn),pa={width:ra,height:va},Mn=(0,ae.useMemo)(()=>{if(Yt){let Bt=new Date(Yt),ct=Bt.getHours(),pt=Bt.getMinutes(),wt=Bt.getSeconds();return ct=ct<10?"0"+ct:ct,pt=pt<10?"0"+pt:pt,wt=wt<10?"0"+wt:wt,`${ct}:${pt}:${wt}`}return 0},[Yt]),Gn=Bt=>{const ct=[];if(An){let pt=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(wt,un,zn){ct.push({multiLine:wt!==xn})})}return ct};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),At(0)}function ya(){Qn(!1),At(0),Fe.setValue(window.sessionStorage.getItem(Ln))}(0,ae.useEffect)(()=>{na[Pt]&&Pt!==Gt&&Pt!==St&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-Bt.offsetWidth/2,pt=window.innerHeight/2-Bt.offsetHeight/2;da(ct),$n(pt)},0)},[Pt]);const La=Bt=>{Bt.preventDefault();const ct=Bt.clientX-Pa,pt=Bt.clientY-Vn;document.body.onmousemove=wt=>{let un=wt.clientX-ct,zn=wt.clientY-pt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,Tn)),zn=Math.max(0,Math.min(zn,jn)),ba(wt.clientX,wt.clientY,ct,pt)&&(da(un),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Bt,ct,pt,wt)=>{const un=document.body.clientHeight,zn=document.body.clientWidth;return Bt<20&&pt>Bt||Bt>zn-20&&pt<Bt||ct<20&&wt>ct||ct>un-20&&wt<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${Me} ${En?"on-preview":""} ${Et?"mini":""} ${ft?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:kt,watch:En,fullScreen:ft,showNullButton:qt,showNullProgramButton:An,onActionCallback:On,hidetoolBar:Zn,extraUse:Ot}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:Ae})),En?ae.createElement("div",{ref:aa,className:"preview-container"},Qt==="stex"&&ae.createElement(ze,{value:nn}),Qt!=="stex"&&ae.createElement(ke.Z,{disabledFill:He,showProgramFill:An,value:nn})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,Pt===Gt&&ae.createElement(it,{callback:Dn,onCancel:Xn}),Pt===St&&ae.createElement(lt,{callback:Dn,onCancel:Xn}),ae.createElement(ue.Z,null,na[Pt]&&Pt!==Gt&&Pt!==St?ae.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[Pt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:Pt===St?"1200px":null,height:Pt===St?"80vh":null,className:"markdown-popup-form"},Un):null))}},30315:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return re},I:function(){return ue}});var ae=ge(78241),Pe=ge(8591),qe=ge(92832),_e=ge(81327),ce=ge(5871),We=ge(5112),me=ge(3113),Ve=ge(5862),Ie=ge(59301),Te=ge(35219),ke=ge(59301),ze=Object.defineProperty,De=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,Be,xe)=>Be in le?ze(le,Be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):le[Be]=xe,x=(le,Be)=>{for(var xe in Be||(Be={}))y.call(Be,xe)&&b(le,xe,Be[xe]);if(a)for(var xe of a(Be))E.call(Be,xe)&&b(le,xe,Be[xe]);return le},z=(le,Be)=>De(le,ne(Be));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:le,onCancel:Be})=>{const[xe]=ee();let mt=(0,Ie.useRef)();function Mt(Qe){mt.current.width=xe.getFieldValue("width"),mt.current.align=xe.getFieldValue("align"),le(Qe,mt.current)}function Ut(Qe,ot){if(Qe.status===-1){Pe.ZP.error(Qe.message);return}xe.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:ot.type})}function be(Qe){let ot=Qe.target.files[0];mt.current=ot,ue(ot,Ut)}return ke.createElement(ae.default,z(x({form:xe},oe),{className:"upload-image-panel",onFinish:Mt,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(qe.default,{style:te})),ke.createElement(ie,{onFileChange:be}))),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(qe.default,{style:{width:264}})),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(_e.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(We.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),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:Be},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:le}))}function ue(le,Be){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let xe=new FormData;xe.append("editormd-image-file",le),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(Mt){Be(JSON.parse(Mt.target.responseText),le)},!1),mt.addEventListener("error",function(Mt){console.error(Mt)},!1),mt.open("POST",`${Ve.KI}/api/attachments.json`),mt.send(xe)}},23252:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return qe}});var ae=ge(59301),Pe=ge(4676);class qe extends ae.Component{constructor(ce){super(ce);const We=window.document;this.node=We.createElement("div"),We.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Pe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34500:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Pe}});var ae=ge(59301);function Pe(qe,_e){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=qe}),(0,ae.useEffect)(()=>{function We(){ce.current()}if(_e!==null){let me=setInterval(We,_e);return()=>clearInterval(me)}},[_e])}},1922:function(Ge,ut,ge){"use strict";ge.r(ut),ge.d(ut,{default:function(){return ue}});var ae=ge(59301),Pe=ge(6075),qe=ge(57809),_e=ge(78241),ce=ge(8591),We=ge(66104),me=ge(92832),Ve=ge(3113),Ie=ge(37962),Te=ge(26985),ke=ge(40686),ze={bg:"bg___pOKLN",flexRow:"flexRow___mNnbK",flexJustifyCenter:"flexJustifyCenter___uouQe",flexAlignEnd:"flexAlignEnd___CKILp",flexAlignCenter:"flexAlignCenter___y5peS",flexColumn:"flexColumn___JJd9N",formWrap:"formWrap___D8WBe",titleWrap:"titleWrap___ICMYl",fieldWrap:"fieldWrap___XNrtY",mdWrap:"mdWrap___gRykC",backgroundFa:"backgroundFa___jKoLp",button:"button___f0Fqa"},De=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(le,Be,xe)=>Be in le?De(le,Be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):le[Be]=xe,z=(le,Be)=>{for(var xe in Be||(Be={}))E.call(Be,xe)&&x(le,xe,Be[xe]);if(y)for(var xe of y(Be))b.call(Be,xe)&&x(le,xe,Be[xe]);return le},ee=(le,Be)=>ne(le,a(Be)),te=(le,Be)=>{var xe={};for(var mt in le)E.call(le,mt)&&Be.indexOf(mt)<0&&(xe[mt]=le[mt]);if(le!=null&&y)for(var mt of y(le))Be.indexOf(mt)<0&&b.call(le,mt)&&(xe[mt]=le[mt]);return xe},oe=(le,Be,xe)=>new Promise((mt,Mt)=>{var Ut=ot=>{try{Qe(xe.next(ot))}catch(et){Mt(et)}},be=ot=>{try{Qe(xe.throw(ot))}catch(et){Mt(et)}},Qe=ot=>ot.done?mt(ot.value):Promise.resolve(ot.value).then(Ut,be);Qe((xe=xe.apply(le,Be)).next())});const{Option:re}=qe.default,ie=le=>{var Be=le,{forumsDetail:xe,globalSetting:mt,loading:Mt,dispatch:Ut}=Be,be=te(Be,["forumsDetail","globalSetting","loading","dispatch"]),Qe,ot,et;const gt=(0,Pe.useParams)(),[tt]=_e.default.useForm(),[nt,Ye]=(0,ae.useState)({}),[Xt,ye]=(0,ae.useState)(0),[Ce,Ue]=(0,ae.useState)(!1),[ht,Ze]=(0,ae.useState)({}),[it,de]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{if(rt(),gt.memoId)Ue(!0),Nt();else{Ue(!1);const we={forum_id:5};Ye(z({},we)),tt.setFieldsValue(z({},we))}},[gt.memoId]);const rt=()=>oe(void 0,null,function*(){const we=yield(0,ke.iI)({tab_module_type:"forums"});we!=null&&we.un_purchased&&Ut({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Ze(we||{})}),Nt=()=>oe(void 0,null,function*(){var we;const Le=(yield(0,ke.qR)({id:gt.memoId}))||{},he={subject:Le.subject,content:Le.content,attachments:(0,Te.z)(Le.attachments),forum_id:Le.forum_id,memo_tags:(we=Le.memo_tags)==null?void 0:we.map(Re=>Re.id)};Ye(z({},he)),tt.setFieldsValue(z({},he))}),Wt=we=>oe(void 0,null,function*(){var Le,he;const Re=ee(z({id:Ce?gt.memoId:null},nt),{attachment_ids:(he=(Le=nt.attachments)==null?void 0:Le.filter(lt=>{var yt;return(yt=lt.response)==null?void 0:yt.id}))==null?void 0:he.map(lt=>{var yt;return(yt=lt.response)==null?void 0:yt.id}),tags:nt.memo_tags}),Ne=Ce?yield(0,ke.b4)(Re):yield(0,ke.dX)(Re);ye(0),(Ne==null?void 0:Ne.status)===0&&(ce.ZP.success(Ne==null?void 0:Ne.message),it===1?Pe.history.push(`/forums/${Ce?gt==null?void 0:gt.memoId:Ne==null?void 0:Ne.memo_id}`):Pe.history.push(`/forums/${Ce?gt==null?void 0:gt.memoId:Ne==null?void 0:Ne.memo_id}/edit`))}),Dt=()=>{document.body.scrollIntoView(),window.location.href.includes("new")?Pe.history.back():Pe.history.push(`/forums/${gt.memoId}`)};return ae.createElement("section",{className:ze.bg},ae.createElement("section",{className:"animated fadeIn mb10"},ae.createElement("aside",{className:"mt10"},ae.createElement(We.Z,{separator:"/"},ae.createElement(We.Z.Item,null,ae.createElement(Pe.Link,{to:"/forums"},"\u4EA4\u6D41\u95EE\u7B54")),ae.createElement(We.Z.Item,null,"\u8BE6\u60C5")))),ae.createElement("aside",{className:"bg-white font16 pt20 pb20 pl20"},Ce?"\u7F16\u8F91\u8BDD\u9898":"\u53D1\u5E03\u8BDD\u9898"),ae.createElement(_e.default,{form:tt,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:(we,Le)=>{console.log(Le,"values"),Ye(z(z({},nt),we))},onFinish:Wt,onFinishFailed:()=>{ye(0)}},ae.createElement("div",{className:ze.fieldWrap},ae.createElement(_e.default.Item,{name:"subject",label:ae.createElement("span",{className:"font16"},"\u8BDD\u9898\u540D\u79F0: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u540D\u79F0"}]},ae.createElement(me.default,{maxLength:50,suffix:`${((Qe=nt.subject)==null?void 0:Qe.length)||0}/50`}))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(_e.default.Item,{name:"content",label:ae.createElement("span",{className:"font16"},"\u5185\u5BB9: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u5185\u5BB9"}]},ae.createElement(Ie.Z,{height:600,id:"forums-new-content",watch:!0,defaultValue:nt.content})),ae.createElement("div",null,ae.createElement(_e.default.Item,{name:"attachments",style:{width:350}},ae.createElement(Te.Z,{showRemoveModal:!0})))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(_e.default.Item,{name:"forum_id",label:ae.createElement("span",{className:"font16"},"\u8BDD\u9898\u7C7B\u578B: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u8BDD\u9898\u7C7B\u578B"}]},ae.createElement(qe.default,{style:{width:300}},(ot=ht==null?void 0:ht.forums)==null?void 0:ot.map(we=>ae.createElement(re,{key:we.id,value:we.id},we.name))))),nt.forum_id===5&&ae.createElement("div",{className:ze.mdWrap},ae.createElement(_e.default.Item,{name:"memo_tags",label:ae.createElement("span",{className:"font16"},"\u6280\u672F\u6807\u7B7E: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6280\u672F\u6807\u7B7E"}]},ae.createElement(qe.default,{style:{width:300},placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u6807\u7B7E",mode:"multiple",tokenSeparators:[";"],filterOption:(we,Le)=>Le.props.children.toLocaleLowerCase().indexOf(we.toLocaleLowerCase())!=-1},(et=ht==null?void 0:ht.tag_list)==null?void 0:et.map(we=>ae.createElement(re,{key:we.id,value:we.id},we.name))))),ae.createElement("div",{className:ze.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(_e.default.Item,null,ae.createElement(Ve.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit",loading:Xt===1,onClick:()=>{de(1),ye(1)}},"\u63D0\u4EA4"),ae.createElement(Ve.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit",loading:Xt===2,onClick:()=>{de(2),ye(2)}},"\u4FDD\u5B58"),ae.createElement(Ve.ZP,{size:"middle",type:"primary",ghost:!0,className:`${ze.button} mr20`,onClick:Dt},"\u53D6\u6D88"))))))};var ue=(0,Pe.connect)(({forumsDetail:le,loading:Be,globalSetting:xe})=>({forumsDetail:le,globalSetting:xe,loading:Be.models.forumsDetail}))(ie)},53607:function(Ge,ut,ge){"use strict";ge.d(ut,{$J:function(){return qe},JZ:function(){return ce},bN:function(){return me},jP:function(){return We},rO:function(){return _e}});var ae=ge(23789),Pe=(Ve,Ie,Te)=>new Promise((ke,ze)=>{var De=y=>{try{a(Te.next(y))}catch(E){ze(E)}},ne=y=>{try{a(Te.throw(y))}catch(E){ze(E)}},a=y=>y.done?ke(y.value):Promise.resolve(y.value).then(De,ne);a((Te=Te.apply(Ve,Ie)).next())});function qe(Ve){return(0,ae.U2)(`libraries/${Ve}.json`)}function _e(Ve){return(0,ae.U2)("library_tags.json",Ve)}function ce(Ve){return Pe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ve}.json`)).status===0})}function We(Ve){return(0,ae.v_)("libraries.json",Ve)}function me(Ve,Ie){return(0,ae.gz)(`libraries/${Ve}.json`,Ie)}},56762:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Pe}});var ae=ge(59301);function Pe(){const[,qe]=ae.useReducer(_e=>_e+1,0);return qe}},66104:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return Ut}});var ae=ge(92310),Pe=ge.n(ae),qe=ge(11592),_e=ge(26112),ce=ge(59301),We=ge(92343),me=ge(36355),Ve=ge(84105),Ie=ge(91857);const Te=be=>{let{children:Qe}=be;const{getPrefixCls:ot}=ce.useContext(me.E_),et=ot("breadcrumb");return ce.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Qe===""?Qe:Qe||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=Te,ze=function(be,Qe){var ot={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Qe.indexOf(et)<0&&(ot[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(be);gt<et.length;gt++)Qe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(be,et[gt])&&(ot[et[gt]]=be[et[gt]]);return ot};function De(be,Qe){if(be.title===void 0||be.title===null)return null;const ot=Object.keys(Qe).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${ot})`,"g"),(et,gt)=>Qe[gt]||et)}function ne(be,Qe,ot,et){if(ot==null)return null;const{className:gt,onClick:tt}=Qe,nt=ze(Qe,["className","onClick"]),Ye=Object.assign(Object.assign({},(0,_e.Z)(nt,{data:!0,aria:!0})),{onClick:tt});return et!==void 0?ce.createElement("a",Object.assign({},Ye,{className:Pe()(`${be}-link`,gt),href:et}),ot):ce.createElement("span",Object.assign({},Ye,{className:Pe()(`${be}-link`,gt)}),ot)}function a(be,Qe){return(et,gt,tt,nt,Ye)=>{if(Qe)return Qe(et,gt,tt,nt);const Xt=De(et,gt);return ne(be,et,Xt,Ye)}}var y=function(be,Qe){var ot={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Qe.indexOf(et)<0&&(ot[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(be);gt<et.length;gt++)Qe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(be,et[gt])&&(ot[et[gt]]=be[et[gt]]);return ot};const E=be=>{const{prefixCls:Qe,separator:ot="/",children:et,menu:gt,overlay:tt,dropdownProps:nt,href:Ye}=be,ye=(Ce=>{if(gt||tt){const Ue=Object.assign({},nt);if(gt){const ht=gt||{},{items:Ze}=ht,it=y(ht,["items"]);Ue.menu=Object.assign(Object.assign({},it),{items:Ze==null?void 0:Ze.map((de,rt)=>{var{key:Nt,title:Wt,label:Dt,path:we}=de,Le=y(de,["key","title","label","path"]);let he=Dt!=null?Dt:Wt;return we&&(he=ce.createElement("a",{href:`${Ye}${we}`},he)),Object.assign(Object.assign({},Le),{key:Nt!=null?Nt:rt,label:he})})})}else tt&&(Ue.overlay=tt);return ce.createElement(Ie.Z,Object.assign({placement:"bottom"},Ue),ce.createElement("span",{className:`${Qe}-overlay-link`},Ce,ce.createElement(Ve.Z,null)))}return Ce})(et);return ye!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,ye),ot&&ce.createElement(ke,null,ot)):null},b=be=>{const{prefixCls:Qe,children:ot,href:et}=be,gt=y(be,["prefixCls","children","href"]),{getPrefixCls:tt}=ce.useContext(me.E_),nt=tt("breadcrumb",Qe);return ce.createElement(E,Object.assign({},gt,{prefixCls:nt}),ne(nt,gt,ot,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=ge(17313),ee=ge(83116),te=ge(37613);const oe=be=>{const{componentCls:Qe,iconCls:ot}=be;return{[Qe]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[ot]:{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`]:{[`
> ${ot} + span,
> ${ot} + 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,[`> ${ot}`]:{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 re=(0,ee.Z)("Breadcrumb",be=>{const Qe=(0,te.TS)(be,{});return[oe(Qe)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ie=function(be,Qe){var ot={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Qe.indexOf(et)<0&&(ot[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(be);gt<et.length;gt++)Qe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(be,et[gt])&&(ot[et[gt]]=be[et[gt]]);return ot};function ue(be){const{breadcrumbName:Qe,children:ot}=be,et=ie(be,["breadcrumbName","children"]),gt=Object.assign({title:Qe},et);return ot&&(gt.menu={items:ot.map(tt=>{var{breadcrumbName:nt}=tt,Ye=ie(tt,["breadcrumbName"]);return Object.assign(Object.assign({},Ye),{title:nt})})}),gt}function le(be,Qe){return(0,ce.useMemo)(()=>be||(Qe?Qe.map(ue):null),[be,Qe])}var Be=function(be,Qe){var ot={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Qe.indexOf(et)<0&&(ot[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(be);gt<et.length;gt++)Qe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(be,et[gt])&&(ot[et[gt]]=be[et[gt]]);return ot};const xe=(be,Qe)=>{if(Qe===void 0)return Qe;let ot=(Qe||"").replace(/^\//,"");return Object.keys(be).forEach(et=>{ot=ot.replace(`:${et}`,be[et])}),ot},mt=be=>{const{prefixCls:Qe,separator:ot="/",style:et,className:gt,rootClassName:tt,routes:nt,items:Ye,children:Xt,itemRender:ye,params:Ce={}}=be,Ue=Be(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:Ze,breadcrumb:it}=ce.useContext(me.E_);let de;const rt=ht("breadcrumb",Qe),[Nt,Wt]=re(rt),Dt=le(Ye,nt),we=a(rt,ye);if(Dt&&Dt.length>0){const Re=[],Ne=Ye||nt;de=Dt.map((lt,yt)=>{const{path:xt,key:Tt,type:Rt,menu:Lt,overlay:vt,onClick:en,className:gn,separator:mn,dropdownProps:Jt}=lt,jt=xe(Ce,xt);jt!==void 0&&Re.push(jt);const fe=Tt!=null?Tt:yt;if(Rt==="separator")return ce.createElement(ke,{key:fe},mn);const Ee={},je=yt===Dt.length-1;Lt?Ee.menu=Lt:vt&&(Ee.overlay=vt);let{href:st}=lt;return Re.length&&jt!==void 0&&(st=`#/${Re.join("/")}`),ce.createElement(E,Object.assign({key:fe},Ee,(0,_e.Z)(lt,{data:!0,aria:!0}),{className:gn,dropdownProps:Jt,href:st,separator:je?"":ot,onClick:en,prefixCls:rt}),we(lt,Ce,Ne,Re,st))})}else if(Xt){const Re=(0,qe.Z)(Xt).length;de=(0,qe.Z)(Xt).map((Ne,lt)=>{if(!Ne)return Ne;const yt=lt===Re-1;return(0,We.Tm)(Ne,{separator:yt?"":ot,key:lt})})}const Le=Pe()(rt,it==null?void 0:it.className,{[`${rt}-rtl`]:Ze==="rtl"},gt,tt,Wt),he=Object.assign(Object.assign({},it==null?void 0:it.style),et);return Nt(ce.createElement("nav",Object.assign({className:Le,style:he},Ue),ce.createElement("ol",null,de)))};mt.Item=x,mt.Separator=ke;var Mt=mt,Ut=Mt},91857:function(Ge,ut,ge){"use strict";var ae=ge(59301),Pe=ge(38819),qe=ge(92310),_e=ge.n(qe),ce=ge(31561),We=ge(70425),me=ge(18929),Ve=ge(2738),Ie=ge(79676),Te=ge(53487),ke=ge(92343),ze=ge(36355),De=ge(20834),ne=ge(40875),a=ge(88088),y=ge(47211);const E=null,b=te=>{const{menu:oe,arrow:re,prefixCls:ie,children:ue,trigger:le,disabled:Be,dropdownRender:xe,getPopupContainer:mt,overlayClassName:Mt,rootClassName:Ut,open:be,onOpenChange:Qe,visible:ot,onVisibleChange:et,mouseEnterDelay:gt=.15,mouseLeaveDelay:tt=.1,autoAdjustOverflow:nt=!0,placement:Ye="",overlay:Xt,transitionName:ye}=te,{getPopupContainer:Ce,getPrefixCls:Ue,direction:ht}=ae.useContext(ze.E_),Ze=ae.useMemo(()=>{const Lt=Ue();return ye!==void 0?ye:Ye.includes("top")?`${Lt}-slide-down`:`${Lt}-slide-up`},[Ue,Ye,ye]),it=ae.useMemo(()=>Ye?Ye.includes("Center")?Ye.slice(0,Ye.indexOf("Center")):Ye:ht==="rtl"?"bottomRight":"bottomLeft",[Ye,ht]),de=Ue("dropdown",ie),[rt,Nt]=(0,y.Z)(de),[,Wt]=(0,a.Z)(),Dt=ae.Children.only(ue),we=(0,ke.Tm)(Dt,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:ht==="rtl"},Dt.props.className),disabled:Be}),Le=Be?[]:le;let he;Le&&Le.includes("contextMenu")&&(he=!0);const[Re,Ne]=(0,me.Z)(!1,{value:be!=null?be:ot}),lt=(0,We.useEvent)(Lt=>{Qe==null||Qe(Lt),et==null||et(Lt),Ne(Lt)}),yt=_e()(Mt,Ut,Nt,{[`${de}-rtl`]:ht==="rtl"}),xt=(0,Ie.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:nt,offset:Wt.marginXXS,arrowWidth:re?Wt.sizePopupArrow:0,borderRadius:Wt.borderRadius}),Tt=ae.useCallback(()=>{Ne(!1)},[]),Rt=()=>{let Lt;return oe!=null&&oe.items?Lt=ae.createElement(De.default,Object.assign({},oe)):typeof Xt=="function"?Lt=Xt():Lt=Xt,xe&&(Lt=xe(Lt)),Lt=ae.Children.only(typeof Lt=="string"?ae.createElement("span",null,Lt):Lt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(Pe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Tt,validator:vt=>{let{mode:en}=vt}},Lt)};return rt(ae.createElement(ce.Z,Object.assign({alignPoint:he},(0,Ve.Z)(te,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:tt,visible:Re,builtinPlacements:xt,arrow:!!re,overlayClassName:yt,prefixCls:de,getPopupContainer:mt||Ce,transitionName:Ze,trigger:Le,overlay:Rt,placement:it,onVisibleChange:lt}),we))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Te.Z)(b,"dropdown",te=>te,x),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ut.Z=b},47211:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return ke}});var ae=ge(17313),Pe=ge(13826),qe=ge(92899),_e=ge(29878),ce=ge(19447),We=ge(83116),me=ge(37613),Ie=ze=>{const{componentCls:De,menuCls:ne,colorError:a,colorTextLightSolid:y}=ze,E=`${ne}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=ze=>{const{componentCls:De,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:ue,colorBgElevated:le}=ze;return[{[De]:Object.assign(Object.assign({},(0,ae.Wf)(ze)),{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:ie}},[`${De}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${De}-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${De}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topRight`]:{animationName:Pe.ly}})},(0,ce.ZP)(ze,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${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}},[`${De}, ${De}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary},(0,ae.Qy)(ze)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:ze.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:ze.marginXS,fontSize:ze.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 ${ue}px`,color:ze.colorText,fontWeight:"normal",fontSize:te,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:ze.controlItemBgHover}},(0,ae.Qy)(ze)),{"&-selected":{color:ze.colorPrimary,backgroundColor:ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:ze.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ze.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ze.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ze.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ze.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${ze.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:ue+ze.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${De}-menu-submenu-title`]:{color:ze.colorPrimary}})}},[(0,Pe.oN)(ze,"slide-up"),(0,Pe.oN)(ze,"slide-down"),(0,qe.Fm)(ze,"move-up"),(0,qe.Fm)(ze,"move-down"),(0,_e._y)(ze,"zoom-big")]]};var ke=(0,We.Z)("Dropdown",(ze,De)=>{let{rootPrefixCls:ne}=De;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ze,oe=(E-b*x)/2,{dropdownArrowOffset:re}=(0,ce.fS)({contentRadius:te}),ie=(0,me.TS)(ze,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Te(ie),Ie(ie)]},ze=>({zIndexPopup:ze.zIndexPopupBase+50}))},45818:function(Ge,ut,ge){"use strict";ge.d(ut,{D:function(){return z},Z:function(){return oe}});var ae=ge(60499),Pe=ge(59301),qe={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"},_e=qe,ce=ge(7657),We=function(ie,ue){return Pe.createElement(ce.Z,(0,ae.Z)({},ie,{ref:ue,icon:_e}))},me=Pe.forwardRef(We),Ve=me,Ie=ge(33853),Te=ge(38819),ke=ge(92310),ze=ge.n(ke),De=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),E=ge(84966),b=function(re,ie){var ue={};for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&ie.indexOf(le)<0&&(ue[le]=re[le]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,le=Object.getOwnPropertySymbols(re);Be<le.length;Be++)ie.indexOf(le[Be])<0&&Object.prototype.propertyIsEnumerable.call(re,le[Be])&&(ue[le[Be]]=re[le[Be]]);return ue};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Pe.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=Pe.forwardRef((re,ie)=>{const{prefixCls:ue,className:le,trigger:Be,children:xe,defaultCollapsed:mt=!1,theme:Mt="dark",style:Ut={},collapsible:be=!1,reverseArrow:Qe=!1,width:ot=200,collapsedWidth:et=80,zeroWidthTriggerStyle:gt,breakpoint:tt,onCollapse:nt,onBreakpoint:Ye}=re,Xt=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,Pe.useContext)(E.Gs),[Ce,Ue]=(0,Pe.useState)("collapsed"in re?re.collapsed:mt),[ht,Ze]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&Ue(re.collapsed)},[re.collapsed]);const it=(we,Le)=>{"collapsed"in re||Ue(we),nt==null||nt(we,Le)},de=(0,Pe.useRef)();de.current=we=>{Ze(we.matches),Ye==null||Ye(we.matches),Ce!==we.matches&&it(we.matches,"responsive")},(0,Pe.useEffect)(()=>{function we(he){return de.current(he)}let Le;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&tt&&tt in x){Le=he(`(max-width: ${x[tt]})`);try{Le.addEventListener("change",we)}catch(Re){Le.addListener(we)}we(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",we)}catch(he){Le==null||Le.removeListener(we)}}},[tt]),(0,Pe.useEffect)(()=>{const we=ee("ant-sider-");return ye.addSider(we),()=>ye.removeSider(we)},[]);const rt=()=>{it(!Ce,"clickTrigger")},{getPrefixCls:Nt}=(0,Pe.useContext)(y.E_),Wt=()=>{const we=Nt("layout-sider",ue),Le=(0,De.Z)(Xt,["collapsed"]),he=Ce?et:ot,Re=a(he)?`${he}px`:String(he),Ne=parseFloat(String(et||0))===0?Pe.createElement("span",{onClick:rt,className:ze()(`${we}-zero-width-trigger`,`${we}-zero-width-trigger-${Qe?"right":"left"}`),style:gt},Be||Pe.createElement(Ve,null)):null,xt={expanded:Qe?Pe.createElement(Te.Z,null):Pe.createElement(Ie.Z,null),collapsed:Qe?Pe.createElement(Ie.Z,null):Pe.createElement(Te.Z,null)}[Ce?"collapsed":"expanded"],Tt=Be!==null?Ne||Pe.createElement("div",{className:`${we}-trigger`,onClick:rt,style:{width:Re}},Be||xt):null,Rt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),Lt=ze()(we,`${we}-${Mt}`,{[`${we}-collapsed`]:!!Ce,[`${we}-has-trigger`]:be&&Be!==null&&!Ne,[`${we}-below`]:!!ht,[`${we}-zero-width`]:parseFloat(Re)===0},le);return Pe.createElement("aside",Object.assign({className:Lt},Le,{style:Rt,ref:ie}),Pe.createElement("div",{className:`${we}-children`},xe),be||ht&&Ne?Tt:null)},Dt=Pe.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return Pe.createElement(z.Provider,{value:Dt},Wt())})},84966:function(Ge,ut,ge){"use strict";ge.d(ut,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return De},ZP:function(){return ee}});var ae=ge(77654),Pe=ge(92310),qe=ge.n(Pe),_e=ge(2738),ce=ge(59301),We=ge(36355),me=ge(83116),Ie=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:le,background:ue,border:`1px solid ${re}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ue,footerBg:le,triggerBg:Be,headerHeight:xe,headerPadding:mt,headerColor:Mt,footerPadding:Ut,triggerHeight:be,zeroTriggerHeight:Qe,zeroTriggerWidth:ot,motionDurationMid:et,motionDurationSlow:gt,fontSize:tt,borderRadius:nt,bodyBg:Ye,headerBg:Xt,siderBg:ye}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ye,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:ue,lineHeight:`${be}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-ot,zIndex:1,width:ot,height:Qe,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:nt,borderEndEndRadius:nt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ot,borderStartStartRadius:nt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:nt}}}}},Ie(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:xe,padding:mt,color:Mt,lineHeight:`${xe}px`,background:Xt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Ut,color:ie,fontSize:tt,background:le},[`${re}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,me.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ue,controlHeightSM:le,marginXXS:Be,colorTextLightSolid:xe,colorBgContainer:mt}=te,Mt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Mt}px`,headerColor:ue,footerPadding:`${le}px ${Mt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Be*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ze=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ie=Object.getOwnPropertySymbols(te);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ue])&&(re[ie[ue]]=te[ie[ue]]);return re};const De=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ue=>ce.forwardRef((Be,xe)=>ce.createElement(ue,Object.assign({ref:xe,suffixCls:oe,tagName:re},Be)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ue,tagName:le}=te,Be=ze(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=ce.useContext(We.E_),mt=xe("layout",re),[Mt,Ut]=ke(mt),be=ie?`${mt}-${ie}`:mt;return Mt(ce.createElement(le,Object.assign({className:qe()(re||be,ue,Ut),ref:oe},Be)))}),y=ce.forwardRef((te,oe)=>{const{direction:re}=ce.useContext(We.E_),[ie,ue]=ce.useState([]),{prefixCls:le,className:Be,rootClassName:xe,children:mt,hasSider:Mt,tagName:Ut,style:be}=te,Qe=ze(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ot=(0,_e.Z)(Qe,["suffixCls"]),{getPrefixCls:et,layout:gt}=ce.useContext(We.E_),tt=et("layout",le),[nt,Ye]=ke(tt),Xt=qe()(tt,{[`${tt}-has-sider`]:typeof Mt=="boolean"?Mt:ie.length>0,[`${tt}-rtl`]:re==="rtl"},gt==null?void 0:gt.className,Be,xe,Ye),ye=ce.useMemo(()=>({siderHook:{addSider:Ce=>{ue(Ue=>[].concat((0,ae.Z)(Ue),[Ce]))},removeSider:Ce=>{ue(Ue=>Ue.filter(ht=>ht!==Ce))}}}),[]);return nt(ce.createElement(De.Provider,{value:ye},ce.createElement(Ut,Object.assign({ref:oe,className:Xt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),be)},ot),mt)))}),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},40875:function(Ge,ut,ge){"use strict";ge.d(ut,{J:function(){return We}});var ae=ge(59301),Pe=ge(33234),qe=ge(70425),_e=function(me,Ve){var Ie={};for(var Te in me)Object.prototype.hasOwnProperty.call(me,Te)&&Ve.indexOf(Te)<0&&(Ie[Te]=me[Te]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Te=Object.getOwnPropertySymbols(me);ke<Te.length;ke++)Ve.indexOf(Te[ke])<0&&Object.prototype.propertyIsEnumerable.call(me,Te[ke])&&(Ie[Te[ke]]=me[Te[ke]]);return Ie};const ce=ae.createContext(null),We=ae.forwardRef((me,Ve)=>{const{children:Ie}=me,Te=_e(me,["children"]),ke=ae.useContext(ce),ze=ae.useMemo(()=>Object.assign(Object.assign({},ke),Te),[ke,Te.prefixCls,Te.mode,Te.selectable]);return ae.createElement(ce.Provider,{value:ze},ae.createElement(Pe.BR,null,(0,qe.supportNodeRef)(Ie)?ae.cloneElement(Ie,{ref:Ve}):Ie))});ut.Z=ce},20834:function(Ge,ut,ge){"use strict";ge.d(ut,{default:function(){return Dt}});var ae=ge(15285),Pe=ge(59301),qe=ge(45818),_e=ge(92310),ce=ge.n(_e),We=ge(36355),me=function(we,Le){var he={};for(var Re in we)Object.prototype.hasOwnProperty.call(we,Re)&&Le.indexOf(Re)<0&&(he[Re]=we[Re]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Re=Object.getOwnPropertySymbols(we);Ne<Re.length;Ne++)Le.indexOf(Re[Ne])<0&&Object.prototype.propertyIsEnumerable.call(we,Re[Ne])&&(he[Re[Ne]]=we[Re[Ne]]);return he},Ie=we=>{const{prefixCls:Le,className:he,dashed:Re}=we,Ne=me(we,["prefixCls","className","dashed"]),{getPrefixCls:lt}=Pe.useContext(We.E_),yt=lt("menu",Le),xt=ce()({[`${yt}-item-divider-dashed`]:!!Re},he);return Pe.createElement(ae.iz,Object.assign({className:xt},Ne))},Te=ge(11592),ke=ge(2738),ze=ge(6848),De=ge(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=we=>{var Le;const{className:he,children:Re,icon:Ne,title:lt,danger:yt}=we,{prefixCls:xt,firstLevel:Tt,direction:Rt,disableMenuItemTitleTooltip:Lt,inlineCollapsed:vt}=Pe.useContext(a),en=Ee=>{const je=Pe.createElement("span",{className:`${xt}-title-content`},Re);return(!Ne||(0,De.l$)(Re)&&Re.type==="span")&&Re&&Ee&&Tt&&typeof Re=="string"?Pe.createElement("div",{className:`${xt}-inline-collapsed-noicon`},Re.charAt(0)):je},{siderCollapsed:gn}=Pe.useContext(qe.D);let mn=lt;typeof lt=="undefined"?mn=Tt?Re:"":lt===!1&&(mn="");const Jt={title:mn};!gn&&!vt&&(Jt.title=null,Jt.open=!1);const jt=(0,Te.Z)(Re).length;let fe=Pe.createElement(ae.ck,Object.assign({},(0,ke.Z)(we,["title","icon","danger"]),{className:ce()({[`${xt}-item-danger`]:yt,[`${xt}-item-only-child`]:(Ne?jt+1:jt)===1},he),title:typeof lt=="string"?lt:void 0}),(0,De.Tm)(Ne,{className:ce()((0,De.l$)(Ne)?(Le=Ne.props)===null||Le===void 0?void 0:Le.className:"",`${xt}-item-icon`)}),en(vt));return Lt||(fe=Pe.createElement(ze.Z,Object.assign({},Jt,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${xt}-inline-collapsed-tooltip`}),fe)),fe},x=we=>{var Le;const{popupClassName:he,icon:Re,title:Ne,theme:lt}=we,yt=Pe.useContext(a),{prefixCls:xt,inlineCollapsed:Tt,theme:Rt}=yt,Lt=(0,ae.Xl)();let vt;if(!Re)vt=Tt&&!Lt.length&&Ne&&typeof Ne=="string"?Pe.createElement("div",{className:`${xt}-inline-collapsed-noicon`},Ne.charAt(0)):Pe.createElement("span",{className:`${xt}-title-content`},Ne);else{const gn=(0,De.l$)(Ne)&&Ne.type==="span";vt=Pe.createElement(Pe.Fragment,null,(0,De.Tm)(Re,{className:ce()((0,De.l$)(Re)?(Le=Re.props)===null||Le===void 0?void 0:Le.className:"",`${xt}-item-icon`)}),gn?Ne:Pe.createElement("span",{className:`${xt}-title-content`},Ne))}const en=Pe.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]);return Pe.createElement(a.Provider,{value:en},Pe.createElement(ae.Wd,Object.assign({},(0,ke.Z)(we,["icon"]),{title:vt,popupClassName:ce()(xt,he,`${xt}-${lt||Rt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(we,Le){var he={};for(var Re in we)Object.prototype.hasOwnProperty.call(we,Re)&&Le.indexOf(Re)<0&&(he[Re]=we[Re]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Re=Object.getOwnPropertySymbols(we);Ne<Re.length;Ne++)Le.indexOf(Re[Ne])<0&&Object.prototype.propertyIsEnumerable.call(we,Re[Ne])&&(he[Re[Ne]]=we[Re[Ne]]);return he};function ie(we){return(we||[]).map((Le,he)=>{if(Le&&typeof Le=="object"){const Re=Le,{label:Ne,children:lt,key:yt,type:xt}=Re,Tt=re(Re,["label","children","key","type"]),Rt=yt!=null?yt:`tmp-${he}`;return lt||xt==="group"?xt==="group"?Pe.createElement(ae.BW,Object.assign({key:Rt},Tt,{title:Ne}),ie(lt)):Pe.createElement(x,Object.assign({key:Rt},Tt,{title:Ne}),ie(lt)):xt==="divider"?Pe.createElement(Ie,Object.assign({key:Rt},Tt)):Pe.createElement(E,Object.assign({key:Rt},Tt),Ne)}return null}).filter(Le=>Le)}function ue(we){return Pe.useMemo(()=>we&&ie(we),[we])}var le=ge(64993),Be=ge(17313),xe=ge(8378),mt=ge(13826),Mt=ge(29878),Ut=ge(83116),be=ge(37613),ot=we=>{const{componentCls:Le,motionDurationSlow:he,horizontalLineHeight:Re,colorSplit:Ne,lineWidth:lt,lineType:yt,itemPaddingInline:xt}=we;return{[`${Le}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${lt}px ${yt} ${Ne}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:xt},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},gt=we=>{let{componentCls:Le,menuArrowOffset:he}=we;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const tt=we=>Object.assign({},(0,Be.oN)(we));var Ye=(we,Le)=>{const{componentCls:he,itemColor:Re,itemSelectedColor:Ne,groupTitleColor:lt,itemBg:yt,subMenuItemBg:xt,itemSelectedBg:Tt,activeBarHeight:Rt,activeBarWidth:Lt,activeBarBorderWidth:vt,motionDurationSlow:en,motionEaseInOut:gn,motionEaseOut:mn,itemPaddingInline:Jt,motionDurationMid:jt,itemHoverColor:fe,lineType:Ee,colorSplit:je,itemDisabledColor:st,dangerItemColor:St,dangerItemHoverColor:Gt,dangerItemSelectedColor:It,dangerItemActiveBg:Ft,dangerItemSelectedBg:zt,itemHoverBg:Vt,itemActiveBg:Zt,menuSubMenuBg:tn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:an}=we;return{[`${he}-${Le}, ${he}-${Le} > ${he}`]:{color:Re,background:yt,[`&${he}-root:focus-visible`]:Object.assign({},tt(we)),[`${he}-item-group-title`]:{color:lt},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:Ne}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${st} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:fe}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Vt},"&:active":{backgroundColor:Zt}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Vt},"&:active":{backgroundColor:Zt}}},[`${he}-item-danger`]:{color:St,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Gt}},[`&${he}-item:active`]:{background:Ft}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:Ne,[`&${he}-item-danger`]:{color:It},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:Tt,[`&${he}-item-danger`]:{backgroundColor:zt}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},tt(we))},[`&${he}-submenu > ${he}`]:{backgroundColor:tn},[`&${he}-popup > ${he}`]:{backgroundColor:an},[`&${he}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:vt,marginTop:-vt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:Jt,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${en} ${gn}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:Rt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:Rt,borderBottomColor:hn}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${vt}px ${Ee} ${je}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:xt},[`${he}-item, ${he}-submenu-title`]:vt&&Lt?{width:`calc(100% + ${vt}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Lt}px solid ${Ne}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${jt} ${mn}`,`opacity ${jt} ${mn}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:It}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${jt} ${gn}`,`opacity ${jt} ${gn}`].join(",")}}}}}};const Xt=we=>{const{componentCls:Le,itemHeight:he,itemMarginInline:Re,padding:Ne,menuArrowSize:lt,marginXS:yt,itemMarginBlock:xt}=we,Tt=Ne+lt+yt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:Ne,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:xt,width:`calc(100% - ${Re*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:Tt}}};var Ce=we=>{const{componentCls:Le,iconCls:he,itemHeight:Re,colorTextLightSolid:Ne,dropdownWidth:lt,controlHeightLG:yt,motionDurationMid:xt,motionEaseOut:Tt,paddingXL:Rt,itemMarginInline:Lt,fontSizeLG:vt,motionDurationSlow:en,paddingXS:gn,boxShadowSecondary:mn,collapsedWidth:Jt,collapsedIconSize:jt}=we,fe={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Xt(we))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Xt(we)),{boxShadow:mn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:lt,maxHeight:`calc(100vh - ${yt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${en}`,`background ${en}`,`padding ${xt} ${Tt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:fe,[`& ${Le}-item-group-title`]:{paddingInlineStart:Rt}},[`${Le}-item`]:fe}},{[`${Le}-inline-collapsed`]:{width:Jt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:vt,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${vt/2}px - ${Lt}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${he}`]:{margin:0,fontSize:jt,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:Ne}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:gn})}}]};const Ue=we=>{const{componentCls:Le,motionDurationSlow:he,motionDurationMid:Re,motionEaseInOut:Ne,motionEaseOut:lt,iconCls:yt,iconSize:xt,iconMarginInlineEnd:Tt}=we;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${Ne}`].join(","),[`${Le}-item-icon, ${yt}`]:{minWidth:xt,fontSize:xt,transition:[`font-size ${Re} ${lt}`,`margin ${he} ${Ne}`,`color ${he}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${he} ${Ne}`,`margin ${he}`,`color ${he}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Le}-item-only-child`]:{[`> ${yt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ht=we=>{const{componentCls:Le,motionDurationSlow:he,motionEaseInOut:Re,borderRadius:Ne,menuArrowSize:lt,menuArrowOffset:yt}=we;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${Re}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:lt*.6,height:lt*.15,backgroundColor:"currentcolor",borderRadius:Ne,transition:[`background ${he} ${Re}`,`transform ${he} ${Re}`,`top ${he} ${Re}`,`color ${he} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${yt})`},"&::after":{transform:`rotate(-45deg) translateY(${yt})`}}}}},Ze=we=>{const{antCls:Le,componentCls:he,fontSize:Re,motionDurationSlow:Ne,motionDurationMid:lt,motionEaseInOut:yt,paddingXS:xt,padding:Tt,colorSplit:Rt,lineWidth:Lt,zIndexPopup:vt,borderRadiusLG:en,subMenuItemBorderRadius:gn,menuArrowSize:mn,menuArrowOffset:Jt,lineType:jt,menuPanelMaskInset:fe,groupTitleLineHeight:Ee,groupTitleFontSize:je}=we;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(we)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ne} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${xt}px ${Tt}px`,fontSize:je,lineHeight:Ee,transition:`all ${Ne}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${Ne} ${yt}`,`background ${Ne} ${yt}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${Ne} ${yt}`,`background ${Ne} ${yt}`,`padding ${lt} ${yt}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${Ne} ${yt}`,`padding ${Ne} ${yt}`].join(",")},[`${he}-title-content`]:{transition:`color ${Ne}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Rt,borderStyle:jt,borderWidth:0,borderTopWidth:Lt,marginBlock:Lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ue(we)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${Re*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:vt,borderRadius:en,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${fe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:fe},"\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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:en},Ue(we)),ht(we)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:gn},[`${he}-submenu-title::after`]:{transition:`transform ${Ne} ${yt}`}})}}),ht(we)),{[`&-inline-collapsed ${he}-submenu-arrow,
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Jt})`},"&::after":{transform:`rotate(45deg) translateX(-${Jt})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Jt})`},"&::before":{transform:`rotate(45deg) translateX(${Jt})`}}})},{[`${Le}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var it=(we,Le)=>(0,Ut.Z)("Menu",Re=>{if(Le===!1)return[];const{colorBgElevated:Ne,colorPrimary:lt,colorTextLightSolid:yt,controlHeightLG:xt,fontSize:Tt,darkItemColor:Rt,darkDangerItemColor:Lt,darkItemBg:vt,darkSubMenuItemBg:en,darkItemSelectedColor:gn,darkItemSelectedBg:mn,darkDangerItemSelectedBg:Jt,darkItemHoverBg:jt,darkGroupTitleColor:fe,darkItemHoverColor:Ee,darkItemDisabledColor:je,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:Gt}=Re,It=Tt/7*5,Ft=(0,be.TS)(Re,{menuArrowSize:It,menuHorizontalHeight:xt*1.15,menuArrowOffset:`${It*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ne}),zt=(0,be.TS)(Ft,{itemColor:Rt,itemHoverColor:Ee,groupTitleColor:fe,itemSelectedColor:gn,itemBg:vt,popupBg:vt,subMenuItemBg:en,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:jt,itemDisabledColor:je,dangerItemColor:Lt,dangerItemHoverColor:st,dangerItemSelectedColor:St,dangerItemActiveBg:Gt,dangerItemSelectedBg:Jt,menuSubMenuBg:en,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:lt});return[Ze(Ft),ot(Ft),Ce(Ft),Ye(Ft,"light"),Ye(zt,"dark"),gt(Ft),(0,xe.Z)(Ft),(0,mt.oN)(Ft,"slide-up"),(0,mt.oN)(Ft,"slide-down"),(0,Mt._y)(Ft,"zoom-big")]},Re=>{const{colorPrimary:Ne,colorError:lt,colorTextDisabled:yt,colorErrorBg:xt,colorText:Tt,colorTextDescription:Rt,colorBgContainer:Lt,colorFillAlter:vt,colorFillContent:en,lineWidth:gn,lineWidthBold:mn,controlItemBgActive:Jt,colorBgTextHover:jt,controlHeightLG:fe,lineHeight:Ee,colorBgElevated:je,marginXXS:st,padding:St,fontSize:Gt,controlHeightSM:It,fontSizeLG:Ft,colorTextLightSolid:zt,colorErrorHover:Vt}=Re,Zt=new le.C(zt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Ne,horizontalItemHoverColor:Ne,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:Ne,itemSelectedColor:Ne,colorItemTextSelectedHorizontal:Ne,horizontalItemSelectedColor:Ne,colorItemBg:Lt,itemBg:Lt,colorItemBgHover:jt,itemHoverBg:jt,colorItemBgActive:en,itemActiveBg:Jt,colorSubItemBg:vt,subMenuItemBg:vt,colorItemBgSelected:Jt,itemSelectedBg:Jt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:gn,activeBarBorderWidth:gn,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:lt,dangerItemColor:lt,colorDangerItemTextHover:lt,dangerItemHoverColor:lt,colorDangerItemTextSelected:lt,dangerItemSelectedColor:lt,colorDangerItemBgActive:xt,dangerItemActiveBg:xt,colorDangerItemBgSelected:xt,dangerItemSelectedBg:xt,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:fe,groupTitleLineHeight:Ee,collapsedWidth:fe*2,popupBg:je,itemMarginBlock:st,itemPaddingInline:St,horizontalLineHeight:`${fe*1.15}px`,iconSize:Gt,iconMarginInlineEnd:It-Gt,collapsedIconSize:Ft,groupTitleFontSize:Gt,darkItemDisabledColor:new le.C(zt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zt,darkItemSelectedBg:Ne,darkDangerItemSelectedBg:lt,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:zt,darkDangerItemHoverColor:Vt,darkDangerItemSelectedColor:zt,darkDangerItemActiveBg:lt}},{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"]]})(we),de=function(we,Le){var he={};for(var Re in we)Object.prototype.hasOwnProperty.call(we,Re)&&Le.indexOf(Re)<0&&(he[Re]=we[Re]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Re=Object.getOwnPropertySymbols(we);Ne<Re.length;Ne++)Le.indexOf(Re[Ne])<0&&Object.prototype.propertyIsEnumerable.call(we,Re[Ne])&&(he[Re[Ne]]=we[Re[Ne]]);return he},Nt=(0,Pe.forwardRef)((we,Le)=>{var he,Re;const Ne=Pe.useContext(oe.Z),lt=Ne||{},{getPrefixCls:yt,getPopupContainer:xt,direction:Tt,menu:Rt}=Pe.useContext(We.E_),Lt=yt(),{prefixCls:vt,className:en,style:gn,theme:mn="light",expandIcon:Jt,_internalDisableMenuItemTitleTooltip:jt,inlineCollapsed:fe,siderCollapsed:Ee,items:je,children:st,rootClassName:St,mode:Gt,selectable:It,onClick:Ft,overflowedIndicatorPopupClassName:zt}=we,Vt=de(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,ke.Z)(Vt,["collapsedWidth"]),tn=ue(je)||st;(he=lt.validator)===null||he===void 0||he.call(lt,{mode:Gt});const hn=(0,ee.useEvent)(function(){var In;Ft==null||Ft.apply(void 0,arguments),(In=lt.onClick)===null||In===void 0||In.call(lt)}),vn=lt.mode||Gt,Fn=It!=null?It:lt.selectable,dn=Pe.useMemo(()=>Ee!==void 0?Ee:fe,[fe,Ee]),an={horizontal:{motionName:`${Lt}-slide-up`},inline:(0,te.Z)(Lt),other:{motionName:`${Lt}-zoom-big`}},yn=yt("menu",vt||lt.prefixCls),[xn,Cn]=it(yn,!Ne),cn=ce()(`${yn}-${mn}`,Rt==null?void 0:Rt.className,en);let Nn;if(typeof Jt=="function")Nn=Jt;else if(Jt===null||Jt===!1)Nn=null;else if(lt.expandIcon===null||lt.expandIcon===!1)Nn=null;else{const In=Jt!=null?Jt:lt.expandIcon;Nn=(0,De.Tm)(In,{className:ce()(`${yn}-submenu-expand-icon`,(0,De.l$)(In)?(Re=In.props)===null||Re===void 0?void 0:Re.className:"")})}const Yn=Pe.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:Tt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:jt}),[yn,dn,Tt,jt,mn]);return xn(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Yn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:xt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,zt),mode:vn,selectable:Fn,onClick:hn},Zt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),gn),className:cn,prefixCls:yn,direction:Tt,defaultMotions:an,expandIcon:Nn,ref:Le,rootClassName:ce()(St,Cn)}),tn))))});const Wt=(0,Pe.forwardRef)((we,Le)=>{const he=(0,Pe.useRef)(null),Re=Pe.useContext(qe.D);return(0,Pe.useImperativeHandle)(Le,()=>({menu:he.current,focus:Ne=>{var lt;(lt=he.current)===null||lt===void 0||lt.focus(Ne)}})),Pe.createElement(Nt,Object.assign({ref:he},we,Re))});Wt.Item=E,Wt.SubMenu=x,Wt.Divider=Ie,Wt.ItemGroup=ae.BW;var Dt=Wt},93948:function(Ge,ut,ge){"use strict";ge.d(ut,{Z:function(){return jt}});var ae=ge(59301),Pe=ge(29679),qe=ge(40001),_e=ge(19248),ce=ge(99267),We=ge(92310),me=ge.n(We),Ve=ge(2738),Ie=ge(36355),Te=ge(60499),ke=ge(85899),ze=ge(42244),De={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ee=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var st=Date.now(),St=!1;Ee.current.forEach(function(Gt){if(Gt){St=!0;var It=Gt.style;It.transitionDuration=".3s, .3s, .3s, .06s",je.current&&st-je.current<100&&(It.transitionDuration="0s, 0s")}}),St&&(je.current=Date.now())}),Ee.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ee){var je=(0,ke.Z)((0,ke.Z)({},De),Ee),st=je.className,St=je.percent,Gt=je.prefixCls,It=je.strokeColor,Ft=je.strokeLinecap,zt=je.strokeWidth,Vt=je.style,Zt=je.trailColor,tn=je.trailWidth,hn=je.transition,vn=(0,ze.Z)(je,a);delete vn.gapPosition;var Fn=Array.isArray(St)?St:[St],dn=Array.isArray(It)?It:[It],an=ne(),yn=zt/2,xn=100-zt/2,Cn="M ".concat(Ft==="round"?yn:0,",").concat(yn,`
L `).concat(Ft==="round"?xn:100,",").concat(yn),cn="0 0 100 ".concat(zt),Nn=0;return ae.createElement("svg",(0,Te.Z)({className:me()("".concat(Gt,"-line"),st),viewBox:cn,preserveAspectRatio:"none",style:Vt},vn),ae.createElement("path",{className:"".concat(Gt,"-line-trail"),d:Cn,strokeLinecap:Ft,stroke:Zt,strokeWidth:tn||zt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(Ft){case"round":Wn=1-zt/100;break;case"square":Wn=1-zt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[In]||dn[dn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(Gt,"-line-path"),d:Cn,strokeLinecap:Ft,stroke:Jn,strokeWidth:zt,fillOpacity:"0",ref:function(ve){an[In]=ve},style:na})}))},E=y,b=ge(43749),x=ge(72190),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var fe;return te?(fe=ee,ee+=1):fe="TEST_OR_SSR",fe}var re=function(fe){var Ee=ae.useState(),je=(0,x.Z)(Ee,2),st=je[0],St=je[1];return ae.useEffect(function(){St("rc_progress_".concat(oe()))},[]),fe||st},ie=function(Ee){var je=Ee.bg,st=Ee.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},st)};function ue(fe,Ee){return Object.keys(fe).map(function(je){var st=parseFloat(je),St="".concat(Math.floor(st*Ee),"%");return"".concat(fe[je]," ").concat(St)})}var le=ae.forwardRef(function(fe,Ee){var je=fe.prefixCls,st=fe.color,St=fe.gradientId,Gt=fe.radius,It=fe.style,Ft=fe.ptg,zt=fe.strokeLinecap,Vt=fe.strokeWidth,Zt=fe.size,tn=fe.gapDegree,hn=st&&(0,b.Z)(st)==="object",vn=hn?"#FFF":void 0,Fn=Zt/2,dn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:Gt,cx:Fn,cy:Fn,stroke:vn,strokeLinecap:zt,strokeWidth:Vt,opacity:Ft===0?0:1,style:It,ref:Ee});if(!hn)return dn;var an="".concat(St,"-conic"),yn=tn?"".concat(180+tn/2,"deg"):"0deg",xn=ue(st,(360-tn)/360),Cn=ue(st,1),cn="conic-gradient(from ".concat(yn,", ").concat(xn.join(", "),")"),Nn="linear-gradient(to ".concat(tn?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:an},dn),ae.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(an,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:cn}))))}),Be=le,xe=100,mt=function(Ee,je,st,St,Gt,It,Ft,zt,Vt,Zt){var tn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=st/100*360*((360-It)/360),vn=It===0?0:{bottom:0,top:180,left:90,right:-90}[Ft],Fn=(100-St)/100*je;Vt==="round"&&St!==100&&(Fn+=Zt/2,Fn>=je&&(Fn=je-.01));var dn=xe/2;return{stroke:typeof zt=="string"?zt:void 0,strokeDasharray:"".concat(je,"px ").concat(Ee),strokeDashoffset:Fn+tn,transform:"rotate(".concat(Gt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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}},Mt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ut(fe){var Ee=fe!=null?fe:[];return Array.isArray(Ee)?Ee:[Ee]}var be=function(Ee){var je=(0,ke.Z)((0,ke.Z)({},De),Ee),st=je.id,St=je.prefixCls,Gt=je.steps,It=je.strokeWidth,Ft=je.trailWidth,zt=je.gapDegree,Vt=zt===void 0?0:zt,Zt=je.gapPosition,tn=je.trailColor,hn=je.strokeLinecap,vn=je.style,Fn=je.className,dn=je.strokeColor,an=je.percent,yn=(0,ze.Z)(je,Mt),xn=xe/2,Cn=re(st),cn="".concat(Cn,"-gradient"),Nn=xn-It/2,Yn=Math.PI*2*Nn,In=Vt>0?90+Vt/2:-90,Wn=Yn*((360-Vt)/360),na=(0,b.Z)(Gt)==="object"?Gt:{count:Gt,space:2},Jn=na.count,pe=na.space,ve=Ut(an),Se=Ut(dn),dt=Se.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),Et=dt&&(0,b.Z)(dt)==="object",bt=Et?"butt":hn,ln=mt(Yn,Wn,0,100,In,Vt,Zt,tn,bt,It),kt=ne(),Qt=function(){var at=0;return ve.map(function(qt,An){var Zn=Se[An]||Se[Se.length-1],Bn=mt(Yn,Wn,at,qt,In,Vt,Zt,Zn,bt,It);return at+=qt,ae.createElement(Be,{key:An,color:Zn,ptg:qt,radius:Nn,prefixCls:St,gradientId:cn,style:Bn,strokeLinecap:bt,strokeWidth:It,gapDegree:Vt,ref:function(Oe){kt[An]=Oe},size:xe})}).reverse()},Ln=function(){var at=Math.round(Jn*(ve[0]/100)),qt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,Bn){var se=Bn<=at-1?Se[0]:tn,Oe=se&&(0,b.Z)(se)==="object"?"url(#".concat(cn,")"):void 0,$e=mt(Yn,Wn,An,qt,In,Vt,Zt,se,"butt",It,pe);return An+=(Wn-$e.strokeDashoffset+pe)*100/Wn,ae.createElement("circle",{key:Bn,className:"".concat(St,"-circle-path"),r:Nn,cx:xn,cy:xn,stroke:Oe,strokeWidth:It,opacity:1,style:$e,ref:function(Xe){kt[Bn]=Xe}})})};return ae.createElement("svg",(0,Te.Z)({className:me()("".concat(St,"-circle"),Fn),viewBox:"0 0 ".concat(xe," ").concat(xe),style:vn,id:st,role:"presentation"},yn),!Jn&&ae.createElement("circle",{className:"".concat(St,"-circle-trail"),r:Nn,cx:xn,cy:xn,stroke:tn,strokeLinecap:bt,strokeWidth:Ft||It,style:ln}),Jn?Ln():Qt())},Qe=be,ot={Line:E,Circle:Qe},et=ge(6848),gt=ge(30071);function tt(fe){return!fe||fe<0?0:fe>100?100:fe}function nt(fe){let{success:Ee,successPercent:je}=fe,st=je;return Ee&&"progress"in Ee&&(st=Ee.progress),Ee&&"percent"in Ee&&(st=Ee.percent),st}const Ye=fe=>{let{percent:Ee,success:je,successPercent:st}=fe;const St=tt(nt({success:je,successPercent:st}));return[St,tt(tt(Ee)-St)]},Xt=fe=>{let{success:Ee={},strokeColor:je}=fe;const{strokeColor:st}=Ee;return[st||gt.presetPrimaryColors.green,je||null]},ye=(fe,Ee,je)=>{var st,St,Gt,It;let Ft=-1,zt=-1;if(Ee==="step"){const Vt=je.steps,Zt=je.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?(Ft=fe==="small"?2:14,zt=Zt!=null?Zt:8):typeof fe=="number"?[Ft,zt]=[fe,fe]:[Ft=14,zt=8]=fe,Ft*=Vt}else if(Ee==="line"){const Vt=je==null?void 0:je.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?zt=Vt||(fe==="small"?6:8):typeof fe=="number"?[Ft,zt]=[fe,fe]:[Ft=-1,zt=8]=fe}else(Ee==="circle"||Ee==="dashboard")&&(typeof fe=="string"||typeof fe=="undefined"?[Ft,zt]=fe==="small"?[60,60]:[120,120]:typeof fe=="number"?[Ft,zt]=[fe,fe]:(Ft=(St=(st=fe[0])!==null&&st!==void 0?st:fe[1])!==null&&St!==void 0?St:120,zt=(It=(Gt=fe[0])!==null&&Gt!==void 0?Gt:fe[1])!==null&&It!==void 0?It:120));return[Ft,zt]},Ce=3,Ue=fe=>Ce/fe*100;var Ze=fe=>{const{prefixCls:Ee,trailColor:je=null,strokeLinecap:st="round",gapPosition:St,gapDegree:Gt,width:It=120,type:Ft,children:zt,success:Vt,size:Zt=It}=fe,[tn,hn]=ye(Zt,"circle");let{strokeWidth:vn}=fe;vn===void 0&&(vn=Math.max(Ue(tn),6));const Fn={width:tn,height:hn,fontSize:tn*.15+6},dn=ae.useMemo(()=>{if(Gt||Gt===0)return Gt;if(Ft==="dashboard")return 75},[Gt,Ft]),an=St||Ft==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(fe.strokeColor)==="[object Object]",xn=Xt({success:Vt,strokeColor:fe.strokeColor}),Cn=me()(`${Ee}-inner`,{[`${Ee}-circle-gradient`]:yn}),cn=ae.createElement(Qe,{percent:Ye(fe),strokeWidth:vn,trailWidth:vn,strokeColor:xn,strokeLinecap:st,trailColor:je,prefixCls:Ee,gapDegree:dn,gapPosition:an});return ae.createElement("div",{className:Cn,style:Fn},tn<=20?ae.createElement(et.Z,{title:zt},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,zt))},it=function(fe,Ee){var je={};for(var st in fe)Object.prototype.hasOwnProperty.call(fe,st)&&Ee.indexOf(st)<0&&(je[st]=fe[st]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(fe);St<st.length;St++)Ee.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(fe,st[St])&&(je[st[St]]=fe[st[St]]);return je};const de=fe=>{let Ee=[];return Object.keys(fe).forEach(je=>{const st=parseFloat(je.replace(/%/g,""));isNaN(st)||Ee.push({key:st,value:fe[je]})}),Ee=Ee.sort((je,st)=>je.key-st.key),Ee.map(je=>{let{key:st,value:St}=je;return`${St} ${st}%`}).join(", ")},rt=(fe,Ee)=>{const{from:je=gt.presetPrimaryColors.blue,to:st=gt.presetPrimaryColors.blue,direction:St=Ee==="rtl"?"to left":"to right"}=fe,Gt=it(fe,["from","to","direction"]);if(Object.keys(Gt).length!==0){const It=de(Gt);return{backgroundImage:`linear-gradient(${St}, ${It})`}}return{backgroundImage:`linear-gradient(${St}, ${je}, ${st})`}};var Wt=fe=>{const{prefixCls:Ee,direction:je,percent:st,size:St,strokeWidth:Gt,strokeColor:It,strokeLinecap:Ft="round",children:zt,trailColor:Vt=null,success:Zt}=fe,tn=It&&typeof It!="string"?rt(It,je):{backgroundColor:It},hn=Ft==="square"||Ft==="butt"?0:void 0,vn={backgroundColor:Vt||void 0,borderRadius:hn},Fn=St!=null?St:[-1,Gt||(St==="small"?6:8)],[dn,an]=ye(Fn,"line",{strokeWidth:Gt}),yn=Object.assign({width:`${tt(st)}%`,height:an,borderRadius:hn},tn),xn=nt(fe),Cn={width:`${tt(xn)}%`,height:an,borderRadius:hn,backgroundColor:Zt==null?void 0:Zt.strokeColor},cn={width:dn<0?"100%":dn,height:an};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ee}-outer`,style:cn},ae.createElement("div",{className:`${Ee}-inner`,style:vn},ae.createElement("div",{className:`${Ee}-bg`,style:yn}),xn!==void 0?ae.createElement("div",{className:`${Ee}-success-bg`,style:Cn}):null)),zt)},we=fe=>{const{size:Ee,steps:je,percent:st=0,strokeWidth:St=8,strokeColor:Gt,trailColor:It=null,prefixCls:Ft,children:zt}=fe,Vt=Math.round(je*(st/100)),Zt=Ee==="small"?2:14,tn=Ee!=null?Ee:[Zt,St],[hn,vn]=ye(tn,"step",{steps:je,strokeWidth:St}),Fn=hn/je,dn=new Array(je);for(let an=0;an<je;an++){const yn=Array.isArray(Gt)?Gt[an]:Gt;dn[an]=ae.createElement("div",{key:an,className:me()(`${Ft}-steps-item`,{[`${Ft}-steps-item-active`]:an<=Vt-1}),style:{backgroundColor:an<=Vt-1?yn:It,width:Fn,height:vn}})}return ae.createElement("div",{className:`${Ft}-steps-outer`},dn,zt)},Le=ge(36237),he=ge(17313),Re=ge(83116),Ne=ge(37613);const lt=fe=>{const Ee=fe?"100%":"-100%";return new Le.Keyframes(`antProgress${fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=fe=>{const{componentCls:Ee,iconCls:je}=fe;return{[Ee]:Object.assign(Object.assign({},(0,he.Wf)(fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:fe.fontSize,marginInlineEnd:fe.marginXS,marginBottom:fe.marginXS},[`${Ee}-outer`]:{display:"inline-block",width:"100%"},[`&${Ee}-show-info`]:{[`${Ee}-outer`]:{marginInlineEnd:`calc(-2em - ${fe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${fe.paddingXS}px)`}},[`${Ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:fe.remainingColor,borderRadius:fe.lineBorderRadius},[`${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:fe.defaultColor}},[`${Ee}-success-bg, ${Ee}-bg`]:{position:"relative",backgroundColor:fe.defaultColor,borderRadius:fe.lineBorderRadius,transition:`all ${fe.motionDurationSlow} ${fe.motionEaseInOutCirc}`},[`${Ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:fe.colorSuccess},[`${Ee}-text`]:{display:"inline-block",width:"2em",marginInlineStart:fe.marginXS,color:fe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:fe.fontSize}},[`&${Ee}-status-active`]:{[`${Ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:fe.colorBgContainer,borderRadius:fe.lineBorderRadius,opacity:0,animationName:lt(),animationDuration:fe.progressActiveMotionDuration,animationTimingFunction:fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ee}-rtl${Ee}-status-active`]:{[`${Ee}-bg::before`]:{animationName:lt(!0)}},[`&${Ee}-status-exception`]:{[`${Ee}-bg`]:{backgroundColor:fe.colorError},[`${Ee}-text`]:{color:fe.colorError}},[`&${Ee}-status-exception ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:fe.colorError}},[`&${Ee}-status-success`]:{[`${Ee}-bg`]:{backgroundColor:fe.colorSuccess},[`${Ee}-text`]:{color:fe.colorSuccess}},[`&${Ee}-status-success ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:fe.colorSuccess}}})}},xt=fe=>{const{componentCls:Ee,iconCls:je}=fe;return{[Ee]:{[`${Ee}-circle-trail`]:{stroke:fe.remainingColor},[`&${Ee}-circle ${Ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ee}-circle ${Ee}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:fe.circleTextColor,fontSize:fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${fe.fontSize/fe.fontSizeSM}em`}},[`${Ee}-circle&-status-exception`]:{[`${Ee}-text`]:{color:fe.colorError}},[`${Ee}-circle&-status-success`]:{[`${Ee}-text`]:{color:fe.colorSuccess}}},[`${Ee}-inline-circle`]:{lineHeight:1,[`${Ee}-inner`]:{verticalAlign:"bottom"}}}},Tt=fe=>{const{componentCls:Ee}=fe;return{[Ee]:{[`${Ee}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:fe.progressStepMinWidth,marginInlineEnd:fe.progressStepMarginInlineEnd,backgroundColor:fe.remainingColor,transition:`all ${fe.motionDurationSlow}`,"&-active":{backgroundColor:fe.defaultColor}}}}}},Rt=fe=>{const{componentCls:Ee,iconCls:je}=fe;return{[Ee]:{[`${Ee}-small&-line, ${Ee}-small&-line ${Ee}-text ${je}`]:{fontSize:fe.fontSizeSM}}}};var Lt=(0,Re.Z)("Progress",fe=>{const Ee=fe.marginXXS/2,je=(0,Ne.TS)(fe,{progressStepMarginInlineEnd:Ee,progressStepMinWidth:Ee,progressActiveMotionDuration:"2.4s"});return[yt(je),xt(je),Tt(je),Rt(je)]},fe=>({circleTextColor:fe.colorText,defaultColor:fe.colorInfo,remainingColor:fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),vt=function(fe,Ee){var je={};for(var st in fe)Object.prototype.hasOwnProperty.call(fe,st)&&Ee.indexOf(st)<0&&(je[st]=fe[st]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,st=Object.getOwnPropertySymbols(fe);St<st.length;St++)Ee.indexOf(st[St])<0&&Object.prototype.propertyIsEnumerable.call(fe,st[St])&&(je[st[St]]=fe[st[St]]);return je};const en=null,gn=["normal","exception","active","success"];var Jt=ae.forwardRef((fe,Ee)=>{const{prefixCls:je,className:st,rootClassName:St,steps:Gt,strokeColor:It,percent:Ft=0,size:zt="default",showInfo:Vt=!0,type:Zt="line",status:tn,format:hn,style:vn}=fe,Fn=vt(fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ae.useMemo(()=>{var ve,Se;const dt=nt(fe);return parseInt(dt!==void 0?(ve=dt!=null?dt:0)===null||ve===void 0?void 0:ve.toString():(Se=Ft!=null?Ft:0)===null||Se===void 0?void 0:Se.toString(),10)},[Ft,fe.success,fe.successPercent]),an=ae.useMemo(()=>!gn.includes(tn)&&dn>=100?"success":tn||"normal",[tn,dn]),{getPrefixCls:yn,direction:xn,progress:Cn}=ae.useContext(Ie.E_),cn=yn("progress",je),[Nn,Yn]=Lt(cn),In=ae.useMemo(()=>{if(!Vt)return null;const ve=nt(fe);let Se;const dt=hn||(bt=>`${bt}%`),Et=Zt==="line";return hn||an!=="exception"&&an!=="success"?Se=dt(tt(Ft),tt(ve)):an==="exception"?Se=Et?ae.createElement(_e.Z,null):ae.createElement(ce.Z,null):an==="success"&&(Se=Et?ae.createElement(Pe.Z,null):ae.createElement(qe.Z,null)),ae.createElement("span",{className:`${cn}-text`,title:typeof Se=="string"?Se:void 0},Se)},[Vt,Ft,dn,an,Zt,cn,hn]),Wn=Array.isArray(It)?It[0]:It,na=typeof It=="string"||Array.isArray(It)?It:void 0;let Jn;Zt==="line"?Jn=Gt?ae.createElement(we,Object.assign({},fe,{strokeColor:na,prefixCls:cn,steps:Gt}),In):ae.createElement(Wt,Object.assign({},fe,{strokeColor:Wn,prefixCls:cn,direction:xn}),In):(Zt==="circle"||Zt==="dashboard")&&(Jn=ae.createElement(Ze,Object.assign({},fe,{strokeColor:Wn,prefixCls:cn,progressStatus:an}),In));const pe=me()(cn,`${cn}-status-${an}`,`${cn}-${Zt==="dashboard"&&"circle"||Gt&&"steps"||Zt}`,{[`${cn}-inline-circle`]:Zt==="circle"&&ye(zt,"circle")[0]<=20,[`${cn}-show-info`]:Vt,[`${cn}-${zt}`]:typeof zt=="string",[`${cn}-rtl`]:xn==="rtl"},Cn==null?void 0:Cn.className,st,St,Yn);return Nn(ae.createElement("div",Object.assign({ref:Ee,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),vn),className:pe,role:"progressbar","aria-valuenow":dn},(0,Ve.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),jt=Jt},54580:function(Ge,ut,ge){"use strict";ge.d(ut,{default:function(){return Bn}});var ae=ge(59301),Pe=ge(77654),qe=ge(92310),_e=ge.n(qe),ce=ge(60499),We=ge(38705),me=ge(17212),Ve=ge(39153),Ie=ge(55401),Te=ge(18642),ke=ge(42244),ze=ge(73001),De=ge(43749),ne=ge(11576),a=ge(26112);function y(se,Oe){var $e="cannot ".concat(se.method," ").concat(se.action," ").concat(Oe.status,"'"),Me=new Error($e);return Me.status=Oe.status,Me.method=se.method,Me.url=se.action,Me}function E(se){var Oe=se.responseText||se.response;if(!Oe)return Oe;try{return JSON.parse(Oe)}catch($e){return Oe}}function b(se){var Oe=new XMLHttpRequest;se.onProgress&&Oe.upload&&(Oe.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),se.onProgress(Je)});var $e=new FormData;se.data&&Object.keys(se.data).forEach(function(Xe){var Je=se.data[Xe];if(Array.isArray(Je)){Je.forEach(function(He){$e.append("".concat(Xe,"[]"),He)});return}$e.append(Xe,Je)}),se.file instanceof Blob?$e.append(se.filename,se.file,se.file.name):$e.append(se.filename,se.file),Oe.onerror=function(Je){se.onError(Je)},Oe.onload=function(){return Oe.status<200||Oe.status>=300?se.onError(y(se,Oe),E(Oe)):se.onSuccess(E(Oe),Oe)},Oe.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in Oe&&(Oe.withCredentials=!0);var Me=se.headers||{};return Me["X-Requested-With"]!==null&&Oe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Me).forEach(function(Xe){Me[Xe]!==null&&Oe.setRequestHeader(Xe,Me[Xe])}),Oe.send($e),{abort:function(){Oe.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=ge(48736),oe=function(se,Oe){if(se&&Oe){var $e=Array.isArray(Oe)?Oe:Oe.split(","),Me=se.name||"",Xe=se.type||"",Je=Xe.replace(/\/.*$/,"");return $e.some(function(He){var Ae=He.trim();if(/^\*(\/\*)?$/.test(He))return!0;if(Ae.charAt(0)==="."){var $t=Me.toLowerCase(),Ot=Ae.toLowerCase(),Fe=[Ot];return(Ot===".jpg"||Ot===".jpeg")&&(Fe=[".jpg",".jpeg"]),Fe.some(function(on){return $t.endsWith(on)})}return/\/\*$/.test(Ae)?Je===Ae.replace(/\/.*$/,""):Xe===Ae?!0:/^\w+$/.test(Ae)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ae,"'.Skip for check.")),!0):!1})}return!0};function re(se,Oe){var $e=se.createReader(),Me=[];function Xe(){$e.readEntries(function(Je){var He=Array.prototype.slice.apply(Je);Me=Me.concat(He);var Ae=!He.length;Ae?Oe(Me):Xe()})}Xe()}var ie=function(Oe,$e,Me){var Xe=function Je(He,Ae){He&&(He.path=Ae||"",He.isFile?He.file(function($t){Me($t)&&(He.fullPath&&!$t.webkitRelativePath&&(Object.defineProperties($t,{webkitRelativePath:{writable:!0}}),$t.webkitRelativePath=He.fullPath.replace(/^\//,""),Object.defineProperties($t,{webkitRelativePath:{writable:!1}})),$e([$t]))}):He.isDirectory&&re(He,function($t){$t.forEach(function(Ot){Je(Ot,"".concat(Ae).concat(He.name,"/"))})}))};Oe.forEach(function(Je){Xe(Je.webkitGetAsEntry())})},ue=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(se){(0,Ve.Z)($e,se);var Oe=(0,Ie.Z)($e);function $e(){var Me;(0,We.Z)(this,$e);for(var Xe=arguments.length,Je=new Array(Xe),He=0;He<Xe;He++)Je[He]=arguments[He];return Me=Oe.call.apply(Oe,[this].concat(Je)),Me.state={uid:ee()},Me.reqs={},Me.fileInput=void 0,Me._isMounted=void 0,Me.onChange=function(Ae){var $t=Me.props,Ot=$t.accept,Fe=$t.directory,on=Ae.target.files,nn=(0,Pe.Z)(on).filter(function(pn){return!Fe||oe(pn,Ot)});Me.uploadFiles(nn),Me.reset()},Me.onClick=function(Ae){var $t=Me.fileInput;if($t){var Ot=Ae.target,Fe=Me.props.onClick;if(Ot&&Ot.tagName==="BUTTON"){var on=$t.parentNode;on.focus(),Ot.blur()}$t.click(),Fe&&Fe(Ae)}},Me.onKeyDown=function(Ae){Ae.key==="Enter"&&Me.onClick(Ae)},Me.onFileDrop=function(Ae){var $t=Me.props.multiple;if(Ae.preventDefault(),Ae.type!=="dragover")if(Me.props.directory)ue(Array.prototype.slice.call(Ae.dataTransfer.items),Me.uploadFiles,function(Fe){return oe(Fe,Me.props.accept)});else{var Ot=(0,Pe.Z)(Ae.dataTransfer.files).filter(function(Fe){return oe(Fe,Me.props.accept)});$t===!1&&(Ot=Ot.slice(0,1)),Me.uploadFiles(Ot)}},Me.uploadFiles=function(Ae){var $t=(0,Pe.Z)(Ae),Ot=$t.map(function(Fe){return Fe.uid=ee(),Me.processFile(Fe,$t)});Promise.all(Ot).then(function(Fe){var on=Me.props.onBatchStart;on==null||on(Fe.map(function(nn){var pn=nn.origin,En=nn.parsedFile;return{file:pn,parsedFile:En}})),Fe.filter(function(nn){return nn.parsedFile!==null}).forEach(function(nn){Me.post(nn)})})},Me.processFile=function(){var Ae=(0,ne.Z)((0,ze.Z)().mark(function $t(Ot,Fe){var on,nn,pn,En,Ke,ft,Ct,Pt,Kt;return(0,ze.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(on=Me.props.beforeUpload,nn=Ot,!on){At.next=14;break}return At.prev=3,At.next=6,on(Ot,Fe);case 6:nn=At.sent,At.next=12;break;case 9:At.prev=9,At.t0=At.catch(3),nn=!1;case 12:if(nn!==!1){At.next=14;break}return At.abrupt("return",{origin:Ot,parsedFile:null,action:null,data:null});case 14:if(pn=Me.props.action,typeof pn!="function"){At.next=21;break}return At.next=18,pn(Ot);case 18:En=At.sent,At.next=22;break;case 21:En=pn;case 22:if(Ke=Me.props.data,typeof Ke!="function"){At.next=29;break}return At.next=26,Ke(Ot);case 26:ft=At.sent,At.next=30;break;case 29:ft=Ke;case 30:return Ct=((0,De.Z)(nn)==="object"||typeof nn=="string")&&nn?nn:Ot,Ct instanceof File?Pt=Ct:Pt=new File([Ct],Ot.name,{type:Ot.type}),Kt=Pt,Kt.uid=Ot.uid,At.abrupt("return",{origin:Ot,data:ft,parsedFile:Kt,action:En});case 35:case"end":return At.stop()}},$t,null,[[3,9]])}));return function($t,Ot){return Ae.apply(this,arguments)}}(),Me.saveFileInput=function(Ae){Me.fileInput=Ae},Me}return(0,me.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Xe){var Je=this,He=Xe.data,Ae=Xe.origin,$t=Xe.action,Ot=Xe.parsedFile;if(this._isMounted){var Fe=this.props,on=Fe.onStart,nn=Fe.customRequest,pn=Fe.name,En=Fe.headers,Ke=Fe.withCredentials,ft=Fe.method,Ct=Ae.uid,Pt=nn||b,Kt={action:$t,filename:pn,data:He,file:Ot,headers:En,withCredentials:Ke,method:ft||"post",onProgress:function(At){var Pn=Je.props.onProgress;Pn==null||Pn(At,Ot)},onSuccess:function(At,Pn){var fn=Je.props.onSuccess;fn==null||fn(At,Ot,Pn),delete Je.reqs[Ct]},onError:function(At,Pn){var fn=Je.props.onError;fn==null||fn(At,Pn,Ot),delete Je.reqs[Ct]}};on(Ae),this.reqs[Ct]=Pt(Kt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Xe){var Je=this.reqs;if(Xe){var He=Xe.uid?Xe.uid:Xe;Je[He]&&Je[He].abort&&Je[He].abort(),delete Je[He]}else Object.keys(Je).forEach(function(Ae){Je[Ae]&&Je[Ae].abort&&Je[Ae].abort(),delete Je[Ae]})}},{key:"render",value:function(){var Xe=this.props,Je=Xe.component,He=Xe.prefixCls,Ae=Xe.className,$t=Xe.disabled,Ot=Xe.id,Fe=Xe.style,on=Xe.multiple,nn=Xe.accept,pn=Xe.capture,En=Xe.children,Ke=Xe.directory,ft=Xe.openFileDialogOnClick,Ct=Xe.onMouseEnter,Pt=Xe.onMouseLeave,Kt=(0,ke.Z)(Xe,le),Yt=_e()((0,Te.Z)((0,Te.Z)((0,Te.Z)({},He,!0),"".concat(He,"-disabled"),$t),Ae,Ae)),At=Ke?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=$t?{}:{onClick:ft?this.onClick:function(){},onKeyDown:ft?this.onKeyDown:function(){},onMouseEnter:Ct,onMouseLeave:Pt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Je,(0,ce.Z)({},Pn,{className:Yt,role:"button",style:Fe}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Kt,{aria:!0,data:!0}),{id:Ot,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:nn},At,{multiple:on,onChange:this.onChange},pn!=null?{capture:pn}:{})),En)}}]),$e}(ae.Component),xe=Be;function mt(){}var Mt=function(se){(0,Ve.Z)($e,se);var Oe=(0,Ie.Z)($e);function $e(){var Me;(0,We.Z)(this,$e);for(var Xe=arguments.length,Je=new Array(Xe),He=0;He<Xe;He++)Je[He]=arguments[He];return Me=Oe.call.apply(Oe,[this].concat(Je)),Me.uploader=void 0,Me.saveUploader=function(Ae){Me.uploader=Ae},Me}return(0,me.Z)($e,[{key:"abort",value:function(Xe){this.uploader.abort(Xe)}},{key:"render",value:function(){return ae.createElement(xe,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ae.Component);Mt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:mt,onError:mt,onSuccess:mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ut=Mt,be=Ut,Qe=ge(18929),ot=ge(4676),et=ge(36355),gt=ge(1684),tt=ge(9763),nt=ge(31724),Ye={icon:function(Oe,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{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"},Xt=Ye,ye=ge(7657),Ce=function(Oe,$e){return ae.createElement(ye.Z,(0,ce.Z)({},Oe,{ref:$e,icon:Xt}))},Ue=ae.forwardRef(Ce),ht=Ue,Ze=ge(58617),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=it,rt=function(Oe,$e){return ae.createElement(ye.Z,(0,ce.Z)({},Oe,{ref:$e,icon:de}))},Nt=ae.forwardRef(rt),Wt=Nt,Dt={icon:function(Oe,$e){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:$e}},{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:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{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"},we=Dt,Le=function(Oe,$e){return ae.createElement(ye.Z,(0,ce.Z)({},Oe,{ref:$e,icon:we}))},he=ae.forwardRef(Le),Re=he,Ne=ge(77900),lt=ge(56762),yt=ge(62892),xt=ge(92343),Tt=ge(3113);function Rt(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function Lt(se,Oe){const $e=(0,Pe.Z)(Oe),Me=$e.findIndex(Xe=>{let{uid:Je}=Xe;return Je===se.uid});return Me===-1?$e.push(se):$e[Me]=se,$e}function vt(se,Oe){const $e=se.uid!==void 0?"uid":"name";return Oe.filter(Me=>Me[$e]===se[$e])[0]}function en(se,Oe){const $e=se.uid!==void 0?"uid":"name",Me=Oe.filter(Xe=>Xe[$e]!==se[$e]);return Me.length===Oe.length?null:Me}const gn=function(){const Oe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Me=Oe[Oe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Me)||[""])[0]},mn=se=>se.indexOf("image/")===0,Jt=se=>{if(se.type&&!se.thumbUrl)return mn(se.type);const Oe=se.thumbUrl||se.url||"",$e=gn(Oe);return/^data:image\//.test(Oe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Oe)||$e)},jt=200;function fe(se){return new Promise(Oe=>{if(!se.type||!mn(se.type)){Oe("");return}const $e=document.createElement("canvas");$e.width=jt,$e.height=jt,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${jt}px; height: ${jt}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Me=$e.getContext("2d"),Xe=new Image;if(Xe.onload=()=>{const{width:Je,height:He}=Xe;let Ae=jt,$t=jt,Ot=0,Fe=0;Je>He?($t=He*(jt/Je),Fe=-($t-Ae)/2):(Ae=Je*(jt/He),Ot=-(Ae-$t)/2),Me.drawImage(Xe,Ot,Fe,Ae,$t);const on=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(Xe.src),Oe(on)},Xe.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(Xe.src=Je.result)},Je.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&Oe(Je.result)},Je.readAsDataURL(se)}else Xe.src=window.URL.createObjectURL(se)})}var Ee=ge(26227),je=ge(41464),st=ge(15277),St=ge(93948),Gt=ge(6848),Ft=ae.forwardRef((se,Oe)=>{let{prefixCls:$e,className:Me,style:Xe,locale:Je,listType:He,file:Ae,items:$t,progress:Ot,iconRender:Fe,actionIconRender:on,itemRender:nn,isImgUrl:pn,showPreviewIcon:En,showRemoveIcon:Ke,showDownloadIcon:ft,previewIcon:Ct,removeIcon:Pt,downloadIcon:Kt,onPreview:Yt,onDownload:At,onClose:Pn}=se;var fn,oa;const{status:Qn}=Ae,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=Fe(Ae);let Vn=ae.createElement("div",{className:`${$e}-icon`},da);if(He==="picture"||He==="picture-card"||He==="picture-circle")if(qn==="uploading"||!Ae.thumbUrl&&!Ae.url){const Mn=_e()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Mn},da)}else{const Mn=pn!=null&&pn(Ae)?ae.createElement("img",{src:Ae.thumbUrl||Ae.url,alt:Ae.name,className:`${$e}-list-item-image`,crossOrigin:Ae.crossOrigin}):da,Gn=_e()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:pn&&!pn(Ae)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Yt(Ae,la),href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const $n=_e()(`${$e}-list-item`,`${$e}-list-item-${qn}`),ta=typeof Ae.linkProps=="string"?JSON.parse(Ae.linkProps):Ae.linkProps,ga=Ke?on((typeof Pt=="function"?Pt(Ae):Pt)||ae.createElement(Ee.Z,null),()=>Pn(Ae),$e,Je.removeFile):null,ia=ft&&qn==="done"?on((typeof Kt=="function"?Kt(Ae):Kt)||ae.createElement(je.Z,null),()=>At(Ae),$e,Je.downloadFile):null,aa=He!=="picture-card"&&He!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${$e}-list-item-actions`,{picture:He==="picture"})},ia,ga),ea=_e()(`${$e}-list-item-name`),fa=Ae.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ae.name},ta,{href:Ae.url,onClick:Mn=>Yt(Ae,Mn)}),Ae.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Mn=>Yt(Ae,Mn),title:Ae.name},Ae.name),aa],_t={pointerEvents:"none",opacity:.5},On=En?ae.createElement("a",{href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ae.url||Ae.thumbUrl?void 0:_t,onClick:Mn=>Yt(Ae,Mn),title:Je.previewFile},typeof Ct=="function"?Ct(Ae):Ct||ae.createElement(st.Z,null)):null,Dn=(He==="picture-card"||He==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${$e}-list-item-actions`},On,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(et.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Dn,Sa&&ae.createElement(Ne.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:Gn}=Mn;const la="percent"in Ae?ae.createElement(St.Z,Object.assign({},Ot,{type:"line",percent:Ae.percent,"aria-label":Ae["aria-label"],"aria-labelledby":Ae["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${$e}-list-item-progress`,Gn)},la)})),va=Ae.response&&typeof Ae.response=="string"?Ae.response:((fn=Ae.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Ae.error)===null||oa===void 0?void 0:oa.message)||Je.uploadError,pa=qn==="error"?ae.createElement(Gt.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ae.createElement("div",{className:_e()(`${$e}-list-item-container`,Me),style:Xe,ref:Oe},nn?nn(pa,Ae,$t,{download:At.bind(null,Ae),preview:Yt.bind(null,Ae),remove:Pn.bind(null,Ae)}):pa)});const zt=(se,Oe)=>{const{listType:$e="text",previewFile:Me=fe,onPreview:Xe,onDownload:Je,onRemove:He,locale:Ae,iconRender:$t,isImageUrl:Ot=Jt,prefixCls:Fe,items:on=[],showPreviewIcon:nn=!0,showRemoveIcon:pn=!0,showDownloadIcon:En=!1,removeIcon:Ke,previewIcon:ft,downloadIcon:Ct,progress:Pt={size:[-1,2],showInfo:!1},appendAction:Kt,appendActionVisible:Yt=!0,itemRender:At,disabled:Pn}=se,fn=(0,lt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(on||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Me&&Me(_t.originFileObj).then(On=>{_t.thumbUrl=On||"",fn()}))})},[$e,on,Me]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,On)=>{if(Xe)return On==null||On.preventDefault(),Xe(_t)},ca=_t=>{typeof Je=="function"?Je(_t):_t.url&&window.open(_t.url)},Sa=_t=>{He==null||He(_t)},Pa=_t=>{if($t)return $t(_t,$e);const On=_t.status==="uploading",Dn=Ot&&Ot(_t)?ae.createElement(Re,null):ae.createElement(ht,null);let Un=On?ae.createElement(Ze.Z,null):ae.createElement(Wt,null);return $e==="picture"?Un=On?ae.createElement(Ze.Z,null):Dn:($e==="picture-card"||$e==="picture-circle")&&(Un=On?Ae.uploading:Dn),Un},da=(_t,On,Dn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,xt.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${Dn}-list-item-action`,disabled:Pn};if((0,xt.l$)(_t)){const ra=(0,xt.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Tt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Tt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle(Oe,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(et.E_),$n=Vn("upload",Fe),ta=Vn(),ga=_e()(`${$n}-list`,`${$n}-list-${$e}`),ia=(0,Pe.Z)(on.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${$n}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,yt.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return $e!=="picture-card"&&$e!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(Ne.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:On,file:Dn,className:Un,style:Xn}=_t;return ae.createElement(Ft,{key:On,locale:Ae,prefixCls:$n,className:Un,style:Xn,file:Dn,items:on,progress:Pt,listType:$e,isImgUrl:Ot,showPreviewIcon:nn,showRemoveIcon:pn,showDownloadIcon:En,removeIcon:Ke,previewIcon:ft,downloadIcon:Ct,iconRender:Pa,actionIconRender:da,itemRender:At,onPreview:qn,onDownload:ca,onClose:Sa})}),Kt&&ae.createElement(Ne.default,Object.assign({},ea,{visible:Yt,forceRender:!0}),_t=>{let{className:On,style:Dn}=_t;return(0,xt.Tm)(Kt,Un=>({className:_e()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Dn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Zt=ae.forwardRef(zt),tn=ge(17313),hn=ge(8378),vn=ge(83116),Fn=ge(37613),an=se=>{const{componentCls:Oe,iconCls:$e}=se;return{[`${Oe}-wrapper`]:{[`${Oe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[Oe]:{padding:`${se.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:se.colorPrimaryHover},[`p${Oe}-drag-icon`]:{marginBottom:se.margin,[$e]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${Oe}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${Oe}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`p${Oe}-drag-icon ${$e},
p${Oe}-text,
p${Oe}-hint
`]:{color:se.colorTextDisabled}}}}}},xn=se=>{const{componentCls:Oe,antCls:$e,iconCls:Me,fontSize:Xe,lineHeight:Je}=se,He=`${Oe}-list-item`,Ae=`${He}-actions`,$t=`${He}-action`,Ot=Math.round(Xe*Je);return{[`${Oe}-wrapper`]:{[`${Oe}-list`]:Object.assign(Object.assign({},(0,tn.dF)()),{lineHeight:se.lineHeight,[He]:{position:"relative",height:se.lineHeight*Xe,marginTop:se.marginXS,fontSize:Xe,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${He}-name`]:Object.assign(Object.assign({},tn.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[Ae]:{[$t]:{opacity:0},[`${$t}${$e}-btn-sm`]:{height:Ot,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${$t}:focus-visible,
&.picture ${$t}
`]:{opacity:1},[Me]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${Me}`]:{color:se.colorText}},[`${Oe}-icon ${Me}`]:{color:se.colorTextDescription,fontSize:Xe},[`${He}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:Xe+se.paddingXS,fontSize:Xe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${He}:hover ${$t}`]:{opacity:1,color:se.colorText},[`${He}-error`]:{color:se.colorError,[`${He}-name, ${Oe}-icon ${Me}`]:{color:se.colorError},[Ae]:{[`${Me}, ${Me}:hover`]:{color:se.colorError},[$t]:{opacity:1}}},[`${Oe}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=ge(36237),cn=ge(1950);const Nn=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=se=>{const{componentCls:Oe}=se,$e=`${Oe}-animate-inline`;return[{[`${Oe}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:Nn},[`${$e}-leave`]:{animationName:Yn}}},{[`${Oe}-wrapper`]:(0,cn.J$)(se)},Nn,Yn]},na=ge(30071),Jn=ge(64993);const pe=se=>{const{componentCls:Oe,iconCls:$e,uploadThumbnailSize:Me,uploadProgressOffset:Xe}=se,Je=`${Oe}-list`,He=`${Je}-item`;return{[`${Oe}-wrapper`]:{[`
${Je}${Je}-picture,
${Je}${Je}-picture-card,
${Je}${Je}-picture-circle
`]:{[He]:{position:"relative",height:Me+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${He}-thumbnail`]:Object.assign(Object.assign({},tn.vS),{width:Me,height:Me,lineHeight:`${Me+se.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${He}-progress`]:{bottom:Xe,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Me+se.paddingXS}},[`${He}-error`]:{borderColor:se.colorError,[`${He}-thumbnail ${$e}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:se.colorError}}},[`${He}-uploading`]:{borderStyle:"dashed",[`${He}-name`]:{marginBottom:Xe}}},[`${Je}${Je}-picture-circle ${He}`]:{[`&, &::before, ${He}-thumbnail`]:{borderRadius:"50%"}}}}},ve=se=>{const{componentCls:Oe,iconCls:$e,fontSizeLG:Me,colorTextLightSolid:Xe}=se,Je=`${Oe}-list`,He=`${Je}-item`,Ae=se.uploadPicCardSize;return{[`
${Oe}-wrapper${Oe}-picture-card-wrapper,
${Oe}-wrapper${Oe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,tn.dF)()),{display:"inline-block",width:"100%",[`${Oe}${Oe}-select`]:{width:Ae,height:Ae,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${Oe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Oe}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Ae,height:Ae,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[He]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${He}:hover`]:{[`&::before, ${He}-actions`]:{opacity:1}},[`${He}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Me,margin:`0 ${se.marginXXS}px`,fontSize:Me,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${He}-actions, ${He}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new Jn.C(Xe).setAlpha(.65).toRgbString(),"&:hover":{color:Xe}}},[`${He}-thumbnail, ${He}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${He}-name`]:{display:"none",textAlign:"center"},[`${He}-file + ${He}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${He}-uploading`]:{[`&${He}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${He}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Oe}-wrapper${Oe}-picture-circle-wrapper`]:{[`${Oe}${Oe}-select`]:{borderRadius:"50%"}}}};var dt=se=>{const{componentCls:Oe}=se;return{[`${Oe}-rtl`]:{direction:"rtl"}}};const Et=se=>{const{componentCls:Oe,colorTextDisabled:$e}=se;return{[`${Oe}-wrapper`]:Object.assign(Object.assign({},(0,tn.Wf)(se)),{[Oe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Oe}-select`]:{display:"inline-block"},[`${Oe}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var bt=(0,vn.Z)("Upload",se=>{const{fontSizeHeading3:Oe,fontSize:$e,lineHeight:Me,lineWidth:Xe,controlHeightLG:Je}=se,He=Math.round($e*Me),Ae=(0,Fn.TS)(se,{uploadThumbnailSize:Oe*2,uploadProgressOffset:He/2+Xe,uploadPicCardSize:Je*2.55});return[Et(Ae),an(Ae),pe(Ae),ve(Ae),xn(Ae),Wn(Ae),dt(Ae),(0,hn.Z)(Ae)]},se=>({actionsColor:se.colorTextDescription})),ln=function(se,Oe,$e,Me){function Xe(Je){return Je instanceof $e?Je:new $e(function(He){He(Je)})}return new($e||($e=Promise))(function(Je,He){function Ae(Fe){try{Ot(Me.next(Fe))}catch(on){He(on)}}function $t(Fe){try{Ot(Me.throw(Fe))}catch(on){He(on)}}function Ot(Fe){Fe.done?Je(Fe.value):Xe(Fe.value).then(Ae,$t)}Ot((Me=Me.apply(se,Oe||[])).next())})};const kt=`__LIST_IGNORE_${Date.now()}__`,Qt=(se,Oe)=>{const{fileList:$e,defaultFileList:Me,onRemove:Xe,showUploadList:Je=!0,listType:He="text",onPreview:Ae,onDownload:$t,onChange:Ot,onDrop:Fe,previewFile:on,disabled:nn,locale:pn,iconRender:En,isImageUrl:Ke,progress:ft,prefixCls:Ct,className:Pt,type:Kt="select",children:Yt,style:At,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=se,da=ae.useContext(gt.Z),Vn=nn!=null?nn:da,[$n,ta]=(0,Qe.Z)(Me||[],{value:$e,postState:Ht=>Ht!=null?Ht:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();($e||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Ht}_${bn}__`)})},[$e]);const ea=(Ht,sn,bn)=>{let rn=(0,Pe.Z)(sn),Sn=!1;fn===1?rn=rn.slice(-1):fn&&(Sn=rn.length>fn,rn=rn.slice(0,fn)),(0,ot.flushSync)(()=>{ta(rn)});const Hn={file:Ht,fileList:rn};bn&&(Hn.event=bn),(!Sn||rn.some(wn=>wn.uid===Ht.uid))&&(0,ot.flushSync)(()=>{Ot==null||Ot(Hn)})},fa=(Ht,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:rn}=se;let Sn=Ht;if(bn){const Hn=yield bn(Ht,sn);if(Hn===!1)return!1;if(delete Ht[kt],Hn===kt)return Object.defineProperty(Ht,kt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return rn&&(Sn=yield rn(Sn)),Sn}),_t=Ht=>{const sn=Ht.filter(Sn=>!Sn.file[kt]);if(!sn.length)return;const bn=sn.map(Sn=>Rt(Sn.file));let rn=(0,Pe.Z)($n);bn.forEach(Sn=>{rn=Lt(Sn,rn)}),bn.forEach((Sn,Hn)=>{let wn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Sn.uid,wn=ua}ea(wn,rn)})},On=(Ht,sn,bn)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Hn){}if(!vt(sn,$n))return;const rn=Rt(sn);rn.status="done",rn.percent=100,rn.response=Ht,rn.xhr=bn;const Sn=Lt(rn,$n);ea(rn,Sn)},Dn=(Ht,sn)=>{if(!vt(sn,$n))return;const bn=Rt(sn);bn.status="uploading",bn.percent=Ht.percent;const rn=Lt(bn,$n);ea(bn,rn,Ht)},Un=(Ht,sn,bn)=>{if(!vt(bn,$n))return;const rn=Rt(bn);rn.error=Ht,rn.response=sn,rn.status="error";const Sn=Lt(rn,$n);ea(rn,Sn)},Xn=Ht=>{let sn;Promise.resolve(typeof Xe=="function"?Xe(Ht):Xe).then(bn=>{var rn;if(bn===!1)return;const Sn=en(Ht,$n);Sn&&(sn=Object.assign(Object.assign({},Ht),{status:"removed"}),$n==null||$n.forEach(Hn=>{const wn=sn.uid!==void 0?"uid":"name";Hn[wn]===sn[wn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(rn=aa.current)===null||rn===void 0||rn.abort(sn),ea(sn,Sn))})},ra=Ht=>{ia(Ht.type),Ht.type==="drop"&&(Fe==null||Fe(Ht))};ae.useImperativeHandle(Oe,()=>({onBatchStart:_t,onSuccess:On,onProgress:Dn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ae.useContext(et.E_),Gn=va("upload",Ct),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:Dn,onSuccess:On},se),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Yt||Vn)&&delete la.id;const[ya,La]=bt(Gn),[ba]=(0,tt.Z)("Upload",nt.Z.Upload),{showRemoveIcon:Bt,showPreviewIcon:ct,showDownloadIcon:pt,removeIcon:wt,previewIcon:un,downloadIcon:zn}=typeof Je=="boolean"?{}:Je,Rn=(Ht,sn)=>Je?ae.createElement(Zt,{prefixCls:Gn,listType:He,items:$n,previewFile:on,onPreview:Ae,onDownload:$t,onRemove:Xn,showRemoveIcon:!Vn&&Bt,showPreviewIcon:ct,showDownloadIcon:pt,removeIcon:wt,previewIcon:un,downloadIcon:zn,iconRender:En,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:Ke,progress:ft,appendAction:Ht,appendActionVisible:sn,itemRender:Pn,disabled:Vn}):Ht,Tn=_e()(`${Gn}-wrapper`,Pt,Pa,La,Mn==null?void 0:Mn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:He==="picture-card",[`${Gn}-picture-circle-wrapper`]:He==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),At);if(Kt==="drag"){const Ht=_e()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(sn=>sn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Tn},ae.createElement("div",{className:Ht,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(be,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Yt))),Rn()))}const _n=_e()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Ht=>ae.createElement("div",{className:_n,style:Ht},ae.createElement(be,Object.assign({},la,{ref:aa}))))(Yt?void 0:{display:"none"});return ya(He==="picture-card"||He==="picture-circle"?ae.createElement("span",{className:Tn},Rn(Kn,!!Yt)):ae.createElement("span",{className:Tn},Kn,Rn()))};var kn=ae.forwardRef(Qt),at=function(se,Oe){var $e={};for(var Me in se)Object.prototype.hasOwnProperty.call(se,Me)&&Oe.indexOf(Me)<0&&($e[Me]=se[Me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Me=Object.getOwnPropertySymbols(se);Xe<Me.length;Xe++)Oe.indexOf(Me[Xe])<0&&Object.prototype.propertyIsEnumerable.call(se,Me[Xe])&&($e[Me[Xe]]=se[Me[Xe]]);return $e},An=ae.forwardRef((se,Oe)=>{var{style:$e,height:Me}=se,Xe=at(se,["style","height"]);return ae.createElement(kn,Object.assign({ref:Oe},Xe,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Me})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=kt;var Bn=Zn}}]);