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.
147 lines
410 KiB
147 lines
410 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[508],{84249:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return se}});var te=re(87462),Le=re(67294),Je={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"},Ue=Je,ce=re(74643),Ne=function(Ee,Ae){return Le.createElement(ce.Z,(0,te.Z)({},Ee,{ref:Ae,icon:Ue}))},se=Le.forwardRef(Ne)},55304:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return se}});var te=re(87462),Le=re(67294),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ue=Je,ce=re(74643),Ne=function(Ee,Ae){return Le.createElement(ce.Z,(0,te.Z)({},Ee,{ref:Ae,icon:Ue}))},se=Le.forwardRef(Ne)},22751:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return se}});var te=re(87462),Le=re(67294),Je={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"},Ue=Je,ce=re(74643),Ne=function(Ee,Ae){return Le.createElement(ce.Z,(0,te.Z)({},Ee,{ref:Ae,icon:Ue}))},se=Le.forwardRef(Ne)},91034:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return se}});var te=re(87462),Le=re(67294),Je={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"},Ue=Je,ce=re(74643),Ne=function(Ee,Ae){return Le.createElement(ce.Z,(0,te.Z)({},Ee,{ref:Ae,icon:Ue}))},se=Le.forwardRef(Ne)},71736:function(Be,lt){"use strict";lt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Be(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Be.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Be.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Be.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var lt=[];function re(ae,a){var y=lt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=lt.pop();return ae===void 0?new go.Point:ae}function Le(ae){lt.push(ae)}function Je(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,ge=b-z,de=NaN,Pe=NaN;if(oe===0)if(ge===0)ae===y&&(de=ae,Pe=a);else{var fe=(x-ee)/ge,De=x-fe*b;de=ae,Pe=fe*de+De}else if(ge===0){var $e=(a-E)/oe,ht=a-$e*ae;de=b,Pe=$e*de+ht}else{var $e=(a-E)/oe,fe=(x-ee)/ge,ht=a-$e*ae,De=x-fe*b;de=(De-ht)/($e-fe),Pe=$e*de+ht}return ne.x=de,ne.y=Pe,ne}function Ue(ae,a,y,E,b,x,z,ee,ne,oe,ge,de,Pe,fe){var De=1-ne,$e=ne,ht=ae*De+y*$e,Nt=a*De+E*$e,$t=y*De+b*$e,Fe=E*De+x*$e,qe=b*De+z*$e,at=x*De+ee*$e,nt=ht*De+$t*$e,mt=Nt*De+Fe*$e,_t=$t*De+qe*$e,Zt=Fe*De+at*$e,Qt=nt*De+_t*$e,cn=mt*De+Zt*$e;oe.x=ht,oe.y=Nt,ge.x=nt,ge.y=mt,de.x=Qt,de.y=cn,Pe.x=_t,Pe.y=Zt,fe.x=qe,fe.y=at}var ce=new go.Spot(.156,.156),Ne=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=Ne,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.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 We=[];function Ee(){var ae=We.pop();return ae===void 0?[]:ae}function Ae(ae){ae.length=0,We.push(ae)}function ke(ae){for(var a=Ee(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Me(ae){var a=Ie(ae),y=Ee();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 Ae(a),y}function Ie(ae){for(var a=ke(ae),y=Ee(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Ie(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Ie(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Ie(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Ie(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Ie(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Ie(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.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=Ne,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.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(ae,a,y){var E=se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=se*.4;var oe=te(),ge=te(),de=te(),Pe=te();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,de,Pe,Pe);var fe=te(),De=te(),$e=te();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,$e,fe,De);var ht=te(),Nt=te(),$t=te();Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ht,Nt,$t,Pe,Pe);var Fe=te(),qe=te(),at=te();return Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,at,Fe,qe),ne.add(new go.PathSegment(go.PathSegment.Move,at.x*a,at.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Fe.x*a,Fe.y*y,qe.x*a,qe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,at.x*a,at.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,$t.x*a,$t.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,fe.x*a,fe.y*y,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*a,$t.y*y,ht.x*a,ht.y*y,Nt.x*a,Nt.y*y).close()),Le(oe),Le(ge),Le(de),Le(Pe),Le(fe),Le(De),Le($e),Le(ht),Le(Nt),Le($t),Le(Fe),Le(qe),Le(at),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=te(),oe=te(),ge=te(),de=te(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.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(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,oe,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var fe=re(oe.x,oe.y);Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,de);var De=re(oe.x,oe.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.95*.9)*a,fe.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,fe.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,(De.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=se*.35;var $e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ht=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ht),Le(ne),Le(oe),Le(ge),Le(de),Le(fe),Le(De),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(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.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(ae,a,y){var E=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Le(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Je(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Le(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Je(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Je(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Je(0,.5,.3,ee/y,0,x/y,1,x/y,te());return oe.spot1=new go.Spot(de.x,de.y),de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,de),oe.spot2=new go.Spot(de.x,de.y),Le(de),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var de=Je(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(de.x,de.y),Le(de),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.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=Je(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Le(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.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=Je(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Le(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Je(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,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(ae,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(ae,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(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var de=.05,Pe=se*de;ne=.05,oe=.25;var fe=new go.PathFigure(.5*a,.2*y,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,oe*y,(ne+Pe)*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Pe=se*de,ne=.825,oe=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Pe=se*de,ne=.5,oe=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Pe=se*de,ne=.175,oe=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne+de)*a,(oe-Pe)*y,(ne+Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,oe*y,(ne-Pe)*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Pe=se*de,ne=.05,oe=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-de)*y,(ne-de)*a,(oe-Pe)*y,(ne-Pe)*a,(oe-de)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,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(ae,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var de=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,de=(x-y)/2,Pe=new go.PathFigure(ne*a+ge,(oe+ee)*y+de,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+de,ne*a+ge,(oe-ee)*y+de,(ne-ee+z*.5)*a+ge,(oe-z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne-ee+z*.5)*a+ge,(oe+z)*y+de,ne*a+ge,(oe+ee)*y+de).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var fe=new go.PathFigure(ne*a+ge,(oe+ee)*y+de,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+de,ne*a+ge,(oe-ee)*y+de,(ne-ee+z*.5)*a+ge,(oe-z)*y+de)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne-ee+z*.5)*a+ge,(oe+z)*y+de,ne*a+ge,(oe+ee)*y+de).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var De=new go.PathFigure((ne-ee)*a+ge,oe*y+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne-ee)*a+ge,(oe-z)*y+de,(ne-z)*a+ge,(oe-ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+de,(ne-z)*a+ge,(oe+ee)*y+de,(ne-ee)*a+ge,(oe+z)*y+de)),z=se*.4,ee=.4,ne=.8,oe=.5;var $e=new go.PathFigure(ne*a+ge,(oe-ee)*y+de,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+de,ne*a+ge,(oe+ee)*y+de,(ne+ee-z*.5)*a+ge,(oe+z)*y+de)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne+ee-z*.5)*a+ge,(oe-z)*y+de,ne*a+ge,(oe-ee)*y+de).close()),z=se*.8,ee=.8,ne=1,oe=.5;var ht=new go.PathFigure(ne*a+ge,(oe-ee)*y+de,!0);return E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+de,(ne+z)*a+ge,(oe-ee)*y+de,(ne+ee)*a+ge,(oe-z)*y+de)),ht.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+de,(ne+ee)*a+ge,(oe+z)*y+de,(ne+z)*a+ge,(oe+ee)*y+de)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+de,ne*a+ge,(oe+ee)*y+de,(ne+ee-z*.5)*a+ge,(oe+z)*y+de)),ht.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+de,(ne+ee-z*.5)*a+ge,(oe-z)*y+de,ne*a+ge,(oe-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=te(),oe=te(),ge=te(),de=te();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,de);var Pe=re(oe.x,oe.y),fe=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,oe,ne,ne),fe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=se*.3,x=.3,Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,oe,ne,ne),fe.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,de),fe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var fe=new go.PathFigure(.45*a,0,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Le(ne),Le(oe),Le(ge),Le(de),Le(Pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,de=.5,Pe=.5,fe=0,De=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(fe+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),De.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)),De.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)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),de=ge*.5,Pe=z,fe=z,De=ge*Pe,$e=ge*fe;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,ne*y,(ee-(De+Pe)/2)*a,(ne+(fe+$e)/2)*y,(ee-Pe)*a,(ne+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-fe)*y,(ee-Pe)*a,(ne-$e)*y,(ee-De)*a,(ne-fe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,ne*y,(ee+De)*a,(ne-fe)*y,(ee+Pe)*a,(ne-$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(ne+$e)*y,(ee+(De+Pe)/2)*a,(ne+(fe+$e)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ht=new go.PathFigure(.2*a,y,!1);E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return E.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var de=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=se*.1,ge=.1,de=.9,Pe=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-oe)*y,(ge-oe)*a,(de-ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+oe)*a,(de-ne)*y,(ge+ne)*a,(de-oe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+oe)*y,(ge+oe)*a,(de+ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-oe)*a,(de+ne)*y,(ge-ne)*a,(de+oe)*y)),ne=.1,oe=se*.1,ge=.4,de=.9;var fe=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-oe)*y,(ge-oe)*a,(de-ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+oe)*a,(de-ne)*y,(ge+ne)*a,(de-oe)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+oe)*y,(ge+oe)*a,(de+ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-oe)*a,(de+ne)*y,(ge-ne)*a,(de+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,de=se*.05,Pe=.175,fe=.95,ee=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.375,fe=.95,ne=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.625,fe=.95,oe=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y));var ge=.05,de=se*.05,Pe=.825,fe=.95,De=new go.PathFigure((Pe-ge)*a,fe*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe-ge)*y,(Pe-ge)*a,(fe-de)*y,(Pe-de)*a,(fe-ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,fe*y,(Pe+de)*a,(fe-ge)*y,(Pe+ge)*a,(fe-de)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(fe+ge)*y,(Pe+ge)*a,(fe+de)*y,(Pe+de)*a,(fe+ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,fe*y,(Pe-de)*a,(fe+ge)*y,(Pe-ge)*a,(fe+de)*y).close());var $e=new go.PathFigure(0,y,!1);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=se*.05,oe=.35,ge=.775,de=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.3,x=se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=15,x=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Be={},lt="5.0",re={},te=null,Le=!1,Je=!1,Ue=null,ce=!1,Ne=null,se=null,We=0;We<arguments.length;We++){var Ee=arguments[We];if(Ee!==null)switch(typeof Ee){case"number":lt=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Ee:Ue=Ee;break;case"object":typeof Ee.is3D!="undefined"?te=Ee:re=Ee;break;case"boolean":Le=Ee,Je=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Je&&(Le=!0)),Ue!==null&&re.id===void 0&&(re.id=Ue);var Ae="",ke="",Me=!1,Ie=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var ne=function(xe){return parseFloat(xe)>4?parseFloat(xe):5};Be.setHTML5Codebase=function(xe,ze){se=xe,Zt(xe,ze)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(xe,ze){var Qe=parseFloat(xe);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}Ne=xe,_t(xe,ze)},Be.getHTML5CodebaseVersion=function(){return ae},Be.getParameters=function(){return re},Be.setFontsCSSURL=function(xe){z=xe},Be.setGiacJSURL=function(xe){},Be.setJNLPFile=function(xe){Ae=xe},Be.setJNLPBaseDir=function(xe){},Be.inject=function(){function xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",Qe=re.id,Ot,ot=!1,Ke=0;Ke<arguments.length;Ke++){var me=arguments[Ke];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=me:Qe=arguments[Ke]):typeof me=="boolean"?ot=me:me instanceof HTMLElement&&(Ot=me)}it();function it(){if(!ce){setTimeout(it,200);return}ze=nt(ze);var Rt=Ot||document.getElementById(Qe);if(!Rt){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(Rt,!1),re.width===void 0&&Rt.clientWidth&&(re.width=Rt.clientWidth),re.height===void 0&&Rt.clientHeight&&(re.height=Rt.clientHeight),!(re.width&&re.height)&&ze==="html5"&&(delete re.width,delete re.height),Ie=ze,ze==="screenshot")Nt(Rt,re);else{var Xt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Xt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Xt=(!oe()||xe())&&ge()),Xt?(Ie="screenshot",Fe(Rt,re,ot,ze)):ht(Rt,re,ot)}}};function oe(){try{return window.self!==window.top}catch(xe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Be.getViews=function(){return te},Be.isJavaInstalled=function(){return!1};var de=function(xe){var ze=function(Ke){var me=JSON.parse(Ke),it=function(Pt){return Pt.type=="G"||Pt.type=="E"},Rt=me.elements?me.elements.filter(it)[0]:me;if(!Rt||!Rt.url){Qe();return}re.fileName=Rt.url,Pe(Rt.settings||{}),te.is3D=!0;var Xt="https://www.geogebra.org/images/";Be.setPreviewImage(E||Rt.previewUrl,Xt+"GeoGebra_loading.png",Xt+"applet_play.png"),xe()},Qe=function(){re.onError&&re.onError(),Qt("Error: Fetching material (id "+re.material_id+") failed.",re)},Ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+re.material_id+"?scope=basic";fe("https://"+Ot+"/api/proxy.php?path="+encodeURIComponent(ot),ze,Qe)};function Pe(xe){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){xe[Qe]=!!xe[Qe]}),ze.forEach(function(Qe){re[Qe]===void 0&&xe[Qe]!==void 0&&(re[Qe]=xe[Qe])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function fe(xe,ze,Qe){var Ot=new XMLHttpRequest;Ot.open("GET",xe),Ot.onload=function(){ze(Ot.responseText)},Ot.onerror=Qe,Ot.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return Ie},Be.setPreviewImage=function(xe,ze,Qe){E=xe,b=ze,x=Qe},Be.removeExistingApplet=function(xe,ze){var Qe;typeof xe=="string"&&(xe=document.getElementById(xe)),Ie=null;var Ot=null;for(Qe=0;Qe<xe.childNodes.length;Qe++){var ot=xe.childNodes[Qe],Ke=ot.className;Ke==="applet_screenshot"?ze?(ot.style.display="block",Ie="screenshot"):ot.style.display="none":Ke!=="applet_scaler prerender"&&(xe.removeChild(ot),Ot=Ke&&Ke.indexOf("appletParameters")!=-1?ot.id:null,Qe--)}var me=re.id!==void 0?re.id:Ot,it=window[me];it&&typeof it.getBase64=="function"&&(it.remove(),window[me]=null)},Be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xe=Be.getAppletObject();return xe&&typeof xe.recalculateEnvironments=="function"?(xe.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.startAnimation=="function"?(xe.startAnimation(),!0):!1},Be.stopAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.stopAnimation=="function"?(xe.stopAnimation(),!0):!1},Be.getAppletObject=function(){var xe=re.id!==void 0?re.id:"ggbApplet";return window[xe]},Be.resize=function(){};var De=function(xe,ze,Qe){var Ot=document.createElement("param");Ot.setAttribute("name",ze),Ot.setAttribute("value",Qe),xe.appendChild(Ot)},$e=function(xe){return xe&&xe!=="false"},ht=function(xe,ze,Qe){ne(ae)<=4.2&&(Qe=!0);var Ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var Ke=ze.width,me=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(ne(ae)<=4.4)$e(ze.showToolBar)&&(ze.height-=7),$e(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&$e(ze.showToolBar)&&(ze.width=605,Ke=605);else{var it=100;($e(ze.showToolBar)||$e(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),it=$e(ze.showMenuBar)?245:155),Ke<it&&(ze.width=it,Ke=it)}ot.style.border="none",ot.style.display="inline-block";for(var Rt in ze)ze.hasOwnProperty(Rt)&&Rt!=="appletOnLoad"&&ot.setAttribute("data-param-"+Rt,ze[Rt]);z&&ot.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(xe,ze)},window.addEventListener("resize",function(It){Be.resize()});var Xt=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!Qe&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var Pt=xe.querySelector(".applet_scaler.prerender"),je=Pt!==null;if(je)var Ce=Pt.querySelector(".ggb_preview");else{var Ce=at(Ke,me,ze.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=Ke+"px",Pt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(ae)>=5?(ze.appletOnLoad=function(It){var Tt=xe.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Xt(It)},je||Pt.appendChild(Ce)):ot.appendChild(Ce),Pt.appendChild(ot),je||xe.appendChild(Pt),setTimeout(function(){Be.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(ot),xe.appendChild(ye),ze.appletOnLoad=function(It){Be.resize(),Xt(It)}}function pe(It,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,Tt.appletOnLoad):renderGGBElement(It),Qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function be(It,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(on){pe(on.article,on.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(It.className+=" geogebraweb")):pe(It,Tt)}if(Ot){scriptLoadStarted=!0;for(var _e=0;_e<ot.childNodes.length;_e++){var tt=ot.childNodes[_e].tagName;tt==="TABLE"&&(ot.removeChild(ot.childNodes[_e]),_e--)}if(ggbHTML5LoadedScript!==null){var ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ct!=null&&ct.parentNode.removeChild(ct)}var ut=document.createElement("script"),bt=function(){be(ot,ze)};ut.src=ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=ut.src,Qt("GeoGebra HTML5 codebase loaded: '"+ke+"'.",ze),!se&&(!Ne||Ne=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):ke.requirejs?__webpack_require__.e(12).then(function(){var It=[__webpack_require__(12)];bt.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(ut.onload=bt,xe.appendChild(ut))}else be(ot,ze);ze.height=me,ze.width=Ke},Nt=function(xe,ze,Qe){var Ot=at(ze.width,ze.height,ze.borderColor,Qe),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=ze.width+"px",ot.style.height=ze.height+"px",ot.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),ot.appendChild(Ot);var Ke=GGBAppletUtils.getScale(ze,xe,Qe);Qe?(xe.appendChild(qe()),window.GGBT_wsf_view||(xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),xe.appendChild(ot),Ke!==1&&!isNaN(Ke)&&(GGBAppletUtils.scaleElement(ot,Ke),ot.style.width=ze.width+"px",ot.style.height=ze.height+"px",ot.parentNode.style.width=ze.width*Ke+"px",ot.parentNode.style.height=ze.height*Ke+"px"),Be.resize=function(){$t(xe,Ot,ot,Qe)},window.addEventListener("resize",function(me){Be.resize()}),Be.resize()};function $t(xe,ze,Qe,Ot){if(xe.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}var ot=GGBAppletUtils.getScale(re,xe,Ot);Qe.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(Qe,ot),Qe.parentNode.style.width=re.width*ot+"px",Qe.parentNode.style.height=re.height*ot+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=re.width+"px",Qe.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(xe,ze){ze.appendChild(xe)};var Fe=function(xe,ze,Qe,Ot){Nt(xe,ze,!0);for(var ot=function(){var it=[];for(me=0;me<xe.childNodes.length;me++)it.push(xe.childNodes[me]);if(window.GGBT_wsf_view){var Rt=window.GGBT_wsf_view.renderFullScreen(xe,ze.id),Xt=document.getElementById("fullscreencontainer"),Pt=jQuery(xe).find(".fullscreencontent");Pt.length>0?(Rt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Xt).append(Pt),window.dispatchEvent(new Event("resize"))):ht(Rt,ze,!1),window.GGBT_wsf_view.launchFullScreen(Xt)}else Ie=Ot,ht(xe,ze,!1);if(!window.GGBT_wsf_view)for(me=0;me<it.length;me++)xe.removeChild(it[me])},Ke=xe.getElementsByClassName("ggb_preview_play"),me=0;me<Ke.length;me++)Ke[me].addEventListener("click",ot,!1),Ke[me].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qe=function(){var xe=document.createElement("div");if(xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.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");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=ze:Qe.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(Qe)}return xe},at=function(xe,ze,Qe,Ot){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=xe-2+"px",ot.style.height=ze-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var Ke="lightgrey";Qe!==void 0&&(Qe==="none"?Ke="transparent":Ke=Qe),ot.style.border="1px solid "+Ke;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var it,Rt,Xt;if(!Ot){it=document.createElement("img"),it.style.position="absolute",it.style.zIndex="1001",it.style.opacity=1,me.style.opacity=.3,Rt=360,Rt>xe/4*3&&(Rt=xe/4*3),Xt=Rt/5.8,it.setAttribute("src",b),it.setAttribute("width",Rt),it.setAttribute("height",Xt);var Pt=(xe-Rt)/2,je=(ze-Xt)/2;it.style.left=Pt+"px",it.style.top=je+"px",ot.appendChild(it)}}return ot.appendChild(me),ot},nt=function(xe){return xe=xe.toLowerCase(),xe==="html5"||xe==="screenshot"?xe:"html5"},mt=["web","webSimple","web3d","tablet","tablet3d","phone"],_t=function(xe,ze){if(ae=xe,ze){Zt(ae,!0);return}var Qe=!Le;if(Qe){var Ot=ne(ae);!isNaN(Ot)&&Ot<4.4&&(Qe=!1)}var ot,Ke;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var me=ae.indexOf("//");me>0?Ke=ae:me===0?Ke=ot+ae:Ke="https://www.geogebra.org/apps/5.2.814.0/";for(var it in mt)if(ae.slice(mt[it].length*-1)===mt[it]||ae.slice((mt[it].length+1)*-1)===mt[it]+"/"){Zt(Ke,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!$e(re.showToolBar)&&!$e(re.showMenuBar)&&!$e(re.showAlgebraInput)&&!$e(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Ke+="webSimple/":Ke+="web3d/",Zt(Ke,!1)},Zt=function(xe,ze){if(xe.requirejs){ke=xe;return}xe.slice(-1)!=="/"&&(xe+="/"),ke=xe,ze===null&&(ze=xe.indexOf("http")===-1),Me=ze,a="web.nocache.js",y=!1;var Qe=ke.split("/");Qe.length>1&&(!ze&&Qe[Qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):mt.indexOf(Qe[Qe.length-2])>=0&&(a=Qe[Qe.length-2]+".nocache.js")),Qe=xe.split("/"),ae=Qe[Qe.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Ot=parseFloat(ae);Ot!==NaN&&Ot<5&&xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ot+" is deprecated. Using version latest instead."),_t("5.0",ze))},Qt=function(xe,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(xe)};re.material_id!==void 0?de(cn):cn();function cn(){var xe=lt;Ne!==null?xe=Ne:parseFloat(xe)<5&&(xe="5.0"),_t(xe,!1),se!==null&&Zt(se,Me),ce=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function lt(ce,Ne){Ne!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Ne+","+Ne+")",ce.style.webkitTransform="scale("+Ne+","+Ne+")",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 re(ce,Ne,se,We,Ee,Ae){var ke=null;if(Ae!=null&&Ae!="")for(var Me=ce.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+Ae+" ")>-1){ke=Me;break}else Me=Me.parentNode;var Ie=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(ke)Ie=ke.offsetWidth,ae=Math.max(We?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(E=Ie-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&&((se===void 0||!se)&&Ne>0&&Ne+y<Ie?Ie=Ne:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:Ie,height:ae}}function te(ce,Ne,se,We,Ee){if(ce.isScreenshoGenerator)return 1;var Ae=We!==void 0&&We,ke=ce.noScaleMargin!=null&&ce.noScaleMargin,Me=function(ee){return ee&&ee!=="false"},Ie=Me(ce.autoHeight),ae=re(Ne,ce.width,se,Ie,Ae&&window.GGBT_wsf_view||ke,Ee),a=parseInt(ae.width),y=ce.width,E=ce.height;if(y===void 0){var b=Ne.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ae?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Le(ce,Ne,se){var We=1,Ee,Ae=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ae=ce.allowUpscale),ce.hasOwnProperty("scale")&&(We=parseFloat(ce.scale),(isNaN(We)||We===null||We===0)&&(We=1),We>1&&(Ae=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ee=te(ce,Ne,Ae,se,ce.scaleContainerClass);else return We;return Ae&&(!ce.hasOwnProperty("scale")||We===1)?Ee:Math.min(We,Ee)}function Je(ce){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),We=ce.getBoundingClientRect(),Ee=(Ne-We.width)/2,Ae=(se-We.height)/2;Ae<0&&(Ae=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?ce.style.left="40px":ce.style.left=Ee+"px",ce.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?ce.style.top="40px":ce.style.top=Ae+"px",ce.style.left=Ee+"px")}function Ue(ce,Ne){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var We=Le(Ne,ce);Be()&&se.setAttribute("data-param-scale",We);for(var Ee=null,Ae=0;Ae<ce.childNodes.length;Ae++)if(ce.childNodes[Ae].className!==void 0&&ce.childNodes[Ae].className.match(/^applet_scaler/)){Ee=ce.childNodes[Ae];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var ke=Ne.id!==void 0?Ne.id:"ggbApplet",Me=window[ke];(Me==null||!Me.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(We)&&We!==1?(Ee.parentNode.style.width=Ne.width*We+"px",Ee.parentNode.style.height=Ne.height*We+"px",lt(Ee,We)):(lt(Ee,1),Ee.parentNode.style.width=Ne.width+"px",Ee.parentNode.style.height=Ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Be,positionCenter:Je,getScale:Le,scaleElement:lt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Be=n.location.search;return Be.indexOf(J)!=-1||Be.indexOf(K)!=-1}function q(Be,lt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Be){var lt=s[L].bindings;s[L].bindings=function(){for(var re=lt?lt():{},te=Be[webModule.__softPermutationId],Le=O;Le<te.length;Le++){var Je=te[Le];re[Je[O]]=Je[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Be=o.createElement(Q);if(Be.id=L,Be.style.cssText=R+S,Be.tabIndex=-1,o.body.appendChild(Be),t=Be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w(Be){function lt(te){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=Le();if(Je){te();return}function Ue(){if(!Je){if(!Le())return;Je=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var ce=setInterval(function(){Ue()},$)}function re(te){var Le=u(),Je=Le.body,Ue=Le.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=te,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Je.appendChild(Ue)}lt(function(){re(Be)})}webModule.__startLoadingFragment=function(Be){return C(Be)},webModule.__installRunAsyncCode=function(Be){var lt=u(),re=lt.body,te=lt.createElement(_);te.language=ab,te.text=Be,re.appendChild(te),re.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var lt=c[Be];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function Be(ce){var Ne=ce.lastIndexOf(rb);Ne==-1&&(Ne=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var We=ce.lastIndexOf(tb,Math.min(se,Ne));return We>=O?ce.substring(O,We+P):W}function lt(ce){if(!ce.match(/^\w+:\/\//)){var Ne=o.createElement(ub);Ne.src=ce+vb,ce=Be(Ne.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function te(){for(var ce=o.getElementsByTagName(_),Ne=O;Ne<ce.length;++Ne)if(ce[Ne].src.indexOf(xb)!=-1)return Be(ce[Ne].src);return W}function Le(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Je(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ue=re();return Ue==W&&(Ue=te()),Ue==W&&(Ue=Le()),Ue==W&&Je()&&(Ue=Be(o.location.href)),Ue=lt(Ue),Ue}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],lt=O,re=[],te=[];function Le(ce){var Ne=te[ce](),se=re[ce];if(Ne in se)return Ne;var We=[];for(var Ee in se)We[se[Ee]]=Ee;throw r&&r(ce,We,Ne),null}if(__gwt_isKnownPropertyValue=function(ce,Ne){return Ne in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Ne in re)re.hasOwnProperty(Ne)&&(ce[Ne]=Le(Ne));return ce},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var Ue=Je.indexOf(Db);Ue!=-1&&(lt=parseInt(Je.substring(Ue+P),$),Je=Je.substring(O,Ue))}catch(ce){}return webModule.__softPermutationId=lt,C(Je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Be,lt,re){"use strict";re.d(lt,{Ax:function(){return Ue},Ds:function(){return ce},KI:function(){return se},SI:function(){return Je},f1:function(){return Le}});var te=re(11320);function Le(We){let Ee=!0;if(We.length>0){for(let Ae=0;Ae<We.length;Ae++)if(We[Ae].compile_success==0||!We[Ae].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function Je(We,Ee=""){let Ae=[];for(let ke=0;ke<We.length;ke++){let Me=We[ke],Ie=Ee?`${Ee}/${Me.name}`:`${Me.name}`;Ae.push({title:Me.name,type:Me.type,isLeaf:Me.type!=="tree",key:Ie})}return Ae}function Ue(We,Ee,Ae){for(let ke=0;ke<We.length;ke++){let Me=We[ke];if(Me.key===Ee){Me.children=Ae;break}Me.children&&Ue(Me.children,Ee,Ae)}return We}function ce(We,Ee,Ae){let ke;return function(){let Me=this,Ie=arguments,ae=function(){ke=null,Ae||We.apply(Me,Ie)},a=Ae&&!ke;clearTimeout(ke),ke=setTimeout(ae,Ee),a&&We.apply(Me,Ie)}}const Ne=!0,se=te.Z.API_SERVER},63205:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return ke}});var te=re(67294),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=re(94184),Ue=re.n(Je),ce=re(57953),Ne=re(15979),se=re(33170),We=re(28706),Ee=(Me,Ie,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Me,Ie)).next())}),ke=({data:Me,className:Ie,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[Pe,fe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Me!=null&&Me.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Me!=null&&Me.src&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Me==null?void 0:Me.visible]);const De=()=>Ee(void 0,null,function*(){de(!0),fe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,We.ZJ)(Me==null?void 0:Me.src);z.current.src="",z.current.src=Fe,z.current.onload=function(){$t()},de(!1),fe("")}),$e=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},ht=Fe=>Ee(void 0,null,function*(){de(!0),fe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:Fe.dataUrl}});qe!=null&&qe.id&&!x?(yield(0,se.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(Fe.state)}})).status===0&&E():qe!=null&&qe.id&&E(qe),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),fe("")}),Nt=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.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(at=>{const nt=document.querySelector(at.name);nt&&nt.setAttribute("title",at.title)})},$t=()=>{ee.current=new Ne.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ht),ee.current.addEventListener("beforeclose",$e),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Me!=null&&Me.snapshotData&&ee.current.restoreState(Me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return te.createElement(te.Fragment,null,(Me==null?void 0:Me.visible)&&te.createElement(ce.Z,{spinning:ge,tip:Pe,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:Ue()(Le.imageDimensions,Ie,ae?Le.fullWidth:""),style:a},te.createElement("img",{className:Le.img,ref:z}))))}},36527:function(Be,lt,re){"use strict";var te=re(67294),Le=re(71230),Je=re(15746),Ue=re(66368),ce=re(71577),Ne=re(85725),se=re(71736),We=re(84279),Ee=re(67294);const Ae=(0,te.forwardRef)(({callback:ke,showSaveButton:Me,value:Ie=""},ae)=>{const a=(0,te.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:Ee.createElement(Le.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Ee.createElement(Je.Z,{flex:"110px",className:se.Z.item},Ee.createElement("div",null,Ee.createElement(Ne.Z,{value:`$$${ee.value}$$`}),ee.name),Ee.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>Ee.createElement("div",{key:ge},Ee.createElement("h1",null,oe.name),Ee.createElement(Le.Z,{gutter:[10,10]},oe.data.map((de,Pe)=>Ee.createElement(Je.Z,{key:Pe,onClick:()=>b(de),className:se.Z.diamond},Ee.createElement(Ne.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(Le.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Ee.createElement(Je.Z,{flex:"110px",className:se.Z.item},Ee.createElement("div",null,Ee.createElement(Ne.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ee.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>Ee.createElement("div",{key:ge},oe.name&&Ee.createElement("h1",null,oe.name),Ee.createElement(Le.Z,{gutter:[10,10]},oe.data.map((de,Pe)=>Ee.createElement(Je.Z,{key:Pe,onClick:()=>b(de),className:se.Z.diamond},Ee.createElement(Ne.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return ke&&ke(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Ee.createElement("div",{className:se.Z.mathWrap},Ee.createElement(Ue.default,{defaultActiveKey:"1",items:x}),Ee.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),Me&&Ee.createElement("div",{className:se.Z.button},Ee.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=Ae},71865:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return Ue}});var te=re(67294),Le=re(33054),Je=re(99398),Ue=()=>{const[ce,Ne]=(0,te.useState)(""),[se,We]=(0,te.useState)(0);let[Ee,Ae]=(0,te.useState)(),[ke,Me]=(0,te.useState)();const[Ie,ae]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>Le.Z.subscribe("preview-image",Pe=>{Ne(Pe),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=ce},[ce]);function y(de){de.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",Ae(void 0),Me(void 0),We(0),Ne("")}function b(){We(se+90)}function x(){Ee=oe.current.width*1.1,ke=oe.current.height*1.1,Me(ke),Ae(Ee)}function z(){Ee=oe.current.width/1.1,ke=oe.current.height/1.1,Me(ke),Ae(Ee)}const ee=(0,te.useRef)(),ne=(0,te.useRef)(),oe=(0,te.useRef)(),ge=de=>{(de.nativeEvent.target===ee.current||de.nativeEvent.target===ne.current)&&E()};return te.createElement(te.Fragment,null,ce?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ne},te.createElement(Je.Z,{className:"image-preview",src:ce,style:{display:"none"},preview:{visible:!0,src:ce,movable:!1,onVisibleChange:de=>{Ne("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(Be,lt,re){"use strict";re.d(lt,{h:function(){return ee}});var te=re(67294),Le=re(11713),Je=re(22150),Ue=re(71577),ce=re(4631),Ne=re.n(ce),se=re(71749),We=re(30483),Ee=Object.defineProperty,Ae=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,ge)=>oe in ne?Ee(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[oe]=ge,y=(ne,oe)=>{for(var ge in oe||(oe={}))Ie.call(oe,ge)&&a(ne,ge,oe[ge]);if(Me)for(var ge of Me(oe))ae.call(oe,ge)&&a(ne,ge,oe[ge]);return ne},E=(ne,oe)=>Ae(ne,ke(oe));const b=Le.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"]};lt.Z=({callback:ne,onCancel:oe})=>{const[ge,de]=(0,te.useState)("python");function Pe(De){de(z[De][1])}function fe(De){ne(De)}return te.createElement(Je.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:fe,style:{width:500}}),te.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Le.default,{getPopupContainer:De=>De.parentNode,onChange:Pe},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][0])))),te.createElement(Je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ge})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ue.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:ge,options:de={}}){const Pe=(0,te.useRef)(),[fe,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(fe){let $e=function(ht){const Nt=ht.getValue();oe&&oe(Nt)};return fe.on("change",$e),()=>{fe.off("change",$e)}}},[fe,oe]),(0,te.useEffect)(()=>{fe&&fe.setOption("mode",ge)},[fe,ge]),(0,te.useEffect)(()=>{fe&&(ne!==fe.getValue()||ne==="")&&setTimeout(()=>{fe.setValue(ne||"")},300)},[fe,ne]),(0,te.useEffect)(()=>{if(Pe.current&&!fe){const $e=Ne().fromTextArea(Pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De($e)}},[Pe.current,fe]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Pe}))}},35567:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return xt}});var te=re(67294),Le=re(4631),Je=re.n(Le),Ue=re(91033),ce=re(71749),Ne=re(57341),se=re(82801),We=re(88386),Ee=re(49047),Ae=re(80785),ke=re(85725),Me=({value:ue="",className:ve,showTextOnly:he,showLines:Te,style:Re={}})=>{const St=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:St}}))},Ie=re(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,ve,he)=>ve in ue?ae(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[ve]=he,ee=(ue,ve)=>{for(var he in ve||(ve={}))b.call(ve,he)&&z(ue,he,ve[he]);if(E)for(var he of E(ve))x.call(ve,he)&&z(ue,he,ve[he]);return ue},ne=(ue,ve)=>a(ue,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 ge({onActionCallback:ue,title:ve,icon:he,actionName:Te,className:Re="",children:St}){function Wt(){ue(Te)}return Ie.createElement("a",{title:ve,className:Re,onClick:Wt},Ie.createElement("i",{className:`${he}`}),St)}var de=({watch:ue,showNullButton:ve,showNullProgramButton:he,onActionCallback:Te,fullScreen:Re,insertTemp:St,hidetoolBar:Wt,extraUse:Bt})=>{const Kt=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!Wt&&Kt.map((qt,ta)=>Ie.createElement("li",{key:ta},qt.actionName?Ie.createElement(ge,ne(ee({},qt),{onActionCallback:Te})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Te},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Te},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Te},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,St&&Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${St}`,onActionCallback:Te},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bt&&Ie.createElement("li",null,Bt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(ge,{icon:`${Re?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Re?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Te})))},Pe=re(76621),fe=re(22150),De=re(69677),$e=re(71577),ht=Object.defineProperty,Nt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,nt=(ue,ve,he)=>ve in ue?ht(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ue[ve]=he,mt=(ue,ve)=>{for(var he in ve||(ve={}))qe.call(ve,he)&&nt(ue,he,ve[he]);if(Fe)for(var he of Fe(ve))at.call(ve,he)&&nt(ue,he,ve[he]);return ue},_t=(ue,ve)=>Nt(ue,$t(ve));const Zt={labelCol:{span:4},wrapperCol:{span:20}};var Qt=({callback:ue,onCancel:ve})=>{function he(Te){ue(Te)}return te.createElement(fe.default,_t(mt({},Zt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),te.createElement(fe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(De.default,null)),te.createElement(fe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(De.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},cn=re(57444),xe=re(70859),ze=re(14446),Qe=re(71230),Ot=re(63205),ot=re(67294),Ke=({callback:ue,onCancel:ve})=>{const he=document.createElement("canvas"),Te=he.getContext("2d");he.width=1e3,he.height=800,Te.fillStyle="#ffffff",Te.fillRect(0,0,he.width,he.height);const Re=he.toDataURL("image/png");return ot.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(Qe.Z,{style:{height:"100vh"}},ot.createElement(Ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Re,visible:!0,title:String(Date.now())},onOk:St=>{ue({src:St.url})},onClose:ve})))},me=re(23495);function it(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(it,go.CommandHandler),it.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},it.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var ve=1/0;ue.selection.each(function(he){he instanceof go.Link||(ve=Math.min(he.position.x,ve))}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ve,he.position.y))}),ue.commitTransaction("aligning left")},it.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var ve=-1/0;ue.selection.each(function(he){if(!(he instanceof go.Link)){var Te=he.actualBounds.x+he.actualBounds.width;ve=Math.max(Te,ve)}}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(ve-he.actualBounds.width,he.position.y))}),ue.commitTransaction("aligning right")},it.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var ve=1/0;ue.selection.each(function(he){he instanceof go.Link||(ve=Math.min(he.position.y,ve))}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,ve))}),ue.commitTransaction("alignTop")},it.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var ve=-1/0;ue.selection.each(function(he){if(!(he instanceof go.Link)){var Te=he.actualBounds.y+he.actualBounds.height;ve=Math.max(Te,ve)}}),ue.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,ve-he.actualBounds.height))}),ue.commitTransaction("aligning bottom")},it.prototype.alignCenterX=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center X");var he=ve.actualBounds.x+ve.actualBounds.width/2;ue.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(he-Te.actualBounds.width/2,Te.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},it.prototype.alignCenterY=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center Y");var he=ve.actualBounds.y+ve.actualBounds.height/2;ue.selection.each(function(Te){Te instanceof go.Link||Te.move(new go.Point(Te.actualBounds.x,he-Te.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},it.prototype.alignColumn=function(ue){var ve=this.diagram;ve.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var he=new Array;ve.selection.each(function(Bt){Bt instanceof go.Link||he.push(Bt)});for(var Te=0;Te<he.length-1;Te++){var Re=he[Te],St=Re.actualBounds.y+Re.actualBounds.height+ue,Wt=he[Te+1];Wt.move(new go.Point(Re.actualBounds.x,St))}ve.commitTransaction("align Column")},it.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var ve=this.diagram;ve.startTransaction("align Row");var he=new Array;ve.selection.each(function(Bt){Bt instanceof go.Link||he.push(Bt)});for(var Te=0;Te<he.length-1;Te++){var Re=he[Te],St=Re.actualBounds.x+Re.actualBounds.width+ue,Wt=he[Te+1];Wt.move(new go.Point(St,Re.actualBounds.y))}ve.commitTransaction("align Row")},it.prototype.canRotate=function(ue){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},it.prototype.rotate=function(ue){ue===void 0&&(ue=90);var ve=this.diagram;ve.startTransaction("rotate "+ue.toString());var ve=this.diagram;ve.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=ue)}),ve.commitTransaction("rotate "+ue.toString())},it.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var ve=new go.Map;ue.selection.each(function(he){ve.set(he.layer,0)}),ve.iteratorKeys.each(function(he){var Te=0;he.parts.each(function(Re){if(!Re.isSelected){var St=Re.zOrder;isNaN(St)?Re.zOrder=0:Te=Math.max(Te,St)}}),ve.set(he,Te)}),ue.selection.each(function(he){it._assignZOrder(he,ve.get(he.layer)+1)}),ue.commitTransaction("pullToFront")},it.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var ve=new go.Map;ue.selection.each(function(he){ve.set(he.layer,0)}),ve.iteratorKeys.each(function(he){var Te=0;he.parts.each(function(Re){if(!Re.isSelected){var St=Re.zOrder;isNaN(St)?Re.zOrder=0:Te=Math.min(Te,St)}}),ve.set(he,Te)}),ue.selection.each(function(he){it._assignZOrder(he,ve.get(he.layer)-1-it._findGroupDepth(he))}),ue.commitTransaction("pushToBack")},it._assignZOrder=function(ue,ve,he){he===void 0&&(he=ue),ue.layer===he.layer&&(ue.zOrder=ve),ue instanceof go.Group&&ue.memberParts.each(function(Te){it._assignZOrder(Te,ve+1,he)})},it._findGroupDepth=function(ue){if(ue instanceof go.Group){var ve=0;return ue.memberParts.each(function(he){ve=Math.max(ve,it._findGroupDepth(he))}),ve+1}else return 0},it.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var ve=ue.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},it.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(ve){ue.push(ve)}),this.diagram.parts.each(function(ve){ue.push(ve)}),ue},it.prototype._arrowKeyMove=function(){var ue=this.diagram,ve=ue.lastInput,he=0,Te=0;if(ve.control||ve.meta)he=1,Te=1;else if(ue.grid!==null){var Re=ue.grid.gridCellSize;Te=Re.width,he=Re.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(St){ve.key==="Up"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y-he)):ve.key==="Down"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y+he)):ve.key==="Left"?St.move(new go.Point(St.actualBounds.x-Te,St.actualBounds.y)):ve.key==="Right"&&St.move(new go.Point(St.actualBounds.x+Te,St.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},it.prototype._arrowKeySelect=function(){var ue=this.diagram,ve=ue.lastInput,he=null;ve.key==="Up"?he=this._findNearestPartTowards(270):ve.key==="Down"?he=this._findNearestPartTowards(90):ve.key==="Left"?he=this._findNearestPartTowards(180):ve.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(ve.shift?he.isSelected=!0:ve.control||ve.meta?he.isSelected=!he.isSelected:ue.select(he))},it.prototype._findNearestPartTowards=function(ue){var ve=this.diagram.selection.first();if(ve===null)return null;for(var he=ve.actualBounds.center,Te=this._getAllParts(),Re=1/0,St=ve,Wt=0;Wt<Te.length;Wt++){var Bt=Te[Wt];if(Bt!==ve&&Bt.canSelect()){var Kt=Bt.actualBounds.center,qt=he.directionPoint(Kt),ta=this._angleCloseness(qt,ue);if(ta<=45){var Ye=he.distanceSquaredPoint(Kt);Ye*=1+Math.sin(ta*Math.PI/180),Ye<Re&&(Re=Ye,St=Bt)}}}return St},it.prototype._angleCloseness=function(ue,ve){return Math.min(Math.abs(ve-ue),Math.min(Math.abs(ve+360-ue),Math.abs(ve-360-ue)))},it.prototype._arrowKeyTree=function(){var ue=this.diagram,ve=ue.selection.first();if(ve instanceof go.Node){var he=ue.lastInput;if(he.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)ue.commandHandler.canExpandTree(ve)&&ue.commandHandler.expandTree(ve);else{var Te=this._sortTreeChildrenByY(ve).first();Te!==null&&ue.select(Te)}}else if(he.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)ue.commandHandler.canCollapseTree(ve)&&ue.commandHandler.collapseTree(ve);else{var Re=ve.findTreeParentNode();Re!==null&&ue.select(Re)}else if(he.key==="Up"){var Re=ve.findTreeParentNode();if(Re!==null){var St=this._sortTreeChildrenByY(Re),Wt=St.indexOf(ve);if(Wt>0){for(var Bt=St.elt(Wt-1);Bt!==null&&Bt.isTreeExpanded&&!Bt.isTreeLeaf;){var Kt=this._sortTreeChildrenByY(Bt);Bt=Kt.last()}Bt!==null&&ue.select(Bt)}else ue.select(Re)}}else if(he.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Te=this._sortTreeChildrenByY(ve).first();Te!==null&&ue.select(Te)}else for(;ve!==null;){var Re=ve.findTreeParentNode();if(Re===null)break;var St=this._sortTreeChildrenByY(Re),Wt=St.indexOf(ve);if(Wt<St.length-1){ue.select(St.elt(Wt+1));break}else ve=Re}var qt=ue.selection.first();qt!==null&&ue.scrollToRect(qt.actualBounds)}},it.prototype._sortTreeChildrenByY=function(ue){var ve=new go.List().addAll(ue.findTreeChildrenNodes());return ve.sort(function(he,Te){var Re=he.location,St=Te.location;return Re.y<St.y?-1:Re.y>St.y?1:Re.x<St.x?-1:Re.x>St.x?1:0}),ve},it.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},it.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(it.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(it.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var Rt=it,Xt=re(18023),Pt=re(15746),je=re(33170),Ce={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),pe=(ue,ve,he)=>new Promise((Te,Re)=>{var St=Kt=>{try{Bt(he.next(Kt))}catch(qt){Re(qt)}},Wt=Kt=>{try{Bt(he.throw(Kt))}catch(qt){Re(qt)}},Bt=Kt=>Kt.done?Te(Kt.value):Promise.resolve(Kt.value).then(St,Wt);Bt((he=he.apply(ue,ve)).next())});function be({onCancel:ue,callback:ve}){let he=(0,te.useRef)(),Te=(0,te.useRef)(),Re=(0,te.useRef)(),St=(0,te.useRef)(!1);const Wt=(0,te.useRef)(!1),[Bt,Kt]=(0,te.useState)(0);function qt(){const Ye=me.bx.make,en={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"};he.current=new me.S0(Te.current,{padding:20,grid:Ye(me.s_,"Grid",Ye(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:et=>{var Ft=et.diagram.commandHandler.addTopLevelParts(et.diagram.selection,!0);Ft||et.diagram.currentTool.doCancel()},commandHandler:Ye(Rt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:et=>{var Ft=et.subject;Ft.location=Ft.location.copy().snapToGridPoint(et.diagram.grid.gridOrigin,et.diagram.grid.gridCellSize),setTimeout(()=>{et.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:et=>{var Ft=et.subject;setTimeout(()=>{et.diagram.commandHandler.editTextBlock()})},LinkRelinked:et=>{var Ft=et.parameter.part;Ft.invalidateConnectedLinks();var Ut=et.subject;et.diagram.toolManager.linkingTool.isForwards?Ut.toNode.invalidateConnectedLinks():Ut.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=Ye(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),Ye(me.bn,{name:"SHAPE",fill:en.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),Ye(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),he.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},Ye(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),Ye(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function Un(et,Ft){var Ut=(Mt,Tn)=>{Mt.handled=!0,Mt.diagram.model.commit(rn=>{var On=Tn.part.adornedPart,Kn=new me.E9().setRectSpot(On.actualBounds,et);Kn.subtract(On.location),Kn.scale(2,2),Kn.x+=Math.sign(Kn.x)*130,Kn.y+=Math.sign(Kn.y)*130,Kn.add(On.location),Kn.snapToGridPoint(Mt.diagram.grid.gridOrigin,Mt.diagram.grid.gridCellSize);var ha=rn.copyNodeData(On.data);rn.setGroupKeyForNodeData(ha,rn.getGroupKeyForNodeData(On.data)),rn.addNodeData(ha);var Za={from:On.key,to:rn.getKeyForNodeData(ha)};rn.addLinkData(Za);var $a=Mt.diagram.findNodeForData(ha);$a.location=Kn,Mt.diagram.select($a),setTimeout(()=>{Mt.diagram.commandHandler.editTextBlock()},20)})};return Ye(me.bn,{figure:Ft,alignment:et,alignmentFocus:et.opposite(),width:et.equals(me.z6.Top)||et.equals(me.z6.Bottom)?25:18,height:et.equals(me.z6.Top)||et.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:en.white,strokeWidth:4,mouseEnter:(Mt,Tn)=>Tn.fill="dodgerblue",mouseLeave:(Mt,Tn)=>Tn.fill="orange",isActionable:!0,click:Ut,contextClick:Ut})}function ga(et){return Ye(me.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,Ut)=>Ut.fill="dodgerblue",mouseLeave:(Ft,Ut)=>Ut.fill="orange",click:(Ft,Ut)=>{Ft.diagram.commandHandler.showContextMenu(Ut.part.adornedPart)}},et||{})}he.current.nodeTemplate.selectionAdornmentTemplate=Ye(me.uz,"Spot",Ye(me.Vm,{padding:10}),Un(me.z6.Top,"TriangleUp"),Un(me.z6.Left,"TriangleLeft"),Un(me.z6.Right,"TriangleRight"),Un(me.z6.Bottom,"TriangleDown"),ga({alignment:new me.z6(.75,0)}));function At(et,Ft){return(Ut,Mt)=>{Ut.handled=!0,Ut.diagram.model.commit(Tn=>{Tn.set(Mt.part.adornedPart.data,et,Ft)})}}function En(et,Ft){return Ft||(Ft="color"),Ye(me.bn,{width:16,height:16,stroke:"lightgray",fill:et,margin:1,background:"transparent",mouseEnter:(Ut,Mt)=>Mt.stroke="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.stroke="lightgray",click:At(Ft,et),contextClick:At(Ft,et)})}function Pa(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",En(en.white,"fill"),En(en.beige,"fill"),En(en.extralightblue,"fill"),En(en.extralightred,"fill"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",En(en.lightgray,"fill"),En(en.lightgreen,"fill"),En(en.lightblue,"fill"),En(en.lightred,"fill")))]}function Oa(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",En(en.black),En(en.green),En(en.blue),En(en.red))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",En(en.white),En(en.magenta),En(en.purple),En(en.orange)))]}function jt(et,Ft){return Ft||(Ft="thickness"),Ye(me.bn,"LineH",{width:16,height:16,strokeWidth:et,margin:1,background:"transparent",mouseEnter:(Ut,Mt)=>Mt.background="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.background="transparent",click:At(Ft,et),contextClick:At(Ft,et)})}function na(et,Ft){return Ft||(Ft="dash"),Ye(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:et,margin:1,background:"transparent",mouseEnter:(Ut,Mt)=>Mt.background="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.background="transparent",click:At(Ft,et),contextClick:At(Ft,et)})}function Wn(){return[Ye("ContextMenuButton",Ye(me.s_,"Horizontal",jt(1),jt(2),jt(3),jt(4))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",na(null),na([2,4]),na([4,4])))]}function wn(et,Ft){return Ft||(Ft="figure"),Ye(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:et,margin:1,background:"transparent",mouseEnter:(Ut,Mt)=>Mt.fill="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.fill="lightgray",click:At(Ft,et),contextClick:At(Ft,et)})}he.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(me.s_,"Horizontal",wn("Rectangle"),wn("RoundedRectangle"),wn("Ellipse"),wn("Diamond"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",wn("Parallelogram2"),wn("ManualOperation"),wn("Procedure"),wn("Cylinder1"))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",wn("Terminator"),wn("CreateRequest"),wn("Document"),wn("TriangleDown"))),Pa(),Oa(),Wn()),he.current.groupTemplate=Ye(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(et,Ft)=>{var Ut=Ft.addMembers(Ft.diagram.selection,!0);Ut||Ft.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),Ye(me.s_,"Auto",{name:"BODY"},Ye(me.bn,{parameter1:10,fill:en.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),Ye(me.Vm,{background:"transparent",margin:20})),Ye(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),he.current.groupTemplate.selectionAdornmentTemplate=Ye(me.uz,"Spot",Ye(me.s_,"Auto",Ye(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(me.Vm,{margin:1.5})),ga({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),he.current.groupTemplate.contextMenu=Ye("ContextMenu",Pa(),Oa(),Wn()),he.current.linkTemplate=Ye(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",et=>et>=1?10:0),new me.KX("toShortLength","dir",et=>et>=1?10:0),new me.KX("points").makeTwoWay(),Ye(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),Ye(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et===1)),Ye(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et>=1),new me.KX("width","thickness",et=>7+3*et),new me.KX("height","thickness",et=>7+3*et),new me.KX("segmentOffset","thickness",et=>new me.E9(-15,4+1.5*et))),Ye(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",et=>et===2),new me.KX("width","thickness",et=>7+3*et),new me.KX("height","thickness",et=>7+3*et),new me.KX("segmentOffset","thickness",et=>new me.E9(-15,4+1.5*et))),Ye(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=Ye(me.uz,Ye(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ia(2)},new me.KX("pathPattern","thickness",ia)),ga({alignmentFocus:new me.z6(0,0,-6,-4)}));function ia(et){return Ye(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(et+4).toString()+" H3"})}function Fa(et){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return et===0?Ft="M0 0 M16 16 M0 8 L16 8":et===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(me.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(Ut,Mt)=>Mt.background="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.background="transparent",click:At("dir",et),contextClick:At("dir",et)})}function Ha(et){var Ft=(Ut,Mt)=>{Ut.handled=!0,Ut.diagram.model.commit(Tn=>{var rn=Mt.part.adornedPart;Tn.set(rn.data,et?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(et?rn.toNode:rn.fromNode).invalidateConnectedLinks()})};return Ye(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ut,Mt)=>Mt.background="dodgerblue",mouseLeave:(Ut,Mt)=>Mt.background="transparent",click:Ft,contextClick:Ft})}function La(et,Ft){var Ut=0,Mt=me.z6.RightSide;et.equals(me.z6.Top)?(Ut=270,Mt=me.z6.TopSide):et.equals(me.z6.Left)?(Ut=180,Mt=me.z6.LeftSide):et.equals(me.z6.Bottom)&&(Ut=90,Mt=me.z6.BottomSide),Ft||(Ut-=180);var Tn=(rn,On)=>{rn.handled=!0,rn.diagram.model.commit(Kn=>{var ha=On.part.adornedPart;Kn.set(ha.data,Ft?"toSpot":"fromSpot",me.z6.stringify(Mt)),(Ft?ha.toNode:ha.fromNode).invalidateConnectedLinks()})};return Ye(me.bn,{alignment:et,alignmentFocus:et.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ut,background:"transparent",mouseEnter:(rn,On)=>On.background="dodgerblue",mouseLeave:(rn,On)=>On.background="transparent",click:Tn,contextClick:Tn})}he.current.linkTemplate.contextMenu=Ye("ContextMenu",Oa(),Wn(),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Fa(0),Fa(1),Fa(2))),Ye("ContextMenuButton",Ye(me.s_,"Horizontal",Ye(me.s_,"Spot",Ha(!1),La(me.z6.Top,!1),La(me.z6.Left,!1),La(me.z6.Right,!1),La(me.z6.Bottom,!1)),Ye(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},Ha(!0),La(me.z6.Top,!0),La(me.z6.Left,!0),La(me.z6.Right,!0),La(me.z6.Bottom,!0)))));const Ma=`{ "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 Ve=["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 Ja(et){return console.log("shapeName:",et),Ve.indexOf(et)>=0}var za=new me.YI(Re.current,{maxSelectionCount:1,linkTemplate:Ye(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:Ye(me.uz,"Link",{locationSpot:me.z6.Center},Ye(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),Ye(me.bn,{isPanelMain:!0,strokeWidth:2}),Ye(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(et=>({text:"\u672A\u547D\u540D",size:"100 100",figure:et.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(et){var Ft;const Ut=et.subject.part;var Mt=(Ft=document.activeElement)==null?void 0:Ft.value;typeof Mt=="string"&&Mt.trim()===""&&he.current.model.commit(function(Tn){Tn.set(Ut.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),za.nodeTemplate=Ye(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),Ye(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),Ye(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{he.current.grid=Ye(me.s_,"Grid",Ye(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const ta=()=>pe(this,null,function*(){var Ye=he.current.makeImage();const en=yield(0,je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:en.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{qt()},500),Kt(Bt+1),()=>{he.current=null}),[]),ye.createElement("div",{ref:Wt,className:St.current?`${Ce.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(Qe.Z,null,ye.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(Pt.Z,{onClick:()=>{var Ye,en,Un=he.current.selection.first();if(St.current=!St.current,document.activeElement&&Un){let ga=(en=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:en.trim();typeof ga=="string"&&he.current.model.commit(function(At){At.set(Un.data,"text",ga||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}Kt(Bt+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ce.flowChartWrp},ye.createElement("div",{style:{display:"flex",height:"100%"}},ye.createElement("div",{style:{width:"300px",height:"100%"}},ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ce.myPaletteDiv,ref:Re})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:Te,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement($e.ZP,{size:"large",onClick:ta,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var _e=be,tt=re(78045),ct=re(31795);const ut=tt.ZP.Group,bt={margin:"0 8px"};var It=({callback:ue,onCancel:ve})=>{function he(Te){ue(Te)}return te.createElement(fe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:bt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:bt},"\u884C\u6570"),te.createElement(fe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(ct.Z,null)),te.createElement("span",{style:bt},"\u5217\u6570"),te.createElement(fe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(ct.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(fe.default.Item,{name:"align"},te.createElement(ut,null,te.createElement(tt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(tt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(tt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(tt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Tt=re(47897),on=re(61016),dn=re.n(on),Dt=(0,te.forwardRef)(({use3d:ue,width:ve,height:he,callback:Te,showSaveButton:Re},St)=>{const Wt=(0,te.useRef)(),Bt=(0,te.useRef)(),[Kt,qt]=(0,te.useState)(!1),ta=(0,te.useRef)({id:Wt,appName:"graphing",width:ve||1e3,height:he||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Bt.current=new(dn())(ta.current,!0),window.onload=function(){Bt.current.inject("applet_container")}},[]);const Ye=()=>{var en=window.ggbApplet.getPNGBase64(1,!0,72);return Te&&Te(en),en};return(0,te.useEffect)(()=>{ta.current.appName=Kt?"3D":"graphing",Bt.current.inject("applet_container")},[Kt]),(0,te.useEffect)(()=>{qt(ue)},[ue]),(0,te.useImperativeHandle)(St,()=>({getImgData:Ye})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Wt}),te.createElement(Qe.Z,{align:"middle"},te.createElement(Pt.Z,{flex:1},te.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kt,onChange:en=>qt(en)})),te.createElement(Pt.Z,null,te.createElement($e.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ln=re(36527),Jt=re(25934),bn=re(2453);const hn="link",pn="upload-image",Sn="add-flowchart",vn="draw-image",Gn="add-flowchart",mn="code-block",yn="add-table",vt="------------",An={default:vt,left:`:${vt}`,center:`:${vt}:`,right:`${vt}:`};var Qn=re(99914),zn=(ue,ve,he)=>new Promise((Te,Re)=>{var St=Kt=>{try{Bt(he.next(Kt))}catch(qt){Re(qt)}},Wt=Kt=>{try{Bt(he.throw(Kt))}catch(qt){Re(qt)}},Bt=Kt=>Kt.done?Te(Kt.value):Promise.resolve(Kt.value).then(St,Wt);Bt((he=he.apply(ue,ve)).next())});function Sa(){}let fa=0;const Jn=1e4,la="\u2581",Rn="@\u2581\u2581@",Ze="@\u2581@",Xe=`
|
|
**\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`,He=["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 gt(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xn={[nn+"-B"]:"bold",[nn+"-I"]:"italic"},zt={[hn]:"\u6DFB\u52A0\u94FE\u63A5",[mn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[pn]:"\u6DFB\u52A0\u56FE\u7247",[vn]:"\u6DFB\u52A0\u753B\u56FE",[Sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[yn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var xt=({defaultValue:ue="",onChange:ve,width:he="100%",height:Te=400,miniToolbar:Re=!1,isFocus:St=!1,watch:Wt,insertTemp:Bt,mode:Kt="markdown",id:qt="markdown-editor-id",showResizeBar:ta=!1,noStorage:Ye=!1,showNullButton:en=!1,showNullProgramButton:Un=!1,hidetoolBar:ga=!1,fullScreen:At=!1,onBlur:En,onCMBeforeChange:Pa,onFullScreen:Oa,className:jt="",disablePaste:na=!1,disabled:Wn=!1,disabledFill:wn=!1,placeholder:ia="",values:Fa="",extraUse:Ha,isShowTool:La=!0,disableImageUpload:Ma=!1})=>{const[Ve,Ja]=(0,te.useState)(null),[za,et]=(0,te.useState)(ue),[Ft,Ut]=(0,te.useState)(Wt),[Mt,Tn]=(0,te.useState)(At),[rn,On]=(0,te.useState)(""),[Kn,ha]=(0,te.useState)(0),[Za,$a]=(0,te.useState)(Te),[Oo,qa]=(0,te.useState)(!1),Po=(0,te.useRef)((0,Jt.Z)()),oo=(0,te.useRef)(!1),ro=(0,te.useRef)(),[io,lo]=(0,te.useState)(0),[mo,so]=(0,te.useState)(0),Ia=(0,te.useRef)(),ja=(0,te.useRef)(),Ua=(0,te.useRef)(),ba=(0,te.useRef)(),ho=()=>zn(void 0,null,function*(){var Et;const st=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Po.current}});(Et=st==null?void 0:st.attachments)!=null&&Et.length&&(console.log("cm:",Ve,Ia),st.attachments.map(ft=>{ft.content_type.indexOf("image")>-1?Ve.replaceSelection(``):ft.content_type.indexOf("video")>-1?Ve.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ft.content_type.indexOf("pdf")>-1?Ve.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type}&disposition=inline" target="_blank">${ft.name}</a>`):Ve.replaceSelection(`[${ft.name}](${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type})`)}))});(0,te.useEffect)(()=>{const Et=window.scrollY||window.pageYOffset;et(Fa),Ve==null||Ve.setValue(Fa),window.scrollTo(0,Et)},[Fa]),(0,te.useEffect)(()=>{Oa==null||Oa(Mt)},[Mt]),(0,te.useEffect)(()=>{if(Ia.current){let Et=function(ft,yt){var fn,le;if(na){yt.preventDefault();return}const ie=yt.clipboardData;if(ie){const Se=ie.types.toString(),we=ie.items;if(Se==="Files"||ie.types.indexOf("Files")>-1){if(yt.preventDefault(),Kt=="stex")return;try{let Oe=we[1];((fn=we[0])==null?void 0:fn.kind)==="file"&&(Oe=we[0]);const Ge=Oe.getAsFile(),dt=Ge.name.split(".").pop();if(Ma&&((le=Ge==null?void 0:Ge.type)==null?void 0:le.indexOf("image"))>-1)return!0;(0,xe.I)(Ge,rt=>{var Lt,wt,Gt;rt.id?((Lt=Ge==null?void 0:Ge.type)==null?void 0:Lt.indexOf("image"))>-1?st.replaceSelection(`<img width="100%" src="/api/attachments/${rt.id}?type=${rt.content_type})" alt="" />`):((wt=Ge==null?void 0:Ge.type)==null?void 0:wt.indexOf("video"))>-1?st.replaceSelection(`<video width="100%" controls src="/api/attachments/${rt.id}"></video>`):((Gt=Ge==null?void 0:Ge.type)==null?void 0:Gt.indexOf("pdf"))>-1?st.replaceSelection(`<a href="/api/attachments/${rt.id}?type=${Ge.type}&disposition=inline" target="_blank">${Ge.name}</a>`):He.includes(dt)?st.replaceSelection(`<a href="/api/attachments/${rt.id}?type=office&disposition=inline" target="_blank">${Ge.name}</a>`):st.replaceSelection(`[${Ge.name}](/api/attachments/${rt.id}?type=${rt.content_type})`):(rt==null?void 0:rt.status)===401&&(bn.ZP.warning((rt==null?void 0:rt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Oe){bn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const st=Je().fromTextArea(Ia.current,{mode:Kt,lineNumbers:!Re,lineWrapping:!0,value:ue,autoCloseTags:!Un,autoCloseBrackets:!0});return st.on("keyup",function(ft,yt){yt.keyCode===8&&(ft.getValue()==""?st.setOption("placeholder",ia):st.setOption("placeholder",null))}),st.on("keydown",function(ft,yt){if(yt.keyCode===8){var fn=vo(ft);fn&&yt.preventDefault()}}),St&&st.focus(),st.on("paste",Et),st.on("dragleave",function(ft,yt){ja.current.classList.remove("mouse-hover-md")}),Wn&&st.on("beforeChange",function(ft,yt){(yt.origin==="paste"||yt.origin==="+input")&&yt.cancel()}),Ja(st),()=>{st.off("paste",Et)}}},[]);const uo=(0,te.useCallback)(()=>{if(ja.current)try{}catch(Et){console.log(Et,"---- to set md editor body height")}},[Za,ja,Mt]);(0,te.useEffect)(()=>{function Et(){let st=new Ue.Z(ft=>{for(let yt of ft)(yt.target.offsetHeight>0||yt.target.offsetWidth>0)&&(uo(),Ve.setSize("100%","100%"),Ve.refresh())});return st.observe(Ia.current.parentElement),st}if(Ve){const st=Et();return()=>{var ft,yt;(ft=Ia.current)!=null&&ft.parentElement&&st.unobserve((yt=Ia.current)==null?void 0:yt.parentElement)}}},[Ve,uo]),(0,te.useEffect)(()=>{if(Ve){let Et=[];for(const[st,ft]of Object.entries(xn)){let yt={[st]:()=>{co(ft)}};Et.push(yt),Ve.addKeyMap(yt)}return ro.current=setInterval(()=>{oo.current&&ho()},4e3),()=>{clearInterval(ro.current);for(let st of Et)Ve.removeKeyMap(st)}}},[Ve]),(0,te.useEffect)(()=>{At!==Mt&&Tn(At)},[At]),(0,Qn.Z)(()=>{if(!Ye&&Kn>0){let Et=new Date().getTime(),st=window.sessionStorage.getItem(qt);Et>=Kn+Jn&&(!st||st!==za)&&(window.sessionStorage.setItem(qt,za),qa(!0))}},Jn),(0,te.useEffect)(()=>{Ut(Wt)},[Ve,Wt]),(0,te.useEffect)(()=>{Ve&&St&&Ve.focus()},[Ve,St]),(0,te.useEffect)(()=>{if(Ft&&Ve){let Et=function(ft){let yt=ft.target;if(ba.current){let fn=yt.scrollTop/yt.scrollHeight;ba.current.scrollTop=ba.current.scrollHeight*fn}};const st=Ve.getScrollerElement();return st.addEventListener("scroll",Et),()=>{st.removeEventListener("scroll",Et)}}},[Ve,Ft]),(0,te.useEffect)(()=>{if(Ve&&Pa){let Et=function(st,ft){Pa(st,ft)};return Ve.on("beforeChange",Et),()=>{Ve.off("beforeChange",Et)}}},[Ve,Pa]),(0,te.useEffect)(()=>{if(Ve&&En){let Et=function(){En(Ve.getValue())};return Ve.on("blur",Et),()=>{Ve.off("blur",Et)}}},[Ve,En]);function vo(Et,st){var ft=Et.getDoc(),yt=ft.getCursor(),fn=ft.getLine(yt.line),le=fn.charAt(yt.ch-1),ie=fn.lastIndexOf("@\u2581@",yt.ch),Se=fn.lastIndexOf("@\u2581\u2581@",yt.ch),we=ie>Se?ie:Se,Oe=ie>Se?3:4;if(Rn.indexOf(le)===-1)return null;if(console.log("change1:",st,Et,fn,yt,we,ie,Se,le),we>=0&&yt.ch-we<5){var Ge=we+Oe;return ft.replaceRange("",{line:yt.line,ch:we},{line:yt.line,ch:Ge}),{line:yt.line,ch:Ge}}return null}(0,te.useEffect)(()=>{if(Ve){let Et=function(st,ft){const yt=st.getValue();et(yt),ha(new Date().getTime()),st.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Un?ve(yt,wo(yt)):ve(yt))};return Ve.on("change",Et),()=>{Ve.off("change",Et)}}},[Ve,ve]),(0,te.useEffect)(()=>{if(Ve)if(ue==null)Ve.setValue(""),et("");else{const Et=window.scrollY||window.pageYOffset;ue!==Ve.getValue()&&(Ve.setValue(ue),et(ue),Ve.setCursor(Wn?1:Ve.lineCount(),0),window.scrollTo(0,Et))}},[Ve,ue]);const co=(0,te.useCallback)(Et=>{const st=Ve.getCursor(),ft=Ve.getSelection();let yt=ft.split(`
|
|
`);switch(Et){case"bold":return Ve.replaceSelection("**"+ft+"**"),ft===""&&Ve.setCursor(st.line,st.ch+2),Ve.focus();case"italic":return Ve.replaceSelection("*"+ft+"*"),ft===""&&Ve.setCursor(st.line,st.ch+1),Ve.focus();case"code":return Ve.replaceSelection("`"+ft+"`"),ft===""&&Ve.setCursor(st.line,st.ch+1),Ve.focus();case"inline-latex":return On("inline-latex"),Ve.focus();case"latex":return Ve.replaceSelection("```latex\n"+ft+"\n```"),Ve.setCursor(st.line+1,ft.length+1),Ve.focus();case"line-break":return Ve.replaceSelection(`<br/>
|
|
`),Ve.focus();case"list-ul":return ft===""?Ve.replaceSelection("- "+ft):Ve.replaceSelection(yt.map(fn=>fn===""?"":`- ${fn}`).join(`
|
|
`)),Ve.focus();case"list-ol":return ft===""?Ve.replaceSelection("1. "+ft):Ve.replaceSelection(yt.map((fn,le)=>fn===""?"":`${le+1}. ${fn}`).join(`
|
|
`)),Ve.focus();case"add-null-ch":return ft===""&&Ve.setCursor(st.line,st.ch),Ve.replaceSelection(la),Ve.focus();case"add-signal":return ft===""&&Ve.setCursor(st.line,st.ch),Ve.replaceSelection(Ze),Ve.focus();case"add-multiple":return ft===""&&Ve.setCursor(st.line,st.ch),Ve.replaceSelection(Rn),Ve.focus();case"inster-template-1":return ft===""&&Ve.setCursor(st.line,st.ch),Ve.replaceSelection(Xe),Ve.focus();case"eraser":return Ve.setValue(""),Ve.focus();case"trigger-watch":return Ut(!Ft),Ve.focus();case"trigger-full-screen":return Tn(!Mt),Ve.focus();case hn:On(hn);return;case mn:On(mn);return;case pn:On(pn);return;case vn:On(vn);return;case"maths-latex":On("maths-latex");return;case Sn:On(Sn);return;case yn:On(yn);return;default:throw new Error}},[Ve,Ft,Mt]),xa=(0,te.useCallback)((Et,st)=>{var ft,yt,fn,le,ie,Se;if(On(""),!(Ma&&rn==pn))switch(rn){case hn:const{title:rt,link:Lt}=Et;return Ve.replaceSelection(`[${rt}](${Lt})`),Ve.focus();case mn:const{language:wt,content:Gt}=Et;return Ve.replaceSelection(["```"+wt,Gt,"```"].join(`
|
|
`)),Ve.focus();case"maths-latex":for(var we=atob(Et),Oe=new Uint8Array(we.length),Ge=0;Ge<we.length;Ge++)Oe[Ge]=we.charCodeAt(Ge);var dt=new Blob([Oe],{type:"image/png"});(0,xe.I)(dt,sn=>{sn.id?Ve.replaceSelection(``):(sn==null?void 0:sn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ve.replaceSelection("`$$"+Et+"$$`");break;case pn:case vn:case Gn:const{src:pt,alt:Ht}=Et,Ct=st,Vt=(fn=(yt=(ft=Ct==null?void 0:Ct.name)==null?void 0:ft.split("."))==null?void 0:yt.pop)==null?void 0:fn.call(yt);return((le=Ct==null?void 0:Ct.type)==null?void 0:le.indexOf("image"))>-1||!(Ct!=null&&Ct.type)?Ct.align||Ct.width?Ve.replaceSelection(`<p style="text-align:${Ct.align||"initial"}"><img width="${Ct.width?Ct.width+"%":"initial"}" src="${pt}" alt="${Ht||""}" /></p>`):Ve.replaceSelection(`<img width="100%" src="${pt}" alt="${Ht||""}" />`):((ie=Ct==null?void 0:Ct.type)==null?void 0:ie.indexOf("video"))>-1?Ve.replaceSelection(`<video width="100%" controls src="${pt}"></video>`):((Se=Ct==null?void 0:Ct.type)==null?void 0:Se.indexOf("pdf"))>-1?Ve.replaceSelection(`<a href="${pt}?type=${Ct.type}&disposition=inline" target="_blank">${Ct.name}</a>`):He.includes(Vt)?Ve.replaceSelection(`<a href="${pt}?type=office&disposition=inline" target="_blank">${Ct.name}</a>`):Ve.replaceSelection(`[${Ct.name}](${pt})`),Ve.focus();case yn:const{row:Ln,col:an,align:Pn}=Et;let gn=`
|
|
`;for(let sn=0;sn<Ln;sn++){let un=[],Cn=[];for(let Dn=0;Dn<an;Dn++)sn===1&&Cn.push(An[Pn]),un.push(" ");sn===1&&(gn+=`| ${Cn.join(" | ")} |
|
|
`),gn+=`| ${un.join(an===1?"":" | ")} |
|
|
`}return Ve.replaceSelection(gn+`
|
|
`),Ve.focus();default:throw new Error}},[Ve,rn,Ma]),So=(0,te.useMemo)(()=>{switch(rn){case hn:return te.createElement(Qt,{callback:xa,onCancel:Ea});case mn:return te.createElement(cn.Z,{callback:xa,onCancel:Ea});case pn:return te.createElement(xe.Z,{callback:xa,onCancel:Ea});case Sn:return te.createElement(_e,{callback:xa,onCancel:Ea});case yn:return te.createElement(It,{callback:xa,onCancel:Ea});case"maths-latex":return te.createElement(Dt,{showSaveButton:!0,callback:xa});case"inline-latex":return te.createElement(ln.Z,{showSaveButton:!0,callback:xa});default:return null}},[rn]);function Ea(){On("")}(0,te.useEffect)(()=>{if(Ua.current){let Et=function(ie){fn=!0,le=ie.pageY},st=function(){fn=!1},ft=function(ie){if(fn){let Se=ie.pageY-le;Se<0&&(Se=0),Se>300&&(Se=300);let we=Te+Se+"px";$a(we)}},yt=Ua.current,fn=!1,le=0;return yt.addEventListener("mousedown",Et),document.addEventListener("mousemove",ft),document.addEventListener("mouseup",st),()=>{yt.removeEventListener("mousedown",Et),document.removeEventListener("mousemove",ft),document.removeEventListener("mouseup",st)}}},[Ve,Ua]),(0,te.useEffect)(()=>{$a(Te)},[Te]);const po=gt(he),yo=gt(Za),Lo={width:po,height:yo},Mo=(0,te.useMemo)(()=>{if(Kn){let Et=new Date(Kn),st=Et.getHours(),ft=Et.getMinutes(),yt=Et.getSeconds();return st=st<10?"0"+st:st,ft=ft<10?"0"+ft:ft,yt=yt<10?"0"+yt:yt,`${st}:${ft}:${yt}`}return 0},[Kn]),wo=Et=>{const st=[];if(Un){let ft=-1;Et=Et.replace(/(@▁▁@|@▁@)/g,function(yt,fn,le){st.push({multiLine:yt!==Ze})})}return st};function Io(){window.sessionStorage.removeItem(qt),qa(!1),ha(0)}function bo(){qa(!1),ha(0),Ve.setValue(window.sessionStorage.getItem(qt))}(0,te.useEffect)(()=>{zt[rn]&&rn!==vn&&rn!==Sn&&setTimeout(()=>{const Et=document.getElementsByClassName("markdown-popup-form")[0],st=window.innerWidth/2-Et.offsetWidth/2,ft=window.innerHeight/2-Et.offsetHeight/2;lo(st),so(ft)},0)},[rn]);const Eo=Et=>{Et.preventDefault();const st=Et.clientX-io,ft=Et.clientY-mo;document.body.onmousemove=yt=>{let fn=yt.clientX-st,le=yt.clientY-ft;const ie=document.getElementsByClassName("markdown-popup-form")[0],Se=window.innerWidth-ie.offsetWidth,we=window.innerHeight-ie.offsetHeight;fn=Math.max(0,Math.min(fn,Se)),le=Math.max(0,Math.min(le,we)),fo(yt.clientX,yt.clientY,st,ft)&&(lo(fn),so(le))},document.body.onmouseup=function(){document.body.onmousemove=null}},fo=(Et,st,ft,yt)=>{const fn=document.body.clientHeight,le=document.body.clientWidth;return Et<20&&ft>Et||Et>le-20&&ft<Et||st<20&&yt>st||st>fn-20&&yt<st?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:ja},te.createElement("div",{className:`markdown-editor-container ${jt} ${Ft?"on-preview":""} ${Re?"mini":""} ${Mt?"full-screen":""}`,style:Lo},La&&te.createElement(de,{insertTemp:Bt,watch:Ft,fullScreen:Mt,showNullButton:en,showNullProgramButton:Un,onActionCallback:co,hidetoolBar:ga,extraUse:Ha}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ia,placeholder:ia})),Ft?te.createElement("div",{ref:ba,className:"preview-container"},Kt==="stex"&&te.createElement(Me,{value:za}),Kt!=="stex"&&te.createElement(ke.Z,{disabledFill:wn,showProgramFill:Un,value:za})):null))),ta?te.createElement("a",{ref:Ua,className:"editor-resize"}):null,rn===vn&&te.createElement(Ke,{callback:xa,onCancel:Ea}),rn===Sn&&te.createElement(_e,{callback:xa,onCancel:Ea}),te.createElement(Pe.Z,null,zt[rn]&&rn!==vn&&rn!==Sn?te.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:io,top:mo},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Eo},zt[rn]),open:!0,onCancel:Ea,footer:null,destroyOnClose:!0,width:rn===Sn?"1200px":null,height:rn===Sn?"80vh":null,className:"markdown-popup-form"},So):null))}},70859:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return ge},I:function(){return Pe}});var te=re(22150),Le=re(2453),Je=re(69677),Ue=re(93421),ce=re(31795),Ne=re(78045),se=re(71577),We=re(15476),Ee=re(67294),Ae=re(52262),ke=re(67294),Me=Object.defineProperty,Ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(fe,De,$e)=>De in fe?Me(fe,De,{enumerable:!0,configurable:!0,writable:!0,value:$e}):fe[De]=$e,x=(fe,De)=>{for(var $e in De||(De={}))y.call(De,$e)&&b(fe,$e,De[$e]);if(a)for(var $e of a(De))E.call(De,$e)&&b(fe,$e,De[$e]);return fe},z=(fe,De)=>Ie(fe,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:fe,onCancel:De})=>{const[$e]=ee();let ht=(0,Ee.useRef)();function Nt(qe){ht.current.width=$e.getFieldValue("width"),ht.current.align=$e.getFieldValue("align"),fe(qe,ht.current)}function $t(qe,at){if(qe.status===-1){Le.ZP.error(qe.message);return}$e.setFieldsValue({src:`/api/attachments/${qe.id}`,type:at.type})}function Fe(qe){let at=qe.target.files[0];ht.current=at,Pe(at,$t)}return ke.createElement(te.default,z(x({form:$e},oe),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(Je.default,{style:ne})),ke.createElement(de,{onFileChange:Fe}))),ke.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(Je.default,{style:{width:264}})),ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(Ue.Z,null,ke.createElement(te.default.Item,{name:"width",style:{margin:0}},ke.createElement(ce.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.createElement(Ne.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(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(se.ZP,{type:"default",onClick:De},"\u53D6\u6D88"))))};function de({onFileChange:fe}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:fe}))}function Pe(fe,De){if(!fe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw Le.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",fe),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ht=new window.XMLHttpRequest;ht.withCredentials=!0,ht.addEventListener("load",function(Nt){De(JSON.parse(Nt.target.responseText),fe)},!1),ht.addEventListener("error",function(Nt){console.error(Nt)},!1),ht.open("POST",`${We.KI}/api/attachments.json`),ht.send($e)}},76621:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return Je}});var te=re(67294),Le=re(73935);class Je extends te.Component{constructor(ce){super(ce);const Ne=window.document;this.node=Ne.createElement("div"),Ne.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Le.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return Le}});var te=re(67294);function Le(Je,Ue){const ce=(0,te.useRef)();(0,te.useEffect)(()=>{ce.current=Je}),(0,te.useEffect)(()=>{function Ne(){ce.current()}if(Ue!==null){let se=setInterval(Ne,Ue);return()=>clearInterval(se)}},[Ue])}},44081:function(Be,lt,re){"use strict";re.r(lt),re.d(lt,{default:function(){return Rn}});var te=re(67294),Le=re(35973),Je=re(11320),Ue=re(71230),ce=re(15746),Ne=re(71577),se={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},We=re(13703),Ee=Object.defineProperty,Ae=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(Ze,Xe,He)=>Xe in Ze?Ee(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[Xe]=He,y=(Ze,Xe)=>{for(var He in Xe||(Xe={}))Ie.call(Xe,He)&&a(Ze,He,Xe[He]);if(Me)for(var He of Me(Xe))ae.call(Xe,He)&&a(Ze,He,Xe[He]);return Ze},E=(Ze,Xe)=>Ae(Ze,ke(Xe)),b=(Ze,Xe)=>{var He={};for(var gt in Ze)Ie.call(Ze,gt)&&Xe.indexOf(gt)<0&&(He[gt]=Ze[gt]);if(Ze!=null&&Me)for(var gt of Me(Ze))Xe.indexOf(gt)<0&&ae.call(Ze,gt)&&(He[gt]=Ze[gt]);return He},x=(Ze,Xe,He)=>new Promise((gt,tn)=>{var nn=xt=>{try{zt(He.next(xt))}catch(ue){tn(ue)}},xn=xt=>{try{zt(He.throw(xt))}catch(ue){tn(ue)}},zt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(nn,xn);zt((He=He.apply(Ze,Xe)).next())});const z=Ze=>{var Xe=Ze,{user:He,forumsDetail:gt,globalSetting:tn,loading:nn,dispatch:xn}=Xe,zt=b(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),xt,ue,ve,he;const{author_info:Te,memo:Re,recommend_shixuns:St}=gt.forumsDetailData||{},Wt=()=>x(void 0,null,function*(){(Te!=null&&Te.watched?yield(0,We.Sr)({user_id:Te.login}):yield(0,We.YP)({user_id:Te.login}))&&xn({type:"forumsDetail/setForumsDetailData",payload:E(y({},gt.forumsDetailData),{author_info:E(y({},Te),{watched:!(Te!=null&&Te.watched)})})})});return te.createElement("section",{className:se.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${se.head}`},te.createElement("a",{href:`/users/${Te==null?void 0:Te.login}`,target:"_blank"},(Te==null?void 0:Te.image_url)&&te.createElement("img",{src:`${Je.Z.API_SERVER}/images/${Te==null?void 0:Te.image_url}`})),te.createElement("div",{className:"tc font20"},Te==null?void 0:Te.username),te.createElement("div",{className:"tc c-grey-999"},Te==null?void 0:Te.identity),((xt=He.userInfo)==null?void 0:xt.user_id)!==(Te==null?void 0:Te.user_id)&&te.createElement(Ue.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},te.createElement(ce.Z,null,te.createElement(Ne.ZP,{type:"primary",className:"mr10",onClick:Wt},Te!=null&&Te.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(ce.Z,null,te.createElement(Ne.ZP,{className:se.privateMessage,href:`/messages/${(ue=He.userInfo)==null?void 0:ue.login}/message_detail?target_ids=${Te==null?void 0:Te.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((ve=Re==null?void 0:Re.tag)!=null&&ve.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${se.tag}`},(he=Re==null?void 0:Re.tag)==null?void 0:he.map((Bt,Kt)=>te.createElement("span",{key:Kt,className:"c-light-primary mr10"},Bt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:se.recommend},St==null?void 0:St.map(Bt=>te.createElement("div",{className:se.recommendItem},te.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:Bt.id,src:`${Bt.image_url}`})),te.createElement("div",{className:`${se.flex1} ml10`},te.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank",title:Bt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},Bt.name),te.createElement("div",{className:"c-grey-999"},Bt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,Le.connect)(({user:Ze,forumsDetail:Xe,loading:He,globalSetting:gt})=>({user:Ze,forumsDetail:Xe,globalSetting:gt,loading:He.models.forumsDetail}))(z),ne=re(27484),oe=re.n(ne),ge=re(85725),de=re(2453),Pe=re(14446),fe=re(69677),De=re(68508),$e=re(85673),ht=re(85418),Nt=re(83062),$t=re(35567),Fe=re(84249),qe={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},at=Object.defineProperty,nt=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,cn=(Ze,Xe,He)=>Xe in Ze?at(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[Xe]=He,xe=(Ze,Xe)=>{for(var He in Xe||(Xe={}))Zt.call(Xe,He)&&cn(Ze,He,Xe[He]);if(_t)for(var He of _t(Xe))Qt.call(Xe,He)&&cn(Ze,He,Xe[He]);return Ze},ze=(Ze,Xe)=>nt(Ze,mt(Xe)),Qe=(Ze,Xe,He)=>new Promise((gt,tn)=>{var nn=xt=>{try{zt(He.next(xt))}catch(ue){tn(ue)}},xn=xt=>{try{zt(He.throw(xt))}catch(ue){tn(ue)}},zt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(nn,xn);zt((He=He.apply(Ze,Xe)).next())});oe().locale("ZH-cn");function Ot({user:Ze,vlist:Xe=[],dispatch:He,params:gt,id:tn,memo_replies:nn,forumsDetail:xn}){return te.createElement("aside",{className:qe.comment},Xe.map(function(zt,xt){var ue,ve;return te.createElement(Ue.Z,{key:xt,className:qe.commentItem},te.createElement(ce.Z,{span:24},te.createElement(Ue.Z,null,te.createElement(ce.Z,{flex:"1"},te.createElement("a",{href:`/users/${zt.user_login}`,target:"_blank",className:"c-light-black"},zt==null?void 0:zt.username),te.createElement("span",{className:"c-light-black ml10"},zt.time)),(zt.can_delete||zt.user_id===((ue=Ze.userInfo)==null?void 0:ue.user_id)||zt.user_login===((ve=Ze.userInfo)==null?void 0:ve.login))&&te.createElement(ce.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Nt.Z,{title:"\u5220\u9664"},te.createElement(Fe.Z,{className:"current",onClick:()=>{Pe.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Qe(this,null,function*(){const he=yield(0,We.sW)({id:zt.id}),Te=nn.find(Re=>Re.id===tn).children.filter(Re=>Re.id!==zt.id);nn.find(Re=>Re.id===tn).children=Te,He({type:"forumsDetail/setForumsDetailData",payload:ze(xe({},xn.forumsDetailData),{memo_replies:[...nn]})})})})}}))))),te.createElement(ce.Z,null,te.createElement(ge.Z,{value:zt.content})))}))}var ot=Ot,Ke=re(28706),me=Object.defineProperty,it=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ce=(Ze,Xe,He)=>Xe in Ze?me(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[Xe]=He,ye=(Ze,Xe)=>{for(var He in Xe||(Xe={}))Pt.call(Xe,He)&&Ce(Ze,He,Xe[He]);if(Xt)for(var He of Xt(Xe))je.call(Xe,He)&&Ce(Ze,He,Xe[He]);return Ze},pe=(Ze,Xe)=>it(Ze,Rt(Xe)),be=(Ze,Xe)=>{var He={};for(var gt in Ze)Pt.call(Ze,gt)&&Xe.indexOf(gt)<0&&(He[gt]=Ze[gt]);if(Ze!=null&&Xt)for(var gt of Xt(Ze))Xe.indexOf(gt)<0&&je.call(Ze,gt)&&(He[gt]=Ze[gt]);return He},_e=(Ze,Xe,He)=>new Promise((gt,tn)=>{var nn=xt=>{try{zt(He.next(xt))}catch(ue){tn(ue)}},xn=xt=>{try{zt(He.throw(xt))}catch(ue){tn(ue)}},zt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(nn,xn);zt((He=He.apply(Ze,Xe)).next())});oe().locale("ZH-cn");const tt=(Ze,Xe)=>{var He=Ze,{user:gt,forumsDetail:tn,globalSetting:nn,loading:xn,dispatch:zt,handleClick:xt}=He,ue=be(He,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:ve,memo_replies:he}=tn.forumsDetailData||{},Te=(0,Le.useParams)(),[Re,St]=(0,te.useState)(""),[Wt,Bt]=(0,te.useState)(""),[Kt,qt]=(0,te.useState)(-1),[ta,Ye]=(0,te.useState)(!1),[en,Un]=(0,te.useState)(1),[ga,At]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Xe,()=>({onMdFouch:Oa})),(0,te.useEffect)(()=>{Ye((ve==null?void 0:ve.replies_count)>10)},[ve==null?void 0:ve.replies_count]);const En=()=>_e(void 0,null,function*(){var jt;const na=en+1;Un(na);const Wn=yield(0,We.z5)({id:Te.memoId,page:na});Wn!=null&&Wn.memo_replies&&(zt({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},tn.forumsDetailData),{memo_replies:[...he,...Wn.memo_replies]})}),Ye(((jt=Wn.memo_replies)==null?void 0:jt.length)===10))}),Pa=jt=>{var na,Wn,wn,ia;return pe(ye({},jt),{image_url:(na=gt.userInfo)==null?void 0:na.image_url,children:[],user_id:(Wn=gt.userInfo)==null?void 0:Wn.user_id,user_login:(wn=gt.userInfo)==null?void 0:wn.login,username:(ia=gt.userInfo)==null?void 0:ia.username,time:`${(0,Ke.li)((new Date().getTime()-new Date(jt.created_at).getTime())/1e3)}\u524D`})},Oa=()=>{At(!0)};return te.createElement("section",{className:qe.wrap},!!(he!=null&&he.length)&&te.createElement("aside",{className:qe.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",ve.replies_count,"\uFF09")),te.createElement("aside",{className:qe.replyList},he==null?void 0:he.map(function(jt,na){var Wn;return te.createElement(Ue.Z,{gutter:[12,12],key:na},te.createElement(ce.Z,{flex:"40px"},te.createElement("a",{href:`/users/${jt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${Je.Z.IMG_SERVER}/images/${jt==null?void 0:jt.image_url}`}))),te.createElement(ce.Z,{flex:"1"},te.createElement(Ue.Z,{align:"middle"},te.createElement(ce.Z,{span:24},te.createElement("a",{href:`/users/${jt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},jt==null?void 0:jt.username)),te.createElement("span",{className:"c-light-black ml10"},jt.time)),te.createElement(ce.Z,{span:24},te.createElement("div",{onClick:xt},te.createElement(ge.Z,{value:jt.content}))),!!((Wn=jt==null?void 0:jt.children)!=null&&Wn.length)&&te.createElement(ot,{user:gt,id:jt==null?void 0:jt.id,vlist:jt==null?void 0:jt.children,dispatch:zt,params:Te,memo_replies:he,forumsDetail:tn}),te.createElement(ce.Z,{span:24,className:"mt5 c-light-black"},Kt===na?te.createElement("aside",null,te.createElement($t.Z,{onChange:wn=>{Bt(wn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(Ue.Z,null,te.createElement(ce.Z,{span:24,className:"tr"},te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>_e(this,null,function*(){if(Wt==="")de.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const wn=yield(0,We.ts)({parent_id:jt.id,content:Wt});Bt(null),wn&&(qt(-1),he.find(ia=>ia.id===wn.parent_id).children.push(Pa(wn)),zt({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},tn.forumsDetailData),{memo:pe(ye({},ve),{replies_count:ve.replies_count+1}),memo_replies:[...he]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>qt(na)}),te.createElement(Nt.Z,{title:jt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:jt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>_e(this,null,function*(){const wn=yield(0,We.vL)({id:jt.id,container_type:"Memo",type:jt.user_praise?0:1});(wn==null?void 0:wn.praise_count)>=0&&(he.find(ia=>ia.id===jt.id).user_praise=!jt.user_praise,he.find(ia=>ia.id===jt.id).praise_count=wn==null?void 0:wn.praise_count,zt({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},tn.forumsDetailData),{memo_replies:[...he]})}))})}),jt.praise_count>0?jt.praise_count:"")))))))}))),ta&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(Ue.Z,{justify:"space-between"},te.createElement(ce.Z,null),te.createElement(ce.Z,null,ta&&te.createElement("a",{className:"c-black",onClick:En},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:qe.reply},te.createElement($t.Z,{onBlur:()=>At(!1),isFocus:ga,defaultValue:Re,id:"writeForumsReviewId",onChange:jt=>{St(jt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Ue.Z,null,te.createElement(ce.Z,{flex:"1"}),te.createElement(ce.Z,null,te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>_e(void 0,null,function*(){if(Re==="")de.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const jt=yield(0,We.ts)({parent_id:ve.id,content:Re});St(null),jt&&zt({type:"forumsDetail/setForumsDetailData",payload:pe(ye({},tn.forumsDetailData),{memo:pe(ye({},ve),{replies_count:ve.replies_count+1}),memo_replies:[Pa(jt),...he]})})}})},"\u53D1\u9001")))))};var ct=(0,Le.connect)(({user:Ze,forumsDetail:Xe,loading:He,globalSetting:gt})=>({user:Ze,forumsDetail:Xe,globalSetting:gt,loading:He.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(tt)),ut={wrap:"wrap___Soi3l",header:"header___vk3EC",title:"title___WJAyR",menu:"menu___yMPKF",top:"top___ZqzEM",line:"line___EQKlG",flexCenter:"flexCenter___Rcnhr",like:"like___uNtmq",canLike:"canLike___Lu04z",attachmentName:"attachmentName___nwdzp"},bt=re(55304),It=re(71865),Tt=re(33054),on=Object.defineProperty,dn=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,bn=(Ze,Xe,He)=>Xe in Ze?on(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[Xe]=He,hn=(Ze,Xe)=>{for(var He in Xe||(Xe={}))ln.call(Xe,He)&&bn(Ze,He,Xe[He]);if(Dt)for(var He of Dt(Xe))Jt.call(Xe,He)&&bn(Ze,He,Xe[He]);return Ze},pn=(Ze,Xe)=>dn(Ze,kt(Xe)),Sn=(Ze,Xe)=>{var He={};for(var gt in Ze)ln.call(Ze,gt)&&Xe.indexOf(gt)<0&&(He[gt]=Ze[gt]);if(Ze!=null&&Dt)for(var gt of Dt(Ze))Xe.indexOf(gt)<0&&Jt.call(Ze,gt)&&(He[gt]=Ze[gt]);return He},vn=(Ze,Xe,He)=>new Promise((gt,tn)=>{var nn=xt=>{try{zt(He.next(xt))}catch(ue){tn(ue)}},xn=xt=>{try{zt(He.throw(xt))}catch(ue){tn(ue)}},zt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(nn,xn);zt((He=He.apply(Ze,Xe)).next())});const Gn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},mn=Ze=>{var Xe=Ze,{user:He,forumsDetail:gt,globalSetting:tn,loading:nn,dispatch:xn}=Xe,zt=Sn(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),xt,ue,ve,he;const{author_info:Te,memo:Re,attachments_list:St}=gt.forumsDetailData||{},Wt=(0,te.useRef)(),Bt=(0,te.useRef)(),Kt=()=>vn(void 0,null,function*(){const At={id:Re.id,sticky:Re.sticky?0:1},En=yield(0,We.B0)(At);(En==null?void 0:En.status)===0&&xn({type:"forumsDetail/setForumsDetailData",payload:pn(hn({},gt.forumsDetailData),{memo:pn(hn({},Re),{sticky:!(Re!=null&&Re.sticky)})})})}),qt=()=>vn(void 0,null,function*(){const At=yield(0,We.sW)({id:Re==null?void 0:Re.id});(At==null?void 0:At.status)===0&&(de.ZP.success("\u5220\u9664\u6210\u529F"),Le.history.push("/forums")),(At==null?void 0:At.status)===-1&&Le.history.push("/forums")}),ta=()=>vn(void 0,null,function*(){Pe.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:te.createElement("div",{className:"font14 tc"},te.createElement(fe.default,{defaultValue:Wt.current,onChange:At=>Wt.current=At.target.value})),onOk:()=>vn(void 0,null,function*(){const At=yield(0,We.eh)({id:Re==null?void 0:Re.id,container_type:"Memo",score:Wt.current?Number(Wt.current):0,user_id:Te==null?void 0:Te.user_id});if(Wt.current=null,(At==null?void 0:At.code)>0){xn({type:"forumsDetail/setForumsDetailData",payload:pn(hn({},gt.forumsDetailData),{memo:pn(hn({},Re),{reward:At==null?void 0:At.code})})}),de.ZP.success("\u5956\u52B1\u6210\u529F");return}de.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),Ye=()=>{Bt.current.onMdFouch&&Bt.current.onMdFouch()},en=()=>vn(void 0,null,function*(){const At=yield(0,We.vL)({id:Re.id,container_type:"Memo",type:1});(At==null?void 0:At.praise_count)>=0&&xn({type:"forumsDetail/setForumsDetailData",payload:pn(hn({},gt.forumsDetailData),{memo:pn(hn({},Re),{user_praise:!(Re!=null&&Re.user_praise),memo_praise_count:At==null?void 0:At.praise_count})})})}),Un=te.createElement(De.default,{className:ut.menu},((xt=He.userInfo)==null?void 0:xt.admin)&&(Re==null?void 0:Re.sticky)&&te.createElement(De.default.Item,null,te.createElement("a",{onClick:()=>Kt()},"\u53D6\u6D88\u7F6E\u9876")),((ue=He.userInfo)==null?void 0:ue.admin)&&!(Re!=null&&Re.sticky)&&te.createElement(De.default.Item,null,te.createElement("a",{onClick:()=>Kt()},"\u7F6E\xA0\xA0\u9876")),te.createElement(De.default.Item,null,te.createElement(Le.Link,{to:`/forums/${Re==null?void 0:Re.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(De.default.Item,null,te.createElement("a",{onClick:()=>{Pe.default.confirm({title:"\u63D0\u793A",icon:te.createElement(bt.Z,null),content:"\u5E16\u5B50\u5C06\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\u3002\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",onOk:()=>{qt()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),ga=At=>{let{nodeName:En,src:Pa}=At.target;En==="IMG"&&(Tt.Z.publish("preview-image",Pa),console.log("src:",Pa))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:ut.wrap},te.createElement($e.Z,{separator:"/",className:"mb5"},te.createElement($e.Z.Item,null,te.createElement(Le.Link,{to:`/forums/categories/${Re==null?void 0:Re.forum_id}`},Gn[Re==null?void 0:Re.forum_id])),te.createElement($e.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${ut.header}`},te.createElement(Ue.Z,{align:"middle"},te.createElement(ce.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:ut.title},Re==null?void 0:Re.subject),(Re==null?void 0:Re.sticky)&&te.createElement("span",{className:ut.top},"\u7F6E\u9876")),te.createElement(ce.Z,null,(((ve=He.userInfo)==null?void 0:ve.admin)||((he=He.userInfo)==null?void 0:he.user_id)===(Te==null?void 0:Te.user_id))&&te.createElement(ht.Z,{dropdownRender:()=>Un},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(Ue.Z,{align:"middle",className:"font14"},te.createElement(ce.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()(Re==null?void 0:Re.time).fromNow()," \u66F4\u65B0")),te.createElement(ce.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${Re!=null&&Re.replies_count?ut.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),Re==null?void 0:Re.viewed_count),!!(Re!=null&&Re.replies_count)&&te.createElement(Nt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:Ye},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),Re==null?void 0:Re.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:ga},te.createElement(ge.Z,{value:Re==null?void 0:Re.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${ut.flexCenter}`},te.createElement("div",{className:`${ut.like} ${Re!=null&&Re.user_praise?"":ut.canLike}`,onClick:en},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,Re==null?void 0:Re.memo_praise_count)))),!!(St!=null&&St.length)&&te.createElement("div",{className:"mt40"},St==null?void 0:St.map(At=>te.createElement("div",{className:`c-grey-888 ${ut.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:At==null?void 0:At.url,title:At==null?void 0:At.title,className:`${ut.attachmentName} mr10`},At==null?void 0:At.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},At==null?void 0:At.filesize))))),te.createElement(ct,{ref:Bt,handleClick:ga}),te.createElement(It.Z,null))};var yn=(0,Le.connect)(({user:Ze,forumsDetail:Xe,loading:He,globalSetting:gt})=>({user:Ze,forumsDetail:Xe,globalSetting:gt,loading:He.effects}))(mn),vt={flex:"flex___fgmSn"},An=re(57953),Qn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,fa=(Ze,Xe)=>{var He={};for(var gt in Ze)zn.call(Ze,gt)&&Xe.indexOf(gt)<0&&(He[gt]=Ze[gt]);if(Ze!=null&&Qn)for(var gt of Qn(Ze))Xe.indexOf(gt)<0&&Sa.call(Ze,gt)&&(He[gt]=Ze[gt]);return He},Jn=(Ze,Xe,He)=>new Promise((gt,tn)=>{var nn=xt=>{try{zt(He.next(xt))}catch(ue){tn(ue)}},xn=xt=>{try{zt(He.throw(xt))}catch(ue){tn(ue)}},zt=xt=>xt.done?gt(xt.value):Promise.resolve(xt.value).then(nn,xn);zt((He=He.apply(Ze,Xe)).next())});const la=Ze=>{var Xe=Ze,{forumsDetail:He,globalSetting:gt,loading:tn,dispatch:nn}=Xe,xn=fa(Xe,["forumsDetail","globalSetting","loading","dispatch"]);const zt=(0,Le.useParams)(),[xt,ue]=(0,te.useState)(!1);(0,te.useEffect)(()=>{ve()},[zt.memoId]);const ve=()=>Jn(void 0,null,function*(){ue(!0);let he=yield nn({type:"forumsDetail/getForumsDetailData",payload:{id:zt.memoId}});ue(!1)});return te.createElement(An.Z,{spinning:xt},te.createElement("section",{className:`edu-container mb20 mt30 ${vt.flex}`},te.createElement(yn,null),te.createElement(ee,null)))};var Rn=(0,Le.connect)(({forumsDetail:Ze,loading:Xe,globalSetting:He})=>({forumsDetail:Ze,globalSetting:He,loading:Xe.models.forumsDetail}))(la)},85673:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return $t}});var te=re(94184),Le=re.n(te),Je=re(37419),Ue=re(1337),ce=re(67294),Ne=re(96159),se=re(53124),We=re(42922),Ee=re(35874);const Ae=Fe=>{let{children:qe}=Fe;const{getPrefixCls:at}=ce.useContext(se.E_),nt=at("breadcrumb");return ce.createElement("li",{className:`${nt}-separator`,"aria-hidden":"true"},qe===""?qe:qe||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=Ae,Me=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,nt=Object.getOwnPropertySymbols(Fe);mt<nt.length;mt++)qe.indexOf(nt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[mt])&&(at[nt[mt]]=Fe[nt[mt]]);return at};function Ie(Fe,qe){if(Fe.title===void 0||Fe.title===null)return null;const at=Object.keys(qe).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${at})`,"g"),(nt,mt)=>qe[mt]||nt)}function ae(Fe,qe,at,nt){if(at==null)return null;const{className:mt,onClick:_t}=qe,Zt=Me(qe,["className","onClick"]),Qt=Object.assign(Object.assign({},(0,Ue.Z)(Zt,{data:!0,aria:!0})),{onClick:_t});return nt!==void 0?ce.createElement("a",Object.assign({},Qt,{className:Le()(`${Fe}-link`,mt),href:nt}),at):ce.createElement("span",Object.assign({},Qt,{className:Le()(`${Fe}-link`,mt)}),at)}function a(Fe,qe){return(nt,mt,_t,Zt,Qt)=>{if(qe)return qe(nt,mt,_t,Zt);const cn=Ie(nt,mt);return ae(Fe,nt,cn,Qt)}}var y=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,nt=Object.getOwnPropertySymbols(Fe);mt<nt.length;mt++)qe.indexOf(nt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[mt])&&(at[nt[mt]]=Fe[nt[mt]]);return at};const E=Fe=>{const{prefixCls:qe,separator:at="/",children:nt,menu:mt,overlay:_t,dropdownProps:Zt,href:Qt}=Fe,xe=(ze=>{if(mt||_t){const Qe=Object.assign({},Zt);if(mt){const Ot=mt||{},{items:ot}=Ot,Ke=y(Ot,["items"]);Qe.menu=Object.assign(Object.assign({},Ke),{items:ot==null?void 0:ot.map((me,it)=>{var{key:Rt,title:Xt,label:Pt,path:je}=me,Ce=y(me,["key","title","label","path"]);let ye=Pt!=null?Pt:Xt;return je&&(ye=ce.createElement("a",{href:`${Qt}${je}`},ye)),Object.assign(Object.assign({},Ce),{key:Rt!=null?Rt:it,label:ye})})})}else _t&&(Qe.overlay=_t);return ce.createElement(Ee.Z,Object.assign({placement:"bottom"},Qe),ce.createElement("span",{className:`${qe}-overlay-link`},ze,ce.createElement(We.Z,null)))}return ze})(nt);return xe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,xe),at&&ce.createElement(ke,null,at)):null},b=Fe=>{const{prefixCls:qe,children:at,href:nt}=Fe,mt=y(Fe,["prefixCls","children","href"]),{getPrefixCls:_t}=ce.useContext(se.E_),Zt=_t("breadcrumb",qe);return ce.createElement(E,Object.assign({},mt,{prefixCls:Zt}),ae(Zt,mt,at,nt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),ne=re(45503);const oe=Fe=>{const{componentCls:qe,iconCls:at}=Fe;return{[qe]:Object.assign(Object.assign({},(0,z.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[at]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,z.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${qe}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${qe}-link`]:{[`
|
|
> ${at} + span,
|
|
> ${at} + a
|
|
`]:{marginInlineStart:Fe.marginXXS}},[`${qe}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${at}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Fe=>{const qe=(0,ne.TS)(Fe,{});return[oe(qe)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),de=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,nt=Object.getOwnPropertySymbols(Fe);mt<nt.length;mt++)qe.indexOf(nt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[mt])&&(at[nt[mt]]=Fe[nt[mt]]);return at};function Pe(Fe){const{breadcrumbName:qe,children:at}=Fe,nt=de(Fe,["breadcrumbName","children"]),mt=Object.assign({title:qe},nt);return at&&(mt.menu={items:at.map(_t=>{var{breadcrumbName:Zt}=_t,Qt=de(_t,["breadcrumbName"]);return Object.assign(Object.assign({},Qt),{title:Zt})})}),mt}function fe(Fe,qe){return(0,ce.useMemo)(()=>Fe||(qe?qe.map(Pe):null),[Fe,qe])}var De=function(Fe,qe){var at={};for(var nt in Fe)Object.prototype.hasOwnProperty.call(Fe,nt)&&qe.indexOf(nt)<0&&(at[nt]=Fe[nt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,nt=Object.getOwnPropertySymbols(Fe);mt<nt.length;mt++)qe.indexOf(nt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,nt[mt])&&(at[nt[mt]]=Fe[nt[mt]]);return at};const $e=(Fe,qe)=>{if(qe===void 0)return qe;let at=(qe||"").replace(/^\//,"");return Object.keys(Fe).forEach(nt=>{at=at.replace(`:${nt}`,Fe[nt])}),at},ht=Fe=>{const{prefixCls:qe,separator:at="/",style:nt,className:mt,rootClassName:_t,routes:Zt,items:Qt,children:cn,itemRender:xe,params:ze={}}=Fe,Qe=De(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ot,direction:ot,breadcrumb:Ke}=ce.useContext(se.E_);let me;const it=Ot("breadcrumb",qe),[Rt,Xt]=ge(it),Pt=fe(Qt,Zt),je=a(it,xe);if(Pt&&Pt.length>0){const pe=[],be=Qt||Zt;me=Pt.map((_e,tt)=>{const{path:ct,key:ut,type:bt,menu:It,overlay:Tt,onClick:on,className:dn,separator:kt,dropdownProps:Dt}=_e,ln=$e(ze,ct);ln!==void 0&&pe.push(ln);const Jt=ut!=null?ut:tt;if(bt==="separator")return ce.createElement(ke,{key:Jt},kt);const bn={},hn=tt===Pt.length-1;It?bn.menu=It:Tt&&(bn.overlay=Tt);let{href:pn}=_e;return pe.length&&ln!==void 0&&(pn=`#/${pe.join("/")}`),ce.createElement(E,Object.assign({key:Jt},bn,(0,Ue.Z)(_e,{data:!0,aria:!0}),{className:dn,dropdownProps:Dt,href:pn,separator:hn?"":at,onClick:on,prefixCls:it}),je(_e,ze,be,pe,pn))})}else if(cn){const pe=(0,Je.Z)(cn).length;me=(0,Je.Z)(cn).map((be,_e)=>{if(!be)return be;const tt=_e===pe-1;return(0,Ne.Tm)(be,{separator:tt?"":at,key:_e})})}const Ce=Le()(it,Ke==null?void 0:Ke.className,{[`${it}-rtl`]:ot==="rtl"},mt,_t,Xt),ye=Object.assign(Object.assign({},Ke==null?void 0:Ke.style),nt);return Rt(ce.createElement("nav",Object.assign({className:Ce,style:ye},Qe),ce.createElement("ol",null,me)))};ht.Item=x,ht.Separator=ke;var Nt=ht,$t=Nt},35874:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return ye}});var te=re(67294),Le=re(91034),Je=re(94184),Ue=re.n(Je),ce=re(87462),Ne=re(4942),se=re(97685),We=re(45987),Ee=re(62709),Ae=re(71002),ke=re(12060);function Me(pe,be,_e){var tt=React.useRef({});return(!("value"in tt.current)||_e(tt.current.condition,be))&&(tt.current.value=pe(),tt.current.condition=be),tt.current.value}function Ie(pe,be){typeof pe=="function"?pe(be):(0,Ae.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=be)}function ae(){for(var pe=arguments.length,be=new Array(pe),_e=0;_e<pe;_e++)be[_e]=arguments[_e];var tt=be.filter(function(ct){return ct});return tt.length<=1?tt[0]:function(ct){be.forEach(function(ut){Ie(ut,ct)})}}function a(){for(var pe=arguments.length,be=new Array(pe),_e=0;_e<pe;_e++)be[_e]=arguments[_e];return useMemo(function(){return ae.apply(void 0,be)},be,function(tt,ct){return tt.length===ct.length&&tt.every(function(ut,bt){return ut===ct[bt]})})}function y(pe){var be,_e,tt=(0,ke.isMemo)(pe)?pe.type.type:pe.type;return!(typeof tt=="function"&&!((be=tt.prototype)!==null&&be!==void 0&&be.render)||typeof pe=="function"&&!((_e=pe.prototype)!==null&&_e!==void 0&&_e.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(be){var _e=be.keyCode;if(be.altKey&&!be.ctrlKey||be.metaKey||_e>=E.F1&&_e<=E.F12)return!1;switch(_e){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(be){if(be>=E.ZERO&&be<=E.NINE||be>=E.NUM_ZERO&&be<=E.NUM_MULTIPLY||be>=E.A&&be<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&be===0)return!0;switch(be){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(be){return+setTimeout(be,16)},z=function(be){return clearTimeout(be)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(be){return window.requestAnimationFrame(be)},z=function(be){return window.cancelAnimationFrame(be)});var ee=0,ne=new Map;function oe(pe){ne.delete(pe)}var ge=function(be){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var tt=ee;function ct(ut){if(ut===0)oe(tt),be();else{var bt=x(function(){ct(ut-1)});ne.set(tt,bt)}}return ct(_e),tt};ge.cancel=function(pe){var be=ne.get(pe);return oe(be),z(be)};var de=ge,Pe=b.ESC,fe=b.TAB;function De(pe){var be=pe.visible,_e=pe.triggerRef,tt=pe.onVisibleChange,ct=pe.autoFocus,ut=pe.overlayRef,bt=te.useRef(!1),It=function(){if(be){var kt,Dt;(kt=_e.current)===null||kt===void 0||(Dt=kt.focus)===null||Dt===void 0||Dt.call(kt),tt==null||tt(!1)}},Tt=function(){var kt;return(kt=ut.current)!==null&&kt!==void 0&&kt.focus?(ut.current.focus(),bt.current=!0,!0):!1},on=function(kt){switch(kt.keyCode){case Pe:It();break;case fe:{var Dt=!1;bt.current||(Dt=Tt()),Dt?kt.preventDefault():It();break}}};te.useEffect(function(){return be?(window.addEventListener("keydown",on),ct&&de(Tt,3),function(){window.removeEventListener("keydown",on),bt.current=!1}):function(){bt.current=!1}},[be])}var $e=(0,te.forwardRef)(function(pe,be){var _e=pe.overlay,tt=pe.arrow,ct=pe.prefixCls,ut=(0,te.useMemo)(function(){var It;return typeof _e=="function"?It=_e():It=_e,It},[_e]),bt=ae(be,ut==null?void 0:ut.ref);return te.createElement(te.Fragment,null,tt&&te.createElement("div",{className:"".concat(ct,"-arrow")}),te.cloneElement(ut,{ref:y(ut)?bt:void 0}))}),ht=$e,Nt={adjustX:1,adjustY:1},$t=[0,0],Fe={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-4],targetOffset:$t},top:{points:["bc","tc"],overflow:Nt,offset:[0,-4],targetOffset:$t},topRight:{points:["br","tr"],overflow:Nt,offset:[0,-4],targetOffset:$t},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,4],targetOffset:$t},bottom:{points:["tc","bc"],overflow:Nt,offset:[0,4],targetOffset:$t},bottomRight:{points:["tr","br"],overflow:Nt,offset:[0,4],targetOffset:$t}},qe=Fe,at=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nt(pe,be){var _e,tt=pe.arrow,ct=tt===void 0?!1:tt,ut=pe.prefixCls,bt=ut===void 0?"rc-dropdown":ut,It=pe.transitionName,Tt=pe.animation,on=pe.align,dn=pe.placement,kt=dn===void 0?"bottomLeft":dn,Dt=pe.placements,ln=Dt===void 0?qe:Dt,Jt=pe.getPopupContainer,bn=pe.showAction,hn=pe.hideAction,pn=pe.overlayClassName,Sn=pe.overlayStyle,vn=pe.visible,Gn=pe.trigger,mn=Gn===void 0?["hover"]:Gn,yn=pe.autoFocus,vt=pe.overlay,An=pe.children,Qn=pe.onVisibleChange,zn=(0,We.Z)(pe,at),Sa=te.useState(),fa=(0,se.Z)(Sa,2),Jn=fa[0],la=fa[1],Rn="visible"in pe?vn:Jn,Ze=te.useRef(null),Xe=te.useRef(null),He=te.useRef(null);te.useImperativeHandle(be,function(){return Ze.current});var gt=function(Te){la(Te),Qn==null||Qn(Te)};De({visible:Rn,triggerRef:He,onVisibleChange:gt,autoFocus:yn,overlayRef:Xe});var tn=function(Te){var Re=pe.onOverlayClick;la(!1),Re&&Re(Te)},nn=function(){return te.createElement(ht,{ref:Xe,overlay:vt,prefixCls:bt,arrow:ct})},xn=function(){return typeof vt=="function"?nn:nn()},zt=function(){var Te=pe.minOverlayWidthMatchTrigger,Re=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?Te:!Re},xt=function(){var Te=pe.openClassName;return Te!==void 0?Te:"".concat(bt,"-open")},ue=te.cloneElement(An,{className:Ue()((_e=An.props)===null||_e===void 0?void 0:_e.className,Rn&&xt()),ref:y(An)?ae(He,An.ref):void 0}),ve=hn;return!ve&&mn.indexOf("contextMenu")!==-1&&(ve=["click"]),te.createElement(Ee.Z,(0,ce.Z)({builtinPlacements:ln},zn,{prefixCls:bt,ref:Ze,popupClassName:Ue()(pn,(0,Ne.Z)({},"".concat(bt,"-show-arrow"),ct)),popupStyle:Sn,action:mn,showAction:bn,hideAction:ve,popupPlacement:kt,popupAlign:on,popupTransitionName:It,popupAnimation:Tt,popupVisible:Rn,stretch:zt()?"minWidth":"",popup:xn(),onPopupVisibleChange:gt,onPopupClick:tn,getPopupContainer:Jt}),ue)}var mt=te.forwardRef(nt),_t=mt,Zt=re(60276),Qt=re(5663),cn=re(10366),xe=re(80636),ze=re(8745),Qe=re(96159),Ot=re(53124),ot=re(68508),Ke=re(76529),me=re(46605),it=re(66748);const Rt=null,Xt=pe=>{const{menu:be,arrow:_e,prefixCls:tt,children:ct,trigger:ut,disabled:bt,dropdownRender:It,getPopupContainer:Tt,overlayClassName:on,rootClassName:dn,open:kt,onOpenChange:Dt,visible:ln,onVisibleChange:Jt,mouseEnterDelay:bn=.15,mouseLeaveDelay:hn=.1,autoAdjustOverflow:pn=!0,placement:Sn="",overlay:vn,transitionName:Gn}=pe,{getPopupContainer:mn,getPrefixCls:yn,direction:vt}=te.useContext(Ot.E_),An=te.useMemo(()=>{const ue=yn();return Gn!==void 0?Gn:Sn.includes("top")?`${ue}-slide-down`:`${ue}-slide-up`},[yn,Sn,Gn]),Qn=te.useMemo(()=>Sn?Sn.includes("Center")?Sn.slice(0,Sn.indexOf("Center")):Sn:vt==="rtl"?"bottomRight":"bottomLeft",[Sn,vt]),zn=yn("dropdown",tt),[Sa,fa]=(0,it.Z)(zn),[,Jn]=(0,me.Z)(),la=te.Children.only(ct),Rn=(0,Qe.Tm)(la,{className:Ue()(`${zn}-trigger`,{[`${zn}-rtl`]:vt==="rtl"},la.props.className),disabled:bt}),Ze=bt?[]:ut;let Xe;Ze&&Ze.includes("contextMenu")&&(Xe=!0);const[He,gt]=(0,Qt.Z)(!1,{value:kt!=null?kt:ln}),tn=(0,Zt.useEvent)(ue=>{Dt==null||Dt(ue),Jt==null||Jt(ue),gt(ue)}),nn=Ue()(on,dn,fa,{[`${zn}-rtl`]:vt==="rtl"}),xn=(0,xe.Z)({arrowPointAtCenter:typeof _e=="object"&&_e.pointAtCenter,autoAdjustOverflow:pn,offset:Jn.marginXXS,arrowWidth:_e?Jn.sizePopupArrow:0,borderRadius:Jn.borderRadius}),zt=te.useCallback(()=>{gt(!1)},[]),xt=()=>{let ue;return be!=null&&be.items?ue=te.createElement(ot.default,Object.assign({},be)):typeof vn=="function"?ue=vn():ue=vn,It&&(ue=It(ue)),ue=te.Children.only(typeof ue=="string"?te.createElement("span",null,ue):ue),te.createElement(Ke.J,{prefixCls:`${zn}-menu`,expandIcon:te.createElement("span",{className:`${zn}-menu-submenu-arrow`},te.createElement(Le.Z,{className:`${zn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:zt,validator:ve=>{let{mode:he}=ve}},ue)};return Sa(te.createElement(_t,Object.assign({alignPoint:Xe},(0,cn.Z)(pe,["rootClassName"]),{mouseEnterDelay:bn,mouseLeaveDelay:hn,visible:He,builtinPlacements:xn,arrow:!!_e,overlayClassName:nn,prefixCls:zn,getPopupContainer:Tt||mn,transitionName:An,trigger:Ze,overlay:xt,placement:Qn,onVisibleChange:tn}),Rn))};function Pt(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const je=(0,ze.Z)(Xt,"dropdown",pe=>pe,Pt),Ce=pe=>te.createElement(je,Object.assign({},pe),te.createElement("span",null));Xt._InternalPanelDoNotUseOrYouWillBeFired=Ce;var ye=Xt},85418:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return a}});var te=re(35874),Le=re(94184),Je=re.n(Le),Ue=re(67294),ce=re(25877),Ne=re(71577),se=re(53124),We=re(93421),Ee=re(4173),Ae=re(66748),ke=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const Me=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=Ue.useContext(se.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:ge,onClick:de,htmlType:Pe,children:fe,className:De,menu:$e,arrow:ht,autoFocus:Nt,overlay:$t,trigger:Fe,align:qe,open:at,onOpenChange:nt,placement:mt,getPopupContainer:_t,href:Zt,icon:Qt=Ue.createElement(ce.Z,null),title:cn,buttonsRender:xe=bt=>bt,mouseEnterDelay:ze,mouseLeaveDelay:Qe,overlayClassName:Ot,overlayStyle:ot,destroyPopupOnHide:Ke,dropdownRender:me}=y,it=ke(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Rt=b("dropdown",z),Xt=`${Rt}-button`,[Pt,je]=(0,Ae.Z)(Rt),Ce={menu:$e,arrow:ht,autoFocus:Nt,align:qe,disabled:oe,trigger:oe?[]:Fe,onOpenChange:nt,getPopupContainer:_t||E,mouseEnterDelay:ze,mouseLeaveDelay:Qe,overlayClassName:Ot,overlayStyle:ot,destroyPopupOnHide:Ke,dropdownRender:me},{compactSize:ye,compactItemClassnames:pe}=(0,Ee.ri)(Rt,x),be=Je()(Xt,pe,De,je);"overlay"in y&&(Ce.overlay=$t),"open"in y&&(Ce.open=at),"placement"in y?Ce.placement=mt:Ce.placement=x==="rtl"?"bottomLeft":"bottomRight";const _e=Ue.createElement(Ne.ZP,{type:ee,danger:ne,disabled:oe,loading:ge,onClick:de,htmlType:Pe,href:Zt,title:cn},fe),tt=Ue.createElement(Ne.ZP,{type:ee,danger:ne,icon:Qt}),[ct,ut]=xe([_e,tt]);return Pt(Ue.createElement(We.Z.Compact,Object.assign({className:be,size:ye,block:!0},it),ct,Ue.createElement(te.Z,Object.assign({},Ce),ut)))};Me.__ANT_BUTTON=!0;var Ie=Me;const ae=te.Z;ae.Button=Ie;var a=ae},66748:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return ke}});var te=re(14747),Le=re(67771),Je=re(33297),Ue=re(50438),ce=re(97414),Ne=re(67968),se=re(45503),Ee=Me=>{const{componentCls:Ie,menuCls:ae,colorError:a,colorTextLightSolid:y}=Me,E=`${ae}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=Me=>{const{componentCls:Ie,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Pe,colorBgElevated:fe}=Me;return[{[Ie]:Object.assign(Object.assign({},(0,te.Wf)(Me)),{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:de}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-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${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:Le.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:Le.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:Le.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:Le.ly}})},(0,ce.ZP)(Me,{colorBg:fe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:fe,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,te.Qy)(Me)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Pe}px`,color:Me.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Pe}px`,color:Me.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,te.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:fe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Me.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Pe+Me.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:fe,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ie}-menu-submenu-title`]:{color:Me.colorPrimary}})}},[(0,Le.oN)(Me,"slide-up"),(0,Le.oN)(Me,"slide-down"),(0,Je.Fm)(Me,"move-up"),(0,Je.Fm)(Me,"move-down"),(0,Ue._y)(Me,"zoom-big")]]};var ke=(0,Ne.Z)("Dropdown",(Me,Ie)=>{let{rootPrefixCls:ae}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Me,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:ne}),de=(0,se.TS)(Me,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(de),Ee(de)]},Me=>({zIndexPopup:Me.zIndexPopupBase+50}))},99398:function(Be,lt,re){"use strict";re.d(lt,{Z:function(){return fn}});var te=re(67294),Le=re.t(te,2),Je=re(99569),Ue=re(94184),ce=re.n(Ue),Ne=re(87462),se=re(1413),We=re(4942),Ee=re(97685),Ae=re(71002),ke=re(45987),Me=/margin|padding|width|height|max|min|offset/,Ie={left:!0,top:!0},ae={cssFloat:1,styleFloat:1,float:1};function a(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function y(le,ie,Se){if(ie=ie.toLowerCase(),Se==="auto"){if(ie==="height")return le.offsetHeight;if(ie==="width")return le.offsetWidth}return ie in Ie||(Ie[ie]=Me.test(ie)),Ie[ie]?parseFloat(Se)||0:Se}function E(le,ie){var Se=arguments.length,we=a(le);return ie=ae[ie]?"cssFloat"in le.style?"cssFloat":"styleFloat":ie,Se===1?we:y(le,ie,we[ie]||le.style[ie])}function b(le,ie,Se){var we=arguments.length;if(ie=ae[ie]?"cssFloat"in le.style?"cssFloat":"styleFloat":ie,we===3)return typeof Se=="number"&&Me.test(ie)&&(Se="".concat(Se,"px")),le.style[ie]=Se,Se;for(var Oe in ie)ie.hasOwnProperty(Oe)&&b(le,Oe,ie[Oe]);return a(le)}function x(le){return le===document.body?document.documentElement.clientWidth:le.offsetWidth}function z(le){return le===document.body?window.innerHeight||document.documentElement.clientHeight:le.offsetHeight}function ee(){var le=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:le,height:ie}}function ne(){var le=document.documentElement.clientWidth,ie=window.innerHeight||document.documentElement.clientHeight;return{width:le,height:ie}}function oe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ge(le){var ie=le.getBoundingClientRect(),Se=document.documentElement;return{left:ie.left+(window.pageXOffset||Se.scrollLeft)-(Se.clientLeft||document.body.clientLeft||0),top:ie.top+(window.pageYOffset||Se.scrollTop)-(Se.clientTop||document.body.clientTop||0)}}function de(le){var ie=te.useRef();ie.current=le;var Se=te.useCallback(function(){for(var we,Oe=arguments.length,Ge=new Array(Oe),dt=0;dt<Oe;dt++)Ge[dt]=arguments[dt];return(we=ie.current)===null||we===void 0?void 0:we.call.apply(we,[ie].concat(Ge))},[]);return Se}function Pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var fe=Pe()?te.useLayoutEffect:te.useEffect,De=function(ie,Se){var we=te.useRef(!0);fe(function(){return ie(we.current)},Se),fe(function(){return we.current=!1,function(){we.current=!0}},[])},$e=function(ie,Se){De(function(we){if(!we)return ie()},Se)},ht=null;function Nt(le){var ie=te.useRef(!1),Se=te.useState(le),we=(0,Ee.Z)(Se,2),Oe=we[0],Ge=we[1];te.useEffect(function(){return ie.current=!1,function(){ie.current=!0}},[]);function dt(rt,Lt){Lt&&ie.current||Ge(rt)}return[Oe,dt]}function $t(le){return le!==void 0}function Fe(le,ie){var Se=ie||{},we=Se.defaultValue,Oe=Se.value,Ge=Se.onChange,dt=Se.postState,rt=Nt(function(){return $t(Oe)?Oe:$t(we)?typeof we=="function"?we():we:typeof le=="function"?le():le}),Lt=(0,Ee.Z)(rt,2),wt=Lt[0],Gt=Lt[1],pt=Oe!==void 0?Oe:wt,Ht=dt?dt(pt):pt,Ct=de(Ge),Vt=Nt([pt]),Ln=(0,Ee.Z)(Vt,2),an=Ln[0],Pn=Ln[1];$e(function(){var sn=an[0];wt!==sn&&Ct(wt,sn)},[an]),$e(function(){$t(Oe)||Gt(Oe)},[Oe]);var gn=de(function(sn,un){Gt(sn,un),Pn([pt],un)});return[Ht,gn]}var qe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],at=te.createContext(null),nt=0;function mt(le,ie){var Se=te.useState(function(){return nt+=1,String(nt)}),we=(0,Ee.Z)(Se,1),Oe=we[0],Ge=te.useContext(at),dt={data:ie,canPreview:le};return te.useEffect(function(){if(Ge)return Ge.register(Oe,dt)},[]),te.useEffect(function(){Ge&&Ge.register(Oe,dt)},[le,ie]),Oe}function _t(le){return new Promise(function(ie){var Se=document.createElement("img");Se.onerror=function(){return ie(!1)},Se.onload=function(){return ie(!0)},Se.src=le})}function Zt(le){var ie=le.src,Se=le.isCustomPlaceholder,we=le.fallback,Oe=(0,te.useState)(Se?"loading":"normal"),Ge=(0,Ee.Z)(Oe,2),dt=Ge[0],rt=Ge[1],Lt=(0,te.useRef)(!1),wt=dt==="error";(0,te.useEffect)(function(){_t(ie).then(function(Ct){Ct||rt("error")})},[ie]),(0,te.useEffect)(function(){Se&&!Lt.current?rt("loading"):wt&&rt("normal")},[ie]);var Gt=function(){rt("normal")},pt=function(Vt){Lt.current=!1,dt==="loading"&&Vt!=null&&Vt.complete&&(Vt.naturalWidth||Vt.naturalHeight)&&(Lt.current=!0,Gt())},Ht=wt&&we?{src:we}:{onLoad:Gt,src:ie};return[pt,Ht,dt]}var Qt=re(2788),cn=te.createContext({});function xe(le,ie){if(!le)return!1;if(le.contains)return le.contains(ie);for(var Se=ie;Se;){if(Se===le)return!0;Se=Se.parentNode}return!1}function ze(){var le=(0,se.Z)({},Le);return le.useId}var Qe=0;function Ot(){}function ot(le){var ie=te.useState("ssr-id"),Se=(0,Ee.Z)(ie,2),we=Se[0],Oe=Se[1],Ge=ze(),dt=Ge==null?void 0:Ge();return te.useEffect(function(){if(!Ge){var rt=Qe;Qe+=1,Oe("rc_unique_".concat(rt))}},[]),le||dt||we}var Ke={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ie){var Se=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||Se>=Ke.F1&&Se<=Ke.F12)return!1;switch(Se){case Ke.ALT:case Ke.CAPS_LOCK:case Ke.CONTEXT_MENU:case Ke.CTRL:case Ke.DOWN:case Ke.END:case Ke.ESC:case Ke.HOME:case Ke.INSERT:case Ke.LEFT:case Ke.MAC_FF_META:case Ke.META:case Ke.NUMLOCK:case Ke.NUM_CENTER:case Ke.PAGE_DOWN:case Ke.PAGE_UP:case Ke.PAUSE:case Ke.PRINT_SCREEN:case Ke.RIGHT:case Ke.SHIFT:case Ke.UP:case Ke.WIN_KEY:case Ke.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=Ke.ZERO&&ie<=Ke.NINE||ie>=Ke.NUM_ZERO&&ie<=Ke.NUM_MULTIPLY||ie>=Ke.A&&ie<=Ke.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case Ke.SPACE:case Ke.QUESTION_MARK:case Ke.NUM_PLUS:case Ke.NUM_MINUS:case Ke.NUM_PERIOD:case Ke.NUM_DIVISION:case Ke.SEMICOLON:case Ke.DASH:case Ke.EQUALS:case Ke.COMMA:case Ke.PERIOD:case Ke.SLASH:case Ke.APOSTROPHE:case Ke.SINGLE_QUOTE:case Ke.OPEN_SQUARE_BRACKET:case Ke.BACKSLASH:case Ke.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},me=Ke,it=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Rt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Xt="".concat(it," ").concat(Rt).split(/[\s\n]+/),Pt="aria-",je="data-";function Ce(le,ie){return le.indexOf(ie)===0}function ye(le){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se;ie===!1?Se={aria:!0,data:!0,attr:!0}:ie===!0?Se={aria:!0}:Se=(0,se.Z)({},ie);var we={};return Object.keys(le).forEach(function(Oe){(Se.aria&&(Oe==="role"||Ce(Oe,Pt))||Se.data&&Ce(Oe,je)||Se.attr&&Xt.includes(Oe))&&(we[Oe]=le[Oe])}),we}function pe(le,ie,Se){var we=ie;return!we&&Se&&(we="".concat(le,"-").concat(Se)),we}function be(le,ie){var Se=le["page".concat(ie?"Y":"X","Offset")],we="scroll".concat(ie?"Top":"Left");if(typeof Se!="number"){var Oe=le.document;Se=Oe.documentElement[we],typeof Se!="number"&&(Se=Oe.body[we])}return Se}function _e(le){var ie=le.getBoundingClientRect(),Se={left:ie.left,top:ie.top},we=le.ownerDocument,Oe=we.defaultView||we.parentWindow;return Se.left+=be(Oe),Se.top+=be(Oe,!0),Se}var tt=re(62874),ct=re(59864);function ut(le,ie,Se){var we=te.useRef({});return(!("value"in we.current)||Se(we.current.condition,ie))&&(we.current.value=le(),we.current.condition=ie),we.current.value}function bt(le,ie){typeof le=="function"?le(ie):(0,Ae.Z)(le)==="object"&&le&&"current"in le&&(le.current=ie)}function It(){for(var le=arguments.length,ie=new Array(le),Se=0;Se<le;Se++)ie[Se]=arguments[Se];var we=ie.filter(function(Oe){return Oe});return we.length<=1?we[0]:function(Oe){ie.forEach(function(Ge){bt(Ge,Oe)})}}function Tt(){for(var le=arguments.length,ie=new Array(le),Se=0;Se<le;Se++)ie[Se]=arguments[Se];return ut(function(){return It.apply(void 0,ie)},ie,function(we,Oe){return we.length===Oe.length&&we.every(function(Ge,dt){return Ge===Oe[dt]})})}function on(le){var ie,Se,we=isMemo(le)?le.type.type:le.type;return!(typeof we=="function"&&!((ie=we.prototype)!==null&&ie!==void 0&&ie.render)||typeof le=="function"&&!((Se=le.prototype)!==null&&Se!==void 0&&Se.render))}var dn=te.memo(function(le){var ie=le.children;return ie},function(le,ie){var Se=ie.shouldUpdate;return!Se}),kt={width:0,height:0,overflow:"hidden",outline:"none"},Dt=te.forwardRef(function(le,ie){var Se=le.prefixCls,we=le.className,Oe=le.style,Ge=le.title,dt=le.ariaId,rt=le.footer,Lt=le.closable,wt=le.closeIcon,Gt=le.onClose,pt=le.children,Ht=le.bodyStyle,Ct=le.bodyProps,Vt=le.modalRender,Ln=le.onMouseDown,an=le.onMouseUp,Pn=le.holderRef,gn=le.visible,sn=le.forceRender,un=le.width,Cn=le.height,Dn=te.useContext(cn),aa=Dn.panel,Fn=Tt(Pn,aa),$n=(0,te.useRef)(),Mn=(0,te.useRef)();te.useImperativeHandle(ie,function(){return{focus:function(){var Hn;(Hn=$n.current)===null||Hn===void 0||Hn.focus()},changeActive:function(Hn){var Zn=document,ra=Zn.activeElement;Hn&&ra===Mn.current?$n.current.focus():!Hn&&ra===$n.current&&Mn.current.focus()}}});var qn={};un!==void 0&&(qn.width=un),Cn!==void 0&&(qn.height=Cn);var Xn;rt&&(Xn=te.createElement("div",{className:"".concat(Se,"-footer")},rt));var _n;Ge&&(_n=te.createElement("div",{className:"".concat(Se,"-header")},te.createElement("div",{className:"".concat(Se,"-title"),id:dt},Ge)));var Vn;Lt&&(Vn=te.createElement("button",{type:"button",onClick:Gt,"aria-label":"Close",className:"".concat(Se,"-close")},wt||te.createElement("span",{className:"".concat(Se,"-close-x")})));var oa=te.createElement("div",{className:"".concat(Se,"-content")},Vn,_n,te.createElement("div",(0,Ne.Z)({className:"".concat(Se,"-body"),style:Ht},Ct),pt),Xn);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ge?dt:null,"aria-modal":"true",ref:Fn,style:(0,se.Z)((0,se.Z)({},Oe),qn),className:ce()(Se,we),onMouseDown:Ln,onMouseUp:an},te.createElement("div",{tabIndex:0,ref:$n,style:kt,"aria-hidden":"true"}),te.createElement(dn,{shouldUpdate:gn||sn},Vt?Vt(oa):oa),te.createElement("div",{tabIndex:0,ref:Mn,style:kt,"aria-hidden":"true"}))}),ln=Dt,Jt=te.forwardRef(function(le,ie){var Se=le.prefixCls,we=le.title,Oe=le.style,Ge=le.className,dt=le.visible,rt=le.forceRender,Lt=le.destroyOnClose,wt=le.motionName,Gt=le.ariaId,pt=le.onVisibleChanged,Ht=le.mousePosition,Ct=(0,te.useRef)(),Vt=te.useState(),Ln=(0,Ee.Z)(Vt,2),an=Ln[0],Pn=Ln[1],gn={};an&&(gn.transformOrigin=an);function sn(){var un=_e(Ct.current);Pn(Ht?"".concat(Ht.x-un.left,"px ").concat(Ht.y-un.top,"px"):"")}return te.createElement(tt.Z,{visible:dt,onVisibleChanged:pt,onAppearPrepare:sn,onEnterPrepare:sn,forceRender:rt,motionName:wt,removeOnLeave:Lt,ref:Ct},function(un,Cn){var Dn=un.className,aa=un.style;return te.createElement(ln,(0,Ne.Z)({},le,{ref:ie,title:we,ariaId:Gt,prefixCls:Se,holderRef:Cn,style:(0,se.Z)((0,se.Z)((0,se.Z)({},aa),Oe),gn),className:ce()(Ge,Dn)}))})});Jt.displayName="Content";var bn=Jt;function hn(le){var ie=le.prefixCls,Se=le.style,we=le.visible,Oe=le.maskProps,Ge=le.motionName;return te.createElement(tt.Z,{key:"mask",visible:we,motionName:Ge,leavedClassName:"".concat(ie,"-mask-hidden")},function(dt,rt){var Lt=dt.className,wt=dt.style;return te.createElement("div",(0,Ne.Z)({ref:rt,style:(0,se.Z)((0,se.Z)({},wt),Se),className:ce()("".concat(ie,"-mask"),Lt)},Oe))})}function pn(le){var ie=le.prefixCls,Se=ie===void 0?"rc-dialog":ie,we=le.zIndex,Oe=le.visible,Ge=Oe===void 0?!1:Oe,dt=le.keyboard,rt=dt===void 0?!0:dt,Lt=le.focusTriggerAfterClose,wt=Lt===void 0?!0:Lt,Gt=le.wrapStyle,pt=le.wrapClassName,Ht=le.wrapProps,Ct=le.onClose,Vt=le.afterOpenChange,Ln=le.afterClose,an=le.transitionName,Pn=le.animation,gn=le.closable,sn=gn===void 0?!0:gn,un=le.mask,Cn=un===void 0?!0:un,Dn=le.maskTransitionName,aa=le.maskAnimation,Fn=le.maskClosable,$n=Fn===void 0?!0:Fn,Mn=le.maskStyle,qn=le.maskProps,Xn=le.rootClassName,_n=(0,te.useRef)(),Vn=(0,te.useRef)(),oa=(0,te.useRef)(),da=te.useState(Ge),Hn=(0,Ee.Z)(da,2),Zn=Hn[0],ra=Hn[1],ma=ot();function sa(){xe(Vn.current,document.activeElement)||(_n.current=document.activeElement)}function wa(){if(!xe(Vn.current,document.activeElement)){var Nn;(Nn=oa.current)===null||Nn===void 0||Nn.focus()}}function Ca(Nn){if(Nn)wa();else{if(ra(!1),Cn&&_n.current&&wt){try{_n.current.focus({preventScroll:!0})}catch(ea){}_n.current=null}Zn&&(Ln==null||Ln())}Vt==null||Vt(Nn)}function kn(Nn){Ct==null||Ct(Nn)}var va=(0,te.useRef)(!1),In=(0,te.useRef)(),jn=function(){clearTimeout(In.current),va.current=!0},ua=function(){In.current=setTimeout(function(){va.current=!1})},pa=null;$n&&(pa=function(ea){va.current?va.current=!1:Vn.current===ea.target&&kn(ea)});function Bn(Nn){if(rt&&Nn.keyCode===me.ESC){Nn.stopPropagation(),kn(Nn);return}Ge&&Nn.keyCode===me.TAB&&oa.current.changeActive(!Nn.shiftKey)}return(0,te.useEffect)(function(){Ge&&(ra(!0),sa())},[Ge]),(0,te.useEffect)(function(){return function(){clearTimeout(In.current)}},[]),te.createElement("div",(0,Ne.Z)({className:ce()("".concat(Se,"-root"),Xn)},ye(le,{data:!0})),te.createElement(hn,{prefixCls:Se,visible:Cn&&Ge,motionName:pe(Se,Dn,aa),style:(0,se.Z)({zIndex:we},Mn),maskProps:qn}),te.createElement("div",(0,Ne.Z)({tabIndex:-1,onKeyDown:Bn,className:ce()("".concat(Se,"-wrap"),pt),ref:Vn,onClick:pa,style:(0,se.Z)((0,se.Z)({zIndex:we},Gt),{},{display:Zn?null:"none"})},Ht),te.createElement(bn,(0,Ne.Z)({},le,{onMouseDown:jn,onMouseUp:ua,ref:oa,closable:sn,ariaId:ma,prefixCls:Se,visible:Ge&&Zn,onClose:kn,onVisibleChanged:Ca,motionName:pe(Se,an,Pn)}))))}var Sn=function(ie){var Se=ie.visible,we=ie.getContainer,Oe=ie.forceRender,Ge=ie.destroyOnClose,dt=Ge===void 0?!1:Ge,rt=ie.afterClose,Lt=ie.panelRef,wt=te.useState(Se),Gt=(0,Ee.Z)(wt,2),pt=Gt[0],Ht=Gt[1],Ct=te.useMemo(function(){return{panel:Lt}},[Lt]);return te.useEffect(function(){Se&&Ht(!0)},[Se]),!Oe&&dt&&!pt?null:te.createElement(cn.Provider,{value:Ct},te.createElement(Qt.Z,{open:Se||Oe||pt,autoDestroy:!1,getContainer:we,autoLock:Se||pt},te.createElement(pn,(0,Ne.Z)({},ie,{destroyOnClose:dt,afterClose:function(){rt==null||rt(),Ht(!1)}}))))};Sn.displayName="Dialog";var vn=Sn,Gn=vn,mn=re(73935);function yn(le,ie,Se,we){var Oe=mn.unstable_batchedUpdates?function(dt){mn.unstable_batchedUpdates(Se,dt)}:Se;return le!=null&&le.addEventListener&&le.addEventListener(ie,Oe,we),{remove:function(){le!=null&&le.removeEventListener&&le.removeEventListener(ie,Oe,we)}}}var vt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ie){var Se=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||Se>=vt.F1&&Se<=vt.F12)return!1;switch(Se){case vt.ALT:case vt.CAPS_LOCK:case vt.CONTEXT_MENU:case vt.CTRL:case vt.DOWN:case vt.END:case vt.ESC:case vt.HOME:case vt.INSERT:case vt.LEFT:case vt.MAC_FF_META:case vt.META:case vt.NUMLOCK:case vt.NUM_CENTER:case vt.PAGE_DOWN:case vt.PAGE_UP:case vt.PAUSE:case vt.PRINT_SCREEN:case vt.RIGHT:case vt.SHIFT:case vt.UP:case vt.WIN_KEY:case vt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=vt.ZERO&&ie<=vt.NINE||ie>=vt.NUM_ZERO&&ie<=vt.NUM_MULTIPLY||ie>=vt.A&&ie<=vt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case vt.SPACE:case vt.QUESTION_MARK:case vt.NUM_PLUS:case vt.NUM_MINUS:case vt.NUM_PERIOD:case vt.NUM_DIVISION:case vt.SEMICOLON:case vt.DASH:case vt.EQUALS:case vt.COMMA:case vt.PERIOD:case vt.SLASH:case vt.APOSTROPHE:case vt.SINGLE_QUOTE:case vt.OPEN_SQUARE_BRACKET:case vt.BACKSLASH:case vt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},An=vt,Qn={},zn=[],Sa=function(ie){zn.push(ie)};function fa(le,ie){if(0)var Se}function Jn(le,ie){if(0)var Se}function la(){Qn={}}function Rn(le,ie,Se){!ie&&!Qn[Se]&&(le(!1,Se),Qn[Se]=!0)}function Ze(le,ie){Rn(fa,le,ie)}function Xe(le,ie){Rn(Jn,le,ie)}Ze.preMessage=Sa,Ze.resetWarned=la,Ze.noteOnce=Xe;var He=Ze;function gt(le,ie,Se,we){var Oe=ie+Se,Ge=(Se-we)/2;if(Se>we){if(ie>0)return(0,We.Z)({},le,Ge);if(ie<0&&Oe<we)return(0,We.Z)({},le,-Ge)}else if(ie<0||Oe>we)return(0,We.Z)({},le,ie<0?Ge:-Ge);return{}}function tn(le,ie,Se,we){var Oe=ne(),Ge=Oe.width,dt=Oe.height,rt=null;return le<=Ge&&ie<=dt?rt={x:0,y:0}:(le>Ge||ie>dt)&&(rt=(0,se.Z)((0,se.Z)({},gt("x",Se,le,Ge)),gt("y",we,ie,dt))),rt}function nn(le,ie){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=new Set;function Oe(Ge,dt){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Lt=we.has(Ge);if(He(!Lt,"Warning: There may be circular references"),Lt)return!1;if(Ge===dt)return!0;if(Se&&rt>1)return!1;we.add(Ge);var wt=rt+1;if(Array.isArray(Ge)){if(!Array.isArray(dt)||Ge.length!==dt.length)return!1;for(var Gt=0;Gt<Ge.length;Gt++)if(!Oe(Ge[Gt],dt[Gt],wt))return!1;return!0}if(Ge&&dt&&(0,Ae.Z)(Ge)==="object"&&(0,Ae.Z)(dt)==="object"){var pt=Object.keys(Ge);return pt.length!==Object.keys(dt).length?!1:pt.every(function(Ht){return Oe(Ge[Ht],dt[Ht],wt)})}return!1}return Oe(le,ie)}var xn=nn,zt=function(ie){return+setTimeout(ie,16)},xt=function(ie){return clearTimeout(ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(zt=function(ie){return window.requestAnimationFrame(ie)},xt=function(ie){return window.cancelAnimationFrame(ie)});var ue=0,ve=new Map;function he(le){ve.delete(le)}var Te=function(ie){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ue+=1;var we=ue;function Oe(Ge){if(Ge===0)he(we),ie();else{var dt=zt(function(){Oe(Ge-1)});ve.set(we,dt)}}return Oe(Se),we};Te.cancel=function(le){var ie=ve.get(le);return he(ie),xt(ie)};var Re=Te,St={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Wt(le,ie,Se,we){var Oe=(0,te.useRef)(null),Ge=(0,te.useRef)([]),dt=(0,te.useState)(St),rt=(0,Ee.Z)(dt,2),Lt=rt[0],wt=rt[1],Gt=function(Vt){wt(St),we&&!xn(St,Lt)&&we({transform:St,action:Vt})},pt=function(Vt,Ln){Oe.current===null&&(Ge.current=[],Oe.current=Re(function(){wt(function(an){var Pn=an;return Ge.current.forEach(function(gn){Pn=(0,se.Z)((0,se.Z)({},Pn),gn)}),Oe.current=null,we==null||we({transform:Pn,action:Ln}),Pn})})),Ge.current.push((0,se.Z)((0,se.Z)({},Lt),Vt))},Ht=function(Vt,Ln,an,Pn){var gn=le.current,sn=gn.width,un=gn.height,Cn=gn.offsetWidth,Dn=gn.offsetHeight,aa=gn.offsetLeft,Fn=gn.offsetTop,$n=Vt,Mn=Lt.scale*Vt;Mn>Se?($n=Se/Lt.scale,Mn=Se):Mn<ie&&($n=ie/Lt.scale,Mn=ie);var qn=an!=null?an:innerWidth/2,Xn=Pn!=null?Pn:innerHeight/2,_n=$n-1,Vn=_n*sn*.5,oa=_n*un*.5,da=_n*(qn-Lt.x-aa),Hn=_n*(Xn-Lt.y-Fn),Zn=Lt.x-(da-Vn),ra=Lt.y-(Hn-oa);if(Vt<1&&Mn===1){var ma=Cn*Mn,sa=Dn*Mn,wa=ne(),Ca=wa.width,kn=wa.height;ma<=Ca&&sa<=kn&&(Zn=0,ra=0)}pt({x:Zn,y:ra,scale:Mn},Ln)};return{transform:Lt,resetTransform:Gt,updateTransform:pt,dispatchZoomChange:Ht}}var Bt=function(ie){var Se=ie.visible,we=ie.maskTransitionName,Oe=ie.getContainer,Ge=ie.prefixCls,dt=ie.rootClassName,rt=ie.icons,Lt=ie.countRender,wt=ie.showSwitch,Gt=ie.showProgress,pt=ie.current,Ht=ie.transform,Ct=ie.count,Vt=ie.scale,Ln=ie.minScale,an=ie.maxScale,Pn=ie.closeIcon,gn=ie.onSwitchLeft,sn=ie.onSwitchRight,un=ie.onClose,Cn=ie.onZoomIn,Dn=ie.onZoomOut,aa=ie.onRotateRight,Fn=ie.onRotateLeft,$n=ie.onFlipX,Mn=ie.onFlipY,qn=ie.toolbarRender,Xn=(0,te.useContext)(at),_n=rt.rotateLeft,Vn=rt.rotateRight,oa=rt.zoomIn,da=rt.zoomOut,Hn=rt.close,Zn=rt.left,ra=rt.right,ma=rt.flipX,sa=rt.flipY,wa="".concat(Ge,"-operations-operation");te.useEffect(function(){var In=function(ua){ua.keyCode===An.ESC&&un()};return Se&&window.addEventListener("keydown",In),function(){window.removeEventListener("keydown",In)}},[Se]);var Ca=[{icon:sa,onClick:Mn,type:"flipY"},{icon:ma,onClick:$n,type:"flipX"},{icon:_n,onClick:Fn,type:"rotateLeft"},{icon:Vn,onClick:aa,type:"rotateRight"},{icon:da,onClick:Dn,type:"zoomOut",disabled:Vt===Ln},{icon:oa,onClick:Cn,type:"zoomIn",disabled:Vt===an}],kn=Ca.map(function(In){var jn,ua=In.icon,pa=In.onClick,Bn=In.type,Nn=In.disabled;return te.createElement("div",{className:ce()(wa,(jn={},(0,We.Z)(jn,"".concat(Ge,"-operations-operation-").concat(Bn),!0),(0,We.Z)(jn,"".concat(Ge,"-operations-operation-disabled"),!!Nn),jn)),onClick:pa,key:Bn},ua)}),va=te.createElement("div",{className:"".concat(Ge,"-operations")},kn);return te.createElement(tt.Z,{visible:Se,motionName:we},function(In){var jn=In.className,ua=In.style;return te.createElement(Qt.Z,{open:!0,getContainer:Oe!=null?Oe:document.body},te.createElement("div",{className:ce()("".concat(Ge,"-operations-wrapper"),jn,dt),style:ua},Pn===null?null:te.createElement("button",{className:"".concat(Ge,"-close"),onClick:un},Pn||Hn),wt&&te.createElement(te.Fragment,null,te.createElement("div",{className:ce()("".concat(Ge,"-switch-left"),(0,We.Z)({},"".concat(Ge,"-switch-left-disabled"),pt===0)),onClick:gn},Zn),te.createElement("div",{className:ce()("".concat(Ge,"-switch-right"),(0,We.Z)({},"".concat(Ge,"-switch-right-disabled"),pt===Ct-1)),onClick:sn},ra)),te.createElement("div",{className:"".concat(Ge,"-footer")},Gt&&te.createElement("div",{className:"".concat(Ge,"-progress")},Lt?Lt(pt+1,Ct):"".concat(pt+1," / ").concat(Ct)),qn?qn(va,(0,se.Z)({icons:{flipYIcon:kn[0],flipXIcon:kn[1],rotateLeftIcon:kn[2],rotateRightIcon:kn[3],zoomOutIcon:kn[4],zoomInIcon:kn[5]},actions:{onFlipY:Mn,onFlipX:$n,onRotateLeft:Fn,onRotateRight:aa,onZoomOut:Dn,onZoomIn:Cn},transform:Ht},Xn?{current:pt,total:Ct}:{})):va)))})},Kt=Bt,qt=1,ta=1,Ye=["fallback","src","imgRef"],en=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Un=function(ie){var Se=ie.fallback,we=ie.src,Oe=ie.imgRef,Ge=(0,ke.Z)(ie,Ye),dt=Zt({src:we,fallback:Se}),rt=(0,Ee.Z)(dt,2),Lt=rt[0],wt=rt[1];return te.createElement("img",(0,Ne.Z)({ref:function(pt){Oe.current=pt,Lt(pt)}},Ge,wt))},ga=function(ie){var Se=ie.prefixCls,we=ie.src,Oe=ie.alt,Ge=ie.fallback,dt=ie.movable,rt=dt===void 0?!0:dt,Lt=ie.onClose,wt=ie.visible,Gt=ie.icons,pt=Gt===void 0?{}:Gt,Ht=ie.rootClassName,Ct=ie.closeIcon,Vt=ie.getContainer,Ln=ie.current,an=Ln===void 0?0:Ln,Pn=ie.count,gn=Pn===void 0?1:Pn,sn=ie.countRender,un=ie.scaleStep,Cn=un===void 0?.5:un,Dn=ie.minScale,aa=Dn===void 0?1:Dn,Fn=ie.maxScale,$n=Fn===void 0?50:Fn,Mn=ie.transitionName,qn=Mn===void 0?"zoom":Mn,Xn=ie.maskTransitionName,_n=Xn===void 0?"fade":Xn,Vn=ie.imageRender,oa=ie.imgCommonProps,da=ie.toolbarRender,Hn=ie.onTransform,Zn=ie.onChange,ra=(0,ke.Z)(ie,en),ma=(0,te.useRef)(),sa=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),wa=(0,te.useState)(!1),Ca=(0,Ee.Z)(wa,2),kn=Ca[0],va=Ca[1],In=(0,te.useContext)(at),jn=In&&gn>1,ua=In&&gn>=1,pa=Wt(ma,aa,$n,Hn),Bn=pa.transform,Nn=pa.resetTransform,ea=pa.updateTransform,Ga=pa.dispatchZoomChange,eo=(0,te.useState)(!0),_a=(0,Ee.Z)(eo,2),ka=_a[0],Ba=_a[1],ya=Bn.rotate,ca=Bn.scale,Ta=Bn.x,Aa=Bn.y,Co=ce()((0,We.Z)({},"".concat(Se,"-moving"),kn));(0,te.useEffect)(function(){ka||Ba(!0)},[ka]);var Fo=function(){Nn("close")},Wa=function(){Ga(qt+Cn,"zoomIn")},xo=function(){Ga(qt/(qt+Cn),"zoomOut")},Bo=function(){ea({rotate:ya+90},"rotateRight")},No=function(){ea({rotate:ya-90},"rotateLeft")},Ra=function(){ea({flipX:!Bn.flipX},"flipX")},Da=function(){ea({flipY:!Bn.flipY},"flipY")},to=function(Yt){Yt==null||Yt.preventDefault(),Yt==null||Yt.stopPropagation(),an>0&&(Ba(!1),Nn("prev"),Zn==null||Zn(an-1,an))},no=function(Yt){Yt==null||Yt.preventDefault(),Yt==null||Yt.stopPropagation(),an<gn-1&&(Ba(!1),Nn("next"),Zn==null||Zn(an+1,an))},ao=function(){if(wt&&kn){va(!1);var Yt=sa.current,Ka=Yt.transformX,Xa=Yt.transformY,Na=Ta!==Ka&&Aa!==Xa;if(!Na)return;var Va=ma.current.offsetWidth*ca,Ya=ma.current.offsetHeight*ca,Qa=ma.current.getBoundingClientRect(),ko=Qa.left,Ho=Qa.top,Ao=ya%180!==0,zo=tn(Ao?Ya:Va,Ao?Va:Ya,ko,Ho);zo&&ea((0,se.Z)({},zo),"dragRebound")}},Ro=function(Yt){!rt||Yt.button!==0||(Yt.preventDefault(),Yt.stopPropagation(),sa.current={deltaX:Yt.pageX-Bn.x,deltaY:Yt.pageY-Bn.y,transformX:Bn.x,transformY:Bn.y},va(!0))},Go=function(Yt){wt&&kn&&ea({x:Yt.pageX-sa.current.deltaX,y:Yt.pageY-sa.current.deltaY},"move")},Do=function(Yt){if(!(!wt||Yt.deltaY==0)){var Ka=Math.abs(Yt.deltaY/100),Xa=Math.min(Ka,ta),Na=qt+Xa*Cn;Yt.deltaY>0&&(Na=qt/Na),Ga(Na,"wheel",Yt.clientX,Yt.clientY)}},$o=function(Yt){!wt||!jn||(Yt.keyCode===An.LEFT?to():Yt.keyCode===An.RIGHT&&no())},_o=function(Yt){wt&&(ca!==1?ea({x:0,y:0,scale:1},"doubleClick"):Ga(qt+Cn,"doubleClick",Yt.clientX,Yt.clientY))};(0,te.useEffect)(function(){var Yn,Yt,Ka,Xa;if(rt){Ka=yn(window,"mouseup",ao,!1),Xa=yn(window,"mousemove",Go,!1);try{window.top!==window.self&&(Yn=yn(window.top,"mouseup",ao,!1),Yt=yn(window.top,"mousemove",Go,!1))}catch(Na){fa(!1,"[rc-image] ".concat(Na))}}return function(){var Na,Va,Ya,Qa;(Na=Ka)===null||Na===void 0||Na.remove(),(Va=Xa)===null||Va===void 0||Va.remove(),(Ya=Yn)===null||Ya===void 0||Ya.remove(),(Qa=Yt)===null||Qa===void 0||Qa.remove()}},[wt,kn,Ta,Aa,ya,rt]),(0,te.useEffect)(function(){var Yn=yn(window,"keydown",$o,!1);return function(){Yn.remove()}},[wt,jn,an]);var To=te.createElement(Un,(0,Ne.Z)({},oa,{width:ie.width,height:ie.height,imgRef:ma,className:"".concat(Se,"-img"),alt:Oe,style:{transform:"translate3d(".concat(Bn.x,"px, ").concat(Bn.y,"px, 0) scale3d(").concat(Bn.flipX?"-":"").concat(ca,", ").concat(Bn.flipY?"-":"").concat(ca,", 1) rotate(").concat(ya,"deg)"),transitionDuration:!ka&&"0s"},fallback:Ge,src:we,onWheel:Do,onMouseDown:Ro,onDoubleClick:_o}));return te.createElement(te.Fragment,null,te.createElement(Gn,(0,Ne.Z)({transitionName:qn,maskTransitionName:_n,closable:!1,keyboard:!0,prefixCls:Se,onClose:Lt,visible:wt,wrapClassName:Co,rootClassName:Ht,getContainer:Vt},ra,{afterClose:Fo}),te.createElement("div",{className:"".concat(Se,"-img-wrapper")},Vn?Vn(To,(0,se.Z)({transform:Bn},In?{current:an}:{})):To)),te.createElement(Kt,{visible:wt,transform:Bn,maskTransitionName:_n,closeIcon:Ct,getContainer:Vt,prefixCls:Se,rootClassName:Ht,icons:pt,countRender:sn,showSwitch:jn,showProgress:ua,current:an,count:gn,scale:ca,minScale:aa,maxScale:$n,toolbarRender:da,onSwitchLeft:to,onSwitchRight:no,onZoomIn:Wa,onZoomOut:xo,onRotateRight:Bo,onRotateLeft:No,onFlipX:Ra,onFlipY:Da,onClose:Lt}))},At=ga,En=re(74902);function Pa(le){var ie=te.useState({}),Se=(0,Ee.Z)(ie,2),we=Se[0],Oe=Se[1],Ge=te.useCallback(function(rt,Lt){return Oe(function(wt){return(0,se.Z)((0,se.Z)({},wt),{},(0,We.Z)({},rt,Lt))}),function(){Oe(function(wt){var Gt=(0,se.Z)({},wt);return delete Gt[rt],Gt})}},[]),dt=te.useMemo(function(){return le?le.map(function(rt){if(typeof rt=="string")return{data:{src:rt}};var Lt={};return Object.keys(rt).forEach(function(wt){["src"].concat((0,En.Z)(qe)).includes(wt)&&(Lt[wt]=rt[wt])}),{data:Lt}}):Object.keys(we).reduce(function(rt,Lt){var wt=we[Lt],Gt=wt.canPreview,pt=wt.data;return Gt&&rt.push({data:pt,id:Lt}),rt},[])},[le,we]);return[dt,Ge]}var Oa=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],jt=["src"],na=function(ie){var Se,we=ie.previewPrefixCls,Oe=we===void 0?"rc-image-preview":we,Ge=ie.children,dt=ie.icons,rt=dt===void 0?{}:dt,Lt=ie.items,wt=ie.preview,Gt=ie.fallback,pt=(0,Ae.Z)(wt)==="object"?wt:{},Ht=pt.visible,Ct=pt.onVisibleChange,Vt=pt.getContainer,Ln=pt.current,an=pt.movable,Pn=pt.minScale,gn=pt.maxScale,sn=pt.countRender,un=pt.closeIcon,Cn=pt.onChange,Dn=pt.onTransform,aa=pt.toolbarRender,Fn=pt.imageRender,$n=(0,ke.Z)(pt,Oa),Mn=Pa(Lt),qn=(0,Ee.Z)(Mn,2),Xn=qn[0],_n=qn[1],Vn=Fe(0,{value:Ln}),oa=(0,Ee.Z)(Vn,2),da=oa[0],Hn=oa[1],Zn=(0,te.useState)(!1),ra=(0,Ee.Z)(Zn,2),ma=ra[0],sa=ra[1],wa=((Se=Xn[da])===null||Se===void 0?void 0:Se.data)||{},Ca=wa.src,kn=(0,ke.Z)(wa,jt),va=Fe(!!Ht,{value:Ht,onChange:function(ya,ca){Ct==null||Ct(ya,ca,da)}}),In=(0,Ee.Z)(va,2),jn=In[0],ua=In[1],pa=(0,te.useState)(null),Bn=(0,Ee.Z)(pa,2),Nn=Bn[0],ea=Bn[1],Ga=te.useCallback(function(Ba,ya,ca){var Ta=Xn.findIndex(function(Aa){return Aa.id===Ba});ua(!0),ea({x:ya,y:ca}),Hn(Ta<0?0:Ta),sa(!0)},[Xn]);te.useEffect(function(){jn?ma||Hn(0):sa(!1)},[jn]);var eo=function(ya,ca){Hn(ya),Cn==null||Cn(ya,ca)},_a=function(){ua(!1),ea(null)},ka=te.useMemo(function(){return{register:_n,onPreview:Ga}},[_n,Ga]);return te.createElement(at.Provider,{value:ka},Ge,te.createElement(At,(0,Ne.Z)({"aria-hidden":!jn,movable:an,visible:jn,prefixCls:Oe,closeIcon:un,onClose:_a,mousePosition:Nn,imgCommonProps:kn,src:Ca,fallback:Gt,icons:rt,minScale:Pn,maxScale:gn,getContainer:Vt,current:da,count:Xn.length,countRender:sn,onTransform:Dn,toolbarRender:aa,imageRender:Fn,onChange:eo},$n)))},Wn=na,wn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ia=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Fa=function(ie){var Se=ie.src,we=ie.alt,Oe=ie.onPreviewClose,Ge=ie.prefixCls,dt=Ge===void 0?"rc-image":Ge,rt=ie.previewPrefixCls,Lt=rt===void 0?"".concat(dt,"-preview"):rt,wt=ie.placeholder,Gt=ie.fallback,pt=ie.width,Ht=ie.height,Ct=ie.style,Vt=ie.preview,Ln=Vt===void 0?!0:Vt,an=ie.className,Pn=ie.onClick,gn=ie.onError,sn=ie.wrapperClassName,un=ie.wrapperStyle,Cn=ie.rootClassName,Dn=(0,ke.Z)(ie,wn),aa=wt&&wt!==!0,Fn=(0,Ae.Z)(Ln)==="object"?Ln:{},$n=Fn.src,Mn=Fn.visible,qn=Mn===void 0?void 0:Mn,Xn=Fn.onVisibleChange,_n=Xn===void 0?Oe:Xn,Vn=Fn.getContainer,oa=Vn===void 0?void 0:Vn,da=Fn.mask,Hn=Fn.maskClassName,Zn=Fn.movable,ra=Fn.icons,ma=Fn.scaleStep,sa=Fn.minScale,wa=Fn.maxScale,Ca=Fn.imageRender,kn=Fn.toolbarRender,va=(0,ke.Z)(Fn,ia),In=$n!=null?$n:Se,jn=Fe(!!qn,{value:qn,onChange:_n}),ua=(0,Ee.Z)(jn,2),pa=ua[0],Bn=ua[1],Nn=Zt({src:Se,isCustomPlaceholder:aa,fallback:Gt}),ea=(0,Ee.Z)(Nn,3),Ga=ea[0],eo=ea[1],_a=ea[2],ka=(0,te.useState)(null),Ba=(0,Ee.Z)(ka,2),ya=Ba[0],ca=Ba[1],Ta=(0,te.useContext)(at),Aa=!!Ln,Co=function(){Bn(!1),ca(null)},Fo=ce()(dt,sn,Cn,(0,We.Z)({},"".concat(dt,"-error"),_a==="error")),Wa=(0,te.useMemo)(function(){var Ra={};return qe.forEach(function(Da){ie[Da]!==void 0&&(Ra[Da]=ie[Da])}),Ra},qe.map(function(Ra){return ie[Ra]})),xo=(0,te.useMemo)(function(){return(0,se.Z)((0,se.Z)({},Wa),{},{src:In})},[In,Wa]),Bo=mt(Aa,xo),No=function(Da){var to=ge(Da.target),no=to.left,ao=to.top;Ta?Ta.onPreview(Bo,no,ao):(ca({x:no,y:ao}),Bn(!0)),Pn==null||Pn(Da)};return te.createElement(te.Fragment,null,te.createElement("div",(0,Ne.Z)({},Dn,{className:Fo,onClick:Aa?No:Pn,style:(0,se.Z)({width:pt,height:Ht},un)}),te.createElement("img",(0,Ne.Z)({},Wa,{className:ce()("".concat(dt,"-img"),(0,We.Z)({},"".concat(dt,"-img-placeholder"),wt===!0),an),style:(0,se.Z)({height:Ht},Ct),ref:Ga},eo,{width:pt,height:Ht,onError:gn})),_a==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(dt,"-placeholder")},wt),da&&Aa&&te.createElement("div",{className:ce()("".concat(dt,"-mask"),Hn),style:{display:(Ct==null?void 0:Ct.display)==="none"?"none":void 0}},da)),!Ta&&Aa&&te.createElement(At,(0,Ne.Z)({"aria-hidden":!pa,visible:pa,prefixCls:Lt,onClose:Co,mousePosition:ya,src:In,alt:we,fallback:Gt,getContainer:oa,icons:ra,movable:Zn,scaleStep:ma,minScale:sa,maxScale:wa,rootClassName:Cn,imageRender:Ca,imgCommonProps:Wa,toolbarRender:kn},va)))};Fa.PreviewGroup=Wn,Fa.displayName="Image";var Ha=Fa,La=Ha,Ma=re(33603),Ve=re(53124),Ja=re(24457),za=re(73475),et=re(22751),Ft=re(91034),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Mt=Ut,Tn=re(74643),rn=function(ie,Se){return te.createElement(Tn.Z,(0,Ne.Z)({},ie,{ref:Se,icon:Mt}))},On=te.forwardRef(rn),Kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},ha=Kn,Za=function(ie,Se){return te.createElement(Tn.Z,(0,Ne.Z)({},ie,{ref:Se,icon:ha}))},$a=te.forwardRef(Za),Oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},qa=Oo,Po=function(ie,Se){return te.createElement(Tn.Z,(0,Ne.Z)({},ie,{ref:Se,icon:qa}))},oo=te.forwardRef(Po),ro={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},io=ro,lo=function(ie,Se){return te.createElement(Tn.Z,(0,Ne.Z)({},ie,{ref:Se,icon:io}))},mo=te.forwardRef(lo),so={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Ia=so,ja=function(ie,Se){return te.createElement(Tn.Z,(0,Ne.Z)({},ie,{ref:Se,icon:Ia}))},Ua=te.forwardRef(ja),ba=re(84780),ho=re(71194),uo=re(14747),vo=re(50438),co=re(16932),xa=re(67968),So=re(45503);const Ea=le=>({position:le||"absolute",inset:0}),po=le=>{const{iconCls:ie,motionDurationSlow:Se,paddingXXS:we,marginXXS:Oe,prefixCls:Ge,colorTextLightSolid:dt}=le;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:dt,background:new ba.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Se}`,[`.${Ge}-mask-info`]:Object.assign(Object.assign({},uo.vS),{padding:`0 ${we}px`,[ie]:{marginInlineEnd:Oe,svg:{verticalAlign:"baseline"}}})}},yo=le=>{const{previewCls:ie,modalMaskBg:Se,paddingSM:we,marginXL:Oe,margin:Ge,paddingLG:dt,previewOperationColorDisabled:rt,previewOperationHoverColor:Lt,motionDurationSlow:wt,iconCls:Gt,colorTextLightSolid:pt}=le,Ht=new ba.C(Se).setAlpha(.1),Ct=Ht.clone().setAlpha(.2);return{[`${ie}-footer`]:{position:"fixed",bottom:Oe,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:le.previewOperationColor},[`${ie}-progress`]:{marginBottom:Ge},[`${ie}-close`]:{position:"fixed",top:Oe,right:{_skip_check_:!0,value:Oe},display:"flex",color:pt,backgroundColor:Ht.toRgbString(),borderRadius:"50%",padding:we,outline:0,border:0,cursor:"pointer",transition:`all ${wt}`,"&:hover":{backgroundColor:Ct.toRgbString()},[`& > ${Gt}`]:{fontSize:le.previewOperationSize}},[`${ie}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${dt}px`,backgroundColor:Ht.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:we,padding:we,cursor:"pointer",transition:`all ${wt}`,userSelect:"none",[`&:not(${ie}-operations-operation-disabled):hover > ${Gt}`]:{color:Lt},"&-disabled":{color:rt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Gt}`]:{fontSize:le.previewOperationSize}}}}},Lo=le=>{const{modalMaskBg:ie,iconCls:Se,previewOperationColorDisabled:we,previewCls:Oe,zIndexPopup:Ge,motionDurationSlow:dt}=le,rt=new ba.C(ie).setAlpha(.1),Lt=rt.clone().setAlpha(.2);return{[`${Oe}-switch-left, ${Oe}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ge+1,display:"flex",alignItems:"center",justifyContent:"center",width:le.imagePreviewSwitchSize,height:le.imagePreviewSwitchSize,marginTop:-le.imagePreviewSwitchSize/2,color:le.previewOperationColor,background:rt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${dt}`,userSelect:"none","&:hover":{background:Lt.toRgbString()},"&-disabled":{"&, &:hover":{color:we,background:"transparent",cursor:"not-allowed",[`> ${Se}`]:{cursor:"not-allowed"}}},[`> ${Se}`]:{fontSize:le.previewOperationSize}},[`${Oe}-switch-left`]:{insetInlineStart:le.marginSM},[`${Oe}-switch-right`]:{insetInlineEnd:le.marginSM}}},Mo=le=>{const{motionEaseOut:ie,previewCls:Se,motionDurationSlow:we,componentCls:Oe}=le;return[{[`${Oe}-preview-root`]:{[Se]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Se}-body`]:Object.assign(Object.assign({},Ea()),{overflow:"hidden"}),[`${Se}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${we} ${ie} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ea()),{transition:`transform ${we} ${ie} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Se}-moving`]:{[`${Se}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Oe}-preview-root`]:{[`${Se}-wrap`]:{zIndex:le.zIndexPopup}}},{[`${Oe}-preview-operations-wrapper`]:{position:"fixed",zIndex:le.zIndexPopup+1},"&":[yo(le),Lo(le)]}]},wo=le=>{const{componentCls:ie}=le;return{[ie]:{position:"relative",display:"inline-block",[`${ie}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ie}-img-placeholder`]:{backgroundColor:le.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ie}-mask`]:Object.assign({},po(le)),[`${ie}-mask:hover`]:{opacity:1},[`${ie}-placeholder`]:Object.assign({},Ea())}}},Io=le=>{const{previewCls:ie}=le;return{[`${ie}-root`]:(0,vo._y)(le,"zoom"),"&":(0,co.J$)(le,!0)}};var bo=(0,xa.Z)("Image",le=>{const ie=`${le.componentCls}-preview`,Se=(0,So.TS)(le,{previewCls:ie,modalMaskBg:new ba.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:le.controlHeightLG});return[wo(Se),Mo(Se),(0,ho.QA)((0,So.TS)(Se,{componentCls:ie})),Io(Se)]},le=>({zIndexPopup:le.zIndexPopupBase+80,previewOperationColor:new ba.C(le.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ba.C(le.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ba.C(le.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:le.fontSizeIcon*1.5})),Eo=function(le,ie){var Se={};for(var we in le)Object.prototype.hasOwnProperty.call(le,we)&&ie.indexOf(we)<0&&(Se[we]=le[we]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,we=Object.getOwnPropertySymbols(le);Oe<we.length;Oe++)ie.indexOf(we[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,we[Oe])&&(Se[we[Oe]]=le[we[Oe]]);return Se};const fo={rotateLeft:te.createElement(On,null),rotateRight:te.createElement($a,null),zoomIn:te.createElement(mo,null),zoomOut:te.createElement(Ua,null),close:te.createElement(za.Z,null),left:te.createElement(et.Z,null),right:te.createElement(Ft.Z,null),flipX:te.createElement(oo,null),flipY:te.createElement(oo,{rotate:90})};var st=le=>{var{previewPrefixCls:ie,preview:Se}=le,we=Eo(le,["previewPrefixCls","preview"]);const{getPrefixCls:Oe}=te.useContext(Ve.E_),Ge=Oe("image",ie),dt=`${Ge}-preview`,rt=Oe(),[Lt,wt]=bo(Ge),Gt=te.useMemo(()=>{var pt;if(Se===!1)return Se;const Ht=typeof Se=="object"?Se:{},Ct=ce()(wt,(pt=Ht.rootClassName)!==null&&pt!==void 0?pt:"");return Object.assign(Object.assign({},Ht),{transitionName:(0,Ma.m)(rt,"zoom",Ht.transitionName),maskTransitionName:(0,Ma.m)(rt,"fade",Ht.maskTransitionName),rootClassName:Ct})},[Se]);return Lt(te.createElement(La.PreviewGroup,Object.assign({preview:Gt,previewPrefixCls:dt,icons:fo},we)))},ft=function(le,ie){var Se={};for(var we in le)Object.prototype.hasOwnProperty.call(le,we)&&ie.indexOf(we)<0&&(Se[we]=le[we]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,we=Object.getOwnPropertySymbols(le);Oe<we.length;Oe++)ie.indexOf(we[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,we[Oe])&&(Se[we[Oe]]=le[we[Oe]]);return Se};const yt=le=>{const{prefixCls:ie,preview:Se,className:we,rootClassName:Oe,style:Ge}=le,dt=ft(le,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:rt,locale:Lt=Ja.Z,getPopupContainer:wt,image:Gt}=te.useContext(Ve.E_),pt=rt("image",ie),Ht=rt(),Ct=Lt.Image||Ja.Z.Image,[Vt,Ln]=bo(pt),an=ce()(Oe,Ln),Pn=ce()(we,Ln,Gt==null?void 0:Gt.className),gn=te.useMemo(()=>{if(Se===!1)return Se;const un=typeof Se=="object"?Se:{},{getContainer:Cn}=un,Dn=ft(un,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${pt}-mask-info`},te.createElement(Je.Z,null),Ct==null?void 0:Ct.preview),icons:fo},Dn),{getContainer:Cn||wt,transitionName:(0,Ma.m)(Ht,"zoom",un.transitionName),maskTransitionName:(0,Ma.m)(Ht,"fade",un.maskTransitionName)})},[Se,Ct]),sn=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Ge);return Vt(te.createElement(La,Object.assign({prefixCls:pt,preview:gn,rootClassName:an,className:Pn,style:sn},dt)))};yt.PreviewGroup=st;var fn=yt},71322:function(Be,lt,re){"use strict";re.d(lt,{D:function(){return x},Z:function(){return ne}});var te=re(87462),Le=re(67294),Je={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"},Ue=Je,ce=re(74643),Ne=function(ge,de){return Le.createElement(ce.Z,(0,te.Z)({},ge,{ref:de,icon:Ue}))},se=Le.forwardRef(Ne),We=re(22751),Ee=re(91034),Ae=re(94184),ke=re.n(Ae),Me=re(10366),ae=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var de={};for(var Pe in oe)Object.prototype.hasOwnProperty.call(oe,Pe)&&ge.indexOf(Pe)<0&&(de[Pe]=oe[Pe]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Pe=Object.getOwnPropertySymbols(oe);fe<Pe.length;fe++)ge.indexOf(Pe[fe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Pe[fe])&&(de[Pe[fe]]=oe[Pe[fe]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Le.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var ne=Le.forwardRef((oe,ge)=>{const{prefixCls:de,className:Pe,trigger:fe,children:De,defaultCollapsed:$e=!1,theme:ht="dark",style:Nt={},collapsible:$t=!1,reverseArrow:Fe=!1,width:qe=200,collapsedWidth:at=80,zeroWidthTriggerStyle:nt,breakpoint:mt,onCollapse:_t,onBreakpoint:Zt}=oe,Qt=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:cn}=(0,Le.useContext)(y.Gs),[xe,ze]=(0,Le.useState)("collapsed"in oe?oe.collapsed:$e),[Qe,Ot]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in oe&&ze(oe.collapsed)},[oe.collapsed]);const ot=(Pt,je)=>{"collapsed"in oe||ze(Pt),_t==null||_t(Pt,je)},Ke=(0,Le.useRef)();Ke.current=Pt=>{Ot(Pt.matches),Zt==null||Zt(Pt.matches),xe!==Pt.matches&&ot(Pt.matches,"responsive")},(0,Le.useEffect)(()=>{function Pt(Ce){return Ke.current(Ce)}let je;if(typeof window!="undefined"){const{matchMedia:Ce}=window;if(Ce&&mt&&mt in b){je=Ce(`(max-width: ${b[mt]})`);try{je.addEventListener("change",Pt)}catch(ye){je.addListener(Pt)}Pt(je)}}return()=>{try{je==null||je.removeEventListener("change",Pt)}catch(Ce){je==null||je.removeListener(Pt)}}},[mt]),(0,Le.useEffect)(()=>{const Pt=z("ant-sider-");return cn.addSider(Pt),()=>cn.removeSider(Pt)},[]);const me=()=>{ot(!xe,"clickTrigger")},{getPrefixCls:it}=(0,Le.useContext)(a.E_),Rt=()=>{const Pt=it("layout-sider",de),je=(0,Me.Z)(Qt,["collapsed"]),Ce=xe?at:qe,ye=ae(Ce)?`${Ce}px`:String(Ce),pe=parseFloat(String(at||0))===0?Le.createElement("span",{onClick:me,className:ke()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Fe?"right":"left"}`),style:nt},fe||Le.createElement(se,null)):null,tt={expanded:Fe?Le.createElement(Ee.Z,null):Le.createElement(We.Z,null),collapsed:Fe?Le.createElement(We.Z,null):Le.createElement(Ee.Z,null)}[xe?"collapsed":"expanded"],ct=fe!==null?pe||Le.createElement("div",{className:`${Pt}-trigger`,onClick:me,style:{width:ye}},fe||tt):null,ut=Object.assign(Object.assign({},Nt),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),bt=ke()(Pt,`${Pt}-${ht}`,{[`${Pt}-collapsed`]:!!xe,[`${Pt}-has-trigger`]:$t&&fe!==null&&!pe,[`${Pt}-below`]:!!Qe,[`${Pt}-zero-width`]:parseFloat(ye)===0},Pe);return Le.createElement("aside",Object.assign({className:bt},je,{style:ut,ref:ge}),Le.createElement("div",{className:`${Pt}-children`},De),$t||Qe&&pe?ct:null)},Xt=Le.useMemo(()=>({siderCollapsed:xe}),[xe]);return Le.createElement(x.Provider,{value:Xt},Rt())})},84321:function(Be,lt,re){"use strict";re.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var te=re(74902),Le=re(94184),Je=re.n(Le),Ue=re(10366),ce=re(67294),Ne=re(53124),se=re(67968),Ee=ne=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Pe,lightTriggerColor:fe}=ne;return{[`${oe}-sider-light`]:{background:de,[`${oe}-sider-trigger`]:{color:fe,background:Pe},[`${oe}-sider-zero-width-trigger`]:{color:fe,background:Pe,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ae=ne=>{const{antCls:oe,componentCls:ge,colorText:de,triggerColor:Pe,footerBg:fe,triggerBg:De,headerHeight:$e,headerPadding:ht,headerColor:Nt,footerPadding:$t,triggerHeight:Fe,zeroTriggerHeight:qe,zeroTriggerWidth:at,motionDurationMid:nt,motionDurationSlow:mt,fontSize:_t,borderRadius:Zt,bodyBg:Qt,headerBg:cn,siderBg:xe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Qt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:xe,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Fe,color:Pe,lineHeight:`${Fe}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-at,zIndex:1,width:at,height:qe,color:Pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xe,borderStartStartRadius:0,borderStartEndRadius:Zt,borderEndEndRadius:Zt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${mt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${mt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-at,borderStartStartRadius:Zt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Zt}}}}},Ee(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:$e,padding:ht,color:Nt,lineHeight:`${$e}px`,background:cn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:$t,color:de,fontSize:_t,background:fe},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,se.Z)("Layout",ne=>[Ae(ne)],ne=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:de,colorText:Pe,controlHeightSM:fe,marginXXS:De,colorTextLightSolid:$e,colorBgContainer:ht}=ne,Nt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Nt}px`,headerColor:Pe,footerPadding:`${fe}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:ht,lightTriggerBg:ht,lightTriggerColor:Pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Me=function(ne,oe){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&oe.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,de=Object.getOwnPropertySymbols(ne);Pe<de.length;Pe++)oe.indexOf(de[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Pe])&&(ge[de[Pe]]=ne[de[Pe]]);return ge};const Ie=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:ge,displayName:de}=ne;return Pe=>ce.forwardRef((De,$e)=>ce.createElement(Pe,Object.assign({ref:$e,suffixCls:oe,tagName:ge},De)))}const a=ce.forwardRef((ne,oe)=>{const{prefixCls:ge,suffixCls:de,className:Pe,tagName:fe}=ne,De=Me(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=ce.useContext(Ne.E_),ht=$e("layout",ge),[Nt,$t]=ke(ht),Fe=de?`${ht}-${de}`:ht;return Nt(ce.createElement(fe,Object.assign({className:Je()(ge||Fe,Pe,$t),ref:oe},De)))}),y=ce.forwardRef((ne,oe)=>{const{direction:ge}=ce.useContext(Ne.E_),[de,Pe]=ce.useState([]),{prefixCls:fe,className:De,rootClassName:$e,children:ht,hasSider:Nt,tagName:$t,style:Fe}=ne,qe=Me(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),at=(0,Ue.Z)(qe,["suffixCls"]),{getPrefixCls:nt,layout:mt}=ce.useContext(Ne.E_),_t=nt("layout",fe),[Zt,Qt]=ke(_t),cn=Je()(_t,{[`${_t}-has-sider`]:typeof Nt=="boolean"?Nt:de.length>0,[`${_t}-rtl`]:ge==="rtl"},mt==null?void 0:mt.className,De,$e,Qt),xe=ce.useMemo(()=>({siderHook:{addSider:ze=>{Pe(Qe=>[].concat((0,te.Z)(Qe),[ze]))},removeSider:ze=>{Pe(Qe=>Qe.filter(Ot=>Ot!==ze))}}}),[]);return Zt(ce.createElement(Ie.Provider,{value:xe},ce.createElement($t,Object.assign({ref:oe,className:cn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Fe)},at),ht)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Be,lt,re){"use strict";re.d(lt,{J:function(){return Ne}});var te=re(67294),Le=re(4173),Je=re(60276),Ue=function(se,We){var Ee={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&We.indexOf(Ae)<0&&(Ee[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ae=Object.getOwnPropertySymbols(se);ke<Ae.length;ke++)We.indexOf(Ae[ke])<0&&Object.prototype.propertyIsEnumerable.call(se,Ae[ke])&&(Ee[Ae[ke]]=se[Ae[ke]]);return Ee};const ce=te.createContext(null),Ne=te.forwardRef((se,We)=>{const{children:Ee}=se,Ae=Ue(se,["children"]),ke=te.useContext(ce),Me=te.useMemo(()=>Object.assign(Object.assign({},ke),Ae),[ke,Ae.prefixCls,Ae.mode,Ae.selectable]);return te.createElement(ce.Provider,{value:Me},te.createElement(Le.BR,null,(0,Je.supportNodeRef)(Ee)?te.cloneElement(Ee,{ref:We}):Ee))});lt.Z=ce},68508:function(Be,lt,re){"use strict";re.d(lt,{default:function(){return Pt}});var te=re(78595),Le=re(67294),Je=re(71322),Ue=re(94184),ce=re.n(Ue),Ne=re(53124),se=function(je,Ce){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Ce.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Ce.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye},Ee=je=>{const{prefixCls:Ce,className:ye,dashed:pe}=je,be=se(je,["prefixCls","className","dashed"]),{getPrefixCls:_e}=Le.useContext(Ne.E_),tt=_e("menu",Ce),ct=ce()({[`${tt}-item-divider-dashed`]:!!pe},ye);return Le.createElement(te.iz,Object.assign({className:ct},be))},Ae=re(37419),ke=re(10366),Me=re(83062),Ie=re(96159),a=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=je=>{var Ce;const{className:ye,children:pe,icon:be,title:_e,danger:tt}=je,{prefixCls:ct,firstLevel:ut,direction:bt,disableMenuItemTitleTooltip:It,inlineCollapsed:Tt}=Le.useContext(a),on=bn=>{const hn=Le.createElement("span",{className:`${ct}-title-content`},pe);return(!be||(0,Ie.l$)(pe)&&pe.type==="span")&&pe&&bn&&ut&&typeof pe=="string"?Le.createElement("div",{className:`${ct}-inline-collapsed-noicon`},pe.charAt(0)):hn},{siderCollapsed:dn}=Le.useContext(Je.D);let kt=_e;typeof _e=="undefined"?kt=ut?pe:"":_e===!1&&(kt="");const Dt={title:kt};!dn&&!Tt&&(Dt.title=null,Dt.open=!1);const ln=(0,Ae.Z)(pe).length;let Jt=Le.createElement(te.ck,Object.assign({},(0,ke.Z)(je,["title","icon","danger"]),{className:ce()({[`${ct}-item-danger`]:tt,[`${ct}-item-only-child`]:(be?ln+1:ln)===1},ye),title:typeof _e=="string"?_e:void 0}),(0,Ie.Tm)(be,{className:ce()((0,Ie.l$)(be)?(Ce=be.props)===null||Ce===void 0?void 0:Ce.className:"",`${ct}-item-icon`)}),on(Tt));return It||(Jt=Le.createElement(Me.Z,Object.assign({},Dt,{placement:bt==="rtl"?"left":"right",overlayClassName:`${ct}-inline-collapsed-tooltip`}),Jt)),Jt},x=je=>{var Ce;const{popupClassName:ye,icon:pe,title:be,theme:_e}=je,tt=Le.useContext(a),{prefixCls:ct,inlineCollapsed:ut,theme:bt}=tt,It=(0,te.Xl)();let Tt;if(!pe)Tt=ut&&!It.length&&be&&typeof be=="string"?Le.createElement("div",{className:`${ct}-inline-collapsed-noicon`},be.charAt(0)):Le.createElement("span",{className:`${ct}-title-content`},be);else{const dn=(0,Ie.l$)(be)&&be.type==="span";Tt=Le.createElement(Le.Fragment,null,(0,Ie.Tm)(pe,{className:ce()((0,Ie.l$)(pe)?(Ce=pe.props)===null||Ce===void 0?void 0:Ce.className:"",`${ct}-item-icon`)}),dn?be:Le.createElement("span",{className:`${ct}-title-content`},be))}const on=Le.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return Le.createElement(a.Provider,{value:on},Le.createElement(te.Wd,Object.assign({},(0,ke.Z)(je,["icon"]),{title:Tt,popupClassName:ce()(ct,ye,`${ct}-${_e||bt}`)})))},z=re(25877),ee=re(60276),ne=re(33603),oe=re(76529),ge=function(je,Ce){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Ce.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Ce.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye};function de(je){return(je||[]).map((Ce,ye)=>{if(Ce&&typeof Ce=="object"){const pe=Ce,{label:be,children:_e,key:tt,type:ct}=pe,ut=ge(pe,["label","children","key","type"]),bt=tt!=null?tt:`tmp-${ye}`;return _e||ct==="group"?ct==="group"?Le.createElement(te.BW,Object.assign({key:bt},ut,{title:be}),de(_e)):Le.createElement(x,Object.assign({key:bt},ut,{title:be}),de(_e)):ct==="divider"?Le.createElement(Ee,Object.assign({key:bt},ut)):Le.createElement(E,Object.assign({key:bt},ut),be)}return null}).filter(Ce=>Ce)}function Pe(je){return Le.useMemo(()=>je&&de(je),[je])}var fe=re(84780),De=re(14747),$e=re(33507),ht=re(67771),Nt=re(50438),$t=re(67968),Fe=re(45503),at=je=>{const{componentCls:Ce,motionDurationSlow:ye,horizontalLineHeight:pe,colorSplit:be,lineWidth:_e,lineType:tt,itemPaddingInline:ct}=je;return{[`${Ce}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${_e}px ${tt} ${be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ce}-item, ${Ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ct},[`> ${Ce}-item:hover,
|
|
> ${Ce}-item-active,
|
|
> ${Ce}-submenu ${Ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ce}-item, ${Ce}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Ce}-submenu-arrow`]:{display:"none"}}}},mt=je=>{let{componentCls:Ce,menuArrowOffset:ye}=je;return{[`${Ce}-rtl`]:{direction:"rtl"},[`${Ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ce}-rtl${Ce}-vertical,
|
|
${Ce}-submenu-rtl ${Ce}-vertical`]:{[`${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const _t=je=>Object.assign({},(0,De.oN)(je));var Qt=(je,Ce)=>{const{componentCls:ye,itemColor:pe,itemSelectedColor:be,groupTitleColor:_e,itemBg:tt,subMenuItemBg:ct,itemSelectedBg:ut,activeBarHeight:bt,activeBarWidth:It,activeBarBorderWidth:Tt,motionDurationSlow:on,motionEaseInOut:dn,motionEaseOut:kt,itemPaddingInline:Dt,motionDurationMid:ln,itemHoverColor:Jt,lineType:bn,colorSplit:hn,itemDisabledColor:pn,dangerItemColor:Sn,dangerItemHoverColor:vn,dangerItemSelectedColor:Gn,dangerItemActiveBg:mn,dangerItemSelectedBg:yn,itemHoverBg:vt,itemActiveBg:An,menuSubMenuBg:Qn,horizontalItemSelectedColor:zn,horizontalItemSelectedBg:Sa,horizontalItemBorderRadius:fa,horizontalItemHoverBg:Jn,popupBg:la}=je;return{[`${ye}-${Ce}, ${ye}-${Ce} > ${ye}`]:{color:pe,background:tt,[`&${ye}-root:focus-visible`]:Object.assign({},_t(je)),[`${ye}-item-group-title`]:{color:_e},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:be}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${pn} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Jt}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:vt},"&:active":{backgroundColor:An}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:vt},"&:active":{backgroundColor:An}}},[`${ye}-item-danger`]:{color:Sn,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:vn}},[`&${ye}-item:active`]:{background:mn}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:be,[`&${ye}-item-danger`]:{color:Gn},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:ut,[`&${ye}-item-danger`]:{backgroundColor:yn}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},_t(je))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:Qn},[`&${ye}-popup > ${ye}`]:{backgroundColor:la},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Ce==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:fa,"&::after":{position:"absolute",insetInline:Dt,bottom:0,borderBottom:`${bt}px solid transparent`,transition:`border-color ${on} ${dn}`,content:'""'},"&:hover, &-active, &-open":{background:Jn,"&::after":{borderBottomWidth:bt,borderBottomColor:zn}},"&-selected":{color:zn,backgroundColor:Sa,"&:hover":{backgroundColor:Sa},"&::after":{borderBottomWidth:bt,borderBottomColor:zn}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${Tt}px ${bn} ${hn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:ct},[`${ye}-item, ${ye}-submenu-title`]:Tt&&It?{width:`calc(100% + ${Tt}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${It}px solid ${be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ln} ${kt}`,`opacity ${ln} ${kt}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Gn}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ln} ${dn}`,`opacity ${ln} ${dn}`].join(",")}}}}}};const cn=je=>{const{componentCls:Ce,itemHeight:ye,itemMarginInline:pe,padding:be,menuArrowSize:_e,marginXS:tt,itemMarginBlock:ct}=je,ut=be+_e+tt;return{[`${Ce}-item`]:{position:"relative",overflow:"hidden"},[`${Ce}-item, ${Ce}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:be,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:ct,width:`calc(100% - ${pe*2}px)`},[`> ${Ce}-item,
|
|
> ${Ce}-submenu > ${Ce}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${Ce}-item-group-list ${Ce}-submenu-title,
|
|
${Ce}-submenu-title`]:{paddingInlineEnd:ut}}};var ze=je=>{const{componentCls:Ce,iconCls:ye,itemHeight:pe,colorTextLightSolid:be,dropdownWidth:_e,controlHeightLG:tt,motionDurationMid:ct,motionEaseOut:ut,paddingXL:bt,itemMarginInline:It,fontSizeLG:Tt,motionDurationSlow:on,paddingXS:dn,boxShadowSecondary:kt,collapsedWidth:Dt,collapsedIconSize:ln}=je,Jt={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ce]:{"&-inline, &-vertical":Object.assign({[`&${Ce}-root`]:{boxShadow:"none"}},cn(je))},[`${Ce}-submenu-popup`]:{[`${Ce}-vertical`]:Object.assign(Object.assign({},cn(je)),{boxShadow:kt})}},{[`${Ce}-submenu-popup ${Ce}-vertical${Ce}-sub`]:{minWidth:_e,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ce}-inline`]:{width:"100%",[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${ct} ${ut}`].join(","),[`> ${Ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ce}-sub${Ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ce}-submenu > ${Ce}-submenu-title`]:Jt,[`& ${Ce}-item-group-title`]:{paddingInlineStart:bt}},[`${Ce}-item`]:Jt}},{[`${Ce}-inline-collapsed`]:{width:Dt,[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu ${Ce}-submenu-title`]:{[`> ${Ce}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${Ce}-item,
|
|
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-item,
|
|
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-submenu > ${Ce}-submenu-title,
|
|
> ${Ce}-submenu > ${Ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${It}px)`,textOverflow:"clip",[`
|
|
${Ce}-submenu-arrow,
|
|
${Ce}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ce}-item-icon, ${ye}`]:{margin:0,fontSize:ln,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ce}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ce}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:be}},[`${Ce}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:dn})}}]};const Qe=je=>{const{componentCls:Ce,motionDurationSlow:ye,motionDurationMid:pe,motionEaseInOut:be,motionEaseOut:_e,iconCls:tt,iconSize:ct,iconMarginInlineEnd:ut}=je;return{[`${Ce}-item, ${Ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${be}`].join(","),[`${Ce}-item-icon, ${tt}`]:{minWidth:ct,fontSize:ct,transition:[`font-size ${pe} ${_e}`,`margin ${ye} ${be}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:ut,opacity:1,transition:[`opacity ${ye} ${be}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Ce}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Ce}-item-only-child`]:{[`> ${tt}, > ${Ce}-item-icon`]:{marginInlineEnd:0}}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ot=je=>{const{componentCls:Ce,motionDurationSlow:ye,motionEaseInOut:pe,borderRadius:be,menuArrowSize:_e,menuArrowOffset:tt}=je;return{[`${Ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:je.margin,width:_e,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${pe}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:_e*.6,height:_e*.15,backgroundColor:"currentcolor",borderRadius:be,transition:[`background ${ye} ${pe}`,`transform ${ye} ${pe}`,`top ${ye} ${pe}`,`color ${ye} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},ot=je=>{const{antCls:Ce,componentCls:ye,fontSize:pe,motionDurationSlow:be,motionDurationMid:_e,motionEaseInOut:tt,paddingXS:ct,padding:ut,colorSplit:bt,lineWidth:It,zIndexPopup:Tt,borderRadiusLG:on,subMenuItemBorderRadius:dn,menuArrowSize:kt,menuArrowOffset:Dt,lineType:ln,menuPanelMaskInset:Jt,groupTitleLineHeight:bn,groupTitleFontSize:hn}=je;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(je)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:je.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${ct}px ${ut}px`,fontSize:hn,lineHeight:bn,transition:`all ${be}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${be} ${tt}`,`background ${be} ${tt}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${be} ${tt}`,`background ${be} ${tt}`,`padding ${_e} ${tt}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${be} ${tt}`,`padding ${be} ${tt}`].join(",")},[`${ye}-title-content`]:{transition:`color ${be}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:bt,borderStyle:ln,borderWidth:0,borderTopWidth:It,marginBlock:It,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(je)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${pe*2}px ${ut}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Jt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Jt},"\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:je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:je.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},Qe(je)),Ot(je)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:dn},[`${ye}-submenu-title::after`]:{transition:`transform ${be} ${tt}`}})}}),Ot(je)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dt})`},"&::after":{transform:`rotate(45deg) translateX(-${Dt})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${kt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dt})`},"&::before":{transform:`rotate(45deg) translateX(${Dt})`}}})},{[`${Ce}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var Ke=(je,Ce)=>(0,$t.Z)("Menu",pe=>{if(Ce===!1)return[];const{colorBgElevated:be,colorPrimary:_e,colorTextLightSolid:tt,controlHeightLG:ct,fontSize:ut,darkItemColor:bt,darkDangerItemColor:It,darkItemBg:Tt,darkSubMenuItemBg:on,darkItemSelectedColor:dn,darkItemSelectedBg:kt,darkDangerItemSelectedBg:Dt,darkItemHoverBg:ln,darkGroupTitleColor:Jt,darkItemHoverColor:bn,darkItemDisabledColor:hn,darkDangerItemHoverColor:pn,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:vn}=pe,Gn=ut/7*5,mn=(0,Fe.TS)(pe,{menuArrowSize:Gn,menuHorizontalHeight:ct*1.15,menuArrowOffset:`${Gn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:be}),yn=(0,Fe.TS)(mn,{itemColor:bt,itemHoverColor:bn,groupTitleColor:Jt,itemSelectedColor:dn,itemBg:Tt,popupBg:Tt,subMenuItemBg:on,itemActiveBg:"transparent",itemSelectedBg:kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ln,itemDisabledColor:hn,dangerItemColor:It,dangerItemHoverColor:pn,dangerItemSelectedColor:Sn,dangerItemActiveBg:vn,dangerItemSelectedBg:Dt,menuSubMenuBg:on,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:_e});return[ot(mn),at(mn),ze(mn),Qt(mn,"light"),Qt(yn,"dark"),mt(mn),(0,$e.Z)(mn),(0,ht.oN)(mn,"slide-up"),(0,ht.oN)(mn,"slide-down"),(0,Nt._y)(mn,"zoom-big")]},pe=>{const{colorPrimary:be,colorError:_e,colorTextDisabled:tt,colorErrorBg:ct,colorText:ut,colorTextDescription:bt,colorBgContainer:It,colorFillAlter:Tt,colorFillContent:on,lineWidth:dn,lineWidthBold:kt,controlItemBgActive:Dt,colorBgTextHover:ln,controlHeightLG:Jt,lineHeight:bn,colorBgElevated:hn,marginXXS:pn,padding:Sn,fontSize:vn,controlHeightSM:Gn,fontSizeLG:mn,colorTextLightSolid:yn,colorErrorHover:vt}=pe,An=new fe.C(yn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:ut,itemColor:ut,colorItemTextHover:ut,itemHoverColor:ut,colorItemTextHoverHorizontal:be,horizontalItemHoverColor:be,colorGroupTitle:bt,groupTitleColor:bt,colorItemTextSelected:be,itemSelectedColor:be,colorItemTextSelectedHorizontal:be,horizontalItemSelectedColor:be,colorItemBg:It,itemBg:It,colorItemBgHover:ln,itemHoverBg:ln,colorItemBgActive:on,itemActiveBg:Dt,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:kt,activeBarHeight:kt,colorActiveBarBorderSize:dn,activeBarBorderWidth:dn,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:_e,dangerItemColor:_e,colorDangerItemTextHover:_e,dangerItemHoverColor:_e,colorDangerItemTextSelected:_e,dangerItemSelectedColor:_e,colorDangerItemBgActive:ct,dangerItemActiveBg:ct,colorDangerItemBgSelected:ct,dangerItemSelectedBg:ct,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Jt,groupTitleLineHeight:bn,collapsedWidth:Jt*2,popupBg:hn,itemMarginBlock:pn,itemPaddingInline:Sn,horizontalLineHeight:`${Jt*1.15}px`,iconSize:vn,iconMarginInlineEnd:Gn-vn,collapsedIconSize:mn,groupTitleFontSize:vn,darkItemDisabledColor:new fe.C(yn).setAlpha(.25).toRgbString(),darkItemColor:An,darkDangerItemColor:_e,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:yn,darkItemSelectedBg:be,darkDangerItemSelectedBg:_e,darkItemHoverBg:"transparent",darkGroupTitleColor:An,darkItemHoverColor:yn,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:_e}},{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"]]})(je),me=function(je,Ce){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Ce.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Ce.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye},Rt=(0,Le.forwardRef)((je,Ce)=>{var ye,pe;const be=Le.useContext(oe.Z),_e=be||{},{getPrefixCls:tt,getPopupContainer:ct,direction:ut,menu:bt}=Le.useContext(Ne.E_),It=tt(),{prefixCls:Tt,className:on,style:dn,theme:kt="light",expandIcon:Dt,_internalDisableMenuItemTitleTooltip:ln,inlineCollapsed:Jt,siderCollapsed:bn,items:hn,children:pn,rootClassName:Sn,mode:vn,selectable:Gn,onClick:mn,overflowedIndicatorPopupClassName:yn}=je,vt=me(je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),An=(0,ke.Z)(vt,["collapsedWidth"]),Qn=Pe(hn)||pn;(ye=_e.validator)===null||ye===void 0||ye.call(_e,{mode:vn});const zn=(0,ee.useEvent)(function(){var nn;mn==null||mn.apply(void 0,arguments),(nn=_e.onClick)===null||nn===void 0||nn.call(_e)}),Sa=_e.mode||vn,fa=Gn!=null?Gn:_e.selectable,Jn=Le.useMemo(()=>bn!==void 0?bn:Jt,[Jt,bn]),la={horizontal:{motionName:`${It}-slide-up`},inline:(0,ne.Z)(It),other:{motionName:`${It}-zoom-big`}},Rn=tt("menu",Tt||_e.prefixCls),[Ze,Xe]=Ke(Rn,!be),He=ce()(`${Rn}-${kt}`,bt==null?void 0:bt.className,on);let gt;if(typeof Dt=="function")gt=Dt;else if(Dt===null||Dt===!1)gt=null;else if(_e.expandIcon===null||_e.expandIcon===!1)gt=null;else{const nn=Dt!=null?Dt:_e.expandIcon;gt=(0,Ie.Tm)(nn,{className:ce()(`${Rn}-submenu-expand-icon`,(0,Ie.l$)(nn)?(pe=nn.props)===null||pe===void 0?void 0:pe.className:"")})}const tn=Le.useMemo(()=>({prefixCls:Rn,inlineCollapsed:Jn||!1,direction:ut,firstLevel:!0,theme:kt,mode:Sa,disableMenuItemTitleTooltip:ln}),[Rn,Jn,ut,ln,kt]);return Ze(Le.createElement(oe.Z.Provider,{value:null},Le.createElement(a.Provider,{value:tn},Le.createElement(te.ZP,Object.assign({getPopupContainer:ct,overflowedIndicator:Le.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(Rn,`${Rn}-${kt}`,yn),mode:Sa,selectable:fa,onClick:zn},An,{inlineCollapsed:Jn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),dn),className:He,prefixCls:Rn,direction:ut,defaultMotions:la,expandIcon:gt,ref:Ce,rootClassName:ce()(Sn,Xe)}),Qn))))});const Xt=(0,Le.forwardRef)((je,Ce)=>{const ye=(0,Le.useRef)(null),pe=Le.useContext(Je.D);return(0,Le.useImperativeHandle)(Ce,()=>({menu:ye.current,focus:be=>{var _e;(_e=ye.current)===null||_e===void 0||_e.focus(be)}})),Le.createElement(Rt,Object.assign({ref:ye},je,pe))});Xt.Item=E,Xt.SubMenu=x,Xt.Divider=Ee,Xt.ItemGroup=te.BW;var Pt=Xt},72665:function(Be,lt){"use strict";var re;var te=typeof Symbol=="function"&&Symbol.for,Le=te?Symbol.for("react.element"):60103,Je=te?Symbol.for("react.portal"):60106,Ue=te?Symbol.for("react.fragment"):60107,ce=te?Symbol.for("react.strict_mode"):60108,Ne=te?Symbol.for("react.profiler"):60114,se=te?Symbol.for("react.provider"):60109,We=te?Symbol.for("react.context"):60110,Ee=te?Symbol.for("react.async_mode"):60111,Ae=te?Symbol.for("react.concurrent_mode"):60111,ke=te?Symbol.for("react.forward_ref"):60112,Me=te?Symbol.for("react.suspense"):60113,Ie=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var oe=ne.$$typeof;switch(oe){case Le:switch(ne=ne.type,ne){case Ee:case Ae:case Ue:case Ne:case ce:case Me:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case We:case ke:case a:case ae:case se:return ne;default:return oe}}case Je:return oe}}}function ee(ne){return z(ne)===Ae}re=Ee,re=Ae,re=We,re=se,re=Le,re=ke,re=Ue,re=a,re=ae,re=Je,re=Ne,re=ce,re=Me,re=function(ne){return ee(ne)||z(ne)===Ee},re=ee,re=function(ne){return z(ne)===We},re=function(ne){return z(ne)===se},re=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Le},re=function(ne){return z(ne)===ke},re=function(ne){return z(ne)===Ue},re=function(ne){return z(ne)===a},lt.isMemo=function(ne){return z(ne)===ae},re=function(ne){return z(ne)===Je},re=function(ne){return z(ne)===Ne},re=function(ne){return z(ne)===ce},re=function(ne){return z(ne)===Me},re=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ue||ne===Ae||ne===Ne||ne===ce||ne===Me||ne===Ie||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===se||ne.$$typeof===We||ne.$$typeof===ke||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},re=z},12060:function(Be,lt,re){"use strict";Be.exports=re(72665)}}]);
|