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

148 lines
414 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[508],{84249:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return se}});var te=oe(87462),Ee=oe(67294),qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Xe=qe,ve=oe(17207),Ae=function(Oe,Ce){return Ee.createElement(ve.Z,(0,te.Z)({},Oe,{ref:Ce,icon:Xe}))},se=Ee.forwardRef(Ae)},55304:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return se}});var te=oe(87462),Ee=oe(67294),qe={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"},Xe=qe,ve=oe(17207),Ae=function(Oe,Ce){return Ee.createElement(ve.Z,(0,te.Z)({},Oe,{ref:Ce,icon:Xe}))},se=Ee.forwardRef(Ae)},71736:function(Be,it){"use strict";it.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 it=[];function oe(ae,a){var y=it.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=it.pop();return ae===void 0?new go.Point:ae}function Ee(ae){it.push(ae)}function qe(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,le=NaN,pe=NaN;if(re===0)if(ge===0)ae===y&&(le=ae,pe=a);else{var Pe=(x-ee)/ge,Me=x-Pe*b;le=ae,pe=Pe*le+Me}else if(ge===0){var $e=(a-E)/re,ft=a-$e*ae;le=b,pe=$e*le+ft}else{var $e=(a-E)/re,Pe=(x-ee)/ge,ft=a-$e*ae,Me=x-Pe*b;le=(Me-ft)/($e-Pe),pe=$e*le+ft}return ne.x=le,ne.y=pe,ne}function Xe(ae,a,y,E,b,x,z,ee,ne,re,ge,le,pe,Pe){var Me=1-ne,$e=ne,ft=ae*Me+y*$e,Gt=a*Me+E*$e,Jt=y*Me+b*$e,Sn=E*Me+x*$e,jt=b*Me+z*$e,Ne=x*Me+ee*$e,vt=ft*Me+Jt*$e,Pt=Gt*Me+Sn*$e,Qe=Jt*Me+jt*$e,yt=Sn*Me+Ne*$e,sn=vt*Me+Qe*$e,vn=Pt*Me+yt*$e;re.x=ft,re.y=Gt,ge.x=vt,ge.y=Pt,le.x=sn,le.y=vn,pe.x=Qe,pe.y=yt,Pe.x=jt,Pe.y=Ne}var ve=new go.Spot(.156,.156),Ae=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=ve,b.spot2=Ae,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 Oe(){var ae=we.pop();return ae===void 0?[]:ae}function Ce(ae){ae.length=0,we.push(ae)}function Ke(ae){for(var a=Oe(),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 at(ae){var a=ot(ae),y=Oe();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 Ce(a),y}function ot(ae){for(var a=Ke(ae),y=Oe(),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],re=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=qe(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ce(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()),Ce(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()),Ce(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()),Ce(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()),Ce(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()),Ce(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()),Ce(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()),Ce(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=ot(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ot(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ot(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ot(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ot(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ot(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=at(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(),Ce(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=at(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(),Ce(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=at(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(),Ce(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=at(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(),Ce(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=at(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(),Ce(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=at(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(),Ce(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=ve,x.spot2=Ae,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),re=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,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),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-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).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 re=te(),ge=te(),le=te(),pe=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,le,pe,pe);var Pe=te(),Me=te(),$e=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,pe,pe,$e,Pe,Me);var ft=te(),Gt=te(),Jt=te();Xe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ft,Gt,Jt,pe,pe);var Sn=te(),jt=te(),Ne=te();return Xe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,pe,pe,Ne,Sn,jt),ne.add(new go.PathSegment(go.PathSegment.Move,Ne.x*a,Ne.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Sn.x*a,Sn.y*y,jt.x*a,jt.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,le.x*a,le.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Jt.x*a,Jt.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,Pe.x*a,Pe.y*y,Me.x*a,Me.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,Jt.x*a,Jt.y*y,ft.x*a,ft.y*y,Gt.x*a,Gt.y*y).close()),Ee(re),Ee(ge),Ee(le),Ee(pe),Ee(Pe),Ee(Me),Ee($e),Ee(ft),Ee(Gt),Ee(Jt),Ee(Sn),Ee(jt),Ee(Ne),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(),re=te(),ge=te(),le=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)),Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,le,re,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,le.x*a,le.y*y));var Pe=oe(re.x,re.y);Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,le);var Me=oe(re.x,re.y);pe.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.95*.9)*a,Pe.y*.1*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,Pe.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,(Me.x*.1+.9)*a,.15*y)),pe.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*a,(Me.y*.1+.05*.9)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,le.x*a,le.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 ft=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ft),Ee(ne),Ee(re),Ee(ge),Ee(le),Ee(Pe),Ee(Me),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,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=qe(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Ee(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,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=qe(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Ee(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=qe(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=qe(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Ee(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 re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.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 le=qe(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(le.x,le.y),le=qe(.7,ne/y,1,.5,0,z/y,1,z/y,le),re.spot2=new go.Spot(le.x,le.y),Ee(le),re}),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=qe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Ee(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 re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.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()),re.spot1=new go.Spot(0,x/y);var le=qe(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(le.x,le.y),Ee(le),re}),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=qe(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Ee(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=qe(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Ee(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=qe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Ee(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=qe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Ee(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,re=.1,ge=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var le=.05,pe=se*le;ne=.05,re=.25;var Pe=new go.PathFigure(.5*a,.2*y,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+le)*a,re*y,(ne+pe)*a,(re-le)*y,(ne+le)*a,(re-pe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),le=.025,pe=se*le,ne=.825,re=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),le=.05,pe=se*le,ne=.5,re=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),le=.025,pe=se*le,ne=.175,re=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne+le)*a,(re-pe)*y,(ne+pe)*a,(re-le)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*a,re*y,(ne-pe)*a,(re-le)*y,(ne-le)*a,(re-pe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),le=.05,pe=se*le,ne=.05,re=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-le)*y,(ne-le)*a,(re-pe)*y,(ne-pe)*a,(re-le)*y)),Pe.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 re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(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 re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,re=.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 le=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(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 re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(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 re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=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 re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(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,re=.5,ge=(b-a)/2,le=(x-y)/2,pe=new go.PathFigure(ne*a+ge,(re+ee)*y+le,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+le,(ne-z)*a+ge,(re+ee)*y+le,(ne-ee)*a+ge,(re+z)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+le,(ne-ee)*a+ge,(re-z)*y+le,(ne-z)*a+ge,(re-ee)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+le,ne*a+ge,(re-ee)*y+le,(ne-ee+z*.5)*a+ge,(re-z)*y+le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+le,(ne-ee+z*.5)*a+ge,(re+z)*y+le,ne*a+ge,(re+ee)*y+le).close()),z=se*.4,ee=.4,ne=.2,re=.5;var Pe=new go.PathFigure(ne*a+ge,(re+ee)*y+le,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+le,(ne-z)*a+ge,(re+ee)*y+le,(ne-ee)*a+ge,(re+z)*y+le)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+le,(ne-ee)*a+ge,(re-z)*y+le,(ne-z)*a+ge,(re-ee)*y+le)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+le,ne*a+ge,(re-ee)*y+le,(ne-ee+z*.5)*a+ge,(re-z)*y+le)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+le,(ne-ee+z*.5)*a+ge,(re+z)*y+le,ne*a+ge,(re+ee)*y+le).close()),z=se*.2,ee=.2,ne=.5,re=.5;var Me=new go.PathFigure((ne-ee)*a+ge,re*y+le,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+le,(ne-ee)*a+ge,(re-z)*y+le,(ne-z)*a+ge,(re-ee)*y+le)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+le,(ne+z)*a+ge,(re-ee)*y+le,(ne+ee)*a+ge,(re-z)*y+le)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+le,(ne+ee)*a+ge,(re+z)*y+le,(ne+z)*a+ge,(re+ee)*y+le)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+le,(ne-z)*a+ge,(re+ee)*y+le,(ne-ee)*a+ge,(re+z)*y+le)),z=se*.4,ee=.4,ne=.8,re=.5;var $e=new go.PathFigure(ne*a+ge,(re-ee)*y+le,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+le,(ne+z)*a+ge,(re-ee)*y+le,(ne+ee)*a+ge,(re-z)*y+le)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+le,(ne+ee)*a+ge,(re+z)*y+le,(ne+z)*a+ge,(re+ee)*y+le)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+le,ne*a+ge,(re+ee)*y+le,(ne+ee-z*.5)*a+ge,(re+z)*y+le)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+le,(ne+ee-z*.5)*a+ge,(re-z)*y+le,ne*a+ge,(re-ee)*y+le).close()),z=se*.8,ee=.8,ne=1,re=.5;var ft=new go.PathFigure(ne*a+ge,(re-ee)*y+le,!0);return E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+le,(ne+z)*a+ge,(re-ee)*y+le,(ne+ee)*a+ge,(re-z)*y+le)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+le,(ne+ee)*a+ge,(re+z)*y+le,(ne+z)*a+ge,(re+ee)*y+le)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+le,ne*a+ge,(re+ee)*y+le,(ne+ee-z*.5)*a+ge,(re+z)*y+le)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+le,(ne+ee-z*.5)*a+ge,(re-z)*y+le,ne*a+ge,(re-ee)*y+le).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(),re=te(),ge=te(),le=te();Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,le);var pe=oe(re.x,re.y),Pe=new go.PathFigure(re.x*a,re.y*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,le.x*a,le.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)),Xe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,le,re,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,le.x*a,le.y*y)),b=se*.3,x=.3,Xe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,le,re,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,le.x*a,le.y*y,ge.x*a,ge.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)),Xe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,le),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,le.x*a,le.y*y,ge.x*a,ge.y*y).close());var Pe=new go.PathFigure(.45*a,0,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ee(ne),Ee(re),Ee(ge),Ee(le),Ee(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,re=.5-.5*Math.SQRT2/2,ge=1,le=.5,pe=.5,Pe=0,Me=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,le*y,ge*a,.7*y,ge*a,le*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(pe+x)*a,(Pe+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Me.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)),Me.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)),Me.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Me.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Me.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,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),le=ge*.5,pe=z,Pe=z,Me=ge*pe,$e=ge*Pe;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-pe)*a,ne*y,(ee-(Me+pe)/2)*a,(ne+(Pe+$e)/2)*y,(ee-pe)*a,(ne+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-Pe)*y,(ee-pe)*a,(ne-$e)*y,(ee-Me)*a,(ne-Pe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+pe)*a,ne*y,(ee+Me)*a,(ne-Pe)*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+(Me+pe)/2)*a,(ne+(Pe+$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 ft=new go.PathFigure(.2*a,y,!1);E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Gt=new go.PathFigure(.8*a,y,!1);return E.add(Gt),Gt.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,re=.9,ge=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=se*.1,ne=.8,re=.9;var le=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+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,re=se*.1,ge=.1,le=.9,pe=new go.PathFigure((ge-ne)*a,le*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(le-ne)*y,(ge-ne)*a,(le-re)*y,(ge-re)*a,(le-ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,le*y,(ge+re)*a,(le-ne)*y,(ge+ne)*a,(le-re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(le+ne)*y,(ge+ne)*a,(le+re)*y,(ge+re)*a,(le+ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,le*y,(ge-re)*a,(le+ne)*y,(ge-ne)*a,(le+re)*y)),ne=.1,re=se*.1,ge=.4,le=.9;var Pe=new go.PathFigure((ge-ne)*a,le*y,!0);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(le-ne)*y,(ge-ne)*a,(le-re)*y,(ge-re)*a,(le-ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,le*y,(ge+re)*a,(le-ne)*y,(ge+ne)*a,(le-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(le+ne)*y,(ge+ne)*a,(le+re)*y,(ge+re)*a,(le+ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,le*y,(ge-re)*a,(le+ne)*y,(ge-ne)*a,(le+re)*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,le=se*.05,pe=.175,Pe=.95,ee=new go.PathFigure((pe-ge)*a,Pe*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe-ge)*y,(pe-ge)*a,(Pe-le)*y,(pe-le)*a,(Pe-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ge)*a,Pe*y,(pe+le)*a,(Pe-ge)*y,(pe+ge)*a,(Pe-le)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe+ge)*y,(pe+ge)*a,(Pe+le)*y,(pe+le)*a,(Pe+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ge)*a,Pe*y,(pe-le)*a,(Pe+ge)*y,(pe-ge)*a,(Pe+le)*y));var ge=.05,le=se*.05,pe=.375,Pe=.95,ne=new go.PathFigure((pe-ge)*a,Pe*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe-ge)*y,(pe-ge)*a,(Pe-le)*y,(pe-le)*a,(Pe-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ge)*a,Pe*y,(pe+le)*a,(Pe-ge)*y,(pe+ge)*a,(Pe-le)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe+ge)*y,(pe+ge)*a,(Pe+le)*y,(pe+le)*a,(Pe+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ge)*a,Pe*y,(pe-le)*a,(Pe+ge)*y,(pe-ge)*a,(Pe+le)*y));var ge=.05,le=se*.05,pe=.625,Pe=.95,re=new go.PathFigure((pe-ge)*a,Pe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe-ge)*y,(pe-ge)*a,(Pe-le)*y,(pe-le)*a,(Pe-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ge)*a,Pe*y,(pe+le)*a,(Pe-ge)*y,(pe+ge)*a,(Pe-le)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe+ge)*y,(pe+ge)*a,(Pe+le)*y,(pe+le)*a,(Pe+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ge)*a,Pe*y,(pe-le)*a,(Pe+ge)*y,(pe-ge)*a,(Pe+le)*y));var ge=.05,le=se*.05,pe=.825,Pe=.95,Me=new go.PathFigure((pe-ge)*a,Pe*y,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe-ge)*y,(pe-ge)*a,(Pe-le)*y,(pe-le)*a,(Pe-ge)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ge)*a,Pe*y,(pe+le)*a,(Pe-ge)*y,(pe+ge)*a,(Pe-le)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Pe+ge)*y,(pe+ge)*a,(Pe+le)*y,(pe+le)*a,(Pe+ge)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ge)*a,Pe*y,(pe-le)*a,(Pe+ge)*y,(pe-ge)*a,(Pe+le)*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,re=.35,ge=.775,le=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-ne)*y,(re-ne)*a,(ge-ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+ne)*a,(ge-ee)*y,(re+ee)*a,(ge-ne)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+ne)*y,(re+ne)*a,(ge+ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-ne)*a,(ge+ee)*y,(re-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 re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(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 re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(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 re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(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 re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(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={},it="5.0",oe={},te=null,Ee=!1,qe=!1,Xe=null,ve=!1,Ae=null,se=null,we=0;we<arguments.length;we++){var Oe=arguments[we];if(Oe!==null)switch(typeof Oe){case"number":it=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Oe:Xe=Oe;break;case"object":typeof Oe.is3D!="undefined"?te=Oe:oe=Oe;break;case"boolean":Ee=Oe,qe=!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},oe.material_id!==void 0&&!qe&&(Ee=!0)),Xe!==null&&oe.id===void 0&&(oe.id=Xe);var Ce="",Ke="",at=!1,ot=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(be){return parseFloat(be)>4?parseFloat(be):5};Be.setHTML5Codebase=function(be,ze){se=be,yt(be,ze)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(be,ze){var Fe=parseFloat(be);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}Ae=be,Qe(be,ze)},Be.getHTML5CodebaseVersion=function(){return ae},Be.getParameters=function(){return oe},Be.setFontsCSSURL=function(be){z=be},Be.setGiacJSURL=function(be){},Be.setJNLPFile=function(be){Ce=be},Be.setJNLPBaseDir=function(be){},Be.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",Fe=oe.id,Dt,tt=!1,xt=0;xt<arguments.length;xt++){var me=arguments[xt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=me:Fe=arguments[xt]):typeof me=="boolean"?tt=me:me instanceof HTMLElement&&(Dt=me)}nt();function nt(){if(!ve){setTimeout(nt,200);return}ze=vt(ze);var Zt=Dt||document.getElementById(Fe);if(!Zt){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(Zt,!1),oe.width===void 0&&Zt.clientWidth&&(oe.width=Zt.clientWidth),oe.height===void 0&&Zt.clientHeight&&(oe.height=Zt.clientHeight),!(oe.width&&oe.height)&&ze==="html5"&&(delete oe.width,delete oe.height),ot=ze,ze==="screenshot")Gt(Zt,oe);else{var tn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?tn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(tn=(!re()||be())&&ge()),tn?(ot="screenshot",Sn(Zt,oe,tt,ze)):ft(Zt,oe,tt)}}};function re(){try{return window.self!==window.top}catch(be){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Be.getViews=function(){return te},Be.isJavaInstalled=function(){return!1};var le=function(be){var ze=function(xt){var me=JSON.parse(xt),nt=function(nn){return nn.type=="G"||nn.type=="E"},Zt=me.elements?me.elements.filter(nt)[0]:me;if(!Zt||!Zt.url){Fe();return}oe.fileName=Zt.url,pe(Zt.settings||{}),te.is3D=!0;var tn="https://www.geogebra.org/images/";Be.setPreviewImage(E||Zt.previewUrl,tn+"GeoGebra_loading.png",tn+"applet_play.png"),be()},Fe=function(){oe.onError&&oe.onError(),sn("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+oe.material_id+"?scope=basic";Pe("https://"+Dt+"/api/proxy.php?path="+encodeURIComponent(tt),ze,Fe)};function pe(be){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){be[Fe]=!!be[Fe]}),ze.forEach(function(Fe){oe[Fe]===void 0&&be[Fe]!==void 0&&(oe[Fe]=be[Fe])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Pe(be,ze,Fe){var Dt=new XMLHttpRequest;Dt.open("GET",be),Dt.onload=function(){ze(Dt.responseText)},Dt.onerror=Fe,Dt.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return ot},Be.setPreviewImage=function(be,ze,Fe){E=be,b=ze,x=Fe},Be.removeExistingApplet=function(be,ze){var Fe;typeof be=="string"&&(be=document.getElementById(be)),ot=null;var Dt=null;for(Fe=0;Fe<be.childNodes.length;Fe++){var tt=be.childNodes[Fe],xt=tt.className;xt==="applet_screenshot"?ze?(tt.style.display="block",ot="screenshot"):tt.style.display="none":xt!=="applet_scaler prerender"&&(be.removeChild(tt),Dt=xt&&xt.indexOf("appletParameters")!=-1?tt.id:null,Fe--)}var me=oe.id!==void 0?oe.id:Dt,nt=window[me];nt&&typeof nt.getBase64=="function"&&(nt.remove(),window[me]=null)},Be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=Be.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Be.stopAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Be.getAppletObject=function(){var be=oe.id!==void 0?oe.id:"ggbApplet";return window[be]},Be.resize=function(){};var Me=function(be,ze,Fe){var Dt=document.createElement("param");Dt.setAttribute("name",ze),Dt.setAttribute("value",Fe),be.appendChild(Dt)},$e=function(be){return be&&be!=="false"},ft=function(be,ze,Fe){ne(ae)<=4.2&&(Fe=!0);var Dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var xt=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,xt=605);else{var nt=100;($e(ze.showToolBar)||$e(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),nt=$e(ze.showMenuBar)?245:155),xt<nt&&(ze.width=nt,xt=nt)}tt.style.border="none",tt.style.display="inline-block";for(var Zt in ze)ze.hasOwnProperty(Zt)&&Zt!=="appletOnLoad"&&tt.setAttribute("data-param-"+Zt,ze[Zt]);z&&tt.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(be,ze)},window.addEventListener("resize",function(It){Be.resize()});var tn=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!Fe&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var nn=be.querySelector(".applet_scaler.prerender"),Un=nn!==null;if(Un)var an=nn.querySelector(".ggb_preview");else{var an=Ne(xt,me,ze.borderColor,!1);nn=document.createElement("div"),nn.className="applet_scaler",nn.style.position="relative",nn.style.display="block",nn.style.width=xt+"px",nn.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nn,"66%"),ne(ae)>=5?(ze.appletOnLoad=function(It){var ct=be.querySelector(".ggb_preview");ct&&ct.parentNode.removeChild(ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(nn),window.GGBT_wsf_view&&$(window).trigger("resize"),tn(It)},Un||nn.appendChild(an)):tt.appendChild(an),nn.appendChild(tt),Un||be.appendChild(nn),setTimeout(function(){Be.resize()},1)}else{var Xt=document.createElement("div");Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.appendChild(tt),be.appendChild(Xt),ze.appletOnLoad=function(It){Be.resize(),tn(It)}}function Re(It,ct){ct&&typeof ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,ct.appletOnLoad):renderGGBElement(It),sn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ct)}function Ie(It,ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xn){Re(xn.article,xn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(It.className+=" geogebraweb")):Re(It,ct)}if(Dt){scriptLoadStarted=!0;for(var ye=0;ye<tt.childNodes.length;ye++){var Ye=tt.childNodes[ye].tagName;Ye==="TABLE"&&(tt.removeChild(tt.childNodes[ye]),ye--)}if(ggbHTML5LoadedScript!==null){var We=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');We!=null&&We.parentNode.removeChild(We)}var mt=document.createElement("script"),Ot=function(){Ie(tt,ze)};mt.src=Ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=mt.src,sn("GeoGebra HTML5 codebase loaded: '"+Ke+"'.",ze),!se&&(!Ae||Ae=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ke.requirejs?__webpack_require__.e(12).then(function(){var It=[__webpack_require__(12)];Ot.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(mt.onload=Ot,be.appendChild(mt))}else Ie(tt,ze);ze.height=me,ze.width=xt},Gt=function(be,ze,Fe){var Dt=Ne(ze.width,ze.height,ze.borderColor,Fe),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=ze.width+"px",tt.style.height=ze.height+"px",tt.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),tt.appendChild(Dt);var xt=GGBAppletUtils.getScale(ze,be,Fe);Fe?(be.appendChild(jt()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),be.appendChild(tt),xt!==1&&!isNaN(xt)&&(GGBAppletUtils.scaleElement(tt,xt),tt.style.width=ze.width+"px",tt.style.height=ze.height+"px",tt.parentNode.style.width=ze.width*xt+"px",tt.parentNode.style.height=ze.height*xt+"px"),Be.resize=function(){Jt(be,Dt,tt,Fe)},window.addEventListener("resize",function(me){Be.resize()}),Be.resize()};function Jt(be,ze,Fe,Dt){if(be.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var tt=GGBAppletUtils.getScale(oe,be,Dt);Fe.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(Fe,tt),Fe.parentNode.style.width=oe.width*tt+"px",Fe.parentNode.style.height=oe.height*tt+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=oe.width+"px",Fe.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(be,ze){ze.appendChild(be)};var Sn=function(be,ze,Fe,Dt){Gt(be,ze,!0);for(var tt=function(){var nt=[];for(me=0;me<be.childNodes.length;me++)nt.push(be.childNodes[me]);if(window.GGBT_wsf_view){var Zt=window.GGBT_wsf_view.renderFullScreen(be,ze.id),tn=document.getElementById("fullscreencontainer"),nn=jQuery(be).find(".fullscreencontent");nn.length>0?(Zt.remove(),nn.attr("id","fullscreencontent").show(),jQuery(tn).append(nn),window.dispatchEvent(new Event("resize"))):ft(Zt,ze,!1),window.GGBT_wsf_view.launchFullScreen(tn)}else ot=Dt,ft(be,ze,!1);if(!window.GGBT_wsf_view)for(me=0;me<nt.length;me++)be.removeChild(nt[me])},xt=be.getElementsByClassName("ggb_preview_play"),me=0;me<xt.length;me++)xt[me].addEventListener("click",tt,!1),xt[me].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},jt=function(){var be=document.createElement("div");if(be.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");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=ze:Fe.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(Fe)}return be},Ne=function(be,ze,Fe,Dt){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=be-2+"px",tt.style.height=ze-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var xt="lightgrey";Fe!==void 0&&(Fe==="none"?xt="transparent":xt=Fe),tt.style.border="1px solid "+xt;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 nt,Zt,tn;if(!Dt){nt=document.createElement("img"),nt.style.position="absolute",nt.style.zIndex="1001",nt.style.opacity=1,me.style.opacity=.3,Zt=360,Zt>be/4*3&&(Zt=be/4*3),tn=Zt/5.8,nt.setAttribute("src",b),nt.setAttribute("width",Zt),nt.setAttribute("height",tn);var nn=(be-Zt)/2,Un=(ze-tn)/2;nt.style.left=nn+"px",nt.style.top=Un+"px",tt.appendChild(nt)}}return tt.appendChild(me),tt},vt=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},Pt=["web","webSimple","web3d","tablet","tablet3d","phone"],Qe=function(be,ze){if(ae=be,ze){yt(ae,!0);return}var Fe=!Ee;if(Fe){var Dt=ne(ae);!isNaN(Dt)&&Dt<4.4&&(Fe=!1)}var tt,xt;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var me=ae.indexOf("//");me>0?xt=ae:me===0?xt=tt+ae:xt="https://www.geogebra.org/apps/5.2.814.0/";for(var nt in Pt)if(ae.slice(Pt[nt].length*-1)===Pt[nt]||ae.slice((Pt[nt].length+1)*-1)===Pt[nt]+"/"){yt(xt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!$e(oe.showToolBar)&&!$e(oe.showMenuBar)&&!$e(oe.showAlgebraInput)&&!$e(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?xt+="webSimple/":xt+="web3d/",yt(xt,!1)},yt=function(be,ze){if(be.requirejs){Ke=be;return}be.slice(-1)!=="/"&&(be+="/"),Ke=be,ze===null&&(ze=be.indexOf("http")===-1),at=ze,a="web.nocache.js",y=!1;var Fe=Ke.split("/");Fe.length>1&&(!ze&&Fe[Fe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Pt.indexOf(Fe[Fe.length-2])>=0&&(a=Fe[Fe.length-2]+".nocache.js")),Fe=be.split("/"),ae=Fe[Fe.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 Dt=parseFloat(ae);Dt!==NaN&&Dt<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead."),Qe("5.0",ze))},sn=function(be,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(be)};oe.material_id!==void 0?le(vn):vn();function vn(){var be=it;Ae!==null?be=Ae:parseFloat(be)<5&&(be="5.0"),Qe(be,!1),se!==null&&yt(se,at),ve=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function it(ve,Ae){Ae!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+Ae+","+Ae+")",ve.style.webkitTransform="scale("+Ae+","+Ae+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function oe(ve,Ae,se,we,Oe,Ce){var Ke=null;if(Ce!=null&&Ce!="")for(var at=ve.parentNode;at!=null;)if((" "+at.className+" ").indexOf(" "+Ce+" ")>-1){Ke=at;break}else at=at.parentNode;var ot=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ke)ot=Ke.offsetWidth,ae=Math.max(we?Ke.offsetWidth:0,Ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ot=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ot):(ot=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=ot&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=ot-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ve&&((se===void 0||!se)&&Ae>0&&Ae+y<ot?ot=Ae:ot-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:ot,height:ae}}function te(ve,Ae,se,we,Oe){if(ve.isScreenshoGenerator)return 1;var Ce=we!==void 0&&we,Ke=ve.noScaleMargin!=null&&ve.noScaleMargin,at=function(ee){return ee&&ee!=="false"},ot=at(ve.autoHeight),ae=oe(Ae,ve.width,se,ot,Ce&&window.GGBT_wsf_view||Ke,Oe),a=parseInt(ae.width),y=ve.width,E=ve.height;if(y===void 0){var b=Ae.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ce?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ee(ve,Ae,se){var we=1,Oe,Ce=!1;if(ve.hasOwnProperty("allowUpscale")&&(Ce=ve.allowUpscale),ve.hasOwnProperty("scale")&&(we=parseFloat(ve.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Ce=!0)),Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Oe=te(ve,Ae,Ce,se,ve.scaleContainerClass);else return we;return Ce&&(!ve.hasOwnProperty("scale")||we===1)?Oe:Math.min(we,Oe)}function qe(ve){var Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),we=ve.getBoundingClientRect(),Oe=(Ae-we.width)/2,Ce=(se-we.height)/2;Ce<0&&(Ce=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?ve.style.left="40px":ve.style.left=Oe+"px",ve.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?ve.style.top="40px":ve.style.top=Ce+"px",ve.style.left=Oe+"px")}function Xe(ve,Ae){var se=ve.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var we=Ee(Ae,ve);Be()&&se.setAttribute("data-param-scale",we);for(var Oe=null,Ce=0;Ce<ve.childNodes.length;Ce++)if(ve.childNodes[Ce].className!==void 0&&ve.childNodes[Ce].className.match(/^applet_scaler/)){Oe=ve.childNodes[Ce];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ke=Ae.id!==void 0?Ae.id:"ggbApplet",at=window[Ke];(at==null||!at.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(we)&&we!==1?(Oe.parentNode.style.width=Ae.width*we+"px",Oe.parentNode.style.height=Ae.height*we+"px",it(Oe,we)):(it(Oe,1),Oe.parentNode.style.width=Ae.width+"px",Oe.parentNode.style.height=Ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&qe(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:Be,positionCenter:qe,getScale:Ee,scaleElement:it}}();__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,it){}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 it=s[L].bindings;s[L].bindings=function(){for(var oe=it?it():{},te=Be[webModule.__softPermutationId],Ee=O;Ee<te.length;Ee++){var qe=te[Ee];oe[qe[O]]=qe[P]}return oe}};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 it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Be){function it(te){function Ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var qe=Ee();if(qe){te();return}function Xe(){if(!qe){if(!Ee())return;qe=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var ve=setInterval(function(){Xe()},$)}function oe(te){var Ee=u(),qe=Ee.body,Xe=Ee.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=te,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),qe.appendChild(Xe)}it(function(){oe(Be)})}webModule.__startLoadingFragment=function(Be){return C(Be)},webModule.__installRunAsyncCode=function(Be){var it=u(),oe=it.body,te=it.createElement(_);te.language=ab,te.text=Be,oe.appendChild(te),oe.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 it=c[Be];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Be(ve){var Ae=ve.lastIndexOf(rb);Ae==-1&&(Ae=ve.length);var se=ve.indexOf(sb);se==-1&&(se=ve.length);var we=ve.lastIndexOf(tb,Math.min(se,Ae));return we>=O?ve.substring(O,we+P):W}function it(ve){if(!ve.match(/^\w+:\/\//)){var Ae=o.createElement(ub);Ae.src=ve+vb,ve=Be(Ae.src)}return ve}function oe(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function te(){for(var ve=o.getElementsByTagName(_),Ae=O;Ae<ve.length;++Ae)if(ve[Ae].src.indexOf(xb)!=-1)return Be(ve[Ae].src);return W}function Ee(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function qe(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Xe=oe();return Xe==W&&(Xe=te()),Xe==W&&(Xe=Ee()),Xe==W&&qe()&&(Xe=Be(o.location.href)),Xe=it(Xe),Xe}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],it=O,oe=[],te=[];function Ee(ve){var Ae=te[ve](),se=oe[ve];if(Ae in se)return Ae;var we=[];for(var Oe in se)we[se[Oe]]=Oe;throw r&&r(ve,we,Ae),null}if(__gwt_isKnownPropertyValue=function(ve,Ae){return Ae in oe[ve]},webModule.__getPropMap=function(){var ve={};for(var Ae in oe)oe.hasOwnProperty(Ae)&&(ve[Ae]=Ee(Ae));return ve},webModule.__computePropValue=Ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var qe;try{qe=Cb;var Xe=qe.indexOf(Db);Xe!=-1&&(it=parseInt(qe.substring(Xe+P),$),qe=qe.substring(O,Xe))}catch(ve){}return webModule.__softPermutationId=it,C(qe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Be,it,oe){"use strict";oe.d(it,{Ax:function(){return Xe},Ds:function(){return ve},KI:function(){return se},SI:function(){return qe},f1:function(){return Ee}});var te=oe(11320);function Ee(we){let Oe=!0;if(we.length>0){for(let Ce=0;Ce<we.length;Ce++)if(we[Ce].compile_success==0||!we[Ce].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function qe(we,Oe=""){let Ce=[];for(let Ke=0;Ke<we.length;Ke++){let at=we[Ke],ot=Oe?`${Oe}/${at.name}`:`${at.name}`;Ce.push({title:at.name,type:at.type,isLeaf:at.type!=="tree",key:ot})}return Ce}function Xe(we,Oe,Ce){for(let Ke=0;Ke<we.length;Ke++){let at=we[Ke];if(at.key===Oe){at.children=Ce;break}at.children&&Xe(at.children,Oe,Ce)}return we}function ve(we,Oe,Ce){let Ke;return function(){let at=this,ot=arguments,ae=function(){Ke=null,Ce||we.apply(at,ot)},a=Ce&&!Ke;clearTimeout(Ke),Ke=setTimeout(ae,Oe),a&&we.apply(at,ot)}}const Ae=!0,se=te.Z.API_SERVER},63205:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return Ke}});var te=oe(67294),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},qe=oe(94184),Xe=oe.n(qe),ve=oe(74330),Ae=oe(15979),se=oe(33170),we=oe(28706),Oe=(at,ot,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(at,ot)).next())}),Ke=({data:at,className:ot,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),re=(0,te.useRef)(null),[ge,le]=(0,te.useState)(!1),[pe,Pe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),at!=null&&at.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",at!=null&&at.src&&Me()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[at==null?void 0:at.visible]);const Me=()=>Oe(void 0,null,function*(){le(!0),Pe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Sn=yield(0,we.ZJ)(at==null?void 0:at.src);z.current.src="",z.current.src=Sn,z.current.onload=function(){Jt()},le(!1),Pe("")}),$e=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},ft=Sn=>Oe(void 0,null,function*(){le(!0),Pe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const jt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:at.title,file:Sn.dataUrl}});jt!=null&&jt.id&&!x?(yield(0,se.ZP)(`/api/attachments/${at.id}/add_subitem.json`,{method:"post",body:{subitem_id:jt==null?void 0:jt.id,settings:JSON.stringify(Sn.state)}})).status===0&&E():jt!=null&&jt.id&&E(jt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",le(!1),Pe("")}),Gt=()=>{const Sn=document.querySelector('a[href="https://markerjs.com/"]');Sn&&Sn.parentNode&&(Sn.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(Ne=>{const vt=document.querySelector(Ne.name);vt&&vt.setAttribute("title",Ne.title)})},Jt=()=>{ee.current=new Ae.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ft),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(),at!=null&&at.snapshotData&&ee.current.restoreState(at.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return te.createElement(te.Fragment,null,(at==null?void 0:at.visible)&&te.createElement(ve.Z,{spinning:ge,tip:pe,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Xe()(Ee.imageDimensions,ot,ae?Ee.fullWidth:""),style:a},te.createElement("img",{className:Ee.img,ref:z}))))}},36527:function(Be,it,oe){"use strict";var te=oe(67294),Ee=oe(71230),qe=oe(15746),Xe=oe(72773),ve=oe(85804),Ae=oe(85725),se=oe(71736),we=oe(84279),Oe=oe(67294);const Ce=(0,te.forwardRef)(({callback:Ke,showSaveButton:at,value:ot=""},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:Oe.createElement(Ee.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Oe.createElement(qe.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Ae.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},Oe.createElement("h1",null,re.name),Oe.createElement(Ee.Z,{gutter:[10,10]},re.data.map((le,pe)=>Oe.createElement(qe.Z,{key:pe,onClick:()=>b(le),className:se.Z.diamond},Oe.createElement(Ae.Z,{value:"`$$"+le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Ee.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Oe.createElement(qe.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Ae.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(Ee.Z,{gutter:[10,10]},re.data.map((le,pe)=>Oe.createElement(qe.Z,{key:pe,onClick:()=>b(le),className:se.Z.diamond},Oe.createElement(Ae.Z,{value:"`$$"+le.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})),Oe.createElement("div",{className:se.Z.mathWrap},Oe.createElement(Xe.default,{defaultActiveKey:"1",items:x}),Oe.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}},ot||""),at&&Oe.createElement("div",{className:se.Z.button},Oe.createElement(ve.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Ce},1797:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return or}});var te=oe(67294),Ee=oe.t(te,2),qe=oe(33054),Xe=oe(43481),ve=oe(13144),Ae=oe.n(ve),se=oe(87462),we=oe(1413),Oe=oe(4942),Ce=oe(97685),Ke=oe(71002),at=oe(45987),ot=oe(94184),ae=oe.n(ot),a=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},E={cssFloat:1,styleFloat:1,float:1};function b(de){return de.nodeType===1?de.ownerDocument.defaultView.getComputedStyle(de,null):{}}function x(de,ie,ue){if(ie=ie.toLowerCase(),ue==="auto"){if(ie==="height")return de.offsetHeight;if(ie==="width")return de.offsetWidth}return ie in y||(y[ie]=a.test(ie)),y[ie]?parseFloat(ue)||0:ue}function z(de,ie){var ue=arguments.length,Le=b(de);return ie=E[ie]?"cssFloat"in de.style?"cssFloat":"styleFloat":ie,ue===1?Le:x(de,ie,Le[ie]||de.style[ie])}function ee(de,ie,ue){var Le=arguments.length;if(ie=E[ie]?"cssFloat"in de.style?"cssFloat":"styleFloat":ie,Le===3)return typeof ue=="number"&&a.test(ie)&&(ue="".concat(ue,"px")),de.style[ie]=ue,ue;for(var xe in ie)ie.hasOwnProperty(xe)&&ee(de,xe,ie[xe]);return b(de)}function ne(de){return de===document.body?document.documentElement.clientWidth:de.offsetWidth}function re(de){return de===document.body?window.innerHeight||document.documentElement.clientHeight:de.offsetHeight}function ge(){var de=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:de,height:ie}}function le(){var de=document.documentElement.clientWidth,ie=window.innerHeight||document.documentElement.clientHeight;return{width:de,height:ie}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Pe(de){var ie=de.getBoundingClientRect(),ue=document.documentElement;return{left:ie.left+(window.pageXOffset||ue.scrollLeft)-(ue.clientLeft||document.body.clientLeft||0),top:ie.top+(window.pageYOffset||ue.scrollTop)-(ue.clientTop||document.body.clientTop||0)}}function Me(de){var ie=te.useRef();ie.current=de;var ue=te.useCallback(function(){for(var Le,xe=arguments.length,He=new Array(xe),Je=0;Je<xe;Je++)He[Je]=arguments[Je];return(Le=ie.current)===null||Le===void 0?void 0:Le.call.apply(Le,[ie].concat(He))},[]);return ue}function $e(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=$e()?te.useLayoutEffect:te.useEffect,Gt=function(ie,ue){var Le=te.useRef(!0);ft(function(){return ie(Le.current)},ue),ft(function(){return Le.current=!1,function(){Le.current=!0}},[])},Jt=function(ie,ue){Gt(function(Le){if(!Le)return ie()},ue)},Sn=null;function jt(de){var ie=te.useRef(!1),ue=te.useState(de),Le=(0,Ce.Z)(ue,2),xe=Le[0],He=Le[1];te.useEffect(function(){return ie.current=!1,function(){ie.current=!0}},[]);function Je(rt,lt){lt&&ie.current||He(rt)}return[xe,Je]}function Ne(de){return de!==void 0}function vt(de,ie){var ue=ie||{},Le=ue.defaultValue,xe=ue.value,He=ue.onChange,Je=ue.postState,rt=jt(function(){return Ne(xe)?xe:Ne(Le)?typeof Le=="function"?Le():Le:typeof de=="function"?de():de}),lt=(0,Ce.Z)(rt,2),Lt=lt[0],Tt=lt[1],ut=xe!==void 0?xe:Lt,Ht=Je?Je(ut):ut,kt=Me(He),Vt=jt([ut]),ln=(0,Ce.Z)(Vt,2),un=ln[0],mn=ln[1];Jt(function(){var cn=un[0];Lt!==cn&&kt(Lt,cn)},[un]),Jt(function(){Ne(xe)||Tt(xe)},[xe]);var Cn=Me(function(cn,en){Tt(cn,en),mn([ut],en)});return[Ht,Cn]}var Pt=oe(2788),Qe=te.createContext({});function yt(de,ie){if(!de)return!1;if(de.contains)return de.contains(ie);for(var ue=ie;ue;){if(ue===de)return!0;ue=ue.parentNode}return!1}function sn(){var de=(0,we.Z)({},Ee);return de.useId}var vn=0;function be(){}function ze(de){var ie=te.useState("ssr-id"),ue=(0,Ce.Z)(ie,2),Le=ue[0],xe=ue[1],He=sn(),Je=He==null?void 0:He();return te.useEffect(function(){if(!He){var rt=vn;vn+=1,xe("rc_unique_".concat(rt))}},[]),de||Je||Le}var Fe={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 ue=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||ue>=Fe.F1&&ue<=Fe.F12)return!1;switch(ue){case Fe.ALT:case Fe.CAPS_LOCK:case Fe.CONTEXT_MENU:case Fe.CTRL:case Fe.DOWN:case Fe.END:case Fe.ESC:case Fe.HOME:case Fe.INSERT:case Fe.LEFT:case Fe.MAC_FF_META:case Fe.META:case Fe.NUMLOCK:case Fe.NUM_CENTER:case Fe.PAGE_DOWN:case Fe.PAGE_UP:case Fe.PAUSE:case Fe.PRINT_SCREEN:case Fe.RIGHT:case Fe.SHIFT:case Fe.UP:case Fe.WIN_KEY:case Fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=Fe.ZERO&&ie<=Fe.NINE||ie>=Fe.NUM_ZERO&&ie<=Fe.NUM_MULTIPLY||ie>=Fe.A&&ie<=Fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case Fe.SPACE:case Fe.QUESTION_MARK:case Fe.NUM_PLUS:case Fe.NUM_MINUS:case Fe.NUM_PERIOD:case Fe.NUM_DIVISION:case Fe.SEMICOLON:case Fe.DASH:case Fe.EQUALS:case Fe.COMMA:case Fe.PERIOD:case Fe.SLASH:case Fe.APOSTROPHE:case Fe.SINGLE_QUOTE:case Fe.OPEN_SQUARE_BRACKET:case Fe.BACKSLASH:case Fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Dt=Fe,tt=`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`,xt=`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`,me="".concat(tt," ").concat(xt).split(/[\s\n]+/),nt="aria-",Zt="data-";function tn(de,ie){return de.indexOf(ie)===0}function nn(de){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue;ie===!1?ue={aria:!0,data:!0,attr:!0}:ie===!0?ue={aria:!0}:ue=(0,we.Z)({},ie);var Le={};return Object.keys(de).forEach(function(xe){(ue.aria&&(xe==="role"||tn(xe,nt))||ue.data&&tn(xe,Zt)||ue.attr&&me.includes(xe))&&(Le[xe]=de[xe])}),Le}function Un(de,ie,ue){var Le=ie;return!Le&&ue&&(Le="".concat(de,"-").concat(ue)),Le}function an(de,ie){var ue=de["page".concat(ie?"Y":"X","Offset")],Le="scroll".concat(ie?"Top":"Left");if(typeof ue!="number"){var xe=de.document;ue=xe.documentElement[Le],typeof ue!="number"&&(ue=xe.body[Le])}return ue}function Xt(de){var ie=de.getBoundingClientRect(),ue={left:ie.left,top:ie.top},Le=de.ownerDocument,xe=Le.defaultView||Le.parentWindow;return ue.left+=an(xe),ue.top+=an(xe,!0),ue}var Re=oe(62874),Ie=oe(59864);function ye(de,ie,ue){var Le=te.useRef({});return(!("value"in Le.current)||ue(Le.current.condition,ie))&&(Le.current.value=de(),Le.current.condition=ie),Le.current.value}function Ye(de,ie){typeof de=="function"?de(ie):(0,Ke.Z)(de)==="object"&&de&&"current"in de&&(de.current=ie)}function We(){for(var de=arguments.length,ie=new Array(de),ue=0;ue<de;ue++)ie[ue]=arguments[ue];var Le=ie.filter(function(xe){return xe});return Le.length<=1?Le[0]:function(xe){ie.forEach(function(He){Ye(He,xe)})}}function mt(){for(var de=arguments.length,ie=new Array(de),ue=0;ue<de;ue++)ie[ue]=arguments[ue];return ye(function(){return We.apply(void 0,ie)},ie,function(Le,xe){return Le.length===xe.length&&Le.every(function(He,Je){return He===xe[Je]})})}function Ot(de){var ie,ue,Le=isMemo(de)?de.type.type:de.type;return!(typeof Le=="function"&&!((ie=Le.prototype)!==null&&ie!==void 0&&ie.render)||typeof de=="function"&&!((ue=de.prototype)!==null&&ue!==void 0&&ue.render))}var It=te.memo(function(de){var ie=de.children;return ie},function(de,ie){var ue=ie.shouldUpdate;return!ue}),ct={width:0,height:0,overflow:"hidden",outline:"none"},xn={outline:"none"},In=te.forwardRef(function(de,ie){var ue=de.prefixCls,Le=de.className,xe=de.style,He=de.title,Je=de.ariaId,rt=de.footer,lt=de.closable,Lt=de.closeIcon,Tt=de.onClose,ut=de.children,Ht=de.bodyStyle,kt=de.bodyProps,Vt=de.modalRender,ln=de.onMouseDown,un=de.onMouseUp,mn=de.holderRef,Cn=de.visible,cn=de.forceRender,en=de.width,Mt=de.height,Qt=de.classNames,_t=de.styles,Kt=te.useContext(Qe),Fn=Kt.panel,Mn=mt(mn,Fn),rn=(0,te.useRef)(),_n=(0,te.useRef)();te.useImperativeHandle(ie,function(){return{focus:function(){var na;(na=rn.current)===null||na===void 0||na.focus({preventScroll:!0})},changeActive:function(na){var wa=document,xa=wa.activeElement;na&&xa===_n.current?rn.current.focus({preventScroll:!0}):!na&&xa===rn.current&&_n.current.focus({preventScroll:!0})}}});var Jn={};en!==void 0&&(Jn.width=en),Mt!==void 0&&(Jn.height=Mt);var Rn=rt?te.createElement("div",{className:ae()("".concat(ue,"-footer"),Qt==null?void 0:Qt.footer),style:(0,we.Z)({},_t==null?void 0:_t.footer)},rt):null,Vn=He?te.createElement("div",{className:ae()("".concat(ue,"-header"),Qt==null?void 0:Qt.header),style:(0,we.Z)({},_t==null?void 0:_t.header)},te.createElement("div",{className:"".concat(ue,"-title"),id:Je},He)):null,ia=(0,te.useMemo)(function(){return(0,Ke.Z)(lt)==="object"&&lt!==null?lt:lt?{closeIcon:Lt!=null?Lt:te.createElement("span",{className:"".concat(ue,"-close-x")})}:{}},[lt,Lt,ue]),da=nn(ia,!0),ca=(0,Ke.Z)(lt)==="object"&&lt.disabled,Fa=lt?te.createElement("button",(0,se.Z)({type:"button",onClick:Tt,"aria-label":"Close"},da,{className:"".concat(ue,"-close"),disabled:ca}),ia.closeIcon):null,la=te.createElement("div",{className:ae()("".concat(ue,"-content"),Qt==null?void 0:Qt.content),style:_t==null?void 0:_t.content},Fa,Vn,te.createElement("div",(0,se.Z)({className:ae()("".concat(ue,"-body"),Qt==null?void 0:Qt.body),style:(0,we.Z)((0,we.Z)({},Ht),_t==null?void 0:_t.body)},kt),ut),Rn);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":He?Je:null,"aria-modal":"true",ref:Mn,style:(0,we.Z)((0,we.Z)({},xe),Jn),className:ae()(ue,Le),onMouseDown:ln,onMouseUp:un},te.createElement("div",{ref:rn,tabIndex:0,style:xn},te.createElement(It,{shouldUpdate:Cn||cn},Vt?Vt(la):la)),te.createElement("div",{tabIndex:0,ref:_n,style:ct}))}),zn=In,pn=te.forwardRef(function(de,ie){var ue=de.prefixCls,Le=de.title,xe=de.style,He=de.className,Je=de.visible,rt=de.forceRender,lt=de.destroyOnClose,Lt=de.motionName,Tt=de.ariaId,ut=de.onVisibleChanged,Ht=de.mousePosition,kt=(0,te.useRef)(),Vt=te.useState(),ln=(0,Ce.Z)(Vt,2),un=ln[0],mn=ln[1],Cn={};un&&(Cn.transformOrigin=un);function cn(){var en=Xt(kt.current);mn(Ht&&(Ht.x||Ht.y)?"".concat(Ht.x-en.left,"px ").concat(Ht.y-en.top,"px"):"")}return te.createElement(Re.Z,{visible:Je,onVisibleChanged:ut,onAppearPrepare:cn,onEnterPrepare:cn,forceRender:rt,motionName:Lt,removeOnLeave:lt,ref:kt},function(en,Mt){var Qt=en.className,_t=en.style;return te.createElement(zn,(0,se.Z)({},de,{ref:ie,title:Le,ariaId:Tt,prefixCls:ue,holderRef:Mt,style:(0,we.Z)((0,we.Z)((0,we.Z)({},_t),xe),Cn),className:ae()(He,Qt)}))})});pn.displayName="Content";var Bn=pn,yn=function(ie){var ue=ie.prefixCls,Le=ie.style,xe=ie.visible,He=ie.maskProps,Je=ie.motionName,rt=ie.className;return te.createElement(Re.Z,{key:"mask",visible:xe,motionName:Je,leavedClassName:"".concat(ue,"-mask-hidden")},function(lt,Lt){var Tt=lt.className,ut=lt.style;return te.createElement("div",(0,se.Z)({ref:Lt,style:(0,we.Z)((0,we.Z)({},ut),Le),className:ae()("".concat(ue,"-mask"),Tt,rt)},He))})},bn=yn,At={};function he(de,ie){}function Ge(de,ie){}function Ue(){At={}}function Et(de,ie,ue){!ie&&!At[ue]&&(de(!1,ue),At[ue]=!0)}function qt(de,ie){Et(he,de,ie)}function Ut(de,ie){Et(Ge,de,ie)}var pt=null,Ln=function(ie){var ue=ie.prefixCls,Le=ue===void 0?"rc-dialog":ue,xe=ie.zIndex,He=ie.visible,Je=He===void 0?!1:He,rt=ie.keyboard,lt=rt===void 0?!0:rt,Lt=ie.focusTriggerAfterClose,Tt=Lt===void 0?!0:Lt,ut=ie.wrapStyle,Ht=ie.wrapClassName,kt=ie.wrapProps,Vt=ie.onClose,ln=ie.afterOpenChange,un=ie.afterClose,mn=ie.transitionName,Cn=ie.animation,cn=ie.closable,en=cn===void 0?!0:cn,Mt=ie.mask,Qt=Mt===void 0?!0:Mt,_t=ie.maskTransitionName,Kt=ie.maskAnimation,Fn=ie.maskClosable,Mn=Fn===void 0?!0:Fn,rn=ie.maskStyle,_n=ie.maskProps,Jn=ie.rootClassName,Rn=ie.classNames,Vn=ie.styles,ia=(0,te.useRef)(),da=(0,te.useRef)(),ca=(0,te.useRef)(),Fa=te.useState(Je),la=(0,Ce.Z)(Fa,2),Sa=la[0],na=la[1],wa=ze();function xa(){yt(da.current,document.activeElement)||(ia.current=document.activeElement)}function Oa(){if(!yt(da.current,document.activeElement)){var Zn;(Zn=ca.current)===null||Zn===void 0||Zn.focus()}}function ma(Zn){if(Zn)Oa();else{if(na(!1),Qt&&ia.current&&Tt){try{ia.current.focus({preventScroll:!0})}catch(qn){}ia.current=null}Sa&&(un==null||un())}ln==null||ln(Zn)}function Ma(Zn){Vt==null||Vt(Zn)}var ba=(0,te.useRef)(!1),Ea=(0,te.useRef)(),aa=function(){clearTimeout(Ea.current),ba.current=!0},Ta=function(){Ea.current=setTimeout(function(){ba.current=!1})},fa=null;Mn&&(fa=function(qn){ba.current?ba.current=!1:da.current===qn.target&&Ma(qn)});function Ba(Zn){if(lt&&Zn.keyCode===Dt.ESC){Zn.stopPropagation(),Ma(Zn);return}Je&&Zn.keyCode===Dt.TAB&&ca.current.changeActive(!Zn.shiftKey)}(0,te.useEffect)(function(){Je&&(na(!0),xa())},[Je]),(0,te.useEffect)(function(){return function(){clearTimeout(Ea.current)}},[]);var Ga=(0,we.Z)((0,we.Z)((0,we.Z)({zIndex:xe},ut),Vn==null?void 0:Vn.wrapper),{},{display:Sa?null:"none"});return te.createElement("div",(0,se.Z)({className:ae()("".concat(Le,"-root"),Jn)},nn(ie,{data:!0})),te.createElement(bn,{prefixCls:Le,visible:Qt&&Je,motionName:Un(Le,_t,Kt),style:(0,we.Z)((0,we.Z)({zIndex:xe},rn),Vn==null?void 0:Vn.mask),maskProps:_n,className:Rn==null?void 0:Rn.mask}),te.createElement("div",(0,se.Z)({tabIndex:-1,onKeyDown:Ba,className:ae()("".concat(Le,"-wrap"),Ht,Rn==null?void 0:Rn.wrapper),ref:da,onClick:fa,style:Ga},kt),te.createElement(Bn,(0,se.Z)({},ie,{onMouseDown:aa,onMouseUp:Ta,ref:ca,closable:en,ariaId:wa,prefixCls:Le,visible:Je&&Sa,onClose:Ma,onVisibleChanged:ma,motionName:Un(Le,mn,Cn)}))))},on=Ln,$n=function(ie){var ue=ie.visible,Le=ie.getContainer,xe=ie.forceRender,He=ie.destroyOnClose,Je=He===void 0?!1:He,rt=ie.afterClose,lt=ie.panelRef,Lt=te.useState(ue),Tt=(0,Ce.Z)(Lt,2),ut=Tt[0],Ht=Tt[1],kt=te.useMemo(function(){return{panel:lt}},[lt]);return te.useEffect(function(){ue&&Ht(!0)},[ue]),!xe&&Je&&!ut?null:te.createElement(Qe.Provider,{value:kt},te.createElement(Pt.Z,{open:ue||xe||ut,autoDestroy:!1,getContainer:Le,autoLock:ue||ut},te.createElement(on,(0,se.Z)({},ie,{destroyOnClose:Je,afterClose:function(){rt==null||rt(),Ht(!1)}}))))};$n.displayName="Dialog";var Wn=$n,An=Wn,Nn=oe(73935);function En(de,ie,ue,Le){var xe=Nn.unstable_batchedUpdates?function(Je){Nn.unstable_batchedUpdates(ue,Je)}:ue;return de!=null&&de.addEventListener&&de.addEventListener(ie,xe,Le),{remove:function(){de!=null&&de.removeEventListener&&de.removeEventListener(ie,xe,Le)}}}var ht={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 ue=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||ue>=ht.F1&&ue<=ht.F12)return!1;switch(ue){case ht.ALT:case ht.CAPS_LOCK:case ht.CONTEXT_MENU:case ht.CTRL:case ht.DOWN:case ht.END:case ht.ESC:case ht.HOME:case ht.INSERT:case ht.LEFT:case ht.MAC_FF_META:case ht.META:case ht.NUMLOCK:case ht.NUM_CENTER:case ht.PAGE_DOWN:case ht.PAGE_UP:case ht.PAUSE:case ht.PRINT_SCREEN:case ht.RIGHT:case ht.SHIFT:case ht.UP:case ht.WIN_KEY:case ht.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=ht.ZERO&&ie<=ht.NINE||ie>=ht.NUM_ZERO&&ie<=ht.NUM_MULTIPLY||ie>=ht.A&&ie<=ht.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case ht.SPACE:case ht.QUESTION_MARK:case ht.NUM_PLUS:case ht.NUM_MINUS:case ht.NUM_PERIOD:case ht.NUM_DIVISION:case ht.SEMICOLON:case ht.DASH:case ht.EQUALS:case ht.COMMA:case ht.PERIOD:case ht.SLASH:case ht.APOSTROPHE:case ht.SINGLE_QUOTE:case ht.OPEN_SQUARE_BRACKET:case ht.BACKSLASH:case ht.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_e=ht,je=te.createContext(null),Ze=function(ie){var ue=ie.visible,Le=ie.maskTransitionName,xe=ie.getContainer,He=ie.prefixCls,Je=ie.rootClassName,rt=ie.icons,lt=ie.countRender,Lt=ie.showSwitch,Tt=ie.showProgress,ut=ie.current,Ht=ie.transform,kt=ie.count,Vt=ie.scale,ln=ie.minScale,un=ie.maxScale,mn=ie.closeIcon,Cn=ie.onActive,cn=ie.onClose,en=ie.onZoomIn,Mt=ie.onZoomOut,Qt=ie.onRotateRight,_t=ie.onRotateLeft,Kt=ie.onFlipX,Fn=ie.onFlipY,Mn=ie.onReset,rn=ie.toolbarRender,_n=ie.zIndex,Jn=ie.image,Rn=(0,te.useContext)(je),Vn=rt.rotateLeft,ia=rt.rotateRight,da=rt.zoomIn,ca=rt.zoomOut,Fa=rt.close,la=rt.left,Sa=rt.right,na=rt.flipX,wa=rt.flipY,xa="".concat(He,"-operations-operation");te.useEffect(function(){var qn=function(ha){ha.keyCode===_e.ESC&&cn()};return ue&&window.addEventListener("keydown",qn),function(){window.removeEventListener("keydown",qn)}},[ue]);var Oa=function(Pa,ha){Pa.preventDefault(),Pa.stopPropagation(),Cn(ha)},ma=te.useCallback(function(qn){var Pa=qn.type,ha=qn.disabled,Na=qn.onClick,Ca=qn.icon;return te.createElement("div",{key:Pa,className:ae()(xa,"".concat(He,"-operations-operation-").concat(Pa),(0,Oe.Z)({},"".concat(He,"-operations-operation-disabled"),!!ha)),onClick:Na},Ca)},[xa,He]),Ma=Lt?ma({icon:la,onClick:function(Pa){return Oa(Pa,-1)},type:"prev",disabled:ut===0}):void 0,ba=Lt?ma({icon:Sa,onClick:function(Pa){return Oa(Pa,1)},type:"next",disabled:ut===kt-1}):void 0,Ea=ma({icon:wa,onClick:Fn,type:"flipY"}),aa=ma({icon:na,onClick:Kt,type:"flipX"}),Ta=ma({icon:Vn,onClick:_t,type:"rotateLeft"}),fa=ma({icon:ia,onClick:Qt,type:"rotateRight"}),Ba=ma({icon:ca,onClick:Mt,type:"zoomOut",disabled:Vt<=ln}),Ga=ma({icon:da,onClick:en,type:"zoomIn",disabled:Vt===un}),Zn=te.createElement("div",{className:"".concat(He,"-operations")},Ea,aa,Ta,fa,Ba,Ga);return te.createElement(Re.Z,{visible:ue,motionName:Le},function(qn){var Pa=qn.className,ha=qn.style;return te.createElement(Pt.Z,{open:!0,getContainer:xe!=null?xe:document.body},te.createElement("div",{className:ae()("".concat(He,"-operations-wrapper"),Pa,Je),style:(0,we.Z)((0,we.Z)({},ha),{},{zIndex:_n})},mn===null?null:te.createElement("button",{className:"".concat(He,"-close"),onClick:cn},mn||Fa),Lt&&te.createElement(te.Fragment,null,te.createElement("div",{className:ae()("".concat(He,"-switch-left"),(0,Oe.Z)({},"".concat(He,"-switch-left-disabled"),ut===0)),onClick:function(Ca){return Oa(Ca,-1)}},la),te.createElement("div",{className:ae()("".concat(He,"-switch-right"),(0,Oe.Z)({},"".concat(He,"-switch-right-disabled"),ut===kt-1)),onClick:function(Ca){return Oa(Ca,1)}},Sa)),te.createElement("div",{className:"".concat(He,"-footer")},Tt&&te.createElement("div",{className:"".concat(He,"-progress")},lt?lt(ut+1,kt):"".concat(ut+1," / ").concat(kt)),rn?rn(Zn,(0,we.Z)((0,we.Z)({icons:{prevIcon:Ma,nextIcon:ba,flipYIcon:Ea,flipXIcon:aa,rotateLeftIcon:Ta,rotateRightIcon:fa,zoomOutIcon:Ba,zoomInIcon:Ga},actions:{onActive:Cn,onFlipY:Fn,onFlipX:Kt,onRotateLeft:_t,onRotateRight:Qt,onZoomOut:Mt,onZoomIn:en,onReset:Mn,onClose:cn},transform:Ht},Rn?{current:ut,total:kt}:{}),{},{image:Jn})):Zn)))})},dt=Ze,fn={},wn=[],Pn=function(ie){wn.push(ie)};function zt(de,ie){if(0)var ue}function Bt(de,ie){if(0)var ue}function ce(){fn={}}function fe(de,ie,ue){!ie&&!fn[ue]&&(de(!1,ue),fn[ue]=!0)}function Se(de,ie){fe(zt,de,ie)}function ke(de,ie){fe(Bt,de,ie)}Se.preMessage=Pn,Se.resetWarned=ce,Se.noteOnce=ke;var De=Se;function st(de,ie){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Le=new Set;function xe(He,Je){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,lt=Le.has(He);if(De(!lt,"Warning: There may be circular references"),lt)return!1;if(He===Je)return!0;if(ue&&rt>1)return!1;Le.add(He);var Lt=rt+1;if(Array.isArray(He)){if(!Array.isArray(Je)||He.length!==Je.length)return!1;for(var Tt=0;Tt<He.length;Tt++)if(!xe(He[Tt],Je[Tt],Lt))return!1;return!0}if(He&&Je&&(0,Ke.Z)(He)==="object"&&(0,Ke.Z)(Je)==="object"){var ut=Object.keys(He);return ut.length!==Object.keys(Je).length?!1:ut.every(function(Ht){return xe(He[Ht],Je[Ht],Lt)})}return!1}return xe(de,ie)}var Rt=st,wt=function(ie){return+setTimeout(ie,16)},Yt=function(ie){return clearTimeout(ie)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wt=function(ie){return window.requestAnimationFrame(ie)},Yt=function(ie){return window.cancelAnimationFrame(ie)});var hn=0,Kn=new Map;function Ve(de){Kn.delete(de)}var gn=function(ie){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;hn+=1;var Le=hn;function xe(He){if(He===0)Ve(Le),ie();else{var Je=wt(function(){xe(He-1)});Kn.set(Le,Je)}}return xe(ue),Le};gn.cancel=function(de){var ie=Kn.get(de);return Ve(ie),Yt(ie)};var Xn=gn,Hn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function $t(de,ie,ue,Le){var xe=(0,te.useRef)(null),He=(0,te.useRef)([]),Je=(0,te.useState)(Hn),rt=(0,Ce.Z)(Je,2),lt=rt[0],Lt=rt[1],Tt=function(Vt){Lt(Hn),Rt(Hn,lt)||Le==null||Le({transform:Hn,action:Vt})},ut=function(Vt,ln){xe.current===null&&(He.current=[],xe.current=Xn(function(){Lt(function(un){var mn=un;return He.current.forEach(function(Cn){mn=(0,we.Z)((0,we.Z)({},mn),Cn)}),xe.current=null,Le==null||Le({transform:mn,action:ln}),mn})})),He.current.push((0,we.Z)((0,we.Z)({},lt),Vt))},Ht=function(Vt,ln,un,mn,Cn){var cn=de.current,en=cn.width,Mt=cn.height,Qt=cn.offsetWidth,_t=cn.offsetHeight,Kt=cn.offsetLeft,Fn=cn.offsetTop,Mn=Vt,rn=lt.scale*Vt;rn>ue?(rn=ue,Mn=ue/lt.scale):rn<ie&&(rn=Cn?rn:ie,Mn=rn/lt.scale);var _n=un!=null?un:innerWidth/2,Jn=mn!=null?mn:innerHeight/2,Rn=Mn-1,Vn=Rn*en*.5,ia=Rn*Mt*.5,da=Rn*(_n-lt.x-Kt),ca=Rn*(Jn-lt.y-Fn),Fa=lt.x-(da-Vn),la=lt.y-(ca-ia);if(Vt<1&&rn===1){var Sa=Qt*rn,na=_t*rn,wa=le(),xa=wa.width,Oa=wa.height;Sa<=xa&&na<=Oa&&(Fa=0,la=0)}ut({x:Fa,y:la,scale:rn},ln)};return{transform:lt,resetTransform:Tt,updateTransform:ut,dispatchZoomChange:Ht}}function On(de,ie,ue,Le){var xe=ie+ue,He=(ue-Le)/2;if(ue>Le){if(ie>0)return(0,Oe.Z)({},de,He);if(ie<0&&xe<Le)return(0,Oe.Z)({},de,-He)}else if(ie<0||xe>Le)return(0,Oe.Z)({},de,ie<0?He:-He);return{}}function ga(de,ie,ue,Le){var xe=le(),He=xe.width,Je=xe.height,rt=null;return de<=He&&ie<=Je?rt={x:0,y:0}:(de>He||ie>Je)&&(rt=(0,we.Z)((0,we.Z)({},On("x",ue,de,He)),On("y",Le,ie,Je))),rt}var oa=1,Wt=1;function Dn(de,ie,ue,Le,xe,He,Je){var rt=xe.rotate,lt=xe.scale,Lt=xe.x,Tt=xe.y,ut=(0,te.useState)(!1),Ht=(0,Ce.Z)(ut,2),kt=Ht[0],Vt=Ht[1],ln=(0,te.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),un=function(Mt){!ie||Mt.button!==0||(Mt.preventDefault(),Mt.stopPropagation(),ln.current={diffX:Mt.pageX-Lt,diffY:Mt.pageY-Tt,transformX:Lt,transformY:Tt},Vt(!0))},mn=function(Mt){ue&&kt&&He({x:Mt.pageX-ln.current.diffX,y:Mt.pageY-ln.current.diffY},"move")},Cn=function(){if(ue&&kt){Vt(!1);var Mt=ln.current,Qt=Mt.transformX,_t=Mt.transformY,Kt=Lt!==Qt&&Tt!==_t;if(!Kt)return;var Fn=de.current.offsetWidth*lt,Mn=de.current.offsetHeight*lt,rn=de.current.getBoundingClientRect(),_n=rn.left,Jn=rn.top,Rn=rt%180!==0,Vn=ga(Rn?Mn:Fn,Rn?Fn:Mn,_n,Jn);Vn&&He((0,we.Z)({},Vn),"dragRebound")}},cn=function(Mt){if(!(!ue||Mt.deltaY==0)){var Qt=Math.abs(Mt.deltaY/100),_t=Math.min(Qt,Wt),Kt=oa+_t*Le;Mt.deltaY>0&&(Kt=oa/Kt),Je(Kt,"wheel",Mt.clientX,Mt.clientY)}};return(0,te.useEffect)(function(){var en,Mt,Qt,_t;if(ie){Qt=En(window,"mouseup",Cn,!1),_t=En(window,"mousemove",mn,!1);try{window.top!==window.self&&(en=En(window.top,"mouseup",Cn,!1),Mt=En(window.top,"mousemove",mn,!1))}catch(Kt){zt(!1,"[rc-image] ".concat(Kt))}}return function(){var Kt,Fn,Mn,rn;(Kt=Qt)===null||Kt===void 0||Kt.remove(),(Fn=_t)===null||Fn===void 0||Fn.remove(),(Mn=en)===null||Mn===void 0||Mn.remove(),(rn=Mt)===null||rn===void 0||rn.remove()}},[ue,kt,Lt,Tt,rt,ie]),{isMoving:kt,onMouseDown:un,onMouseMove:mn,onMouseUp:Cn,onWheel:cn}}function jn(de){return new Promise(function(ie){if(!de){ie(!1);return}var ue=document.createElement("img");ue.onerror=function(){return ie(!1)},ue.onload=function(){return ie(!0)},ue.src=de})}function Tn(de){var ie=de.src,ue=de.isCustomPlaceholder,Le=de.fallback,xe=(0,te.useState)(ue?"loading":"normal"),He=(0,Ce.Z)(xe,2),Je=He[0],rt=He[1],lt=(0,te.useRef)(!1),Lt=Je==="error";(0,te.useEffect)(function(){var kt=!0;return jn(ie).then(function(Vt){!Vt&&kt&&rt("error")}),function(){kt=!1}},[ie]),(0,te.useEffect)(function(){ue&&!lt.current?rt("loading"):Lt&&rt("normal")},[ie]);var Tt=function(){rt("normal")},ut=function(Vt){lt.current=!1,Je==="loading"&&Vt!==null&&Vt!==void 0&&Vt.complete&&(Vt.naturalWidth||Vt.naturalHeight)&&(lt.current=!0,Tt())},Ht=Lt&&Le?{src:Le}:{onLoad:Tt,src:ie};return[ut,Ht,Je]}function ea(de,ie){var ue=de.x-ie.x,Le=de.y-ie.y;return Math.hypot(ue,Le)}function $a(de,ie,ue,Le){var xe=ea(de,ue),He=ea(ie,Le);if(xe===0&&He===0)return[de.x,de.y];var Je=xe/(xe+He),rt=de.x+Je*(ie.x-de.x),lt=de.y+Je*(ie.y-de.y);return[rt,lt]}function Za(de,ie,ue,Le,xe,He,Je){var rt=xe.rotate,lt=xe.scale,Lt=xe.x,Tt=xe.y,ut=(0,te.useState)(!1),Ht=(0,Ce.Z)(ut,2),kt=Ht[0],Vt=Ht[1],ln=(0,te.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),un=function(Mt){ln.current=(0,we.Z)((0,we.Z)({},ln.current),Mt)},mn=function(Mt){if(ie){Mt.stopPropagation(),Vt(!0);var Qt=Mt.touches,_t=Qt===void 0?[]:Qt;_t.length>1?un({point1:{x:_t[0].clientX,y:_t[0].clientY},point2:{x:_t[1].clientX,y:_t[1].clientY},eventType:"touchZoom"}):un({point1:{x:_t[0].clientX-Lt,y:_t[0].clientY-Tt},eventType:"move"})}},Cn=function(Mt){var Qt=Mt.touches,_t=Qt===void 0?[]:Qt,Kt=ln.current,Fn=Kt.point1,Mn=Kt.point2,rn=Kt.eventType;if(_t.length>1&&rn==="touchZoom"){var _n={x:_t[0].clientX,y:_t[0].clientY},Jn={x:_t[1].clientX,y:_t[1].clientY},Rn=$a(Fn,Mn,_n,Jn),Vn=(0,Ce.Z)(Rn,2),ia=Vn[0],da=Vn[1],ca=ea(_n,Jn)/ea(Fn,Mn);Je(ca,"touchZoom",ia,da,!0),un({point1:_n,point2:Jn,eventType:"touchZoom"})}else rn==="move"&&(He({x:_t[0].clientX-Fn.x,y:_t[0].clientY-Fn.y},"move"),un({eventType:"move"}))},cn=function(){if(ue){if(kt&&Vt(!1),un({eventType:"none"}),Le>lt)return He({x:0,y:0,scale:Le},"touchZoom");var Mt=de.current.offsetWidth*lt,Qt=de.current.offsetHeight*lt,_t=de.current.getBoundingClientRect(),Kt=_t.left,Fn=_t.top,Mn=rt%180!==0,rn=ga(Mn?Qt:Mt,Mn?Mt:Qt,Kt,Fn);rn&&He((0,we.Z)({},rn),"dragRebound")}};return(0,te.useEffect)(function(){var en;return ue&&ie&&(en=En(window,"touchmove",function(Mt){return Mt.preventDefault()},{passive:!1})),function(){var Mt;(Mt=en)===null||Mt===void 0||Mt.remove()}},[ue,ie]),{isTouching:kt,onTouchStart:mn,onTouchMove:Cn,onTouchEnd:cn}}var Te=["fallback","src","imgRef"],ro=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ja=function(ie){var ue=ie.fallback,Le=ie.src,xe=ie.imgRef,He=(0,at.Z)(ie,Te),Je=Tn({src:Le,fallback:ue}),rt=(0,Ce.Z)(Je,2),lt=rt[0],Lt=rt[1];return te.createElement("img",(0,se.Z)({ref:function(ut){xe.current=ut,lt(ut)}},He,Lt))},to=function(ie){var ue=ie.prefixCls,Le=ie.src,xe=ie.alt,He=ie.imageInfo,Je=ie.fallback,rt=ie.movable,lt=rt===void 0?!0:rt,Lt=ie.onClose,Tt=ie.visible,ut=ie.icons,Ht=ut===void 0?{}:ut,kt=ie.rootClassName,Vt=ie.closeIcon,ln=ie.getContainer,un=ie.current,mn=un===void 0?0:un,Cn=ie.count,cn=Cn===void 0?1:Cn,en=ie.countRender,Mt=ie.scaleStep,Qt=Mt===void 0?.5:Mt,_t=ie.minScale,Kt=_t===void 0?1:_t,Fn=ie.maxScale,Mn=Fn===void 0?50:Fn,rn=ie.transitionName,_n=rn===void 0?"zoom":rn,Jn=ie.maskTransitionName,Rn=Jn===void 0?"fade":Jn,Vn=ie.imageRender,ia=ie.imgCommonProps,da=ie.toolbarRender,ca=ie.onTransform,Fa=ie.onChange,la=(0,at.Z)(ie,ro),Sa=(0,te.useRef)(),na=(0,te.useContext)(je),wa=na&&cn>1,xa=na&&cn>=1,Oa=(0,te.useState)(!0),ma=(0,Ce.Z)(Oa,2),Ma=ma[0],ba=ma[1],Ea=$t(Sa,Kt,Mn,ca),aa=Ea.transform,Ta=Ea.resetTransform,fa=Ea.updateTransform,Ba=Ea.dispatchZoomChange,Ga=Dn(Sa,lt,Tt,Qt,aa,fa,Ba),Zn=Ga.isMoving,qn=Ga.onMouseDown,Pa=Ga.onWheel,ha=Za(Sa,lt,Tt,Kt,aa,fa,Ba),Na=ha.isTouching,Ca=ha.onTouchStart,Qa=ha.onTouchMove,oo=ha.onTouchEnd,Wa=aa.rotate,Ka=aa.scale,Ho=ae()((0,Oe.Z)({},"".concat(ue,"-moving"),Zn));(0,te.useEffect)(function(){Ma||ba(!0)},[Ma]);var jo=function(){Ta("close")},Uo=function(){Ba(oa+Qt,"zoomIn")},Ja=function(){Ba(oa/(oa+Qt),"zoomOut")},qa=function(){fa({rotate:Wa+90},"rotateRight")},xo=function(){fa({rotate:Wa-90},"rotateLeft")},Bo=function(){fa({flipX:!aa.flipX},"flipX")},No=function(){fa({flipY:!aa.flipY},"flipY")},rr=function(){Ta("reset")},Wo=function(eo){var Oo=mn+eo;!Number.isInteger(Oo)||Oo<0||Oo>cn-1||(ba(!1),Ta(eo<0?"prev":"next"),Fa==null||Fa(Oo,mn))},ir=function(eo){!Tt||!wa||(eo.keyCode===_e.LEFT?Wo(-1):eo.keyCode===_e.RIGHT&&Wo(1))},gr=function(eo){Tt&&(Ka!==1?fa({x:0,y:0,scale:1},"doubleClick"):Ba(oa+Qt,"doubleClick",eo.clientX,eo.clientY))};(0,te.useEffect)(function(){var Ra=En(window,"keydown",ir,!1);return function(){Ra.remove()}},[Tt,wa,mn]);var qo=te.createElement(ja,(0,se.Z)({},ia,{width:ie.width,height:ie.height,imgRef:Sa,className:"".concat(ue,"-img"),alt:xe,style:{transform:"translate3d(".concat(aa.x,"px, ").concat(aa.y,"px, 0) scale3d(").concat(aa.flipX?"-":"").concat(Ka,", ").concat(aa.flipY?"-":"").concat(Ka,", 1) rotate(").concat(Wa,"deg)"),transitionDuration:(!Ma||Na)&&"0s"},fallback:Je,src:Le,onWheel:Pa,onMouseDown:qn,onDoubleClick:gr,onTouchStart:Ca,onTouchMove:Qa,onTouchEnd:oo,onTouchCancel:oo})),er=(0,we.Z)({url:Le,alt:xe},He);return te.createElement(te.Fragment,null,te.createElement(An,(0,se.Z)({transitionName:_n,maskTransitionName:Rn,closable:!1,keyboard:!0,prefixCls:ue,onClose:Lt,visible:Tt,classNames:{wrapper:Ho},rootClassName:kt,getContainer:ln},la,{afterClose:jo}),te.createElement("div",{className:"".concat(ue,"-img-wrapper")},Vn?Vn(qo,(0,we.Z)({transform:aa,image:er},na?{current:mn}:{})):qo)),te.createElement(dt,{visible:Tt,transform:aa,maskTransitionName:Rn,closeIcon:Vt,getContainer:ln,prefixCls:ue,rootClassName:kt,icons:Ht,countRender:en,showSwitch:wa,showProgress:xa,current:mn,count:cn,scale:Ka,minScale:Kt,maxScale:Mn,toolbarRender:da,onActive:Wo,onZoomIn:Uo,onZoomOut:Ja,onRotateRight:qa,onRotateLeft:xo,onFlipX:Bo,onFlipY:No,onClose:Lt,onReset:rr,zIndex:la.zIndex!==void 0?la.zIndex+1:void 0,image:er}))},Aa=to,et=oe(74902),Ft=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function dn(de){var ie=te.useState({}),ue=(0,Ce.Z)(ie,2),Le=ue[0],xe=ue[1],He=te.useCallback(function(rt,lt){return xe(function(Lt){return(0,we.Z)((0,we.Z)({},Lt),{},(0,Oe.Z)({},rt,lt))}),function(){xe(function(Lt){var Tt=(0,we.Z)({},Lt);return delete Tt[rt],Tt})}},[]),Je=te.useMemo(function(){return de?de.map(function(rt){if(typeof rt=="string")return{data:{src:rt}};var lt={};return Object.keys(rt).forEach(function(Lt){["src"].concat((0,et.Z)(Ft)).includes(Lt)&&(lt[Lt]=rt[Lt])}),{data:lt}}):Object.keys(Le).reduce(function(rt,lt){var Lt=Le[lt],Tt=Lt.canPreview,ut=Lt.data;return Tt&&rt.push({data:ut,id:lt}),rt},[])},[de,Le]);return[Je,He,!!de]}var Nt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],kn=["src"],Qn=function(ie){var ue,Le=ie.previewPrefixCls,xe=Le===void 0?"rc-image-preview":Le,He=ie.children,Je=ie.icons,rt=Je===void 0?{}:Je,lt=ie.items,Lt=ie.preview,Tt=ie.fallback,ut=(0,Ke.Z)(Lt)==="object"?Lt:{},Ht=ut.visible,kt=ut.onVisibleChange,Vt=ut.getContainer,ln=ut.current,un=ut.movable,mn=ut.minScale,Cn=ut.maxScale,cn=ut.countRender,en=ut.closeIcon,Mt=ut.onChange,Qt=ut.onTransform,_t=ut.toolbarRender,Kt=ut.imageRender,Fn=(0,at.Z)(ut,Nt),Mn=dn(lt),rn=(0,Ce.Z)(Mn,3),_n=rn[0],Jn=rn[1],Rn=rn[2],Vn=vt(0,{value:ln}),ia=(0,Ce.Z)(Vn,2),da=ia[0],ca=ia[1],Fa=(0,te.useState)(!1),la=(0,Ce.Z)(Fa,2),Sa=la[0],na=la[1],wa=((ue=_n[da])===null||ue===void 0?void 0:ue.data)||{},xa=wa.src,Oa=(0,at.Z)(wa,kn),ma=vt(!!Ht,{value:Ht,onChange:function(Na,Ca){kt==null||kt(Na,Ca,da)}}),Ma=(0,Ce.Z)(ma,2),ba=Ma[0],Ea=Ma[1],aa=(0,te.useState)(null),Ta=(0,Ce.Z)(aa,2),fa=Ta[0],Ba=Ta[1],Ga=te.useCallback(function(ha,Na,Ca,Qa){var oo=Rn?_n.findIndex(function(Wa){return Wa.data.src===Na}):_n.findIndex(function(Wa){return Wa.id===ha});ca(oo<0?0:oo),Ea(!0),Ba({x:Ca,y:Qa}),na(!0)},[_n,Rn]);te.useEffect(function(){ba?Sa||ca(0):na(!1)},[ba]);var Zn=function(Na,Ca){ca(Na),Mt==null||Mt(Na,Ca)},qn=function(){Ea(!1),Ba(null)},Pa=te.useMemo(function(){return{register:Jn,onPreview:Ga}},[Jn,Ga]);return te.createElement(je.Provider,{value:Pa},He,te.createElement(Aa,(0,se.Z)({"aria-hidden":!ba,movable:un,visible:ba,prefixCls:xe,closeIcon:en,onClose:qn,mousePosition:fa,imgCommonProps:Oa,src:xa,fallback:Tt,icons:rt,minScale:mn,maxScale:Cn,getContainer:Vt,current:da,count:_n.length,countRender:cn,onTransform:Qt,toolbarRender:_t,imageRender:Kt,onChange:Zn},Fn)))},va=Qn,ya=0;function Ia(de,ie){var ue=te.useState(function(){return ya+=1,String(ya)}),Le=(0,Ce.Z)(ue,1),xe=Le[0],He=te.useContext(je),Je={data:ie,canPreview:de};return te.useEffect(function(){if(He)return He.register(xe,Je)},[]),te.useEffect(function(){He&&He.register(xe,Je)},[de,ie]),xe}var yo=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Va=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Lo=function(ie){var ue=ie.src,Le=ie.alt,xe=ie.onPreviewClose,He=ie.prefixCls,Je=He===void 0?"rc-image":He,rt=ie.previewPrefixCls,lt=rt===void 0?"".concat(Je,"-preview"):rt,Lt=ie.placeholder,Tt=ie.fallback,ut=ie.width,Ht=ie.height,kt=ie.style,Vt=ie.preview,ln=Vt===void 0?!0:Vt,un=ie.className,mn=ie.onClick,Cn=ie.onError,cn=ie.wrapperClassName,en=ie.wrapperStyle,Mt=ie.rootClassName,Qt=(0,at.Z)(ie,yo),_t=Lt&&Lt!==!0,Kt=(0,Ke.Z)(ln)==="object"?ln:{},Fn=Kt.src,Mn=Kt.visible,rn=Mn===void 0?void 0:Mn,_n=Kt.onVisibleChange,Jn=_n===void 0?xe:_n,Rn=Kt.getContainer,Vn=Rn===void 0?void 0:Rn,ia=Kt.mask,da=Kt.maskClassName,ca=Kt.movable,Fa=Kt.icons,la=Kt.scaleStep,Sa=Kt.minScale,na=Kt.maxScale,wa=Kt.imageRender,xa=Kt.toolbarRender,Oa=(0,at.Z)(Kt,Va),ma=Fn!=null?Fn:ue,Ma=vt(!!rn,{value:rn,onChange:Jn}),ba=(0,Ce.Z)(Ma,2),Ea=ba[0],aa=ba[1],Ta=Tn({src:ue,isCustomPlaceholder:_t,fallback:Tt}),fa=(0,Ce.Z)(Ta,3),Ba=fa[0],Ga=fa[1],Zn=fa[2],qn=(0,te.useState)(null),Pa=(0,Ce.Z)(qn,2),ha=Pa[0],Na=Pa[1],Ca=(0,te.useContext)(je),Qa=!!ln,oo=function(){aa(!1),Na(null)},Wa=ae()(Je,cn,Mt,(0,Oe.Z)({},"".concat(Je,"-error"),Zn==="error")),Ka=(0,te.useMemo)(function(){var Ja={};return Ft.forEach(function(qa){ie[qa]!==void 0&&(Ja[qa]=ie[qa])}),Ja},Ft.map(function(Ja){return ie[Ja]})),Ho=(0,te.useMemo)(function(){return(0,we.Z)((0,we.Z)({},Ka),{},{src:ma})},[ma,Ka]),jo=Ia(Qa,Ho),Uo=function(qa){var xo=Pe(qa.target),Bo=xo.left,No=xo.top;Ca?Ca.onPreview(jo,ma,Bo,No):(Na({x:Bo,y:No}),aa(!0)),mn==null||mn(qa)};return te.createElement(te.Fragment,null,te.createElement("div",(0,se.Z)({},Qt,{className:Wa,onClick:Qa?Uo:mn,style:(0,we.Z)({width:ut,height:Ht},en)}),te.createElement("img",(0,se.Z)({},Ka,{className:ae()("".concat(Je,"-img"),(0,Oe.Z)({},"".concat(Je,"-img-placeholder"),Lt===!0),un),style:(0,we.Z)({height:Ht},kt),ref:Ba},Ga,{width:ut,height:Ht,onError:Cn})),Zn==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(Je,"-placeholder")},Lt),ia&&Qa&&te.createElement("div",{className:ae()("".concat(Je,"-mask"),da),style:{display:(kt==null?void 0:kt.display)==="none"?"none":void 0}},ia)),!Ca&&Qa&&te.createElement(Aa,(0,se.Z)({"aria-hidden":!Ea,visible:Ea,prefixCls:lt,onClose:oo,mousePosition:ha,src:ma,alt:Le,imageInfo:{width:ut,height:Ht},fallback:Tt,getContainer:Vn,icons:Fa,movable:ca,scaleStep:la,minScale:Sa,maxScale:na,rootClassName:Mt,imageRender:wa,imgCommonProps:Ka,toolbarRender:xa},Oa)))};Lo.PreviewGroup=va;var Mo=Lo,co=Mo,So=oe(87263),no=oe(33603),fo=oe(53124),Po=oe(35792),Ua=oe(10110),io=oe(85846),lo=oe(55007),mo=oe(79269),ao=oe(83963),wo={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"},Io=wo,Xa=oe(84180),_a=function(ie,ue){return te.createElement(Xa.Z,(0,ao.Z)({},ie,{ref:ue,icon:Io}))},To=te.forwardRef(_a),Ha=To,Go={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"},Ao=Go,zo=function(ie,ue){return te.createElement(Xa.Z,(0,ao.Z)({},ie,{ref:ue,icon:Ao}))},Ko=te.forwardRef(zo),Do=Ko,Vo={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"},Xo=Vo,Ro=function(ie,ue){return te.createElement(Xa.Z,(0,ao.Z)({},ie,{ref:ue,icon:Xo}))},$o=te.forwardRef(Ro),Ct=$o,gt={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"},St=gt,bt=function(ie,ue){return te.createElement(Xa.Z,(0,ao.Z)({},ie,{ref:ue,icon:St}))},Gn=te.forwardRef(bt),Yn=Gn,pa={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"},ra=pa,sa=function(ie,ue){return te.createElement(Xa.Z,(0,ao.Z)({},ie,{ref:ue,icon:ra}))},ua=te.forwardRef(sa),ka=ua,La=oe(16777),za=oe(24327),so=oe(71194),uo=oe(14747),_o=oe(50438),Ya=oe(16932),bo=oe(83559),ta=oe(43259);const ho=de=>({position:de||"absolute",inset:0}),ko=de=>{const{iconCls:ie,motionDurationSlow:ue,paddingXXS:Le,marginXXS:xe,prefixCls:He,colorTextLightSolid:Je}=de;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Je,background:new za.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${ue}`,[`.${He}-mask-info`]:Object.assign(Object.assign({},uo.vS),{padding:`0 ${(0,La.unit)(Le)}`,[ie]:{marginInlineEnd:xe,svg:{verticalAlign:"baseline"}}})}},Eo=de=>{const{previewCls:ie,modalMaskBg:ue,paddingSM:Le,marginXL:xe,margin:He,paddingLG:Je,previewOperationColorDisabled:rt,previewOperationHoverColor:lt,motionDurationSlow:Lt,iconCls:Tt,colorTextLightSolid:ut}=de,Ht=new za.FastColor(ue).setA(.1),kt=Ht.clone().setA(.2);return{[`${ie}-footer`]:{position:"fixed",bottom:xe,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:de.previewOperationColor,transform:"translateX(-50%)"},[`${ie}-progress`]:{marginBottom:He},[`${ie}-close`]:{position:"fixed",top:xe,right:{_skip_check_:!0,value:xe},display:"flex",color:ut,backgroundColor:Ht.toRgbString(),borderRadius:"50%",padding:Le,outline:0,border:0,cursor:"pointer",transition:`all ${Lt}`,"&:hover":{backgroundColor:kt.toRgbString()},[`& > ${Tt}`]:{fontSize:de.previewOperationSize}},[`${ie}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,La.unit)(Je)}`,backgroundColor:Ht.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Le,padding:Le,cursor:"pointer",transition:`all ${Lt}`,userSelect:"none",[`&:not(${ie}-operations-operation-disabled):hover > ${Tt}`]:{color:lt},"&-disabled":{color:rt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Tt}`]:{fontSize:de.previewOperationSize}}}}},Zo=de=>{const{modalMaskBg:ie,iconCls:ue,previewOperationColorDisabled:Le,previewCls:xe,zIndexPopup:He,motionDurationSlow:Je}=de,rt=new za.FastColor(ie).setA(.1),lt=rt.clone().setA(.2);return{[`${xe}-switch-left, ${xe}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:de.calc(He).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:de.imagePreviewSwitchSize,height:de.imagePreviewSwitchSize,marginTop:de.calc(de.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:de.previewOperationColor,background:rt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Je}`,userSelect:"none","&:hover":{background:lt.toRgbString()},"&-disabled":{"&, &:hover":{color:Le,background:"transparent",cursor:"not-allowed",[`> ${ue}`]:{cursor:"not-allowed"}}},[`> ${ue}`]:{fontSize:de.previewOperationSize}},[`${xe}-switch-left`]:{insetInlineStart:de.marginSM},[`${xe}-switch-right`]:{insetInlineEnd:de.marginSM}}},vo=de=>{const{motionEaseOut:ie,previewCls:ue,motionDurationSlow:Le,componentCls:xe}=de;return[{[`${xe}-preview-root`]:{[ue]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${ue}-body`]:Object.assign(Object.assign({},ho()),{overflow:"hidden"}),[`${ue}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Le} ${ie} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ho()),{transition:`transform ${Le} ${ie} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${ue}-moving`]:{[`${ue}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${xe}-preview-root`]:{[`${ue}-wrap`]:{zIndex:de.zIndexPopup}}},{[`${xe}-preview-operations-wrapper`]:{position:"fixed",zIndex:de.calc(de.zIndexPopup).add(1).equal()},"&":[Eo(de),Zo(de)]}]},Da=de=>{const{componentCls:ie}=de;return{[ie]:{position:"relative",display:"inline-block",[`${ie}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ie}-img-placeholder`]:{backgroundColor:de.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ie}-mask`]:Object.assign({},ko(de)),[`${ie}-mask:hover`]:{opacity:1},[`${ie}-placeholder`]:Object.assign({},ho())}}},Co=de=>{const{previewCls:ie}=de;return{[`${ie}-root`]:(0,_o._y)(de,"zoom"),"&":(0,Ya.J$)(de,!0)}},Fo=de=>({zIndexPopup:de.zIndexPopupBase+80,previewOperationColor:new za.FastColor(de.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new za.FastColor(de.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new za.FastColor(de.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:de.fontSizeIcon*1.5});var po=(0,bo.I$)("Image",de=>{const ie=`${de.componentCls}-preview`,ue=(0,ta.mergeToken)(de,{previewCls:ie,modalMaskBg:new za.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:de.controlHeightLG});return[Da(ue),vo(ue),(0,so.QA)((0,ta.mergeToken)(ue,{componentCls:ie})),Co(ue)]},Fo),tr=function(de,ie){var ue={};for(var Le in de)Object.prototype.hasOwnProperty.call(de,Le)&&ie.indexOf(Le)<0&&(ue[Le]=de[Le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Le=Object.getOwnPropertySymbols(de);xe<Le.length;xe++)ie.indexOf(Le[xe])<0&&Object.prototype.propertyIsEnumerable.call(de,Le[xe])&&(ue[Le[xe]]=de[Le[xe]]);return ue};const Yo={rotateLeft:te.createElement(Ha,null),rotateRight:te.createElement(Do,null),zoomIn:te.createElement(Yn,null),zoomOut:te.createElement(ka,null),close:te.createElement(io.Z,null),left:te.createElement(lo.Z,null),right:te.createElement(mo.Z,null),flipX:te.createElement(Ct,null),flipY:te.createElement(Ct,{rotate:90})};var nr=de=>{var{previewPrefixCls:ie,preview:ue}=de,Le=tr(de,["previewPrefixCls","preview"]);const{getPrefixCls:xe}=te.useContext(fo.E_),He=xe("image",ie),Je=`${He}-preview`,rt=xe(),lt=(0,Po.Z)(He),[Lt,Tt,ut]=po(He,lt),[Ht]=(0,So.Cn)("ImagePreview",typeof ue=="object"?ue.zIndex:void 0),kt=te.useMemo(()=>{var Vt;if(ue===!1)return ue;const ln=typeof ue=="object"?ue:{},un=Ae()(Tt,ut,lt,(Vt=ln.rootClassName)!==null&&Vt!==void 0?Vt:"");return Object.assign(Object.assign({},ln),{transitionName:(0,no.m)(rt,"zoom",ln.transitionName),maskTransitionName:(0,no.m)(rt,"fade",ln.maskTransitionName),rootClassName:un,zIndex:Ht})},[ue]);return Lt(te.createElement(co.PreviewGroup,Object.assign({preview:kt,previewPrefixCls:Je,icons:Yo},Le)))},Qo=function(de,ie){var ue={};for(var Le in de)Object.prototype.hasOwnProperty.call(de,Le)&&ie.indexOf(Le)<0&&(ue[Le]=de[Le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Le=Object.getOwnPropertySymbols(de);xe<Le.length;xe++)ie.indexOf(Le[xe])<0&&Object.prototype.propertyIsEnumerable.call(de,Le[xe])&&(ue[Le[xe]]=de[Le[xe]]);return ue};const Jo=de=>{const{prefixCls:ie,preview:ue,className:Le,rootClassName:xe,style:He}=de,Je=Qo(de,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:rt,getPopupContainer:lt,className:Lt,style:Tt,preview:ut}=(0,fo.dj)("image"),[Ht]=(0,Ua.Z)("Image"),kt=rt("image",ie),Vt=rt(),ln=(0,Po.Z)(kt),[un,mn,Cn]=po(kt,ln),cn=Ae()(xe,mn,Cn,ln),en=Ae()(Le,mn,Lt),[Mt]=(0,So.Cn)("ImagePreview",typeof ue=="object"?ue.zIndex:void 0),Qt=te.useMemo(()=>{if(ue===!1)return ue;const Kt=typeof ue=="object"?ue:{},{getContainer:Fn,closeIcon:Mn,rootClassName:rn}=Kt,_n=Qo(Kt,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${kt}-mask-info`},te.createElement(Xe.Z,null),Ht==null?void 0:Ht.preview),icons:Yo},_n),{rootClassName:Ae()(cn,rn),getContainer:Fn!=null?Fn:lt,transitionName:(0,no.m)(Vt,"zoom",Kt.transitionName),maskTransitionName:(0,no.m)(Vt,"fade",Kt.maskTransitionName),zIndex:Mt,closeIcon:Mn!=null?Mn:ut==null?void 0:ut.closeIcon})},[ue,Ht,ut==null?void 0:ut.closeIcon]),_t=Object.assign(Object.assign({},Tt),He);return un(te.createElement(co,Object.assign({prefixCls:kt,preview:Qt,rootClassName:cn,className:en,style:_t},Je)))};Jo.PreviewGroup=nr;var ar=Jo,or=()=>{const[de,ie]=(0,te.useState)(""),[ue,Le]=(0,te.useState)(0);let[xe,He]=(0,te.useState)(),[Je,rt]=(0,te.useState)();const[lt,Lt]=(0,te.useState)(!1),Tt=(0,te.useRef)("");(0,te.useEffect)(()=>qe.Z.subscribe("preview-image",Mt=>{ie(Mt),console.log(Cn.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",ut),()=>{document.removeEventListener("keydown",ut)}),[]),(0,te.useEffect)(()=>{Tt.current=de},[de]);function ut(en){en.keyCode==27&&Tt.current&&Ht()}function Ht(){document.body.style.overflow="auto",He(void 0),rt(void 0),Le(0),ie("")}function kt(){Le(ue+90)}function Vt(){xe=Cn.current.width*1.1,Je=Cn.current.height*1.1,rt(Je),He(xe)}function ln(){xe=Cn.current.width/1.1,Je=Cn.current.height/1.1,rt(Je),He(xe)}const un=(0,te.useRef)(),mn=(0,te.useRef)(),Cn=(0,te.useRef)(),cn=en=>{(en.nativeEvent.target===un.current||en.nativeEvent.target===mn.current)&&Ht()};return te.createElement(te.Fragment,null,de?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:mn},te.createElement(ar,{className:"image-preview",src:de,style:{display:"none"},preview:{visible:!0,src:de,movable:!1,onVisibleChange:en=>{ie("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(Be,it,oe){"use strict";oe.d(it,{h:function(){return ee}});var te=oe(67294),Ee=oe(88044),qe=oe(91773),Xe=oe(85804),ve=oe(4631),Ae=oe.n(ve),se=oe(71749),we=oe(30483),Oe=Object.defineProperty,Ce=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?Oe(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,y=(ne,re)=>{for(var ge in re||(re={}))ot.call(re,ge)&&a(ne,ge,re[ge]);if(at)for(var ge of at(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>Ce(ne,Ke(re));const b=Ee.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"]};it.Z=({callback:ne,onCancel:re})=>{const[ge,le]=(0,te.useState)("python");function pe(Me){le(z[Me][1])}function Pe(Me){ne(Me)}return te.createElement(qe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Pe,style:{width:500}}),te.createElement(qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ee.default,{getPopupContainer:Me=>Me.parentNode,onChange:pe},Object.keys(z).map(Me=>te.createElement(b,{key:Me,value:Me},z[Me][0])))),te.createElement(qe.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(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Xe.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:le={}}){const pe=(0,te.useRef)(),[Pe,Me]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Pe){let $e=function(ft){const Gt=ft.getValue();re&&re(Gt)};return Pe.on("change",$e),()=>{Pe.off("change",$e)}}},[Pe,re]),(0,te.useEffect)(()=>{Pe&&Pe.setOption("mode",ge)},[Pe,ge]),(0,te.useEffect)(()=>{Pe&&(ne!==Pe.getValue()||ne==="")&&setTimeout(()=>{Pe.setValue(ne||"")},300)},[Pe,ne]),(0,te.useEffect)(()=>{if(pe.current&&!Pe){const $e=Ae().fromTextArea(pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},le));Me($e)}},[pe.current,Pe]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:pe}))}},35567:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return Bt}});var te=oe(67294),Ee=oe(4631),qe=oe.n(Ee),Xe=oe(91033),ve=oe(71749),Ae=oe(57341),se=oe(82801),we=oe(88386),Oe=oe(49047),Ce=oe(80785),Ke=oe(85725),at=({value:ce="",className:fe,showTextOnly:Se,showLines:ke,style:De={}})=>{const st=(0,te.useMemo)(()=>"",[ce]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},ot=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,fe,Se)=>fe in ce?ae(ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[fe]=Se,ee=(ce,fe)=>{for(var Se in fe||(fe={}))b.call(fe,Se)&&z(ce,Se,fe[Se]);if(E)for(var Se of E(fe))x.call(fe,Se)&&z(ce,Se,fe[Se]);return ce},ne=(ce,fe)=>a(ce,y(fe));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:ce,title:fe,icon:Se,actionName:ke,className:De="",children:st}){function Rt(){ce(ke)}return ot.createElement("a",{title:fe,className:De,onClick:Rt},ot.createElement("i",{className:`${Se}`}),st)}var le=({watch:ce,showNullButton:fe,showNullProgramButton:Se,onActionCallback:ke,fullScreen:De,insertTemp:st,hidetoolBar:Rt,extraUse:wt})=>{const Yt=[...re,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ot.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&Yt.map((hn,Kn)=>ot.createElement("li",{key:Kn},hn.actionName?ot.createElement(ge,ne(ee({},hn),{onActionCallback:ke})):ot.createElement("span",{className:"v-line"}))),fe?ot.createElement("li",null,ot.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},ot.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?ot.createElement(ot.Fragment,null,ot.createElement("li",null,ot.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},ot.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ot.createElement("li",null,ot.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},ot.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,st&&ot.createElement("li",null,ot.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${st}`,onActionCallback:ke},ot.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),wt&&ot.createElement("li",null,wt),ot.createElement("li",{className:"btn-full-screen"},ot.createElement(ge,{icon:`${De?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:De?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},pe=oe(76621),Pe=oe(91773),Me=oe(28802),$e=oe(85804),ft=Object.defineProperty,Gt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,vt=(ce,fe,Se)=>fe in ce?ft(ce,fe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[fe]=Se,Pt=(ce,fe)=>{for(var Se in fe||(fe={}))jt.call(fe,Se)&&vt(ce,Se,fe[Se]);if(Sn)for(var Se of Sn(fe))Ne.call(fe,Se)&&vt(ce,Se,fe[Se]);return ce},Qe=(ce,fe)=>Gt(ce,Jt(fe));const yt={labelCol:{span:4},wrapperCol:{span:20}};var sn=({callback:ce,onCancel:fe})=>{function Se(ke){ce(ke)}return te.createElement(Pe.default,Qe(Pt({},yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),te.createElement(Pe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Me.default,null)),te.createElement(Pe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Me.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:fe},"\u53D6\u6D88")))},vn=oe(57444),be=oe(70859),ze=oe(62844),Fe=oe(71230),Dt=oe(63205),tt=oe(67294),xt=({callback:ce,onCancel:fe})=>{const Se=document.createElement("canvas"),ke=Se.getContext("2d");Se.width=1e3,Se.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,Se.width,Se.height);const De=Se.toDataURL("image/png");return tt.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(Fe.Z,{style:{height:"100vh"}},tt.createElement(Dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:De,visible:!0,title:String(Date.now())},onOk:st=>{ce({src:st.url})},onClose:fe})))},me=oe(23495);function nt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(nt,go.CommandHandler),nt.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},nt.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var fe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(fe=Math.min(Se.position.x,fe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(fe,Se.position.y))}),ce.commitTransaction("aligning left")},nt.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var fe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.x+Se.actualBounds.width;fe=Math.max(ke,fe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(fe-Se.actualBounds.width,Se.position.y))}),ce.commitTransaction("aligning right")},nt.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var fe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(fe=Math.min(Se.position.y,fe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,fe))}),ce.commitTransaction("alignTop")},nt.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var fe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.y+Se.actualBounds.height;fe=Math.max(ke,fe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,fe-Se.actualBounds.height))}),ce.commitTransaction("aligning bottom")},nt.prototype.alignCenterX=function(){var ce=this.diagram,fe=ce.selection.first();if(fe){ce.startTransaction("aligning Center X");var Se=fe.actualBounds.x+fe.actualBounds.width/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(Se-ke.actualBounds.width/2,ke.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},nt.prototype.alignCenterY=function(){var ce=this.diagram,fe=ce.selection.first();if(fe){ce.startTransaction("aligning Center Y");var Se=fe.actualBounds.y+fe.actualBounds.height/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,Se-ke.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},nt.prototype.alignColumn=function(ce){var fe=this.diagram;fe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Se=new Array;fe.selection.each(function(wt){wt instanceof go.Link||Se.push(wt)});for(var ke=0;ke<Se.length-1;ke++){var De=Se[ke],st=De.actualBounds.y+De.actualBounds.height+ce,Rt=Se[ke+1];Rt.move(new go.Point(De.actualBounds.x,st))}fe.commitTransaction("align Column")},nt.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var fe=this.diagram;fe.startTransaction("align Row");var Se=new Array;fe.selection.each(function(wt){wt instanceof go.Link||Se.push(wt)});for(var ke=0;ke<Se.length-1;ke++){var De=Se[ke],st=De.actualBounds.x+De.actualBounds.width+ce,Rt=Se[ke+1];Rt.move(new go.Point(st,De.actualBounds.y))}fe.commitTransaction("align Row")},nt.prototype.canRotate=function(ce){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<1)},nt.prototype.rotate=function(ce){ce===void 0&&(ce=90);var fe=this.diagram;fe.startTransaction("rotate "+ce.toString());var fe=this.diagram;fe.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ce)}),fe.commitTransaction("rotate "+ce.toString())},nt.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var fe=new go.Map;ce.selection.each(function(Se){fe.set(Se.layer,0)}),fe.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(De){if(!De.isSelected){var st=De.zOrder;isNaN(st)?De.zOrder=0:ke=Math.max(ke,st)}}),fe.set(Se,ke)}),ce.selection.each(function(Se){nt._assignZOrder(Se,fe.get(Se.layer)+1)}),ce.commitTransaction("pullToFront")},nt.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var fe=new go.Map;ce.selection.each(function(Se){fe.set(Se.layer,0)}),fe.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(De){if(!De.isSelected){var st=De.zOrder;isNaN(st)?De.zOrder=0:ke=Math.min(ke,st)}}),fe.set(Se,ke)}),ce.selection.each(function(Se){nt._assignZOrder(Se,fe.get(Se.layer)-1-nt._findGroupDepth(Se))}),ce.commitTransaction("pushToBack")},nt._assignZOrder=function(ce,fe,Se){Se===void 0&&(Se=ce),ce.layer===Se.layer&&(ce.zOrder=fe),ce instanceof go.Group&&ce.memberParts.each(function(ke){nt._assignZOrder(ke,fe+1,Se)})},nt._findGroupDepth=function(ce){if(ce instanceof go.Group){var fe=0;return ce.memberParts.each(function(Se){fe=Math.max(fe,nt._findGroupDepth(Se))}),fe+1}else return 0},nt.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var fe=ce.lastInput;if(fe.key==="Up"||fe.key==="Down"||fe.key==="Left"||fe.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},nt.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(fe){ce.push(fe)}),this.diagram.parts.each(function(fe){ce.push(fe)}),ce},nt.prototype._arrowKeyMove=function(){var ce=this.diagram,fe=ce.lastInput,Se=0,ke=0;if(fe.control||fe.meta)Se=1,ke=1;else if(ce.grid!==null){var De=ce.grid.gridCellSize;ke=De.width,Se=De.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(st){fe.key==="Up"?st.move(new go.Point(st.actualBounds.x,st.actualBounds.y-Se)):fe.key==="Down"?st.move(new go.Point(st.actualBounds.x,st.actualBounds.y+Se)):fe.key==="Left"?st.move(new go.Point(st.actualBounds.x-ke,st.actualBounds.y)):fe.key==="Right"&&st.move(new go.Point(st.actualBounds.x+ke,st.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},nt.prototype._arrowKeySelect=function(){var ce=this.diagram,fe=ce.lastInput,Se=null;fe.key==="Up"?Se=this._findNearestPartTowards(270):fe.key==="Down"?Se=this._findNearestPartTowards(90):fe.key==="Left"?Se=this._findNearestPartTowards(180):fe.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(fe.shift?Se.isSelected=!0:fe.control||fe.meta?Se.isSelected=!Se.isSelected:ce.select(Se))},nt.prototype._findNearestPartTowards=function(ce){var fe=this.diagram.selection.first();if(fe===null)return null;for(var Se=fe.actualBounds.center,ke=this._getAllParts(),De=1/0,st=fe,Rt=0;Rt<ke.length;Rt++){var wt=ke[Rt];if(wt!==fe&&wt.canSelect()){var Yt=wt.actualBounds.center,hn=Se.directionPoint(Yt),Kn=this._angleCloseness(hn,ce);if(Kn<=45){var Ve=Se.distanceSquaredPoint(Yt);Ve*=1+Math.sin(Kn*Math.PI/180),Ve<De&&(De=Ve,st=wt)}}}return st},nt.prototype._angleCloseness=function(ce,fe){return Math.min(Math.abs(fe-ce),Math.min(Math.abs(fe+360-ce),Math.abs(fe-360-ce)))},nt.prototype._arrowKeyTree=function(){var ce=this.diagram,fe=ce.selection.first();if(fe instanceof go.Node){var Se=ce.lastInput;if(Se.key==="Right"){if(!fe.isTreeLeaf)if(!fe.isTreeExpanded)ce.commandHandler.canExpandTree(fe)&&ce.commandHandler.expandTree(fe);else{var ke=this._sortTreeChildrenByY(fe).first();ke!==null&&ce.select(ke)}}else if(Se.key==="Left")if(!fe.isTreeLeaf&&fe.isTreeExpanded)ce.commandHandler.canCollapseTree(fe)&&ce.commandHandler.collapseTree(fe);else{var De=fe.findTreeParentNode();De!==null&&ce.select(De)}else if(Se.key==="Up"){var De=fe.findTreeParentNode();if(De!==null){var st=this._sortTreeChildrenByY(De),Rt=st.indexOf(fe);if(Rt>0){for(var wt=st.elt(Rt-1);wt!==null&&wt.isTreeExpanded&&!wt.isTreeLeaf;){var Yt=this._sortTreeChildrenByY(wt);wt=Yt.last()}wt!==null&&ce.select(wt)}else ce.select(De)}}else if(Se.key==="Down")if(fe.isTreeExpanded&&!fe.isTreeLeaf){var ke=this._sortTreeChildrenByY(fe).first();ke!==null&&ce.select(ke)}else for(;fe!==null;){var De=fe.findTreeParentNode();if(De===null)break;var st=this._sortTreeChildrenByY(De),Rt=st.indexOf(fe);if(Rt<st.length-1){ce.select(st.elt(Rt+1));break}else fe=De}var hn=ce.selection.first();hn!==null&&ce.scrollToRect(hn.actualBounds)}},nt.prototype._sortTreeChildrenByY=function(ce){var fe=new go.List().addAll(ce.findTreeChildrenNodes());return fe.sort(function(Se,ke){var De=Se.location,st=ke.location;return De.y<st.y?-1:De.y>st.y?1:De.x<st.x?-1:De.x>st.x?1:0}),fe},nt.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},nt.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(nt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(nt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Zt=nt,tn=oe(18023),nn=oe(15746),Un=oe(33170),an={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Xt=oe(67294),Re=(ce,fe,Se)=>new Promise((ke,De)=>{var st=Yt=>{try{wt(Se.next(Yt))}catch(hn){De(hn)}},Rt=Yt=>{try{wt(Se.throw(Yt))}catch(hn){De(hn)}},wt=Yt=>Yt.done?ke(Yt.value):Promise.resolve(Yt.value).then(st,Rt);wt((Se=Se.apply(ce,fe)).next())});function Ie({onCancel:ce,callback:fe}){let Se=(0,te.useRef)(),ke=(0,te.useRef)(),De=(0,te.useRef)(),st=(0,te.useRef)(!1);const Rt=(0,te.useRef)(!1),[wt,Yt]=(0,te.useState)(0);function hn(){const Ve=me.bx.make,gn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Se.current=new me.S0(ke.current,{padding:20,grid:Ve(me.s_,"Grid",Ve(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(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:Ve(Zt),"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 dn=et.subject;et.diagram.toolManager.linkingTool.isForwards?dn.toNode.invalidateConnectedLinks():dn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ve(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),Ve(me.bn,{name:"SHAPE",fill:gn.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")),Ve(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ve(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ve("ToolTip",Ve(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},Ve(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),Ve(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function Xn(et,Ft){var dn=(Nt,kn)=>{Nt.handled=!0,Nt.diagram.model.commit(Qn=>{var va=kn.part.adornedPart,ya=new me.E9().setRectSpot(va.actualBounds,et);ya.subtract(va.location),ya.scale(2,2),ya.x+=Math.sign(ya.x)*130,ya.y+=Math.sign(ya.y)*130,ya.add(va.location),ya.snapToGridPoint(Nt.diagram.grid.gridOrigin,Nt.diagram.grid.gridCellSize);var Ia=Qn.copyNodeData(va.data);Qn.setGroupKeyForNodeData(Ia,Qn.getGroupKeyForNodeData(va.data)),Qn.addNodeData(Ia);var yo={from:va.key,to:Qn.getKeyForNodeData(Ia)};Qn.addLinkData(yo);var Va=Nt.diagram.findNodeForData(Ia);Va.location=ya,Nt.diagram.select(Va),setTimeout(()=>{Nt.diagram.commandHandler.editTextBlock()},20)})};return Ve(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:gn.white,strokeWidth:4,mouseEnter:(Nt,kn)=>kn.fill="dodgerblue",mouseLeave:(Nt,kn)=>kn.fill="orange",isActionable:!0,click:dn,contextClick:dn})}function Hn(et){return Ve(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,dn)=>dn.fill="dodgerblue",mouseLeave:(Ft,dn)=>dn.fill="orange",click:(Ft,dn)=>{Ft.diagram.commandHandler.showContextMenu(dn.part.adornedPart)}},et||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ve(me.uz,"Spot",Ve(me.Vm,{padding:10}),Xn(me.z6.Top,"TriangleUp"),Xn(me.z6.Left,"TriangleLeft"),Xn(me.z6.Right,"TriangleRight"),Xn(me.z6.Bottom,"TriangleDown"),Hn({alignment:new me.z6(.75,0)}));function $t(et,Ft){return(dn,Nt)=>{dn.handled=!0,dn.diagram.model.commit(kn=>{kn.set(Nt.part.adornedPart.data,et,Ft)})}}function On(et,Ft){return Ft||(Ft="color"),Ve(me.bn,{width:16,height:16,stroke:"lightgray",fill:et,margin:1,background:"transparent",mouseEnter:(dn,Nt)=>Nt.stroke="dodgerblue",mouseLeave:(dn,Nt)=>Nt.stroke="lightgray",click:$t(Ft,et),contextClick:$t(Ft,et)})}function ga(){return[Ve("ContextMenuButton",Ve(me.s_,"Horizontal",On(gn.white,"fill"),On(gn.beige,"fill"),On(gn.extralightblue,"fill"),On(gn.extralightred,"fill"))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",On(gn.lightgray,"fill"),On(gn.lightgreen,"fill"),On(gn.lightblue,"fill"),On(gn.lightred,"fill")))]}function oa(){return[Ve("ContextMenuButton",Ve(me.s_,"Horizontal",On(gn.black),On(gn.green),On(gn.blue),On(gn.red))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",On(gn.white),On(gn.magenta),On(gn.purple),On(gn.orange)))]}function Wt(et,Ft){return Ft||(Ft="thickness"),Ve(me.bn,"LineH",{width:16,height:16,strokeWidth:et,margin:1,background:"transparent",mouseEnter:(dn,Nt)=>Nt.background="dodgerblue",mouseLeave:(dn,Nt)=>Nt.background="transparent",click:$t(Ft,et),contextClick:$t(Ft,et)})}function Dn(et,Ft){return Ft||(Ft="dash"),Ve(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:et,margin:1,background:"transparent",mouseEnter:(dn,Nt)=>Nt.background="dodgerblue",mouseLeave:(dn,Nt)=>Nt.background="transparent",click:$t(Ft,et),contextClick:$t(Ft,et)})}function jn(){return[Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Wt(1),Wt(2),Wt(3),Wt(4))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Dn(null),Dn([2,4]),Dn([4,4])))]}function Tn(et,Ft){return Ft||(Ft="figure"),Ve(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:et,margin:1,background:"transparent",mouseEnter:(dn,Nt)=>Nt.fill="dodgerblue",mouseLeave:(dn,Nt)=>Nt.fill="lightgray",click:$t(Ft,et),contextClick:$t(Ft,et)})}Se.current.nodeTemplate.contextMenu=Ve("ContextMenu",Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Tn("Rectangle"),Tn("RoundedRectangle"),Tn("Ellipse"),Tn("Diamond"))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Tn("Parallelogram2"),Tn("ManualOperation"),Tn("Procedure"),Tn("Cylinder1"))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Tn("Terminator"),Tn("CreateRequest"),Tn("Document"),Tn("TriangleDown"))),ga(),oa(),jn()),Se.current.groupTemplate=Ve(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(et,Ft)=>{var dn=Ft.addMembers(Ft.diagram.selection,!0);dn||Ft.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),Ve(me.s_,"Auto",{name:"BODY"},Ve(me.bn,{parameter1:10,fill:gn.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")),Ve(me.Vm,{background:"transparent",margin:20})),Ve(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"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ve(me.uz,"Spot",Ve(me.s_,"Auto",Ve(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ve(me.Vm,{margin:1.5})),Hn({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ve("ContextMenu",ga(),oa(),jn()),Se.current.linkTemplate=Ve(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(),Ve(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),Ve(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)),Ve(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))),Ve(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))),Ve(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ve(me.uz,Ve(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ea(2)},new me.KX("pathPattern","thickness",ea)),Hn({alignmentFocus:new me.z6(0,0,-6,-4)}));function ea(et){return Ve(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(et+4).toString()+" H3"})}function $a(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"),Ve(me.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(dn,Nt)=>Nt.background="dodgerblue",mouseLeave:(dn,Nt)=>Nt.background="transparent",click:$t("dir",et),contextClick:$t("dir",et)})}function Za(et){var Ft=(dn,Nt)=>{dn.handled=!0,dn.diagram.model.commit(kn=>{var Qn=Nt.part.adornedPart;kn.set(Qn.data,et?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(et?Qn.toNode:Qn.fromNode).invalidateConnectedLinks()})};return Ve(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dn,Nt)=>Nt.background="dodgerblue",mouseLeave:(dn,Nt)=>Nt.background="transparent",click:Ft,contextClick:Ft})}function Te(et,Ft){var dn=0,Nt=me.z6.RightSide;et.equals(me.z6.Top)?(dn=270,Nt=me.z6.TopSide):et.equals(me.z6.Left)?(dn=180,Nt=me.z6.LeftSide):et.equals(me.z6.Bottom)&&(dn=90,Nt=me.z6.BottomSide),Ft||(dn-=180);var kn=(Qn,va)=>{Qn.handled=!0,Qn.diagram.model.commit(ya=>{var Ia=va.part.adornedPart;ya.set(Ia.data,Ft?"toSpot":"fromSpot",me.z6.stringify(Nt)),(Ft?Ia.toNode:Ia.fromNode).invalidateConnectedLinks()})};return Ve(me.bn,{alignment:et,alignmentFocus:et.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dn,background:"transparent",mouseEnter:(Qn,va)=>va.background="dodgerblue",mouseLeave:(Qn,va)=>va.background="transparent",click:kn,contextClick:kn})}Se.current.linkTemplate.contextMenu=Ve("ContextMenu",oa(),jn(),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",$a(0),$a(1),$a(2))),Ve("ContextMenuButton",Ve(me.s_,"Horizontal",Ve(me.s_,"Spot",Za(!1),Te(me.z6.Top,!1),Te(me.z6.Left,!1),Te(me.z6.Right,!1),Te(me.z6.Bottom,!1)),Ve(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},Za(!0),Te(me.z6.Top,!0),Te(me.z6.Left,!0),Te(me.z6.Right,!0),Te(me.z6.Bottom,!0)))));const ro=`{ "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 ja=["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 to(et){return console.log("shapeName:",et),ja.indexOf(et)>=0}var Aa=new me.YI(De.current,{maxSelectionCount:1,linkTemplate:Ve(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:Ve(me.uz,"Link",{locationSpot:me.z6.Center},Ve(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ve(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),Ve(me.bn,{isPanelMain:!0,strokeWidth:2}),Ve(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 Se.current.addDiagramListener("TextEdited",function(et){var Ft;const dn=et.subject.part;var Nt=(Ft=document.activeElement)==null?void 0:Ft.value;typeof Nt=="string"&&Nt.trim()===""&&Se.current.model.commit(function(kn){kn.set(dn.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Aa.nodeTemplate=Ve(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),Ve(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")),Ve(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(()=>{Se.current.grid=Ve(me.s_,"Grid",Ve(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const Kn=()=>Re(this,null,function*(){var Ve=Se.current.makeImage();const gn=yield(0,Un.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ve.src}});fe({src:gn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{hn()},500),Yt(wt+1),()=>{Se.current=null}),[]),Xt.createElement("div",{ref:Rt,className:st.current?`${an.maxH60} body-overflow-initial`:"body-overflow-initial"},Xt.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Xt.createElement(Fe.Z,null,Xt.createElement(nn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Xt.createElement(nn.Z,{onClick:()=>{var Ve,gn,Xn=Se.current.selection.first();if(st.current=!st.current,document.activeElement&&Xn){let Hn=(gn=(Ve=document.activeElement)==null?void 0:Ve.value)==null?void 0:gn.trim();typeof Hn=="string"&&Se.current.model.commit(function($t){$t.set(Xn.data,"text",Hn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Yt(wt+1)}},Xt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Xt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:an.flowChartWrp},Xt.createElement("div",{style:{display:"flex",height:"100%"}},Xt.createElement("div",{style:{width:"300px",height:"100%"}},Xt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Xt.createElement("div",{style:{height:"calc(100% - 50px)"},className:an.myPaletteDiv,ref:De})),Xt.createElement("div",{style:{flex:1,position:"relative"}},Xt.createElement("div",{ref:ke,style:{height:"80vh"}}))),Xt.createElement("div",{className:"tr"},Xt.createElement($e.ZP,{size:"large",onClick:Kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ye=Ie,Ye=oe(98813),We=oe(55514);const mt=Ye.ZP.Group,Ot={margin:"0 8px"};var It=({callback:ce,onCancel:fe})=>{function Se(ke){ce(ke)}return te.createElement(Pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Ot},"\u884C\u6570"),te.createElement(Pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(We.Z,null)),te.createElement("span",{style:Ot},"\u5217\u6570"),te.createElement(Pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(We.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Pe.default.Item,{name:"align"},te.createElement(mt,null,te.createElement(Ye.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Ye.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Ye.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Ye.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:fe},"\u53D6\u6D88")))},ct=oe(47897),xn=oe(61016),In=oe.n(xn),pn=(0,te.forwardRef)(({use3d:ce,width:fe,height:Se,callback:ke,showSaveButton:De},st)=>{const Rt=(0,te.useRef)(),wt=(0,te.useRef)(),[Yt,hn]=(0,te.useState)(!1),Kn=(0,te.useRef)({id:Rt,appName:"graphing",width:fe||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{wt.current=new(In())(Kn.current,!0),window.onload=function(){wt.current.inject("applet_container")}},[]);const Ve=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(gn),gn};return(0,te.useEffect)(()=>{Kn.current.appName=Yt?"3D":"graphing",wt.current.inject("applet_container")},[Yt]),(0,te.useEffect)(()=>{hn(ce)},[ce]),(0,te.useImperativeHandle)(st,()=>({getImgData:Ve})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),te.createElement(Fe.Z,{align:"middle"},te.createElement(nn.Z,{flex:1},te.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Yt,onChange:gn=>hn(gn)})),te.createElement(nn.Z,null,te.createElement($e.ZP,{size:"large",onClick:Ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Bn=oe(36527),yn=oe(25934),bn=oe(2453);const At="link",he="upload-image",Ge="add-flowchart",Ue="draw-image",Et="add-flowchart",qt="code-block",Ut="add-table",pt="------------",Ln={default:pt,left:`:${pt}`,center:`:${pt}:`,right:`${pt}:`};var on=oe(99914),$n=(ce,fe,Se)=>new Promise((ke,De)=>{var st=Yt=>{try{wt(Se.next(Yt))}catch(hn){De(hn)}},Rt=Yt=>{try{wt(Se.throw(Yt))}catch(hn){De(hn)}},wt=Yt=>Yt.done?ke(Yt.value):Promise.resolve(Yt.value).then(st,Rt);wt((Se=Se.apply(ce,fe)).next())});function Wn(){}let An=0;const Nn=1e4,En="\u2581",ht="@\u2581\u2581@",_e="@\u2581@",je=`
**\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`,Ze=["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 dt(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Pn={[wn+"-B"]:"bold",[wn+"-I"]:"italic"},zt={[At]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[he]:"\u6DFB\u52A0\u56FE\u7247",[Ue]:"\u6DFB\u52A0\u753B\u56FE",[Ge]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Bt=({defaultValue:ce="",onChange:fe,width:Se="100%",height:ke=400,miniToolbar:De=!1,isFocus:st=!1,watch:Rt,insertTemp:wt,mode:Yt="markdown",id:hn="markdown-editor-id",showResizeBar:Kn=!1,noStorage:Ve=!1,showNullButton:gn=!1,showNullProgramButton:Xn=!1,hidetoolBar:Hn=!1,fullScreen:$t=!1,onBlur:On,onCMBeforeChange:ga,onFullScreen:oa,className:Wt="",disablePaste:Dn=!1,disabled:jn=!1,disabledFill:Tn=!1,placeholder:ea="",values:$a="",extraUse:Za})=>{const[Te,ro]=(0,te.useState)(null),[ja,to]=(0,te.useState)(ce),[Aa,et]=(0,te.useState)(Rt),[Ft,dn]=(0,te.useState)($t),[Nt,kn]=(0,te.useState)(""),[Qn,va]=(0,te.useState)(0),[ya,Ia]=(0,te.useState)(ke),[yo,Va]=(0,te.useState)(!1),Lo=(0,te.useRef)((0,yn.Z)()),Mo=(0,te.useRef)(!1),co=(0,te.useRef)(),[So,no]=(0,te.useState)(0),[fo,Po]=(0,te.useState)(0),Ua=(0,te.useRef)(),io=(0,te.useRef)(),lo=(0,te.useRef)(),mo=(0,te.useRef)(),ao=()=>$n(void 0,null,function*(){var Ct;const gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Lo.current}});(Ct=gt==null?void 0:gt.attachments)!=null&&Ct.length&&(console.log("cm:",Te,Ua),gt.attachments.map(St=>{St.content_type.indexOf("image")>-1?Te.replaceSelection(`![,](/api/attachments/${St.id}?type=${St.content_type})`):St.content_type.indexOf("video")>-1?Te.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):St.content_type.indexOf("pdf")>-1?Te.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${St.id}?type=${St.content_type}&disposition=inline" target="_blank">${St.name}</a>`):Te.replaceSelection(`[${St.name}](${ENV.API_SERVER}/api/attachments/${St.id}?type=${St.content_type})`)}))});(0,te.useEffect)(()=>{const Ct=window.scrollY||window.pageYOffset;to($a),Te==null||Te.setValue($a),window.scrollTo(0,Ct)},[$a]),(0,te.useEffect)(()=>{oa==null||oa(Ft)},[Ft]),(0,te.useEffect)(()=>{if(Ua.current){let Ct=function(St,bt){var Gn;if(Dn){bt.preventDefault();return}const Yn=bt.clipboardData;if(Yn){const pa=Yn.types.toString(),ra=Yn.items;if(pa==="Files"||Yn.types.indexOf("Files")>-1){if(bt.preventDefault(),Yt=="stex")return;try{let sa=ra[1];((Gn=ra[0])==null?void 0:Gn.kind)==="file"&&(sa=ra[0]);const ua=sa.getAsFile(),ka=ua.name.split(".").pop();(0,be.I)(ua,La=>{var za,so,uo;La.id?((za=ua==null?void 0:ua.type)==null?void 0:za.indexOf("image"))>-1?gt.replaceSelection(`<img width="100%" src="/api/attachments/${La.id}?type=${La.content_type})" alt="" />`):((so=ua==null?void 0:ua.type)==null?void 0:so.indexOf("video"))>-1?gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${La.id}"></video>`):((uo=ua==null?void 0:ua.type)==null?void 0:uo.indexOf("pdf"))>-1?gt.replaceSelection(`<a href="/api/attachments/${La.id}?type=${ua.type}&disposition=inline" target="_blank">${ua.name}</a>`):Ze.includes(ka)?gt.replaceSelection(`<a href="/api/attachments/${La.id}?type=office&disposition=inline" target="_blank">${ua.name}</a>`):gt.replaceSelection(`[${ua.name}](/api/attachments/${La.id}?type=${La.content_type})`):(La==null?void 0:La.status)===401&&(bn.ZP.warning((La==null?void 0:La.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(sa){bn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gt=qe().fromTextArea(Ua.current,{mode:Yt,lineNumbers:!De,lineWrapping:!0,value:ce,autoCloseTags:!Xn,autoCloseBrackets:!0});return gt.on("keyup",function(St,bt){bt.keyCode===8&&(St.getValue()==""?gt.setOption("placeholder",ea):gt.setOption("placeholder",null))}),gt.on("keydown",function(St,bt){if(bt.keyCode===8){var Gn=Io(St);Gn&&bt.preventDefault()}}),st&&gt.focus(),gt.on("paste",Ct),gt.on("dragleave",function(St,bt){io.current.classList.remove("mouse-hover-md")}),jn&&gt.on("beforeChange",function(St,bt){(bt.origin==="paste"||bt.origin==="+input")&&bt.cancel()}),ro(gt),()=>{gt.off("paste",Ct)}}},[]);const wo=(0,te.useCallback)(()=>{if(io.current)try{}catch(Ct){console.log(Ct,"---- to set md editor body height")}},[ya,io,Ft]);(0,te.useEffect)(()=>{function Ct(){let gt=new Xe.Z(St=>{for(let bt of St)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(wo(),Te.setSize("100%","100%"),Te.refresh())});return gt.observe(Ua.current.parentElement),gt}if(Te){const gt=Ct();return()=>{var St,bt;(St=Ua.current)!=null&&St.parentElement&&gt.unobserve((bt=Ua.current)==null?void 0:bt.parentElement)}}},[Te,wo]),(0,te.useEffect)(()=>{if(Te){let Ct=[];for(const[gt,St]of Object.entries(Pn)){let bt={[gt]:()=>{Xa(St)}};Ct.push(bt),Te.addKeyMap(bt)}return co.current=setInterval(()=>{Mo.current&&ao()},4e3),()=>{clearInterval(co.current);for(let gt of Ct)Te.removeKeyMap(gt)}}},[Te]),(0,te.useEffect)(()=>{$t!==Ft&&dn($t)},[$t]),(0,on.Z)(()=>{if(!Ve&&Qn>0){let Ct=new Date().getTime(),gt=window.sessionStorage.getItem(hn);Ct>=Qn+Nn&&(!gt||gt!==ja)&&(window.sessionStorage.setItem(hn,ja),Va(!0))}},Nn),(0,te.useEffect)(()=>{et(Rt)},[Te,Rt]),(0,te.useEffect)(()=>{Te&&st&&Te.focus()},[Te,st]),(0,te.useEffect)(()=>{if(Aa&&Te){let Ct=function(St){let bt=St.target;if(mo.current){let Gn=bt.scrollTop/bt.scrollHeight;mo.current.scrollTop=mo.current.scrollHeight*Gn}};const gt=Te.getScrollerElement();return gt.addEventListener("scroll",Ct),()=>{gt.removeEventListener("scroll",Ct)}}},[Te,Aa]),(0,te.useEffect)(()=>{if(Te&&ga){let Ct=function(gt,St){ga(gt,St)};return Te.on("beforeChange",Ct),()=>{Te.off("beforeChange",Ct)}}},[Te,ga]),(0,te.useEffect)(()=>{if(Te&&On){let Ct=function(){On(Te.getValue())};return Te.on("blur",Ct),()=>{Te.off("blur",Ct)}}},[Te,On]);function Io(Ct,gt){var St=Ct.getDoc(),bt=St.getCursor(),Gn=St.getLine(bt.line),Yn=Gn.charAt(bt.ch-1),pa=Gn.lastIndexOf("@\u2581@",bt.ch),ra=Gn.lastIndexOf("@\u2581\u2581@",bt.ch),sa=pa>ra?pa:ra,ua=pa>ra?3:4;if(ht.indexOf(Yn)===-1)return null;if(console.log("change1:",gt,Ct,Gn,bt,sa,pa,ra,Yn),sa>=0&&bt.ch-sa<5){var ka=sa+ua;return St.replaceRange("",{line:bt.line,ch:sa},{line:bt.line,ch:ka}),{line:bt.line,ch:ka}}return null}(0,te.useEffect)(()=>{if(Te){let Ct=function(gt,St){const bt=gt.getValue();to(bt),va(new Date().getTime()),gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),fe&&(Xn?fe(bt,Do(bt)):fe(bt))};return Te.on("change",Ct),()=>{Te.off("change",Ct)}}},[Te,fe]),(0,te.useEffect)(()=>{if(Te)if(ce==null)Te.setValue(""),to("");else{const Ct=window.scrollY||window.pageYOffset;ce!==Te.getValue()&&(Te.setValue(ce),to(ce),Te.setCursor(jn?1:Te.lineCount(),0),window.scrollTo(0,Ct))}},[Te,ce]);const Xa=(0,te.useCallback)(Ct=>{const gt=Te.getCursor(),St=Te.getSelection();let bt=St.split(`
`);switch(Ct){case"bold":return Te.replaceSelection("**"+St+"**"),St===""&&Te.setCursor(gt.line,gt.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+St+"*"),St===""&&Te.setCursor(gt.line,gt.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+St+"`"),St===""&&Te.setCursor(gt.line,gt.ch+1),Te.focus();case"inline-latex":return kn("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+St+"\n```"),Te.setCursor(gt.line+1,St.length+1),Te.focus();case"line-break":return Te.replaceSelection(`<br/>
`),Te.focus();case"list-ul":return St===""?Te.replaceSelection("- "+St):Te.replaceSelection(bt.map(Gn=>Gn===""?"":`- ${Gn}`).join(`
`)),Te.focus();case"list-ol":return St===""?Te.replaceSelection("1. "+St):Te.replaceSelection(bt.map((Gn,Yn)=>Gn===""?"":`${Yn+1}. ${Gn}`).join(`
`)),Te.focus();case"add-null-ch":return St===""&&Te.setCursor(gt.line,gt.ch),Te.replaceSelection(En),Te.focus();case"add-signal":return St===""&&Te.setCursor(gt.line,gt.ch),Te.replaceSelection(_e),Te.focus();case"add-multiple":return St===""&&Te.setCursor(gt.line,gt.ch),Te.replaceSelection(ht),Te.focus();case"inster-template-1":return St===""&&Te.setCursor(gt.line,gt.ch),Te.replaceSelection(je),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return et(!Aa),Te.focus();case"trigger-full-screen":return dn(!Ft),Te.focus();case At:kn(At);return;case qt:kn(qt);return;case he:kn(he);return;case Ue:kn(Ue);return;case"maths-latex":kn("maths-latex");return;case Ge:kn(Ge);return;case Ut:kn(Ut);return;default:throw new Error}},[Te,Aa,Ft]),_a=(0,te.useCallback)((Ct,gt)=>{var St,bt,Gn,Yn,pa,ra;switch(kn(""),Nt){case At:const{title:za,link:so}=Ct;return Te.replaceSelection(`[${za}](${so})`),Te.focus();case qt:const{language:uo,content:_o}=Ct;return Te.replaceSelection(["```"+uo,_o,"```"].join(`
`)),Te.focus();case"maths-latex":for(var sa=atob(Ct),ua=new Uint8Array(sa.length),ka=0;ka<sa.length;ka++)ua[ka]=sa.charCodeAt(ka);var La=new Blob([ua],{type:"image/png"});(0,be.I)(La,Da=>{Da.id?Te.replaceSelection(`![,](/api/attachments/${Da.id}?type=${Da.content_type})`):(Da==null?void 0:Da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Te.replaceSelection("`$$"+Ct+"$$`");break;case he:case Ue:case Et:const{src:Ya,alt:bo}=Ct,ta=gt,ho=(Gn=(bt=(St=ta==null?void 0:ta.name)==null?void 0:St.split("."))==null?void 0:bt.pop)==null?void 0:Gn.call(bt);return((Yn=ta==null?void 0:ta.type)==null?void 0:Yn.indexOf("image"))>-1||!(ta!=null&&ta.type)?ta.align||ta.width?Te.replaceSelection(`<p style="text-align:${ta.align||"initial"}"><img width="${ta.width?ta.width+"%":"initial"}" src="${Ya}" alt="${bo||""}" /></p>`):Te.replaceSelection(`<img width="100%" src="${Ya}" alt="${bo||""}" />`):((pa=ta==null?void 0:ta.type)==null?void 0:pa.indexOf("video"))>-1?Te.replaceSelection(`<video width="100%" controls src="${Ya}"></video>`):((ra=ta==null?void 0:ta.type)==null?void 0:ra.indexOf("pdf"))>-1?Te.replaceSelection(`<a href="${Ya}?type=${ta.type}&disposition=inline" target="_blank">${ta.name}</a>`):Ze.includes(ho)?Te.replaceSelection(`<a href="${Ya}?type=office&disposition=inline" target="_blank">${ta.name}</a>`):Te.replaceSelection(`[${ta.name}](${Ya})`),Te.focus();case Ut:const{row:ko,col:Eo,align:Zo}=Ct;let vo=`
`;for(let Da=0;Da<ko;Da++){let Co=[],Fo=[];for(let po=0;po<Eo;po++)Da===1&&Fo.push(Ln[Zo]),Co.push(" ");Da===1&&(vo+=`| ${Fo.join(" | ")} |
`),vo+=`| ${Co.join(Eo===1?"":" | ")} |
`}return Te.replaceSelection(vo+`
`),Te.focus();default:throw new Error}},[Te,Nt]),To=(0,te.useMemo)(()=>{switch(Nt){case At:return te.createElement(sn,{callback:_a,onCancel:Ha});case qt:return te.createElement(vn.Z,{callback:_a,onCancel:Ha});case he:return te.createElement(be.Z,{callback:_a,onCancel:Ha});case Ge:return te.createElement(ye,{callback:_a,onCancel:Ha});case Ut:return te.createElement(It,{callback:_a,onCancel:Ha});case"maths-latex":return te.createElement(pn,{showSaveButton:!0,callback:_a});case"inline-latex":return te.createElement(Bn.Z,{showSaveButton:!0,callback:_a});default:return null}},[Nt]);function Ha(){kn("")}(0,te.useEffect)(()=>{if(lo.current){let Ct=function(pa){Gn=!0,Yn=pa.pageY},gt=function(){Gn=!1},St=function(pa){if(Gn){let ra=pa.pageY-Yn;ra<0&&(ra=0),ra>300&&(ra=300);let sa=ke+ra+"px";Ia(sa)}},bt=lo.current,Gn=!1,Yn=0;return bt.addEventListener("mousedown",Ct),document.addEventListener("mousemove",St),document.addEventListener("mouseup",gt),()=>{bt.removeEventListener("mousedown",Ct),document.removeEventListener("mousemove",St),document.removeEventListener("mouseup",gt)}}},[Te,lo]),(0,te.useEffect)(()=>{Ia(ke)},[ke]);const Go=dt(Se),Ao=dt(ya),zo={width:Go,height:Ao},Ko=(0,te.useMemo)(()=>{if(Qn){let Ct=new Date(Qn),gt=Ct.getHours(),St=Ct.getMinutes(),bt=Ct.getSeconds();return gt=gt<10?"0"+gt:gt,St=St<10?"0"+St:St,bt=bt<10?"0"+bt:bt,`${gt}:${St}:${bt}`}return 0},[Qn]),Do=Ct=>{const gt=[];if(Xn){let St=-1;Ct=Ct.replace(/(@▁▁@|@▁@)/g,function(bt,Gn,Yn){gt.push({multiLine:bt!==_e})})}return gt};function Vo(){window.sessionStorage.removeItem(hn),Va(!1),va(0)}function Xo(){Va(!1),va(0),Te.setValue(window.sessionStorage.getItem(hn))}(0,te.useEffect)(()=>{zt[Nt]&&Nt!==Ue&&Nt!==Ge&&setTimeout(()=>{const Ct=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth/2-Ct.offsetWidth/2,St=window.innerHeight/2-Ct.offsetHeight/2;no(gt),Po(St)},0)},[Nt]);const Ro=Ct=>{Ct.preventDefault();const gt=Ct.clientX-So,St=Ct.clientY-fo;document.body.onmousemove=bt=>{let Gn=bt.clientX-gt,Yn=bt.clientY-St;const pa=document.getElementsByClassName("markdown-popup-form")[0],ra=window.innerWidth-pa.offsetWidth,sa=window.innerHeight-pa.offsetHeight;Gn=Math.max(0,Math.min(Gn,ra)),Yn=Math.max(0,Math.min(Yn,sa)),$o(bt.clientX,bt.clientY,gt,St)&&(no(Gn),Po(Yn))},document.body.onmouseup=function(){document.body.onmousemove=null}},$o=(Ct,gt,St,bt)=>{const Gn=document.body.clientHeight,Yn=document.body.clientWidth;return Ct<20&&St>Ct||Ct>Yn-20&&St<Ct||gt<20&&bt>gt||gt>Gn-20&&bt<gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:io},te.createElement("div",{className:`markdown-editor-container ${Wt} ${Aa?"on-preview":""} ${De?"mini":""} ${Ft?"full-screen":""}`,style:zo},te.createElement(le,{insertTemp:wt,watch:Aa,fullScreen:Ft,showNullButton:gn,showNullProgramButton:Xn,onActionCallback:Xa,hidetoolBar:Hn,extraUse:Za}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ua,placeholder:ea})),Aa?te.createElement("div",{ref:mo,className:"preview-container"},Yt==="stex"&&te.createElement(at,{value:ja}),Yt!=="stex"&&te.createElement(Ke.Z,{disabledFill:Tn,showProgramFill:Xn,value:ja})):null))),Kn?te.createElement("a",{ref:lo,className:"editor-resize"}):null,Nt===Ue&&te.createElement(xt,{callback:_a,onCancel:Ha}),Nt===Ge&&te.createElement(ye,{callback:_a,onCancel:Ha}),te.createElement(pe.Z,null,zt[Nt]&&Nt!==Ue&&Nt!==Ge?te.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:So,top:fo},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Ro},zt[Nt]),open:!0,onCancel:Ha,footer:null,destroyOnClose:!0,width:Nt===Ge?"1200px":null,height:Nt===Ge?"80vh":null,className:"markdown-popup-form"},To):null))}},70859:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return ge},I:function(){return pe}});var te=oe(91773),Ee=oe(2453),qe=oe(28802),Xe=oe(78957),ve=oe(55514),Ae=oe(98813),se=oe(85804),we=oe(15476),Oe=oe(67294),Ce=oe(52262),Ke=oe(67294),at=Object.defineProperty,ot=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Pe,Me,$e)=>Me in Pe?at(Pe,Me,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Pe[Me]=$e,x=(Pe,Me)=>{for(var $e in Me||(Me={}))y.call(Me,$e)&&b(Pe,$e,Me[$e]);if(a)for(var $e of a(Me))E.call(Me,$e)&&b(Pe,$e,Me[$e]);return Pe},z=(Pe,Me)=>ot(Pe,ae(Me));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Pe,onCancel:Me})=>{const[$e]=ee();let ft=(0,Oe.useRef)();function Gt(jt){ft.current.width=$e.getFieldValue("width"),ft.current.align=$e.getFieldValue("align"),Pe(jt,ft.current)}function Jt(jt,Ne){if(jt.status===-1){Ee.ZP.error(jt.message);return}$e.setFieldsValue({src:`/api/attachments/${jt.id}`,type:Ne.type})}function Sn(jt){let Ne=jt.target.files[0];ft.current=Ne,pe(Ne,Jt)}return Ke.createElement(te.default,z(x({form:$e},re),{className:"upload-image-panel",onFinish:Gt,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(qe.default,{style:ne})),Ke.createElement(le,{onFileChange:Sn}))),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ke.createElement(qe.default,{style:{width:264}})),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ke.createElement(Xe.Z,null,Ke.createElement(te.default.Item,{name:"width",style:{margin:0}},Ke.createElement(ve.Z,{style:{width:264}})),Ke.createElement("span",{className:"ml8"},"%"))),Ke.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ke.createElement(Ae.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:Me},"\u53D6\u6D88"))))};function le({onFileChange:Pe}){return Ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ke.createElement("input",{type:"file",onChange:Pe}))}function pe(Pe,Me){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Ee.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",Pe),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(Gt){Me(JSON.parse(Gt.target.responseText),Pe)},!1),ft.addEventListener("error",function(Gt){console.error(Gt)},!1),ft.open("POST",`${we.KI}/api/attachments.json`),ft.send($e)}},76621:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return qe}});var te=oe(67294),Ee=oe(73935);class qe extends te.Component{constructor(ve){super(ve);const Ae=window.document;this.node=Ae.createElement("div"),Ae.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Ee.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return Ee}});var te=oe(67294);function Ee(qe,Xe){const ve=(0,te.useRef)();(0,te.useEffect)(()=>{ve.current=qe}),(0,te.useEffect)(()=>{function Ae(){ve.current()}if(Xe!==null){let se=setInterval(Ae,Xe);return()=>clearInterval(se)}},[Xe])}},44081:function(Be,it,oe){"use strict";oe.r(it),oe.d(it,{default:function(){return ht}});var te=oe(67294),Ee=oe(35973),qe=oe(11320),Xe=oe(71230),ve=oe(15746),Ae=oe(85804),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=oe(13703),Oe=Object.defineProperty,Ce=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(_e,je,Ze)=>je in _e?Oe(_e,je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):_e[je]=Ze,y=(_e,je)=>{for(var Ze in je||(je={}))ot.call(je,Ze)&&a(_e,Ze,je[Ze]);if(at)for(var Ze of at(je))ae.call(je,Ze)&&a(_e,Ze,je[Ze]);return _e},E=(_e,je)=>Ce(_e,Ke(je)),b=(_e,je)=>{var Ze={};for(var dt in _e)ot.call(_e,dt)&&je.indexOf(dt)<0&&(Ze[dt]=_e[dt]);if(_e!=null&&at)for(var dt of at(_e))je.indexOf(dt)<0&&ae.call(_e,dt)&&(Ze[dt]=_e[dt]);return Ze},x=(_e,je,Ze)=>new Promise((dt,fn)=>{var wn=Bt=>{try{zt(Ze.next(Bt))}catch(ce){fn(ce)}},Pn=Bt=>{try{zt(Ze.throw(Bt))}catch(ce){fn(ce)}},zt=Bt=>Bt.done?dt(Bt.value):Promise.resolve(Bt.value).then(wn,Pn);zt((Ze=Ze.apply(_e,je)).next())});const z=_e=>{var je=_e,{user:Ze,forumsDetail:dt,globalSetting:fn,loading:wn,dispatch:Pn}=je,zt=b(je,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ce,fe,Se;const{author_info:ke,memo:De,recommend_shixuns:st}=dt.forumsDetailData||{},Rt=()=>x(void 0,null,function*(){(ke!=null&&ke.watched?yield(0,we.Sr)({user_id:ke.login}):yield(0,we.YP)({user_id:ke.login}))&&Pn({type:"forumsDetail/setForumsDetailData",payload:E(y({},dt.forumsDetailData),{author_info:E(y({},ke),{watched:!(ke!=null&&ke.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/${ke==null?void 0:ke.login}`,target:"_blank"},(ke==null?void 0:ke.image_url)&&te.createElement("img",{src:`${qe.Z.API_SERVER}/images/${ke==null?void 0:ke.image_url}`})),te.createElement("div",{className:"tc font20"},ke==null?void 0:ke.username),te.createElement("div",{className:"tc c-grey-999"},ke==null?void 0:ke.identity),((Bt=Ze.userInfo)==null?void 0:Bt.user_id)!==(ke==null?void 0:ke.user_id)&&te.createElement(Xe.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},te.createElement(ve.Z,null,te.createElement(Ae.ZP,{type:"primary",className:"mr10",onClick:Rt},ke!=null&&ke.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(ve.Z,null,te.createElement(Ae.ZP,{className:se.privateMessage,href:`/messages/${(ce=Ze.userInfo)==null?void 0:ce.login}/message_detail?target_ids=${ke==null?void 0:ke.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((fe=De==null?void 0:De.tag)!=null&&fe.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}`},(Se=De==null?void 0:De.tag)==null?void 0:Se.map((wt,Yt)=>te.createElement("span",{key:Yt,className:"c-light-primary mr10"},wt)))),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(wt=>te.createElement("div",{className:se.recommendItem},te.createElement("a",{href:`/shixuns/${wt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:wt.id,src:`${wt.image_url}`})),te.createElement("div",{className:`${se.flex1} ml10`},te.createElement("a",{href:`/shixuns/${wt.identifier}/challenges`,target:"_blank",title:wt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},wt.name),te.createElement("div",{className:"c-grey-999"},wt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,Ee.connect)(({user:_e,forumsDetail:je,loading:Ze,globalSetting:dt})=>({user:_e,forumsDetail:je,globalSetting:dt,loading:Ze.models.forumsDetail}))(z),ne=oe(94699),re=oe.n(ne),ge=oe(85725),le=oe(2453),pe=oe(62844),Pe=oe(28802),Me=oe(50136),$e=oe(85673),ft=oe(85418),Gt=oe(83062),Jt=oe(35567),Sn=oe(84249),jt={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"},Ne=Object.defineProperty,vt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,vn=(_e,je,Ze)=>je in _e?Ne(_e,je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):_e[je]=Ze,be=(_e,je)=>{for(var Ze in je||(je={}))yt.call(je,Ze)&&vn(_e,Ze,je[Ze]);if(Qe)for(var Ze of Qe(je))sn.call(je,Ze)&&vn(_e,Ze,je[Ze]);return _e},ze=(_e,je)=>vt(_e,Pt(je)),Fe=(_e,je,Ze)=>new Promise((dt,fn)=>{var wn=Bt=>{try{zt(Ze.next(Bt))}catch(ce){fn(ce)}},Pn=Bt=>{try{zt(Ze.throw(Bt))}catch(ce){fn(ce)}},zt=Bt=>Bt.done?dt(Bt.value):Promise.resolve(Bt.value).then(wn,Pn);zt((Ze=Ze.apply(_e,je)).next())});re().locale("ZH-cn");function Dt({user:_e,vlist:je=[],dispatch:Ze,params:dt,id:fn,memo_replies:wn,forumsDetail:Pn}){return te.createElement("aside",{className:jt.comment},je.map(function(zt,Bt){var ce,fe;return te.createElement(Xe.Z,{key:Bt,className:jt.commentItem},te.createElement(ve.Z,{span:24},te.createElement(Xe.Z,null,te.createElement(ve.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===((ce=_e.userInfo)==null?void 0:ce.user_id)||zt.user_login===((fe=_e.userInfo)==null?void 0:fe.login))&&te.createElement(ve.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Gt.Z,{title:"\u5220\u9664"},te.createElement(Sn.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:()=>Fe(this,null,function*(){const Se=yield(0,we.sW)({id:zt.id}),ke=wn.find(De=>De.id===fn).children.filter(De=>De.id!==zt.id);wn.find(De=>De.id===fn).children=ke,Ze({type:"forumsDetail/setForumsDetailData",payload:ze(be({},Pn.forumsDetailData),{memo_replies:[...wn]})})})})}}))))),te.createElement(ve.Z,null,te.createElement(ge.Z,{value:zt.content})))}))}var tt=Dt,xt=oe(28706),me=Object.defineProperty,nt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,an=(_e,je,Ze)=>je in _e?me(_e,je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):_e[je]=Ze,Xt=(_e,je)=>{for(var Ze in je||(je={}))nn.call(je,Ze)&&an(_e,Ze,je[Ze]);if(tn)for(var Ze of tn(je))Un.call(je,Ze)&&an(_e,Ze,je[Ze]);return _e},Re=(_e,je)=>nt(_e,Zt(je)),Ie=(_e,je)=>{var Ze={};for(var dt in _e)nn.call(_e,dt)&&je.indexOf(dt)<0&&(Ze[dt]=_e[dt]);if(_e!=null&&tn)for(var dt of tn(_e))je.indexOf(dt)<0&&Un.call(_e,dt)&&(Ze[dt]=_e[dt]);return Ze},ye=(_e,je,Ze)=>new Promise((dt,fn)=>{var wn=Bt=>{try{zt(Ze.next(Bt))}catch(ce){fn(ce)}},Pn=Bt=>{try{zt(Ze.throw(Bt))}catch(ce){fn(ce)}},zt=Bt=>Bt.done?dt(Bt.value):Promise.resolve(Bt.value).then(wn,Pn);zt((Ze=Ze.apply(_e,je)).next())});re().locale("ZH-cn");const Ye=(_e,je)=>{var Ze=_e,{user:dt,forumsDetail:fn,globalSetting:wn,loading:Pn,dispatch:zt,handleClick:Bt}=Ze,ce=Ie(Ze,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:fe,memo_replies:Se}=fn.forumsDetailData||{},ke=(0,Ee.useParams)(),[De,st]=(0,te.useState)(""),[Rt,wt]=(0,te.useState)(""),[Yt,hn]=(0,te.useState)(-1),[Kn,Ve]=(0,te.useState)(!1),[gn,Xn]=(0,te.useState)(1),[Hn,$t]=(0,te.useState)(!1);(0,te.useImperativeHandle)(je,()=>({onMdFouch:oa})),(0,te.useEffect)(()=>{Ve((fe==null?void 0:fe.replies_count)>10)},[fe==null?void 0:fe.replies_count]);const On=()=>ye(void 0,null,function*(){var Wt;const Dn=gn+1;Xn(Dn);const jn=yield(0,we.z5)({id:ke.memoId,page:Dn});jn!=null&&jn.memo_replies&&(zt({type:"forumsDetail/setForumsDetailData",payload:Re(Xt({},fn.forumsDetailData),{memo_replies:[...Se,...jn.memo_replies]})}),Ve(((Wt=jn.memo_replies)==null?void 0:Wt.length)===10))}),ga=Wt=>{var Dn,jn,Tn,ea;return Re(Xt({},Wt),{image_url:(Dn=dt.userInfo)==null?void 0:Dn.image_url,children:[],user_id:(jn=dt.userInfo)==null?void 0:jn.user_id,user_login:(Tn=dt.userInfo)==null?void 0:Tn.login,username:(ea=dt.userInfo)==null?void 0:ea.username,time:`${(0,xt.li)((new Date().getTime()-new Date(Wt.created_at).getTime())/1e3)}\u524D`})},oa=()=>{$t(!0)};return te.createElement("section",{className:jt.wrap},!!(Se!=null&&Se.length)&&te.createElement("aside",{className:jt.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",fe.replies_count,"\uFF09")),te.createElement("aside",{className:jt.replyList},Se==null?void 0:Se.map(function(Wt,Dn){var jn;return te.createElement(Xe.Z,{gutter:[12,12],key:Dn},te.createElement(ve.Z,{flex:"40px"},te.createElement("a",{href:`/users/${Wt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${qe.Z.IMG_SERVER}/images/${Wt==null?void 0:Wt.image_url}`}))),te.createElement(ve.Z,{flex:"1"},te.createElement(Xe.Z,{align:"middle"},te.createElement(ve.Z,{span:24},te.createElement("a",{href:`/users/${Wt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},Wt==null?void 0:Wt.username)),te.createElement("span",{className:"c-light-black ml10"},Wt.time)),te.createElement(ve.Z,{span:24},te.createElement("div",{onClick:Bt},te.createElement(ge.Z,{value:Wt.content}))),!!((jn=Wt==null?void 0:Wt.children)!=null&&jn.length)&&te.createElement(tt,{user:dt,id:Wt==null?void 0:Wt.id,vlist:Wt==null?void 0:Wt.children,dispatch:zt,params:ke,memo_replies:Se,forumsDetail:fn}),te.createElement(ve.Z,{span:24,className:"mt5 c-light-black"},Yt===Dn?te.createElement("aside",null,te.createElement(Jt.Z,{onChange:Tn=>{wt(Tn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(Xe.Z,null,te.createElement(ve.Z,{span:24,className:"tr"},te.createElement(Ae.ZP,{type:"primary",size:"middle",onClick:()=>ye(this,null,function*(){if(Rt==="")le.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Tn=yield(0,we.ts)({parent_id:Wt.id,content:Rt});wt(null),Tn&&(hn(-1),Se.find(ea=>ea.id===Tn.parent_id).children.push(ga(Tn)),zt({type:"forumsDetail/setForumsDetailData",payload:Re(Xt({},fn.forumsDetailData),{memo:Re(Xt({},fe),{replies_count:fe.replies_count+1}),memo_replies:[...Se]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>hn(Dn)}),te.createElement(Gt.Z,{title:Wt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:Wt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>ye(this,null,function*(){const Tn=yield(0,we.vL)({id:Wt.id,container_type:"Memo",type:Wt.user_praise?0:1});(Tn==null?void 0:Tn.praise_count)>=0&&(Se.find(ea=>ea.id===Wt.id).user_praise=!Wt.user_praise,Se.find(ea=>ea.id===Wt.id).praise_count=Tn==null?void 0:Tn.praise_count,zt({type:"forumsDetail/setForumsDetailData",payload:Re(Xt({},fn.forumsDetailData),{memo_replies:[...Se]})}))})}),Wt.praise_count>0?Wt.praise_count:"")))))))}))),Kn&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(Xe.Z,{justify:"space-between"},te.createElement(ve.Z,null),te.createElement(ve.Z,null,Kn&&te.createElement("a",{className:"c-black",onClick:On},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:jt.reply},te.createElement(Jt.Z,{onBlur:()=>$t(!1),isFocus:Hn,defaultValue:De,id:"writeForumsReviewId",onChange:Wt=>{st(Wt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Xe.Z,null,te.createElement(ve.Z,{flex:"1"}),te.createElement(ve.Z,null,te.createElement(Ae.ZP,{type:"primary",size:"middle",onClick:()=>ye(void 0,null,function*(){if(De==="")le.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Wt=yield(0,we.ts)({parent_id:fe.id,content:De});st(null),Wt&&zt({type:"forumsDetail/setForumsDetailData",payload:Re(Xt({},fn.forumsDetailData),{memo:Re(Xt({},fe),{replies_count:fe.replies_count+1}),memo_replies:[ga(Wt),...Se]})})}})},"\u53D1\u9001")))))};var We=(0,Ee.connect)(({user:_e,forumsDetail:je,loading:Ze,globalSetting:dt})=>({user:_e,forumsDetail:je,globalSetting:dt,loading:Ze.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(Ye)),mt={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"},Ot=oe(55304),It=oe(1797),ct=oe(33054),xn=Object.defineProperty,In=Object.defineProperties,zn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,bn=(_e,je,Ze)=>je in _e?xn(_e,je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):_e[je]=Ze,At=(_e,je)=>{for(var Ze in je||(je={}))Bn.call(je,Ze)&&bn(_e,Ze,je[Ze]);if(pn)for(var Ze of pn(je))yn.call(je,Ze)&&bn(_e,Ze,je[Ze]);return _e},he=(_e,je)=>In(_e,zn(je)),Ge=(_e,je)=>{var Ze={};for(var dt in _e)Bn.call(_e,dt)&&je.indexOf(dt)<0&&(Ze[dt]=_e[dt]);if(_e!=null&&pn)for(var dt of pn(_e))je.indexOf(dt)<0&&yn.call(_e,dt)&&(Ze[dt]=_e[dt]);return Ze},Ue=(_e,je,Ze)=>new Promise((dt,fn)=>{var wn=Bt=>{try{zt(Ze.next(Bt))}catch(ce){fn(ce)}},Pn=Bt=>{try{zt(Ze.throw(Bt))}catch(ce){fn(ce)}},zt=Bt=>Bt.done?dt(Bt.value):Promise.resolve(Bt.value).then(wn,Pn);zt((Ze=Ze.apply(_e,je)).next())});const Et={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},qt=_e=>{var je=_e,{user:Ze,forumsDetail:dt,globalSetting:fn,loading:wn,dispatch:Pn}=je,zt=Ge(je,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ce,fe,Se;const{author_info:ke,memo:De,attachments_list:st}=dt.forumsDetailData||{},Rt=(0,te.useRef)(),wt=(0,te.useRef)(),Yt=()=>Ue(void 0,null,function*(){const $t={id:De.id,sticky:De.sticky?0:1},On=yield(0,we.B0)($t);(On==null?void 0:On.status)===0&&Pn({type:"forumsDetail/setForumsDetailData",payload:he(At({},dt.forumsDetailData),{memo:he(At({},De),{sticky:!(De!=null&&De.sticky)})})})}),hn=()=>Ue(void 0,null,function*(){const $t=yield(0,we.sW)({id:De==null?void 0:De.id});($t==null?void 0:$t.status)===0&&(le.ZP.success("\u5220\u9664\u6210\u529F"),Ee.history.push("/forums")),($t==null?void 0:$t.status)===-1&&Ee.history.push("/forums")}),Kn=()=>Ue(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(Pe.default,{defaultValue:Rt.current,onChange:$t=>Rt.current=$t.target.value})),onOk:()=>Ue(void 0,null,function*(){const $t=yield(0,we.eh)({id:De==null?void 0:De.id,container_type:"Memo",score:Rt.current?Number(Rt.current):0,user_id:ke==null?void 0:ke.user_id});if(Rt.current=null,($t==null?void 0:$t.code)>0){Pn({type:"forumsDetail/setForumsDetailData",payload:he(At({},dt.forumsDetailData),{memo:he(At({},De),{reward:$t==null?void 0:$t.code})})}),le.ZP.success("\u5956\u52B1\u6210\u529F");return}le.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),Ve=()=>{wt.current.onMdFouch&&wt.current.onMdFouch()},gn=()=>Ue(void 0,null,function*(){const $t=yield(0,we.vL)({id:De.id,container_type:"Memo",type:1});($t==null?void 0:$t.praise_count)>=0&&Pn({type:"forumsDetail/setForumsDetailData",payload:he(At({},dt.forumsDetailData),{memo:he(At({},De),{user_praise:!(De!=null&&De.user_praise),memo_praise_count:$t==null?void 0:$t.praise_count})})})}),Xn=te.createElement(Me.default,{className:mt.menu},((Bt=Ze.userInfo)==null?void 0:Bt.admin)&&(De==null?void 0:De.sticky)&&te.createElement(Me.default.Item,null,te.createElement("a",{onClick:()=>Yt()},"\u53D6\u6D88\u7F6E\u9876")),((ce=Ze.userInfo)==null?void 0:ce.admin)&&!(De!=null&&De.sticky)&&te.createElement(Me.default.Item,null,te.createElement("a",{onClick:()=>Yt()},"\u7F6E\xA0\xA0\u9876")),te.createElement(Me.default.Item,null,te.createElement(Ee.Link,{to:`/forums/${De==null?void 0:De.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(Me.default.Item,null,te.createElement("a",{onClick:()=>{pe.default.confirm({title:"\u63D0\u793A",icon:te.createElement(Ot.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:()=>{hn()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),Hn=$t=>{let{nodeName:On,src:ga}=$t.target;On==="IMG"&&(ct.Z.publish("preview-image",ga),console.log("src:",ga))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:mt.wrap},te.createElement($e.Z,{separator:"/",className:"mb5"},te.createElement($e.Z.Item,null,te.createElement(Ee.Link,{to:`/forums/categories/${De==null?void 0:De.forum_id}`},Et[De==null?void 0:De.forum_id])),te.createElement($e.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${mt.header}`},te.createElement(Xe.Z,{align:"middle"},te.createElement(ve.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:mt.title},De==null?void 0:De.subject),(De==null?void 0:De.sticky)&&te.createElement("span",{className:mt.top},"\u7F6E\u9876")),te.createElement(ve.Z,null,(((fe=Ze.userInfo)==null?void 0:fe.admin)||((Se=Ze.userInfo)==null?void 0:Se.user_id)===(ke==null?void 0:ke.user_id))&&te.createElement(ft.Z,{dropdownRender:()=>Xn},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(Xe.Z,{align:"middle",className:"font14"},te.createElement(ve.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,re()(De==null?void 0:De.time).fromNow()," \u66F4\u65B0")),te.createElement(ve.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${De!=null&&De.replies_count?mt.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),De==null?void 0:De.viewed_count),!!(De!=null&&De.replies_count)&&te.createElement(Gt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:Ve},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),De==null?void 0:De.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:Hn},te.createElement(ge.Z,{value:De==null?void 0:De.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${mt.flexCenter}`},te.createElement("div",{className:`${mt.like} ${De!=null&&De.user_praise?"":mt.canLike}`,onClick:gn},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,De==null?void 0:De.memo_praise_count)))),!!(st!=null&&st.length)&&te.createElement("div",{className:"mt40"},st==null?void 0:st.map($t=>te.createElement("div",{className:`c-grey-888 ${mt.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:$t==null?void 0:$t.url,title:$t==null?void 0:$t.title,className:`${mt.attachmentName} mr10`},$t==null?void 0:$t.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},$t==null?void 0:$t.filesize))))),te.createElement(We,{ref:wt,handleClick:Hn}),te.createElement(It.Z,null))};var Ut=(0,Ee.connect)(({user:_e,forumsDetail:je,loading:Ze,globalSetting:dt})=>({user:_e,forumsDetail:je,globalSetting:dt,loading:Ze.effects}))(qt),pt={flex:"flex___fgmSn"},Ln=oe(74330),on=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,An=(_e,je)=>{var Ze={};for(var dt in _e)$n.call(_e,dt)&&je.indexOf(dt)<0&&(Ze[dt]=_e[dt]);if(_e!=null&&on)for(var dt of on(_e))je.indexOf(dt)<0&&Wn.call(_e,dt)&&(Ze[dt]=_e[dt]);return Ze},Nn=(_e,je,Ze)=>new Promise((dt,fn)=>{var wn=Bt=>{try{zt(Ze.next(Bt))}catch(ce){fn(ce)}},Pn=Bt=>{try{zt(Ze.throw(Bt))}catch(ce){fn(ce)}},zt=Bt=>Bt.done?dt(Bt.value):Promise.resolve(Bt.value).then(wn,Pn);zt((Ze=Ze.apply(_e,je)).next())});const En=_e=>{var je=_e,{forumsDetail:Ze,globalSetting:dt,loading:fn,dispatch:wn}=je,Pn=An(je,["forumsDetail","globalSetting","loading","dispatch"]);const zt=(0,Ee.useParams)(),[Bt,ce]=(0,te.useState)(!1);(0,te.useEffect)(()=>{fe()},[zt.memoId]);const fe=()=>Nn(void 0,null,function*(){ce(!0);let Se=yield wn({type:"forumsDetail/getForumsDetailData",payload:{id:zt.memoId}});ce(!1)});return te.createElement(Ln.Z,{spinning:Bt},te.createElement("section",{className:`edu-container mb20 mt30 ${pt.flex}`},te.createElement(Ut,null),te.createElement(ee,null)))};var ht=(0,Ee.connect)(({forumsDetail:_e,loading:je,globalSetting:Ze})=>({forumsDetail:_e,globalSetting:Ze,loading:je.models.forumsDetail}))(En)},85673:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return jt}});var te=oe(67294),Ee=oe(13144),qe=oe.n(Ee),Xe=oe(37419),ve=oe(1337),Ae=oe(96159),se=oe(53124),we=oe(15558),Oe=oe(59690);const Ce=Ne=>{let{children:vt}=Ne;const{getPrefixCls:Pt}=te.useContext(se.E_),Qe=Pt("breadcrumb");return te.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},vt===""?vt:vt||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var Ke=Ce,at=function(Ne,vt){var Pt={};for(var Qe in Ne)Object.prototype.hasOwnProperty.call(Ne,Qe)&&vt.indexOf(Qe)<0&&(Pt[Qe]=Ne[Qe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qe=Object.getOwnPropertySymbols(Ne);yt<Qe.length;yt++)vt.indexOf(Qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Qe[yt])&&(Pt[Qe[yt]]=Ne[Qe[yt]]);return Pt};function ot(Ne,vt){if(Ne.title===void 0||Ne.title===null)return null;const Pt=Object.keys(vt).join("|");return typeof Ne.title=="object"?Ne.title:String(Ne.title).replace(new RegExp(`:(${Pt})`,"g"),(Qe,yt)=>vt[yt]||Qe)}function ae(Ne,vt,Pt,Qe){if(Pt==null)return null;const{className:yt,onClick:sn}=vt,vn=at(vt,["className","onClick"]),be=Object.assign(Object.assign({},(0,ve.Z)(vn,{data:!0,aria:!0})),{onClick:sn});return Qe!==void 0?te.createElement("a",Object.assign({},be,{className:qe()(`${Ne}-link`,yt),href:Qe}),Pt):te.createElement("span",Object.assign({},be,{className:qe()(`${Ne}-link`,yt)}),Pt)}function a(Ne,vt){return(Qe,yt,sn,vn,be)=>{if(vt)return vt(Qe,yt,sn,vn);const ze=ot(Qe,yt);return ae(Ne,Qe,ze,be)}}var y=function(Ne,vt){var Pt={};for(var Qe in Ne)Object.prototype.hasOwnProperty.call(Ne,Qe)&&vt.indexOf(Qe)<0&&(Pt[Qe]=Ne[Qe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qe=Object.getOwnPropertySymbols(Ne);yt<Qe.length;yt++)vt.indexOf(Qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Qe[yt])&&(Pt[Qe[yt]]=Ne[Qe[yt]]);return Pt};const E=Ne=>{const{prefixCls:vt,separator:Pt="/",children:Qe,menu:yt,overlay:sn,dropdownProps:vn,href:be}=Ne,Fe=(Dt=>{if(yt||sn){const tt=Object.assign({},vn);if(yt){const xt=yt||{},{items:me}=xt,nt=y(xt,["items"]);tt.menu=Object.assign(Object.assign({},nt),{items:me==null?void 0:me.map((Zt,tn)=>{var{key:nn,title:Un,label:an,path:Xt}=Zt,Re=y(Zt,["key","title","label","path"]);let Ie=an!=null?an:Un;return Xt&&(Ie=te.createElement("a",{href:`${be}${Xt}`},Ie)),Object.assign(Object.assign({},Re),{key:nn!=null?nn:tn,label:Ie})})})}else sn&&(tt.overlay=sn);return te.createElement(Oe.Z,Object.assign({placement:"bottom"},tt),te.createElement("span",{className:`${vt}-overlay-link`},Dt,te.createElement(we.Z,null)))}return Dt})(Qe);return Fe!=null?te.createElement(te.Fragment,null,te.createElement("li",null,Fe),Pt&&te.createElement(Ke,null,Pt)):null},b=Ne=>{const{prefixCls:vt,children:Pt,href:Qe}=Ne,yt=y(Ne,["prefixCls","children","href"]),{getPrefixCls:sn}=te.useContext(se.E_),vn=sn("breadcrumb",vt);return te.createElement(E,Object.assign({},yt,{prefixCls:vn}),ae(vn,yt,Pt,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(16777),ee=oe(14747),ne=oe(83559),re=oe(43259);const ge=Ne=>{const{componentCls:vt,iconCls:Pt,calc:Qe}=Ne;return{[vt]:Object.assign(Object.assign({},(0,ee.Wf)(Ne)),{color:Ne.itemColor,fontSize:Ne.fontSize,[Pt]:{fontSize:Ne.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ne.linkColor,transition:`color ${Ne.motionDurationMid}`,padding:`0 ${(0,z.unit)(Ne.paddingXXS)}`,borderRadius:Ne.borderRadiusSM,height:Ne.fontHeight,display:"inline-block",marginInline:Qe(Ne.marginXXS).mul(-1).equal(),"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover}},(0,ee.Qy)(Ne)),"li:last-child":{color:Ne.lastItemColor},[`${vt}-separator`]:{marginInline:Ne.separatorMargin,color:Ne.separatorColor},[`${vt}-link`]:{[`
> ${Pt} + span,
> ${Pt} + a
`]:{marginInlineStart:Ne.marginXXS}},[`${vt}-overlay-link`]:{borderRadius:Ne.borderRadiusSM,height:Ne.fontHeight,display:"inline-block",padding:`0 ${(0,z.unit)(Ne.paddingXXS)}`,marginInline:Qe(Ne.marginXXS).mul(-1).equal(),[`> ${Pt}`]:{marginInlineStart:Ne.marginXXS,fontSize:Ne.fontSizeIcon},"&:hover":{color:Ne.linkHoverColor,backgroundColor:Ne.colorBgTextHover,a:{color:Ne.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ne.componentCls}-rtl`]:{direction:"rtl"}})}},le=Ne=>({itemColor:Ne.colorTextDescription,lastItemColor:Ne.colorText,iconFontSize:Ne.fontSize,linkColor:Ne.colorTextDescription,linkHoverColor:Ne.colorText,separatorColor:Ne.colorTextDescription,separatorMargin:Ne.marginXS});var pe=(0,ne.I$)("Breadcrumb",Ne=>{const vt=(0,re.mergeToken)(Ne,{});return ge(vt)},le),Pe=function(Ne,vt){var Pt={};for(var Qe in Ne)Object.prototype.hasOwnProperty.call(Ne,Qe)&&vt.indexOf(Qe)<0&&(Pt[Qe]=Ne[Qe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qe=Object.getOwnPropertySymbols(Ne);yt<Qe.length;yt++)vt.indexOf(Qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Qe[yt])&&(Pt[Qe[yt]]=Ne[Qe[yt]]);return Pt};function Me(Ne){const{breadcrumbName:vt,children:Pt}=Ne,Qe=Pe(Ne,["breadcrumbName","children"]),yt=Object.assign({title:vt},Qe);return Pt&&(yt.menu={items:Pt.map(sn=>{var{breadcrumbName:vn}=sn,be=Pe(sn,["breadcrumbName"]);return Object.assign(Object.assign({},be),{title:vn})})}),yt}function $e(Ne,vt){return(0,te.useMemo)(()=>Ne||(vt?vt.map(Me):null),[Ne,vt])}var ft=function(Ne,vt){var Pt={};for(var Qe in Ne)Object.prototype.hasOwnProperty.call(Ne,Qe)&&vt.indexOf(Qe)<0&&(Pt[Qe]=Ne[Qe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qe=Object.getOwnPropertySymbols(Ne);yt<Qe.length;yt++)vt.indexOf(Qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Qe[yt])&&(Pt[Qe[yt]]=Ne[Qe[yt]]);return Pt};const Gt=(Ne,vt)=>{if(vt===void 0)return vt;let Pt=(vt||"").replace(/^\//,"");return Object.keys(Ne).forEach(Qe=>{Pt=Pt.replace(`:${Qe}`,Ne[Qe])}),Pt},Jt=Ne=>{const{prefixCls:vt,separator:Pt="/",style:Qe,className:yt,rootClassName:sn,routes:vn,items:be,children:ze,itemRender:Fe,params:Dt={}}=Ne,tt=ft(Ne,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xt,direction:me,breadcrumb:nt}=te.useContext(se.E_);let Zt;const tn=xt("breadcrumb",vt),[nn,Un,an]=pe(tn),Xt=$e(be,vn),Re=a(tn,Fe);if(Xt&&Xt.length>0){const Ye=[],We=be||vn;Zt=Xt.map((mt,Ot)=>{const{path:It,key:ct,type:xn,menu:In,overlay:zn,onClick:pn,className:Bn,separator:yn,dropdownProps:bn}=mt,At=Gt(Dt,It);At!==void 0&&Ye.push(At);const he=ct!=null?ct:Ot;if(xn==="separator")return te.createElement(Ke,{key:he},yn);const Ge={},Ue=Ot===Xt.length-1;In?Ge.menu=In:zn&&(Ge.overlay=zn);let{href:Et}=mt;return Ye.length&&At!==void 0&&(Et=`#/${Ye.join("/")}`),te.createElement(E,Object.assign({key:he},Ge,(0,ve.Z)(mt,{data:!0,aria:!0}),{className:Bn,dropdownProps:bn,href:Et,separator:Ue?"":Pt,onClick:pn,prefixCls:tn}),Re(mt,Dt,We,Ye,Et))})}else if(ze){const Ye=(0,Xe.Z)(ze).length;Zt=(0,Xe.Z)(ze).map((We,mt)=>{if(!We)return We;const Ot=mt===Ye-1;return(0,Ae.Tm)(We,{separator:Ot?"":Pt,key:mt})})}const Ie=qe()(tn,nt==null?void 0:nt.className,{[`${tn}-rtl`]:me==="rtl"},yt,sn,Un,an),ye=Object.assign(Object.assign({},nt==null?void 0:nt.style),Qe);return nn(te.createElement("nav",Object.assign({className:Ie,style:ye},tt),te.createElement("ol",null,Zt)))};Jt.Item=x,Jt.Separator=Ke;var Sn=Jt,jt=Sn},59690:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return At}});var te=oe(67294),Ee=oe(55007),qe=oe(79269),Xe=oe(13144),ve=oe.n(Xe);function Ae(){return Ae=Object.assign?Object.assign.bind():function(he){for(var Ge=1;Ge<arguments.length;Ge++){var Ue=arguments[Ge];for(var Et in Ue)Object.prototype.hasOwnProperty.call(Ue,Et)&&(he[Et]=Ue[Et])}return he},Ae.apply(this,arguments)}function se(he){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},se(he)}function we(he,Ge){if(se(he)!=="object"||he===null)return he;var Ue=he[Symbol.toPrimitive];if(Ue!==void 0){var Et=Ue.call(he,Ge||"default");if(se(Et)!=="object")return Et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ge==="string"?String:Number)(he)}function Oe(he){var Ge=we(he,"string");return se(Ge)==="symbol"?Ge:String(Ge)}function Ce(he,Ge,Ue){return Ge=Oe(Ge),Ge in he?Object.defineProperty(he,Ge,{value:Ue,enumerable:!0,configurable:!0,writable:!0}):he[Ge]=Ue,he}function Ke(he){if(Array.isArray(he))return he}function at(he,Ge){var Ue=he==null?null:typeof Symbol!="undefined"&&he[Symbol.iterator]||he["@@iterator"];if(Ue!=null){var Et,qt,Ut,pt,Ln=[],on=!0,$n=!1;try{if(Ut=(Ue=Ue.call(he)).next,Ge===0){if(Object(Ue)!==Ue)return;on=!1}else for(;!(on=(Et=Ut.call(Ue)).done)&&(Ln.push(Et.value),Ln.length!==Ge);on=!0);}catch(Wn){$n=!0,qt=Wn}finally{try{if(!on&&Ue.return!=null&&(pt=Ue.return(),Object(pt)!==pt))return}finally{if($n)throw qt}}return Ln}}function ot(he,Ge){(Ge==null||Ge>he.length)&&(Ge=he.length);for(var Ue=0,Et=new Array(Ge);Ue<Ge;Ue++)Et[Ue]=he[Ue];return Et}function ae(he,Ge){if(he){if(typeof he=="string")return ot(he,Ge);var Ue=Object.prototype.toString.call(he).slice(8,-1);if(Ue==="Object"&&he.constructor&&(Ue=he.constructor.name),Ue==="Map"||Ue==="Set")return Array.from(he);if(Ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ue))return ot(he,Ge)}}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(he,Ge){return Ke(he)||at(he,Ge)||ae(he,Ge)||a()}function E(he,Ge){if(he==null)return{};var Ue={},Et=Object.keys(he),qt,Ut;for(Ut=0;Ut<Et.length;Ut++)qt=Et[Ut],!(Ge.indexOf(qt)>=0)&&(Ue[qt]=he[qt]);return Ue}function b(he,Ge){if(he==null)return{};var Ue=E(he,Ge),Et,qt;if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(he);for(qt=0;qt<Ut.length;qt++)Et=Ut[qt],!(Ge.indexOf(Et)>=0)&&Object.prototype.propertyIsEnumerable.call(he,Et)&&(Ue[Et]=he[Et])}return Ue}var x=oe(98280),z=oe(17689),ee=oe.n(z),ne=oe(17799),re=oe(92389),ge=oe(96523),le=re.Z.ESC,pe=re.Z.TAB;function Pe(he){var Ge=he.visible,Ue=he.triggerRef,Et=he.onVisibleChange,qt=he.autoFocus,Ut=he.overlayRef,pt=te.useRef(!1),Ln=function(){if(Ge){var An,Nn;(An=Ue.current)===null||An===void 0||(Nn=An.focus)===null||Nn===void 0||Nn.call(An),Et==null||Et(!1)}},on=function(){var An;return(An=Ut.current)!==null&&An!==void 0&&An.focus?(Ut.current.focus(),pt.current=!0,!0):!1},$n=function(An){switch(An.keyCode){case le:Ln();break;case pe:{var Nn=!1;pt.current||(Nn=on()),Nn?An.preventDefault():Ln();break}}};te.useEffect(function(){return Ge?(window.addEventListener("keydown",$n),qt&&(0,ge.Z)(on,3),function(){window.removeEventListener("keydown",$n),pt.current=!1}):function(){pt.current=!1}},[Ge])}var Me=(0,te.forwardRef)(function(he,Ge){var Ue=he.overlay,Et=he.arrow,qt=he.prefixCls,Ut=(0,te.useMemo)(function(){var Ln;return typeof Ue=="function"?Ln=Ue():Ln=Ue,Ln},[Ue]),pt=(0,ne.sQ)(Ge,(0,ne.C4)(Ut));return te.createElement(te.Fragment,null,Et&&te.createElement("div",{className:"".concat(qt,"-arrow")}),te.cloneElement(Ut,{ref:(0,ne.Yr)(Ut)?pt:void 0}))}),$e=Me,ft={adjustX:1,adjustY:1},Gt=[0,0],Jt={topLeft:{points:["bl","tl"],overflow:ft,offset:[0,-4],targetOffset:Gt},top:{points:["bc","tc"],overflow:ft,offset:[0,-4],targetOffset:Gt},topRight:{points:["br","tr"],overflow:ft,offset:[0,-4],targetOffset:Gt},bottomLeft:{points:["tl","bl"],overflow:ft,offset:[0,4],targetOffset:Gt},bottom:{points:["tc","bc"],overflow:ft,offset:[0,4],targetOffset:Gt},bottomRight:{points:["tr","br"],overflow:ft,offset:[0,4],targetOffset:Gt}},Sn=Jt,jt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ne(he,Ge){var Ue,Et=he.arrow,qt=Et===void 0?!1:Et,Ut=he.prefixCls,pt=Ut===void 0?"rc-dropdown":Ut,Ln=he.transitionName,on=he.animation,$n=he.align,Wn=he.placement,An=Wn===void 0?"bottomLeft":Wn,Nn=he.placements,En=Nn===void 0?Sn:Nn,ht=he.getPopupContainer,_e=he.showAction,je=he.hideAction,Ze=he.overlayClassName,dt=he.overlayStyle,fn=he.visible,wn=he.trigger,Pn=wn===void 0?["hover"]:wn,zt=he.autoFocus,Bt=he.overlay,ce=he.children,fe=he.onVisibleChange,Se=b(he,jt),ke=te.useState(),De=y(ke,2),st=De[0],Rt=De[1],wt="visible"in he?fn:st,Yt=te.useRef(null),hn=te.useRef(null),Kn=te.useRef(null);te.useImperativeHandle(Ge,function(){return Yt.current});var Ve=function(Dn){Rt(Dn),fe==null||fe(Dn)};Pe({visible:wt,triggerRef:Kn,onVisibleChange:Ve,autoFocus:zt,overlayRef:hn});var gn=function(Dn){var jn=he.onOverlayClick;Rt(!1),jn&&jn(Dn)},Xn=function(){return te.createElement($e,{ref:hn,overlay:Bt,prefixCls:pt,arrow:qt})},Hn=function(){return typeof Bt=="function"?Xn:Xn()},$t=function(){var Dn=he.minOverlayWidthMatchTrigger,jn=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Dn:!jn},On=function(){var Dn=he.openClassName;return Dn!==void 0?Dn:"".concat(pt,"-open")},ga=te.cloneElement(ce,{className:ee()((Ue=ce.props)===null||Ue===void 0?void 0:Ue.className,wt&&On()),ref:(0,ne.Yr)(ce)?(0,ne.sQ)(Kn,(0,ne.C4)(ce)):void 0}),oa=je;return!oa&&Pn.indexOf("contextMenu")!==-1&&(oa=["click"]),te.createElement(x.Z,Ae({builtinPlacements:En},Se,{prefixCls:pt,ref:Yt,popupClassName:ee()(Ze,Ce({},"".concat(pt,"-show-arrow"),qt)),popupStyle:dt,action:Pn,showAction:_e,hideAction:oa,popupPlacement:An,popupAlign:$n,popupTransitionName:Ln,popupAnimation:on,popupVisible:wt,stretch:$t()?"minWidth":"",popup:Hn(),onPopupVisibleChange:Ve,onPopupClick:gn,getPopupContainer:ht}),ga)}var vt=te.forwardRef(Ne),Pt=vt,Qe=oe(77527),yt=oe(5663),sn=oe(10366),vn=oe(87263),ze=he=>typeof he!="object"&&typeof he!="function"||he===null,Fe=oe(80636),Dt=oe(8745),tt=oe(96159),xt=oe(27288),me=oe(43945),nt=oe(53124),Zt=oe(35792),tn=oe(50136),nn=oe(76529),Un=oe(15729),an=oe(16777),Xt=oe(14747),Re=oe(67771),Ie=oe(33297),ye=oe(50438),Ye=oe(97414),We=oe(79511),mt=oe(83559),Ot=oe(43259),ct=he=>{const{componentCls:Ge,menuCls:Ue,colorError:Et,colorTextLightSolid:qt}=he,Ut=`${Ue}-item`;return{[`${Ge}, ${Ge}-menu-submenu`]:{[`${Ue} ${Ut}`]:{[`&${Ut}-danger:not(${Ut}-disabled)`]:{color:Et,"&:hover":{color:qt,backgroundColor:Et}}}}}};const xn=he=>{const{componentCls:Ge,menuCls:Ue,zIndexPopup:Et,dropdownArrowDistance:qt,sizePopupArrow:Ut,antCls:pt,iconCls:Ln,motionDurationMid:on,paddingBlock:$n,fontSize:Wn,dropdownEdgeChildPadding:An,colorTextDisabled:Nn,fontSizeIcon:En,controlPaddingHorizontal:ht,colorBgElevated:_e}=he;return[{[Ge]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Et,display:"block","&::before":{position:"absolute",insetBlock:he.calc(Ut).div(2).sub(qt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${pt}-btn`]:{[`& > ${Ln}-down, & > ${pt}-btn-icon > ${Ln}-down`]:{fontSize:En}},[`${Ge}-wrap`]:{position:"relative",[`${pt}-btn > ${Ln}-down`]:{fontSize:En},[`${Ln}-down::before`]:{transition:`transform ${on}`}},[`${Ge}-wrap-open`]:{[`${Ln}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${pt}-slide-down-enter${pt}-slide-down-enter-active${Ge}-placement-bottomLeft,
&${pt}-slide-down-appear${pt}-slide-down-appear-active${Ge}-placement-bottomLeft,
&${pt}-slide-down-enter${pt}-slide-down-enter-active${Ge}-placement-bottom,
&${pt}-slide-down-appear${pt}-slide-down-appear-active${Ge}-placement-bottom,
&${pt}-slide-down-enter${pt}-slide-down-enter-active${Ge}-placement-bottomRight,
&${pt}-slide-down-appear${pt}-slide-down-appear-active${Ge}-placement-bottomRight`]:{animationName:Re.fJ},[`&${pt}-slide-up-enter${pt}-slide-up-enter-active${Ge}-placement-topLeft,
&${pt}-slide-up-appear${pt}-slide-up-appear-active${Ge}-placement-topLeft,
&${pt}-slide-up-enter${pt}-slide-up-enter-active${Ge}-placement-top,
&${pt}-slide-up-appear${pt}-slide-up-appear-active${Ge}-placement-top,
&${pt}-slide-up-enter${pt}-slide-up-enter-active${Ge}-placement-topRight,
&${pt}-slide-up-appear${pt}-slide-up-appear-active${Ge}-placement-topRight`]:{animationName:Re.Qt},[`&${pt}-slide-down-leave${pt}-slide-down-leave-active${Ge}-placement-bottomLeft,
&${pt}-slide-down-leave${pt}-slide-down-leave-active${Ge}-placement-bottom,
&${pt}-slide-down-leave${pt}-slide-down-leave-active${Ge}-placement-bottomRight`]:{animationName:Re.Uw},[`&${pt}-slide-up-leave${pt}-slide-up-leave-active${Ge}-placement-topLeft,
&${pt}-slide-up-leave${pt}-slide-up-leave-active${Ge}-placement-top,
&${pt}-slide-up-leave${pt}-slide-up-leave-active${Ge}-placement-topRight`]:{animationName:Re.ly}}},(0,Ye.ZP)(he,_e,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ge} ${Ue}`]:{position:"relative",margin:0},[`${Ue}-submenu-popup`]:{position:"absolute",zIndex:Et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ge}, ${Ge}-menu-submenu`]:Object.assign(Object.assign({},(0,Xt.Wf)(he)),{[Ue]:Object.assign(Object.assign({padding:An,listStyleType:"none",backgroundColor:_e,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,Xt.Qy)(he)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ue}-item-group-title`]:{padding:`${(0,an.unit)($n)} ${(0,an.unit)(ht)}`,color:he.colorTextDescription,transition:`all ${on}`},[`${Ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ue}-item-icon`]:{minWidth:Wn,marginInlineEnd:he.marginXS,fontSize:he.fontSizeSM},[`${Ue}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${on}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ue}-item-extra`]:{paddingInlineStart:he.padding,marginInlineStart:"auto",fontSize:he.fontSizeSM,color:he.colorTextDescription}},[`${Ue}-item, ${Ue}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,an.unit)($n)} ${(0,an.unit)(ht)}`,color:he.colorText,fontWeight:"normal",fontSize:Wn,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${on}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,Xt.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:Nn,cursor:"not-allowed","&:hover":{color:Nn,backgroundColor:_e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,an.unit)(he.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${Ge}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${Ge}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:he.colorTextDescription,fontSize:En,fontStyle:"normal"}}}),[`${Ue}-item-group-list`]:{margin:`0 ${(0,an.unit)(he.marginXS)}`,padding:0,listStyle:"none"},[`${Ue}-submenu-title`]:{paddingInlineEnd:he.calc(ht).add(he.fontSizeSM).equal()},[`${Ue}-submenu-vertical`]:{position:"relative"},[`${Ue}-submenu${Ue}-submenu-disabled ${Ge}-menu-submenu-title`]:{[`&, ${Ge}-menu-submenu-arrow-icon`]:{color:Nn,backgroundColor:_e,cursor:"not-allowed"}},[`${Ue}-submenu-selected ${Ge}-menu-submenu-title`]:{color:he.colorPrimary}})})},[(0,Re.oN)(he,"slide-up"),(0,Re.oN)(he,"slide-down"),(0,Ie.Fm)(he,"move-up"),(0,Ie.Fm)(he,"move-down"),(0,ye._y)(he,"zoom-big")]]},In=he=>Object.assign(Object.assign({zIndexPopup:he.zIndexPopupBase+50,paddingBlock:(he.controlHeight-he.fontSize*he.lineHeight)/2},(0,Ye.wZ)({contentRadius:he.borderRadiusLG,limitVerticalRadius:!0})),(0,We.w)(he));var zn=(0,mt.I$)("Dropdown",he=>{const{marginXXS:Ge,sizePopupArrow:Ue,paddingXXS:Et,componentCls:qt}=he,Ut=(0,Ot.mergeToken)(he,{menuCls:`${qt}-menu`,dropdownArrowDistance:he.calc(Ue).div(2).add(Ge).equal(),dropdownEdgeChildPadding:Et});return[xn(Ut),ct(Ut)]},In,{resetStyle:!1});const pn=null,Bn=he=>{var Ge;const{menu:Ue,arrow:Et,prefixCls:qt,children:Ut,trigger:pt,disabled:Ln,dropdownRender:on,getPopupContainer:$n,overlayClassName:Wn,rootClassName:An,overlayStyle:Nn,open:En,onOpenChange:ht,visible:_e,onVisibleChange:je,mouseEnterDelay:Ze=.15,mouseLeaveDelay:dt=.1,autoAdjustOverflow:fn=!0,placement:wn="",overlay:Pn,transitionName:zt}=he,{getPopupContainer:Bt,getPrefixCls:ce,direction:fe,dropdown:Se}=te.useContext(nt.E_),ke=(0,xt.ln)("Dropdown"),De=te.useMemo(()=>{const Te=ce();return zt!==void 0?zt:wn.includes("top")?`${Te}-slide-down`:`${Te}-slide-up`},[ce,wn,zt]),st=te.useMemo(()=>wn?wn.includes("Center")?wn.slice(0,wn.indexOf("Center")):wn:fe==="rtl"?"bottomRight":"bottomLeft",[wn,fe]),Rt=ce("dropdown",qt),wt=(0,Zt.Z)(Rt),[Yt,hn,Kn]=zn(Rt,wt),[,Ve]=(0,Un.ZP)(),gn=te.Children.only(ze(Ut)?te.createElement("span",null,Ut):Ut),Xn=(0,tt.Tm)(gn,{className:ve()(`${Rt}-trigger`,{[`${Rt}-rtl`]:fe==="rtl"},gn.props.className),disabled:(Ge=gn.props.disabled)!==null&&Ge!==void 0?Ge:Ln}),Hn=Ln?[]:pt,$t=!!(Hn!=null&&Hn.includes("contextMenu")),[On,ga]=(0,yt.Z)(!1,{value:En!=null?En:_e}),oa=(0,Qe.Z)(Te=>{ht==null||ht(Te,{source:"trigger"}),je==null||je(Te),ga(Te)}),Wt=ve()(Wn,An,hn,Kn,wt,Se==null?void 0:Se.className,{[`${Rt}-rtl`]:fe==="rtl"}),Dn=(0,Fe.Z)({arrowPointAtCenter:typeof Et=="object"&&Et.pointAtCenter,autoAdjustOverflow:fn,offset:Ve.marginXXS,arrowWidth:Et?Ve.sizePopupArrow:0,borderRadius:Ve.borderRadius}),jn=te.useCallback(()=>{Ue!=null&&Ue.selectable&&(Ue!=null&&Ue.multiple)||(ht==null||ht(!1,{source:"menu"}),ga(!1))},[Ue==null?void 0:Ue.selectable,Ue==null?void 0:Ue.multiple]),Tn=()=>{let Te;return Ue!=null&&Ue.items?Te=te.createElement(tn.default,Object.assign({},Ue)):typeof Pn=="function"?Te=Pn():Te=Pn,on&&(Te=on(Te)),Te=te.Children.only(typeof Te=="string"?te.createElement("span",null,Te):Te),te.createElement(nn.J,{prefixCls:`${Rt}-menu`,rootClassName:ve()(Kn,wt),expandIcon:te.createElement("span",{className:`${Rt}-menu-submenu-arrow`},fe==="rtl"?te.createElement(Ee.Z,{className:`${Rt}-menu-submenu-arrow-icon`}):te.createElement(qe.Z,{className:`${Rt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:jn,validator:ro=>{let{mode:ja}=ro}},Te)},[ea,$a]=(0,vn.Cn)("Dropdown",Nn==null?void 0:Nn.zIndex);let Za=te.createElement(Pt,Object.assign({alignPoint:$t},(0,sn.Z)(he,["rootClassName"]),{mouseEnterDelay:Ze,mouseLeaveDelay:dt,visible:On,builtinPlacements:Dn,arrow:!!Et,overlayClassName:Wt,prefixCls:Rt,getPopupContainer:$n||Bt,transitionName:De,trigger:Hn,overlay:Tn,placement:st,onVisibleChange:oa,overlayStyle:Object.assign(Object.assign(Object.assign({},Se==null?void 0:Se.style),Nn),{zIndex:ea})}),Xn);return ea&&(Za=te.createElement(me.Z.Provider,{value:$a},Za)),Yt(Za)},yn=(0,Dt.Z)(Bn,"align",void 0,"dropdown",he=>he),bn=he=>te.createElement(yn,Object.assign({},he),te.createElement("span",null));Bn._InternalPanelDoNotUseOrYouWillBeFired=bn;var At=Bn},85418:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return ae}});var te=oe(59690),Ee=oe(67294),qe=oe(64582),Xe=oe(13144),ve=oe.n(Xe),Ae=oe(85804),se=oe(53124),we=oe(78957),Oe=oe(4173),Ce=function(a,y){var E={};for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&y.indexOf(b)<0&&(E[b]=a[b]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,b=Object.getOwnPropertySymbols(a);x<b.length;x++)y.indexOf(b[x])<0&&Object.prototype.propertyIsEnumerable.call(a,b[x])&&(E[b[x]]=a[b[x]]);return E};const Ke=a=>{const{getPopupContainer:y,getPrefixCls:E,direction:b}=Ee.useContext(se.E_),{prefixCls:x,type:z="default",danger:ee,disabled:ne,loading:re,onClick:ge,htmlType:le,children:pe,className:Pe,menu:Me,arrow:$e,autoFocus:ft,overlay:Gt,trigger:Jt,align:Sn,open:jt,onOpenChange:Ne,placement:vt,getPopupContainer:Pt,href:Qe,icon:yt=Ee.createElement(qe.Z,null),title:sn,buttonsRender:vn=Ye=>Ye,mouseEnterDelay:be,mouseLeaveDelay:ze,overlayClassName:Fe,overlayStyle:Dt,destroyPopupOnHide:tt,dropdownRender:xt}=a,me=Ce(a,["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"]),nt=E("dropdown",x),Zt=`${nt}-button`,tn={menu:Me,arrow:$e,autoFocus:ft,align:Sn,disabled:ne,trigger:ne?[]:Jt,onOpenChange:Ne,getPopupContainer:Pt||y,mouseEnterDelay:be,mouseLeaveDelay:ze,overlayClassName:Fe,overlayStyle:Dt,destroyPopupOnHide:tt,dropdownRender:xt},{compactSize:nn,compactItemClassnames:Un}=(0,Oe.ri)(nt,b),an=ve()(Zt,Un,Pe);"overlay"in a&&(tn.overlay=Gt),"open"in a&&(tn.open=jt),"placement"in a?tn.placement=vt:tn.placement=b==="rtl"?"bottomLeft":"bottomRight";const Xt=Ee.createElement(Ae.ZP,{type:z,danger:ee,disabled:ne,loading:re,onClick:ge,htmlType:le,href:Qe,title:sn},pe),Re=Ee.createElement(Ae.ZP,{type:z,danger:ee,icon:yt}),[Ie,ye]=vn([Xt,Re]);return Ee.createElement(we.Z.Compact,Object.assign({className:an,size:nn,block:!0},me),Ie,Ee.createElement(te.Z,Object.assign({},tn),ye))};Ke.__ANT_BUTTON=!0;var at=Ke;const ot=te.Z;ot.Button=at;var ae=ot},25787:function(Be,it,oe){"use strict";oe.d(it,{D:function(){return ge},Z:function(){return Pe}});var te=oe(67294),Ee=oe(83963),qe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Xe=qe,ve=oe(84180),Ae=function($e,ft){return te.createElement(ve.Z,(0,Ee.Z)({},$e,{ref:ft,icon:Xe}))},se=te.forwardRef(Ae),we=se,Oe=oe(55007),Ce=oe(79269),Ke=oe(13144),at=oe.n(Ke),ot=oe(10366),ae=oe(53124),a=oe(82401),y=oe(16777),E=oe(24793),b=oe(83559);const x=Me=>{const{componentCls:$e,siderBg:ft,motionDurationMid:Gt,motionDurationSlow:Jt,antCls:Sn,triggerHeight:jt,triggerColor:Ne,triggerBg:vt,headerHeight:Pt,zeroTriggerWidth:Qe,zeroTriggerHeight:yt,borderRadiusLG:sn,lightSiderBg:vn,lightTriggerColor:be,lightTriggerBg:ze,bodyBg:Fe}=Me;return{[$e]:{position:"relative",minWidth:0,background:ft,transition:`all ${Gt}, background 0s`,"&-has-trigger":{paddingBottom:jt},"&-right":{order:1},[`${$e}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Sn}-menu${Sn}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${$e}-children`]:{overflow:"hidden"},[`${$e}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:jt,color:Ne,lineHeight:(0,y.unit)(jt),textAlign:"center",background:vt,cursor:"pointer",transition:`all ${Gt}`},[`${$e}-zero-width-trigger`]:{position:"absolute",top:Pt,insetInlineEnd:Me.calc(Qe).mul(-1).equal(),zIndex:1,width:Qe,height:yt,color:Ne,fontSize:Me.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ft,borderRadius:`0 ${(0,y.unit)(sn)} ${(0,y.unit)(sn)} 0`,cursor:"pointer",transition:`background ${Jt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Jt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Me.calc(Qe).mul(-1).equal(),borderRadius:`${(0,y.unit)(sn)} 0 0 ${(0,y.unit)(sn)}`}},"&-light":{background:vn,[`${$e}-trigger`]:{color:be,background:ze},[`${$e}-zero-width-trigger`]:{color:be,background:ze,border:`1px solid ${Fe}`,borderInlineStart:0}}}}};var z=(0,b.I$)(["Layout","Sider"],Me=>[x(Me)],E.eh,{deprecatedTokens:E.jn}),ee=function(Me,$e){var ft={};for(var Gt in Me)Object.prototype.hasOwnProperty.call(Me,Gt)&&$e.indexOf(Gt)<0&&(ft[Gt]=Me[Gt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Gt=Object.getOwnPropertySymbols(Me);Jt<Gt.length;Jt++)$e.indexOf(Gt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Gt[Jt])&&(ft[Gt[Jt]]=Me[Gt[Jt]]);return ft};const ne={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},re=Me=>!Number.isNaN(Number.parseFloat(Me))&&isFinite(Me),ge=te.createContext({}),le=(()=>{let Me=0;return function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Me+=1,`${$e}${Me}`}})();var Pe=te.forwardRef((Me,$e)=>{const{prefixCls:ft,className:Gt,trigger:Jt,children:Sn,defaultCollapsed:jt=!1,theme:Ne="dark",style:vt={},collapsible:Pt=!1,reverseArrow:Qe=!1,width:yt=200,collapsedWidth:sn=80,zeroWidthTriggerStyle:vn,breakpoint:be,onCollapse:ze,onBreakpoint:Fe}=Me,Dt=ee(Me,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:tt}=(0,te.useContext)(a.V),[xt,me]=(0,te.useState)("collapsed"in Me?Me.collapsed:jt),[nt,Zt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in Me&&me(Me.collapsed)},[Me.collapsed]);const tn=(At,he)=>{"collapsed"in Me||me(At),ze==null||ze(At,he)},{getPrefixCls:nn,direction:Un}=(0,te.useContext)(ae.E_),an=nn("layout-sider",ft),[Xt,Re,Ie]=z(an),ye=(0,te.useRef)(null);ye.current=At=>{Zt(At.matches),Fe==null||Fe(At.matches),xt!==At.matches&&tn(At.matches,"responsive")},(0,te.useEffect)(()=>{function At(Ge){return ye.current(Ge)}let he;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&be&&be in ne){he=Ge(`screen and (max-width: ${ne[be]})`);try{he.addEventListener("change",At)}catch(Ue){he.addListener(At)}At(he)}}return()=>{try{he==null||he.removeEventListener("change",At)}catch(Ge){he==null||he.removeListener(At)}}},[be]),(0,te.useEffect)(()=>{const At=le("ant-sider-");return tt.addSider(At),()=>tt.removeSider(At)},[]);const Ye=()=>{tn(!xt,"clickTrigger")},We=(0,ot.Z)(Dt,["collapsed"]),mt=xt?sn:yt,Ot=re(mt)?`${mt}px`:String(mt),It=parseFloat(String(sn||0))===0?te.createElement("span",{onClick:Ye,className:at()(`${an}-zero-width-trigger`,`${an}-zero-width-trigger-${Qe?"right":"left"}`),style:vn},Jt||te.createElement(we,null)):null,ct=Un==="rtl"==!Qe,zn={expanded:ct?te.createElement(Ce.Z,null):te.createElement(Oe.Z,null),collapsed:ct?te.createElement(Oe.Z,null):te.createElement(Ce.Z,null)}[xt?"collapsed":"expanded"],pn=Jt!==null?It||te.createElement("div",{className:`${an}-trigger`,onClick:Ye,style:{width:Ot}},Jt||zn):null,Bn=Object.assign(Object.assign({},vt),{flex:`0 0 ${Ot}`,maxWidth:Ot,minWidth:Ot,width:Ot}),yn=at()(an,`${an}-${Ne}`,{[`${an}-collapsed`]:!!xt,[`${an}-has-trigger`]:Pt&&Jt!==null&&!It,[`${an}-below`]:!!nt,[`${an}-zero-width`]:parseFloat(Ot)===0},Gt,Re,Ie),bn=te.useMemo(()=>({siderCollapsed:xt}),[xt]);return Xt(te.createElement(ge.Provider,{value:bn},te.createElement("aside",Object.assign({className:yn},We,{style:Bn,ref:$e}),te.createElement("div",{className:`${an}-children`},Sn),Pt||nt&&It?pn:null)))})},82401:function(Be,it,oe){"use strict";oe.d(it,{V:function(){return Ee}});var te=oe(67294);const Ee=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24793:function(Be,it,oe){"use strict";oe.d(it,{eh:function(){return Xe},jn:function(){return ve}});var te=oe(16777),Ee=oe(83559);const qe=Ae=>{const{antCls:se,componentCls:we,colorText:Oe,footerBg:Ce,headerHeight:Ke,headerPadding:at,headerColor:ot,footerPadding:ae,fontSize:a,bodyBg:y,headerBg:E}=Ae;return{[we]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${we}-has-sider`]:{flexDirection:"row",[`> ${we}, > ${we}-content`]:{width:0}},[`${we}-header, &${we}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${we}-header`]:{height:Ke,padding:at,color:ot,lineHeight:(0,te.unit)(Ke),background:E,[`${se}-menu`]:{lineHeight:"inherit"}},[`${we}-footer`]:{padding:ae,color:Oe,fontSize:a,background:Ce},[`${we}-content`]:{flex:"auto",color:Oe,minHeight:0}}},Xe=Ae=>{const{colorBgLayout:se,controlHeight:we,controlHeightLG:Oe,colorText:Ce,controlHeightSM:Ke,marginXXS:at,colorTextLightSolid:ot,colorBgContainer:ae}=Ae,a=Oe*1.25;return{colorBgHeader:"#001529",colorBgBody:se,colorBgTrigger:"#002140",bodyBg:se,headerBg:"#001529",headerHeight:we*2,headerPadding:`0 ${a}px`,headerColor:Ce,footerPadding:`${Ke}px ${a}px`,footerBg:se,siderBg:"#001529",triggerHeight:Oe+at*2,triggerBg:"#002140",triggerColor:ot,zeroTriggerWidth:Oe,zeroTriggerHeight:Oe,lightSiderBg:ae,lightTriggerBg:ae,lightTriggerColor:Ce}},ve=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];it.ZP=(0,Ee.I$)("Layout",Ae=>[qe(Ae)],Xe,{deprecatedTokens:ve})},76529:function(Be,it,oe){"use strict";oe.d(it,{J:function(){return Ae}});var te=oe(67294),Ee=oe(17799),qe=oe(89942),Xe=function(se,we){var Oe={};for(var Ce in se)Object.prototype.hasOwnProperty.call(se,Ce)&&we.indexOf(Ce)<0&&(Oe[Ce]=se[Ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ce=Object.getOwnPropertySymbols(se);Ke<Ce.length;Ke++)we.indexOf(Ce[Ke])<0&&Object.prototype.propertyIsEnumerable.call(se,Ce[Ke])&&(Oe[Ce[Ke]]=se[Ce[Ke]]);return Oe};const ve=te.createContext(null),Ae=te.forwardRef((se,we)=>{const{children:Oe}=se,Ce=Xe(se,["children"]),Ke=te.useContext(ve),at=te.useMemo(()=>Object.assign(Object.assign({},Ke),Ce),[Ke,Ce.prefixCls,Ce.mode,Ce.selectable,Ce.rootClassName]),ot=(0,Ee.t4)(Oe),ae=(0,Ee.x1)(we,ot?(0,Ee.C4)(Oe):null);return te.createElement(ve.Provider,{value:at},te.createElement(qe.Z,{space:!0},ot?te.cloneElement(Oe,{ref:ae}):Oe))});it.Z=ve},50136:function(Be,it,oe){"use strict";oe.d(it,{default:function(){return Xt}});var te=oe(67294),Ee=oe(78595),qe=oe(25787),Xe=oe(64582),ve=oe(13144),Ae=oe.n(ve),se=oe(77527),we=oe(10366),Oe=oe(33603),Ce=oe(96159),Ke=oe(53124),at=oe(35792),ae=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),a=function(Re,Ie){var ye={};for(var Ye in Re)Object.prototype.hasOwnProperty.call(Re,Ye)&&Ie.indexOf(Ye)<0&&(ye[Ye]=Re[Ye]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ye=Object.getOwnPropertySymbols(Re);We<Ye.length;We++)Ie.indexOf(Ye[We])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ye[We])&&(ye[Ye[We]]=Re[Ye[We]]);return ye},E=Re=>{const{prefixCls:Ie,className:ye,dashed:Ye}=Re,We=a(Re,["prefixCls","className","dashed"]),{getPrefixCls:mt}=te.useContext(Ke.E_),Ot=mt("menu",Ie),It=Ae()({[`${Ot}-item-divider-dashed`]:!!Ye},ye);return te.createElement(Ee.iz,Object.assign({className:It},We))},b=oe(37419),x=oe(83062),ee=Re=>{var Ie;const{className:ye,children:Ye,icon:We,title:mt,danger:Ot,extra:It}=Re,{prefixCls:ct,firstLevel:xn,direction:In,disableMenuItemTitleTooltip:zn,inlineCollapsed:pn}=te.useContext(ae),Bn=Ue=>{const Et=Ye==null?void 0:Ye[0],qt=te.createElement("span",{className:Ae()(`${ct}-title-content`,{[`${ct}-title-content-with-extra`]:!!It||It===0})},Ye);return(!We||te.isValidElement(Ye)&&Ye.type==="span")&&Ye&&Ue&&xn&&typeof Et=="string"?te.createElement("div",{className:`${ct}-inline-collapsed-noicon`},Et.charAt(0)):qt},{siderCollapsed:yn}=te.useContext(qe.D);let bn=mt;typeof mt=="undefined"?bn=xn?Ye:"":mt===!1&&(bn="");const At={title:bn};!yn&&!pn&&(At.title=null,At.open=!1);const he=(0,b.Z)(Ye).length;let Ge=te.createElement(Ee.ck,Object.assign({},(0,we.Z)(Re,["title","icon","danger"]),{className:Ae()({[`${ct}-item-danger`]:Ot,[`${ct}-item-only-child`]:(We?he+1:he)===1},ye),title:typeof mt=="string"?mt:void 0}),(0,Ce.Tm)(We,{className:Ae()(te.isValidElement(We)?(Ie=We.props)===null||Ie===void 0?void 0:Ie.className:"",`${ct}-item-icon`)}),Bn(pn));return zn||(Ge=te.createElement(x.Z,Object.assign({},At,{placement:In==="rtl"?"left":"right",classNames:{root:`${ct}-inline-collapsed-tooltip`}}),Ge)),Ge},ne=oe(76529),re=oe(16777),ge=oe(24327),le=oe(14747),pe=oe(33507),Pe=oe(67771),Me=oe(50438),$e=oe(83559),ft=oe(43259),Jt=Re=>{const{componentCls:Ie,motionDurationSlow:ye,horizontalLineHeight:Ye,colorSplit:We,lineWidth:mt,lineType:Ot,itemPaddingInline:It}=Re;return{[`${Ie}-horizontal`]:{lineHeight:Ye,border:0,borderBottom:`${(0,re.unit)(mt)} ${Ot} ${We}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ie}-item, ${Ie}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:It},[`> ${Ie}-item:hover,
> ${Ie}-item-active,
> ${Ie}-submenu ${Ie}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ie}-item, ${Ie}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Ie}-submenu-arrow`]:{display:"none"}}}},jt=Re=>{let{componentCls:Ie,menuArrowOffset:ye,calc:Ye}=Re;return{[`${Ie}-rtl`]:{direction:"rtl"},[`${Ie}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ie}-rtl${Ie}-vertical,
${Ie}-submenu-rtl ${Ie}-vertical`]:{[`${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,re.unit)(Ye(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,re.unit)(ye)})`}}}}};const Ne=Re=>Object.assign({},(0,le.oN)(Re));var Pt=(Re,Ie)=>{const{componentCls:ye,itemColor:Ye,itemSelectedColor:We,subMenuItemSelectedColor:mt,groupTitleColor:Ot,itemBg:It,subMenuItemBg:ct,itemSelectedBg:xn,activeBarHeight:In,activeBarWidth:zn,activeBarBorderWidth:pn,motionDurationSlow:Bn,motionEaseInOut:yn,motionEaseOut:bn,itemPaddingInline:At,motionDurationMid:he,itemHoverColor:Ge,lineType:Ue,colorSplit:Et,itemDisabledColor:qt,dangerItemColor:Ut,dangerItemHoverColor:pt,dangerItemSelectedColor:Ln,dangerItemActiveBg:on,dangerItemSelectedBg:$n,popupBg:Wn,itemHoverBg:An,itemActiveBg:Nn,menuSubMenuBg:En,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:_e,horizontalItemBorderRadius:je,horizontalItemHoverBg:Ze}=Re;return{[`${ye}-${Ie}, ${ye}-${Ie} > ${ye}`]:{color:Ye,background:It,[`&${ye}-root:focus-visible`]:Object.assign({},Ne(Re)),[`${ye}-item`]:{"&-group-title, &-extra":{color:Ot}},[`${ye}-submenu-selected > ${ye}-submenu-title`]:{color:mt},[`${ye}-item, ${ye}-submenu-title`]:{color:Ye,[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},Ne(Re))},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${qt} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Ge}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:An},"&:active":{backgroundColor:Nn}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:An},"&:active":{backgroundColor:Nn}}},[`${ye}-item-danger`]:{color:Ut,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:pt}},[`&${ye}-item:active`]:{background:on}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:We,[`&${ye}-item-danger`]:{color:Ln},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:xn,[`&${ye}-item-danger`]:{backgroundColor:$n}},[`&${ye}-submenu > ${ye}`]:{backgroundColor:En},[`&${ye}-popup > ${ye}`]:{backgroundColor:Wn},[`&${ye}-submenu-popup > ${ye}`]:{backgroundColor:Wn},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Ie==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:pn,marginTop:Re.calc(pn).mul(-1).equal(),marginBottom:0,borderRadius:je,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${(0,re.unit)(In)} solid transparent`,transition:`border-color ${Bn} ${yn}`,content:'""'},"&:hover, &-active, &-open":{background:Ze,"&::after":{borderBottomWidth:In,borderBottomColor:ht}},"&-selected":{color:ht,backgroundColor:_e,"&:hover":{backgroundColor:_e},"&::after":{borderBottomWidth:In,borderBottomColor:ht}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${(0,re.unit)(pn)} ${Ue} ${Et}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:ct},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,re.unit)(zn)} solid ${We}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${he} ${bn}`,`opacity ${he} ${bn}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Ln}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${he} ${yn}`,`opacity ${he} ${yn}`].join(",")}}}}}};const Qe=Re=>{const{componentCls:Ie,itemHeight:ye,itemMarginInline:Ye,padding:We,menuArrowSize:mt,marginXS:Ot,itemMarginBlock:It,itemWidth:ct,itemPaddingInline:xn}=Re,In=Re.calc(mt).add(We).add(Ot).equal();return{[`${Ie}-item`]:{position:"relative",overflow:"hidden"},[`${Ie}-item, ${Ie}-submenu-title`]:{height:ye,lineHeight:(0,re.unit)(ye),paddingInline:xn,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ye,marginBlock:It,width:ct},[`> ${Ie}-item,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{height:ye,lineHeight:(0,re.unit)(ye)},[`${Ie}-item-group-list ${Ie}-submenu-title,
${Ie}-submenu-title`]:{paddingInlineEnd:In}}};var sn=Re=>{const{componentCls:Ie,iconCls:ye,itemHeight:Ye,colorTextLightSolid:We,dropdownWidth:mt,controlHeightLG:Ot,motionEaseOut:It,paddingXL:ct,itemMarginInline:xn,fontSizeLG:In,motionDurationFast:zn,motionDurationSlow:pn,paddingXS:Bn,boxShadowSecondary:yn,collapsedWidth:bn,collapsedIconSize:At}=Re,he={height:Ye,lineHeight:(0,re.unit)(Ye),listStylePosition:"inside",listStyleType:"disc"};return[{[Ie]:{"&-inline, &-vertical":Object.assign({[`&${Ie}-root`]:{boxShadow:"none"}},Qe(Re))},[`${Ie}-submenu-popup`]:{[`${Ie}-vertical`]:Object.assign(Object.assign({},Qe(Re)),{boxShadow:yn})}},{[`${Ie}-submenu-popup ${Ie}-vertical${Ie}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${(0,re.unit)(Re.calc(Ot).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ie}-inline`]:{width:"100%",[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pn}`,`background ${pn}`,`padding ${zn} ${It}`].join(","),[`> ${Ie}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ie}-sub${Ie}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ie}-submenu > ${Ie}-submenu-title`]:he,[`& ${Ie}-item-group-title`]:{paddingInlineStart:ct}},[`${Ie}-item`]:he}},{[`${Ie}-inline-collapsed`]:{width:bn,[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu ${Ie}-submenu-title`]:{[`> ${Ie}-inline-collapsed-noicon`]:{fontSize:In,textAlign:"center"}}},[`> ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-submenu > ${Ie}-submenu-title,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,re.unit)(Re.calc(At).div(2).equal())} - ${(0,re.unit)(xn)})`,textOverflow:"clip",[`
${Ie}-submenu-arrow,
${Ie}-submenu-expand-icon
`]:{opacity:0},[`${Ie}-item-icon, ${ye}`]:{margin:0,fontSize:At,lineHeight:(0,re.unit)(Ye),"+ span":{display:"inline-block",opacity:0}}},[`${Ie}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ie}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:We}},[`${Ie}-item-group-title`]:Object.assign(Object.assign({},le.vS),{paddingInline:Bn})}}]};const vn=Re=>{const{componentCls:Ie,motionDurationSlow:ye,motionDurationMid:Ye,motionEaseInOut:We,motionEaseOut:mt,iconCls:Ot,iconSize:It,iconMarginInlineEnd:ct}=Re;return{[`${Ie}-item, ${Ie}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding calc(${ye} + 0.1s) ${We}`].join(","),[`${Ie}-item-icon, ${Ot}`]:{minWidth:It,fontSize:It,transition:[`font-size ${Ye} ${mt}`,`margin ${ye} ${We}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${ye} ${We}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Ie}-item-icon`]:Object.assign({},(0,le.Ro)()),[`&${Ie}-item-only-child`]:{[`> ${Ot}, > ${Ie}-item-icon`]:{marginInlineEnd:0}}},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Ie}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},be=Re=>{const{componentCls:Ie,motionDurationSlow:ye,motionEaseInOut:Ye,borderRadius:We,menuArrowSize:mt,menuArrowOffset:Ot}=Re;return{[`${Ie}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Re.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${Ye}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Re.calc(mt).mul(.6).equal(),height:Re.calc(mt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:We,transition:[`background ${ye} ${Ye}`,`transform ${ye} ${Ye}`,`top ${ye} ${Ye}`,`color ${ye} ${Ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,re.unit)(Re.calc(Ot).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,re.unit)(Ot)})`}}}}},ze=Re=>{const{antCls:Ie,componentCls:ye,fontSize:Ye,motionDurationSlow:We,motionDurationMid:mt,motionEaseInOut:Ot,paddingXS:It,padding:ct,colorSplit:xn,lineWidth:In,zIndexPopup:zn,borderRadiusLG:pn,subMenuItemBorderRadius:Bn,menuArrowSize:yn,menuArrowOffset:bn,lineType:At,groupTitleLineHeight:he,groupTitleFontSize:Ge}=Re;return[{"":{[ye]:Object.assign(Object.assign({},(0,le.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,le.Wf)(Re)),(0,le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${We} 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:Re.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${(0,re.unit)(It)} ${(0,re.unit)(ct)}`,fontSize:Ge,lineHeight:he,transition:`all ${We}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${We} ${Ot}`,`background ${We} ${Ot}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${We} ${Ot}`,`background ${We} ${Ot}`,`padding ${mt} ${Ot}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${We} ${Ot}`,`padding ${We} ${Ot}`].join(",")},[`${ye}-title-content`]:{transition:`color ${We}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Ie}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ye}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Re.padding}},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xn,borderStyle:At,borderWidth:0,borderTopWidth:In,marginBlock:In,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vn(Re)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${(0,re.unit)(Re.calc(Ye).mul(2).equal())} ${(0,re.unit)(ct)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zn,borderRadius:pn,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:pn},vn(Re)),be(Re)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Bn},[`${ye}-submenu-title::after`]:{transition:`transform ${We} ${Ot}`}})},"\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:Re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Re.paddingXS}}}),be(Re)),{[`&-inline-collapsed ${ye}-submenu-arrow,
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,re.unit)(bn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,re.unit)(Re.calc(bn).mul(-1).equal())})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(${(0,re.unit)(Re.calc(yn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,re.unit)(Re.calc(bn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,re.unit)(bn)})`}}})},{[`${Ie}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]},Fe=Re=>{var Ie,ye,Ye;const{colorPrimary:We,colorError:mt,colorTextDisabled:Ot,colorErrorBg:It,colorText:ct,colorTextDescription:xn,colorBgContainer:In,colorFillAlter:zn,colorFillContent:pn,lineWidth:Bn,lineWidthBold:yn,controlItemBgActive:bn,colorBgTextHover:At,controlHeightLG:he,lineHeight:Ge,colorBgElevated:Ue,marginXXS:Et,padding:qt,fontSize:Ut,controlHeightSM:pt,fontSizeLG:Ln,colorTextLightSolid:on,colorErrorHover:$n}=Re,Wn=(Ie=Re.activeBarWidth)!==null&&Ie!==void 0?Ie:0,An=(ye=Re.activeBarBorderWidth)!==null&&ye!==void 0?ye:Bn,Nn=(Ye=Re.itemMarginInline)!==null&&Ye!==void 0?Ye:Re.marginXXS,En=new ge.FastColor(on).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:We,horizontalItemHoverColor:We,colorGroupTitle:xn,groupTitleColor:xn,colorItemTextSelected:We,itemSelectedColor:We,subMenuItemSelectedColor:We,colorItemTextSelectedHorizontal:We,horizontalItemSelectedColor:We,colorItemBg:In,itemBg:In,colorItemBgHover:At,itemHoverBg:At,colorItemBgActive:pn,itemActiveBg:bn,colorSubItemBg:zn,subMenuItemBg:zn,colorItemBgSelected:bn,itemSelectedBg:bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Wn,colorActiveBarHeight:yn,activeBarHeight:yn,colorActiveBarBorderSize:Bn,activeBarBorderWidth:An,colorItemTextDisabled:Ot,itemDisabledColor:Ot,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:It,dangerItemActiveBg:It,colorDangerItemBgSelected:It,dangerItemSelectedBg:It,itemMarginInline:Nn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:Ge,collapsedWidth:he*2,popupBg:Ue,itemMarginBlock:Et,itemPaddingInline:qt,horizontalLineHeight:`${he*1.15}px`,iconSize:Ut,iconMarginInlineEnd:pt-Ut,collapsedIconSize:Ln,groupTitleFontSize:Ut,darkItemDisabledColor:new ge.FastColor(on).setA(.25).toRgbString(),darkItemColor:En,darkDangerItemColor:mt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:on,darkItemSelectedBg:We,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:En,darkItemHoverColor:on,darkDangerItemHoverColor:$n,darkDangerItemSelectedColor:on,darkDangerItemActiveBg:mt,itemWidth:Wn?`calc(100% + ${An}px)`:`calc(100% - ${Nn*2}px)`}};var Dt=function(Re){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,$e.I$)("Menu",We=>{const{colorBgElevated:mt,controlHeightLG:Ot,fontSize:It,darkItemColor:ct,darkDangerItemColor:xn,darkItemBg:In,darkSubMenuItemBg:zn,darkItemSelectedColor:pn,darkItemSelectedBg:Bn,darkDangerItemSelectedBg:yn,darkItemHoverBg:bn,darkGroupTitleColor:At,darkItemHoverColor:he,darkItemDisabledColor:Ge,darkDangerItemHoverColor:Ue,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:qt,popupBg:Ut,darkPopupBg:pt}=We,Ln=We.calc(It).div(7).mul(5).equal(),on=(0,ft.mergeToken)(We,{menuArrowSize:Ln,menuHorizontalHeight:We.calc(Ot).mul(1.15).equal(),menuArrowOffset:We.calc(Ln).mul(.25).equal(),menuSubMenuBg:mt,calc:We.calc,popupBg:Ut}),$n=(0,ft.mergeToken)(on,{itemColor:ct,itemHoverColor:he,groupTitleColor:At,itemSelectedColor:pn,subMenuItemSelectedColor:pn,itemBg:In,popupBg:pt,subMenuItemBg:zn,itemActiveBg:"transparent",itemSelectedBg:Bn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:bn,itemDisabledColor:Ge,dangerItemColor:xn,dangerItemHoverColor:Ue,dangerItemSelectedColor:Et,dangerItemActiveBg:qt,dangerItemSelectedBg:yn,menuSubMenuBg:zn,horizontalItemSelectedColor:pn,horizontalItemSelectedBg:Bn});return[ze(on),Jt(on),sn(on),Pt(on,"light"),Pt($n,"dark"),jt(on),(0,pe.Z)(on),(0,Pe.oN)(on,"slide-up"),(0,Pe.oN)(on,"slide-down"),(0,Me._y)(on,"zoom-big")]},Fe,{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"]],injectStyle:ye,unitless:{groupTitleLineHeight:!0}})(Re,Ie)},tt=oe(87263),me=Re=>{var Ie;const{popupClassName:ye,icon:Ye,title:We,theme:mt}=Re,Ot=te.useContext(ae),{prefixCls:It,inlineCollapsed:ct,theme:xn}=Ot,In=(0,Ee.Xl)();let zn;if(!Ye)zn=ct&&!In.length&&We&&typeof We=="string"?te.createElement("div",{className:`${It}-inline-collapsed-noicon`},We.charAt(0)):te.createElement("span",{className:`${It}-title-content`},We);else{const yn=te.isValidElement(We)&&We.type==="span";zn=te.createElement(te.Fragment,null,(0,Ce.Tm)(Ye,{className:Ae()(te.isValidElement(Ye)?(Ie=Ye.props)===null||Ie===void 0?void 0:Ie.className:"",`${It}-item-icon`)}),yn?We:te.createElement("span",{className:`${It}-title-content`},We))}const pn=te.useMemo(()=>Object.assign(Object.assign({},Ot),{firstLevel:!1}),[Ot]),[Bn]=(0,tt.Cn)("Menu");return te.createElement(ae.Provider,{value:pn},te.createElement(Ee.Wd,Object.assign({},(0,we.Z)(Re,["icon"]),{title:zn,popupClassName:Ae()(It,ye,`${It}-${mt||xn}`),popupStyle:Object.assign({zIndex:Bn},Re.popupStyle)})))},nt=function(Re,Ie){var ye={};for(var Ye in Re)Object.prototype.hasOwnProperty.call(Re,Ye)&&Ie.indexOf(Ye)<0&&(ye[Ye]=Re[Ye]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ye=Object.getOwnPropertySymbols(Re);We<Ye.length;We++)Ie.indexOf(Ye[We])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ye[We])&&(ye[Ye[We]]=Re[Ye[We]]);return ye};function Zt(Re){return Re===null||Re===!1}const tn={item:ee,submenu:me,divider:E};var Un=(0,te.forwardRef)((Re,Ie)=>{var ye;const Ye=te.useContext(ne.Z),We=Ye||{},{getPrefixCls:mt,getPopupContainer:Ot,direction:It,menu:ct}=te.useContext(Ke.E_),xn=mt(),{prefixCls:In,className:zn,style:pn,theme:Bn="light",expandIcon:yn,_internalDisableMenuItemTitleTooltip:bn,inlineCollapsed:At,siderCollapsed:he,rootClassName:Ge,mode:Ue,selectable:Et,onClick:qt,overflowedIndicatorPopupClassName:Ut}=Re,pt=nt(Re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ln=(0,we.Z)(pt,["collapsedWidth"]);(ye=We.validator)===null||ye===void 0||ye.call(We,{mode:Ue});const on=(0,se.Z)(function(){var Pn;qt==null||qt.apply(void 0,arguments),(Pn=We.onClick)===null||Pn===void 0||Pn.call(We)}),$n=We.mode||Ue,Wn=Et!=null?Et:We.selectable,An=At!=null?At:he,Nn={horizontal:{motionName:`${xn}-slide-up`},inline:(0,Oe.Z)(xn),other:{motionName:`${xn}-zoom-big`}},En=mt("menu",In||We.prefixCls),ht=(0,at.Z)(En),[_e,je,Ze]=Dt(En,ht,!Ye),dt=Ae()(`${En}-${Bn}`,ct==null?void 0:ct.className,zn),fn=te.useMemo(()=>{var Pn,zt;if(typeof yn=="function"||Zt(yn))return yn||null;if(typeof We.expandIcon=="function"||Zt(We.expandIcon))return We.expandIcon||null;if(typeof(ct==null?void 0:ct.expandIcon)=="function"||Zt(ct==null?void 0:ct.expandIcon))return(ct==null?void 0:ct.expandIcon)||null;const Bt=(Pn=yn!=null?yn:We==null?void 0:We.expandIcon)!==null&&Pn!==void 0?Pn:ct==null?void 0:ct.expandIcon;return(0,Ce.Tm)(Bt,{className:Ae()(`${En}-submenu-expand-icon`,te.isValidElement(Bt)?(zt=Bt.props)===null||zt===void 0?void 0:zt.className:void 0)})},[yn,We==null?void 0:We.expandIcon,ct==null?void 0:ct.expandIcon,En]),wn=te.useMemo(()=>({prefixCls:En,inlineCollapsed:An||!1,direction:It,firstLevel:!0,theme:Bn,mode:$n,disableMenuItemTitleTooltip:bn}),[En,An,It,bn,Bn]);return _e(te.createElement(ne.Z.Provider,{value:null},te.createElement(ae.Provider,{value:wn},te.createElement(Ee.ZP,Object.assign({getPopupContainer:Ot,overflowedIndicator:te.createElement(Xe.Z,null),overflowedIndicatorPopupClassName:Ae()(En,`${En}-${Bn}`,Ut),mode:$n,selectable:Wn,onClick:on},Ln,{inlineCollapsed:An,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),pn),className:dt,prefixCls:En,direction:It,defaultMotions:Nn,expandIcon:fn,ref:Ie,rootClassName:Ae()(Ge,je,We.rootClassName,Ze,ht),_internalComponents:tn})))))});const an=(0,te.forwardRef)((Re,Ie)=>{const ye=(0,te.useRef)(null),Ye=te.useContext(qe.D);return(0,te.useImperativeHandle)(Ie,()=>({menu:ye.current,focus:We=>{var mt;(mt=ye.current)===null||mt===void 0||mt.focus(We)}})),te.createElement(Un,Object.assign({ref:ye},Re,Ye))});an.Item=ee,an.SubMenu=me,an.Divider=E,an.ItemGroup=Ee.BW;var Xt=an},55007:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return we}});var te=oe(83963),Ee=oe(67294),qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Xe=qe,ve=oe(84180),Ae=function(Ce,Ke){return Ee.createElement(ve.Z,(0,te.Z)({},Ce,{ref:Ke,icon:Xe}))},se=Ee.forwardRef(Ae),we=se},79269:function(Be,it,oe){"use strict";oe.d(it,{Z:function(){return we}});var te=oe(83963),Ee=oe(67294),qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Xe=qe,ve=oe(84180),Ae=function(Ce,Ke){return Ee.createElement(ve.Z,(0,te.Z)({},Ce,{ref:Ke,icon:Xe}))},se=Ee.forwardRef(Ae),we=se},17689:function(Be,it){var oe,te;(function(){"use strict";var Ee={}.hasOwnProperty,qe="[native code]";function Xe(){for(var ve=[],Ae=0;Ae<arguments.length;Ae++){var se=arguments[Ae];if(se){var we=typeof se;if(we==="string"||we==="number")ve.push(se);else if(Array.isArray(se)){if(se.length){var Oe=Xe.apply(null,se);Oe&&ve.push(Oe)}}else if(we==="object"){if(se.toString!==Object.prototype.toString&&!se.toString.toString().includes("[native code]")){ve.push(se.toString());continue}for(var Ce in se)Ee.call(se,Ce)&&se[Ce]&&ve.push(Ce)}}}return ve.join(" ")}Be.exports?(Xe.default=Xe,Be.exports=Xe):(oe=[],te=function(){return Xe}.apply(it,oe),te!==void 0&&(Be.exports=te))})()},92389:function(Be,it){"use strict";var oe={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(Ee){var qe=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||qe>=oe.F1&&qe<=oe.F12)return!1;switch(qe){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=oe.ZERO&&Ee<=oe.NINE||Ee>=oe.NUM_ZERO&&Ee<=oe.NUM_MULTIPLY||Ee>=oe.A&&Ee<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};it.Z=oe}}]);