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__Classrooms__Lists__Group...

171 lines
468 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1582],{33859:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),ve=oe(67294),et={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},He=et,fe=oe(43387),Be=function(ze,$e){return ve.createElement(fe.Z,(0,te.Z)({},ze,{ref:$e,icon:He}))},ue=ve.forwardRef(Be)},24018:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),ve=oe(67294),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},He=et,fe=oe(43387),Be=function(ze,$e){return ve.createElement(fe.Z,(0,te.Z)({},ze,{ref:$e,icon:He}))},ue=ve.forwardRef(Be)},40043:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),ve=oe(67294),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},He=et,fe=oe(43387),Be=function(ze,$e){return ve.createElement(fe.Z,(0,te.Z)({},ze,{ref:$e,icon:He}))},ue=ve.forwardRef(Be)},71736:function(Ge,ct){"use strict";ct.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 Ge(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(Ge.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(Ge.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(Ge.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(Ge.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 Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var ct=[];function oe(ae,a){var y=ct.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=ct.pop();return ae===void 0?new go.Point:ae}function ve(ae){ct.push(ae)}function et(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,de=NaN,Pe=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,Pe=a);else{var ce=(x-ee)/ge,De=x-ce*b;de=ae,Pe=ce*de+De}else if(ge===0){var Ze=(a-E)/re,wt=a-Ze*ae;de=b,Pe=Ze*de+wt}else{var Ze=(a-E)/re,ce=(x-ee)/ge,wt=a-Ze*ae,De=x-ce*b;de=(De-wt)/(Ze-ce),Pe=Ze*de+wt}return ne.x=de,ne.y=Pe,ne}function He(ae,a,y,E,b,x,z,ee,ne,re,ge,de,Pe,ce){var De=1-ne,Ze=ne,wt=ae*De+y*Ze,At=a*De+E*Ze,Zt=y*De+b*Ze,Le=E*De+x*Ze,Ue=b*De+z*Ze,Re=x*De+ee*Ze,it=wt*De+Zt*Ze,ut=At*De+Le*Ze,Qe=Zt*De+Ue*Ze,Ve=Le*De+Re*Ze,gt=it*De+Qe*Ze,$t=ut*De+Ve*Ze;re.x=wt,re.y=At,ge.x=it,ge.y=ut,de.x=gt,de.y=$t,Pe.x=Qe,Pe.y=Ve,ce.x=Ue,ce.y=Re}var fe=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("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*ue,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=fe,b.spot2=Be,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,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Me=[];function ze(){var ae=Me.pop();return ae===void 0?[]:ae}function $e(ae){ae.length=0,Me.push(ae)}function Xe(ae){for(var a=ze(),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 je(ae){var a=Ie(ae),y=ze();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 $e(a),y}function Ie(ae){for(var a=Xe(ae),y=ze(),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]=et(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],$e(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Xe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=Xe(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Ie(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Ie(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Ie(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Ie(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Ie(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Ie(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(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=je(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(),$e(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=je(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(),$e(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=je(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(),$e(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=je(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(),$e(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=je(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(),$e(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=je(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(),$e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(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 Ge("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=fe,x.spot2=Be,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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("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=ue/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*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*ue;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*ue,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*ue,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=ue*.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=ue*.4;var re=te(),ge=te(),de=te(),Pe=te();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,Pe,Pe);var ce=te(),De=te(),Ze=te();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,Ze,ce,De);var wt=te(),At=te(),Zt=te();He(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,wt,At,Zt,Pe,Pe);var Le=te(),Ue=te(),Re=te();return He(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,Re,Le,Ue),ne.add(new go.PathSegment(go.PathSegment.Move,Re.x*a,Re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,Ue.x*a,Ue.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ze.x*a,Ze.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*a,Zt.y*y,wt.x*a,wt.y*y,At.x*a,At.y*y).close()),ve(re),ve(ge),ve(de),ve(Pe),ve(ce),ve(De),ve(Ze),ve(wt),ve(At),ve(Zt),ve(Le),ve(Ue),ve(Re),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 Ge("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=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var ce=oe(re.x,re.y);He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var De=oe(re.x,re.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*a,(De.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=ue*.35;var Ze=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ze.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 wt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(wt),ve(ne),ve(re),ve(ge),ve(de),ve(ce),ve(De),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ue,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*ue;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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("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=et(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ve(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("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=et(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),ve(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 Ge("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=et(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=et(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ve(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("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 de=et(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(de.x,de.y),de=et(.7,ne/y,1,.5,0,z/y,1,z/y,de),re.spot2=new go.Spot(de.x,de.y),ve(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("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=et(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ve(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("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 de=et(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(de.x,de.y),ve(de),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("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=et(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ve(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("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=et(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ve(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("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=et(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ve(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("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=et(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ve(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("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=ue*.5,x=ue*.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=ue*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ue*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-ue*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ue*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-ue*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ue*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=ue*.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,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ue*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-ue*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ue*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-ue*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-ue*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=ue*.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-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*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+ue*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ue*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=ue*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*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-ue*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-ue*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=ue*b,ee=ue*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 de=.05,Pe=ue*de;ne=.05,re=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,re*y,(ne+Pe)*a,(re-de)*y,(ne+de)*a,(re-Pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,Pe=ue*de,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,Pe=ue*de,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,Pe=ue*de,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-Pe)*y,(ne+Pe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-Pe)*a,(re-de)*y,(ne-de)*a,(re-Pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,Pe=ue*de,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-Pe)*y,(ne-Pe)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ge("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=ue*.5,x=ue*.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=ue*.5,x=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.5,x=ue*.4,z=ue*.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 de=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),de.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=ue*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=ue*.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=ue*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=ue*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=ue*.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=ue*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=ue*.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=ue*.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=ue*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,Pe=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.4,ee=.4,ne=.2,re=.5;var ce=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.2,ee=.2,ne=.5,re=.5;var De=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),z=ue*.4,ee=.4,ne=.8,re=.5;var Ze=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),z=ue*.8,ee=.8,ne=1,re=.5;var wt=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var Pe=oe(re.x,re.y),ce=new go.PathFigure(re.x*a,re.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),He(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=ue*.3,x=.3,He(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),He(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ve(ne),ve(re),ve(ge),ve(de),ve(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*ue,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,Pe=.5,ce=0,De=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),De.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,Pe=z,ce=z,De=ge*Pe,Ze=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,ne*y,(ee-(De+Pe)/2)*a,(ne+(ce+Ze)/2)*y,(ee-Pe)*a,(ne+Ze)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-Pe)*a,(ne-Ze)*y,(ee-De)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,ne*y,(ee+De)*a,(ne-ce)*y,(ee+Pe)*a,(ne-Ze)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(ne+Ze)*y,(ee+(De+Pe)/2)*a,(ne+(ce+Ze)/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 wt=new go.PathFigure(.2*a,y,!1);E.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var At=new go.PathFigure(.8*a,y,!1);return E.add(At),At.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=ue*.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=ue*.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=ue*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),de.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=ue*.1,ge=.1,de=.9,Pe=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),ne=.1,re=ue*.1,ge=.4,de=.9;var ce=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+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,de=ue*.05,Pe=.175,ce=.95,ee=new go.PathFigure((Pe-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce-ge)*y,(Pe-ge)*a,(ce-de)*y,(Pe-de)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,ce*y,(Pe+de)*a,(ce-ge)*y,(Pe+ge)*a,(ce-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce+ge)*y,(Pe+ge)*a,(ce+de)*y,(Pe+de)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,ce*y,(Pe-de)*a,(ce+ge)*y,(Pe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,Pe=.375,ce=.95,ne=new go.PathFigure((Pe-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce-ge)*y,(Pe-ge)*a,(ce-de)*y,(Pe-de)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,ce*y,(Pe+de)*a,(ce-ge)*y,(Pe+ge)*a,(ce-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce+ge)*y,(Pe+ge)*a,(ce+de)*y,(Pe+de)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,ce*y,(Pe-de)*a,(ce+ge)*y,(Pe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,Pe=.625,ce=.95,re=new go.PathFigure((Pe-ge)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce-ge)*y,(Pe-ge)*a,(ce-de)*y,(Pe-de)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,ce*y,(Pe+de)*a,(ce-ge)*y,(Pe+ge)*a,(ce-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce+ge)*y,(Pe+ge)*a,(ce+de)*y,(Pe+de)*a,(ce+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,ce*y,(Pe-de)*a,(ce+ge)*y,(Pe-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,Pe=.825,ce=.95,De=new go.PathFigure((Pe-ge)*a,ce*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce-ge)*y,(Pe-ge)*a,(ce-de)*y,(Pe-de)*a,(ce-ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ge)*a,ce*y,(Pe+de)*a,(ce-ge)*y,(Pe+ge)*a,(ce-de)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(ce+ge)*y,(Pe+ge)*a,(ce+de)*y,(Pe+de)*a,(ce+ge)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ge)*a,ce*y,(Pe-de)*a,(ce+ge)*y,(Pe-ge)*a,(ce+de)*y).close());var Ze=new go.PathFigure(0,y,!1);return E.add(Ze),Ze.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=ue*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-ne)*y,(re-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+ne)*a,(ge-ee)*y,(re+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+ne)*y,(re+ne)*a,(ge+ee)*y)),de.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=ue*.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=ue*.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=ue*.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=ue*.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*ue,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*ue,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*ue,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 Ge={},ct="5.0",oe={},te=null,ve=!1,et=!1,He=null,fe=!1,Be=null,ue=null,Me=0;Me<arguments.length;Me++){var ze=arguments[Me];if(ze!==null)switch(typeof ze){case"number":ct=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?ct=ze:He=ze;break;case"object":typeof ze.is3D!="undefined"?te=ze:oe=ze;break;case"boolean":ve=ze,et=!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&&!et&&(ve=!0)),He!==null&&oe.id===void 0&&(oe.id=He);var $e="",Xe="",je=!1,Ie=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(pe){return parseFloat(pe)>4?parseFloat(pe):5};Ge.setHTML5Codebase=function(pe,Ae){ue=pe,Ve(pe,Ae)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(pe,Ae){var rt=parseFloat(pe);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Be=pe,Qe(pe,Ae)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(pe){z=pe},Ge.setGiacJSURL=function(pe){},Ge.setJNLPFile=function(pe){$e=pe},Ge.setJNLPBaseDir=function(pe){},Ge.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",rt=oe.id,Ft,Je=!1,dt=0;dt<arguments.length;dt++){var me=arguments[dt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=me:rt=arguments[dt]):typeof me=="boolean"?Je=me:me instanceof HTMLElement&&(Ft=me)}lt();function lt(){if(!fe){setTimeout(lt,200);return}Ae=it(Ae);var Et=Ft||document.getElementById(rt);if(!Et){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(Et,!1),oe.width===void 0&&Et.clientWidth&&(oe.width=Et.clientWidth),oe.height===void 0&&Et.clientHeight&&(oe.height=Et.clientHeight),!(oe.width&&oe.height)&&Ae==="html5"&&(delete oe.width,delete oe.height),Ie=Ae,Ae==="screenshot")At(Et,oe);else{var Xt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Xt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Xt=(!re()||pe())&&ge()),Xt?(Ie="screenshot",Le(Et,oe,Je,Ae)):wt(Et,oe,Je)}}};function re(){try{return window.self!==window.top}catch(pe){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return te},Ge.isJavaInstalled=function(){return!1};var de=function(pe){var Ae=function(dt){var me=JSON.parse(dt),lt=function(ft){return ft.type=="G"||ft.type=="E"},Et=me.elements?me.elements.filter(lt)[0]:me;if(!Et||!Et.url){rt();return}oe.fileName=Et.url,Pe(Et.settings||{}),te.is3D=!0;var Xt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||Et.previewUrl,Xt+"GeoGebra_loading.png",Xt+"applet_play.png"),pe()},rt=function(){oe.onError&&oe.onError(),gt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Je="/materials/"+oe.material_id+"?scope=basic";ce("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(Je),Ae,rt)};function Pe(pe){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){pe[rt]=!!pe[rt]}),Ae.forEach(function(rt){oe[rt]===void 0&&pe[rt]!==void 0&&(oe[rt]=pe[rt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(pe,Ae,rt){var Ft=new XMLHttpRequest;Ft.open("GET",pe),Ft.onload=function(){Ae(Ft.responseText)},Ft.onerror=rt,Ft.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Ie},Ge.setPreviewImage=function(pe,Ae,rt){E=pe,b=Ae,x=rt},Ge.removeExistingApplet=function(pe,Ae){var rt;typeof pe=="string"&&(pe=document.getElementById(pe)),Ie=null;var Ft=null;for(rt=0;rt<pe.childNodes.length;rt++){var Je=pe.childNodes[rt],dt=Je.className;dt==="applet_screenshot"?Ae?(Je.style.display="block",Ie="screenshot"):Je.style.display="none":dt!=="applet_scaler prerender"&&(pe.removeChild(Je),Ft=dt&&dt.indexOf("appletParameters")!=-1?Je.id:null,rt--)}var me=oe.id!==void 0?oe.id:Ft,lt=window[me];lt&&typeof lt.getBase64=="function"&&(lt.remove(),window[me]=null)},Ge.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=Ge.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var pe=Ge.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var pe=Ge.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var pe=oe.id!==void 0?oe.id:"ggbApplet";return window[pe]},Ge.resize=function(){};var De=function(pe,Ae,rt){var Ft=document.createElement("param");Ft.setAttribute("name",Ae),Ft.setAttribute("value",rt),pe.appendChild(Ft)},Ze=function(pe){return pe&&pe!=="false"},wt=function(pe,Ae,rt){ne(ae)<=4.2&&(rt=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var dt=Ae.width,me=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(ne(ae)<=4.4)Ze(Ae.showToolBar)&&(Ae.height-=7),Ze(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&Ze(Ae.showToolBar)&&(Ae.width=605,dt=605);else{var lt=100;(Ze(Ae.showToolBar)||Ze(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),lt=Ze(Ae.showMenuBar)?245:155),dt<lt&&(Ae.width=lt,dt=lt)}Je.style.border="none",Je.style.display="inline-block";for(var Et in Ae)Ae.hasOwnProperty(Et)&&Et!=="appletOnLoad"&&Je.setAttribute("data-param-"+Et,Ae[Et]);z&&Je.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(pe,Ae)},window.addEventListener("resize",function(ln){Ge.resize()});var Xt=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!rt&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||Je.setAttribute("data-param-showSplash","false");var ft=pe.querySelector(".applet_scaler.prerender"),Oe=ft!==null;if(Oe)var Ce=ft.querySelector(".ggb_preview");else{var Ce=Re(dt,me,Ae.borderColor,!1);ft=document.createElement("div"),ft.className="applet_scaler",ft.style.position="relative",ft.style.display="block",ft.style.width=dt+"px",ft.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ft,"66%"),ne(ae)>=5?(Ae.appletOnLoad=function(ln){var zt=pe.querySelector(".ggb_preview");zt&&zt.parentNode.removeChild(zt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ft),window.GGBT_wsf_view&&$(window).trigger("resize"),Xt(ln)},Oe||ft.appendChild(Ce)):Je.appendChild(Ce),ft.appendChild(Je),Oe||pe.appendChild(ft),setTimeout(function(){Ge.resize()},1)}else{var Ee=document.createElement("div");Ee.className="applet_scaler",Ee.style.position="relative",Ee.style.display="block",Ee.appendChild(Je),pe.appendChild(Ee),Ae.appletOnLoad=function(ln){Ge.resize(),Xt(ln)}}function tt(ln,zt){zt&&typeof zt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ln,zt.appletOnLoad):renderGGBElement(ln),gt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zt)}function qe(ln,zt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ln,params:zt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Nt){tt(Nt.article,Nt.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(ln.className+=" geogebraweb")):tt(ln,zt)}if(Ft){scriptLoadStarted=!0;for(var ht=0;ht<Je.childNodes.length;ht++){var Gt=Je.childNodes[ht].tagName;Gt==="TABLE"&&(Je.removeChild(Je.childNodes[ht]),ht--)}if(ggbHTML5LoadedScript!==null){var Tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Tt!=null&&Tt.parentNode.removeChild(Tt)}var Yt=document.createElement("script"),dn=function(){qe(Je,Ae)};Yt.src=Xe+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Yt.src,gt("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",Ae),!ue&&(!Be||Be=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dn()):Xe.requirejs?__webpack_require__.e(12).then(function(){var ln=[__webpack_require__(12)];dn.apply(null,ln)}.bind(this)).catch(__webpack_require__.oe):(Yt.onload=dn,pe.appendChild(Yt))}else qe(Je,Ae);Ae.height=me,Ae.width=dt},At=function(pe,Ae,rt){var Ft=Re(Ae.width,Ae.height,Ae.borderColor,rt),Je=document.createElement("div");Je.style.position="relative",Je.style.display="block",Je.style.width=Ae.width+"px",Je.style.height=Ae.height+"px",Je.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),Je.appendChild(Ft);var dt=GGBAppletUtils.getScale(Ae,pe,rt);rt?(pe.appendChild(Ue()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Je,"66%"),pe.appendChild(Je),dt!==1&&!isNaN(dt)&&(GGBAppletUtils.scaleElement(Je,dt),Je.style.width=Ae.width+"px",Je.style.height=Ae.height+"px",Je.parentNode.style.width=Ae.width*dt+"px",Je.parentNode.style.height=Ae.height*dt+"px"),Ge.resize=function(){Zt(pe,Ft,Je,rt)},window.addEventListener("resize",function(me){Ge.resize()}),Ge.resize()};function Zt(pe,Ae,rt,Ft){if(pe.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var Je=GGBAppletUtils.getScale(oe,pe,Ft);rt.parentNode!==null&&(!isNaN(Je)&&Je!==1?(GGBAppletUtils.scaleElement(rt,Je),rt.parentNode.style.width=oe.width*Je+"px",rt.parentNode.style.height=oe.height*Je+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=oe.width+"px",rt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(pe,Ae){Ae.appendChild(pe)};var Le=function(pe,Ae,rt,Ft){At(pe,Ae,!0);for(var Je=function(){var lt=[];for(me=0;me<pe.childNodes.length;me++)lt.push(pe.childNodes[me]);if(window.GGBT_wsf_view){var Et=window.GGBT_wsf_view.renderFullScreen(pe,Ae.id),Xt=document.getElementById("fullscreencontainer"),ft=jQuery(pe).find(".fullscreencontent");ft.length>0?(Et.remove(),ft.attr("id","fullscreencontent").show(),jQuery(Xt).append(ft),window.dispatchEvent(new Event("resize"))):wt(Et,Ae,!1),window.GGBT_wsf_view.launchFullScreen(Xt)}else Ie=Ft,wt(pe,Ae,!1);if(!window.GGBT_wsf_view)for(me=0;me<lt.length;me++)pe.removeChild(lt[me])},dt=pe.getElementsByClassName("ggb_preview_play"),me=0;me<dt.length;me++)dt[me].addEventListener("click",Je,!1),dt[me].addEventListener("ontouchstart",Je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=Ae:rt.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(rt)}return pe},Re=function(pe,Ae,rt,Ft){var Je=document.createElement("div");Je.className="ggb_preview",Je.style.position="absolute",Je.style.zIndex="90",Je.style.width=pe-2+"px",Je.style.height=Ae-2+"px",Je.style.top="0px",Je.style.left="0px",Je.style.overflow="hidden",Je.style.backgroundColor="white";var dt="lightgrey";rt!==void 0&&(rt==="none"?dt="transparent":dt=rt),Je.style.border="1px solid "+dt;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 lt,Et,Xt;if(!Ft){lt=document.createElement("img"),lt.style.position="absolute",lt.style.zIndex="1001",lt.style.opacity=1,me.style.opacity=.3,Et=360,Et>pe/4*3&&(Et=pe/4*3),Xt=Et/5.8,lt.setAttribute("src",b),lt.setAttribute("width",Et),lt.setAttribute("height",Xt);var ft=(pe-Et)/2,Oe=(Ae-Xt)/2;lt.style.left=ft+"px",lt.style.top=Oe+"px",Je.appendChild(lt)}}return Je.appendChild(me),Je},it=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Qe=function(pe,Ae){if(ae=pe,Ae){Ve(ae,!0);return}var rt=!ve;if(rt){var Ft=ne(ae);!isNaN(Ft)&&Ft<4.4&&(rt=!1)}var Je,dt;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var me=ae.indexOf("//");me>0?dt=ae:me===0?dt=Je+ae:dt="https://www.geogebra.org/apps/5.2.814.0/";for(var lt in ut)if(ae.slice(ut[lt].length*-1)===ut[lt]||ae.slice((ut[lt].length+1)*-1)===ut[lt]+"/"){Ve(dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ze(oe.showToolBar)&&!Ze(oe.showMenuBar)&&!Ze(oe.showAlgebraInput)&&!Ze(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?dt+="webSimple/":dt+="web3d/",Ve(dt,!1)},Ve=function(pe,Ae){if(pe.requirejs){Xe=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),Xe=pe,Ae===null&&(Ae=pe.indexOf("http")===-1),je=Ae,a="web.nocache.js",y=!1;var rt=Xe.split("/");rt.length>1&&(!Ae&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ut.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=pe.split("/"),ae=rt[rt.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 Ft=parseFloat(ae);Ft!==NaN&&Ft<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),Qe("5.0",Ae))},gt=function(pe,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(pe)};oe.material_id!==void 0?de($t):$t();function $t(){var pe=ct;Be!==null?pe=Be:parseFloat(pe)<5&&(pe="5.0"),Qe(pe,!1),ue!==null&&Ve(ue,je),fe=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function ct(fe,Be){Be!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Be+","+Be+")",fe.style.webkitTransform="scale("+Be+","+Be+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function oe(fe,Be,ue,Me,ze,$e){var Xe=null;if($e!=null&&$e!="")for(var je=fe.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+$e+" ")>-1){Xe=je;break}else je=je.parentNode;var Ie=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Xe)Ie=Xe.offsetWidth,ae=Math.max(Me?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Ie&&(ze===void 0||!ze)&&(document.dir==="rtl"?(E=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((ue===void 0||!ue)&&Be>0&&Be+y<Ie?Ie=Be:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ae-=x)),{width:Ie,height:ae}}function te(fe,Be,ue,Me,ze){if(fe.isScreenshoGenerator)return 1;var $e=Me!==void 0&&Me,Xe=fe.noScaleMargin!=null&&fe.noScaleMargin,je=function(ee){return ee&&ee!=="false"},Ie=je(fe.autoHeight),ae=oe(Be,fe.width,ue,Ie,$e&&window.GGBT_wsf_view||Xe,ze),a=parseInt(ae.width),y=fe.width,E=fe.height;if(y===void 0){var b=Be.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=$e?1:ae.height/E;return ue!==void 0&&!ue&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ve(fe,Be,ue){var Me=1,ze,$e=!1;if(fe.hasOwnProperty("allowUpscale")&&($e=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Me=parseFloat(fe.scale),(isNaN(Me)||Me===null||Me===0)&&(Me=1),Me>1&&($e=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&($e=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))ze=te(fe,Be,$e,ue,fe.scaleContainerClass);else return Me;return $e&&(!fe.hasOwnProperty("scale")||Me===1)?ze:Math.min(Me,ze)}function et(fe){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=fe.getBoundingClientRect(),ze=(Be-Me.width)/2,$e=(ue-Me.height)/2;$e<0&&($e=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?fe.style.left="40px":fe.style.left=ze+"px",fe.style.top=$e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&($e<40?fe.style.top="40px":fe.style.top=$e+"px",fe.style.left=ze+"px")}function He(fe,Be){var ue=fe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Me=ve(Be,fe);Ge()&&ue.setAttribute("data-param-scale",Me);for(var ze=null,$e=0;$e<fe.childNodes.length;$e++)if(fe.childNodes[$e].className!==void 0&&fe.childNodes[$e].className.match(/^applet_scaler/)){ze=fe.childNodes[$e];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var Xe=Be.id!==void 0?Be.id:"ggbApplet",je=window[Xe];(je==null||!je.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(Me)&&Me!==1?(ze.parentNode.style.width=Be.width*Me+"px",ze.parentNode.style.height=Be.height*Me+"px",ct(ze,Me)):(ct(ze,1),ze.parentNode.style.width=Be.width+"px",ze.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&et(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:He,isFlexibleWorksheetEditor:Ge,positionCenter:et,getScale:ve,scaleElement:ct}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,ct){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ge){var ct=s[L].bindings;s[L].bindings=function(){for(var oe=ct?ct():{},te=Ge[webModule.__softPermutationId],ve=O;ve<te.length;ve++){var et=te[ve];oe[et[O]]=et[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ct=document.compatMode==U?V:W;t.write(ct+X),t.close()}}}function w(Ge){function ct(te){function ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var et=ve();if(et){te();return}function He(){if(!et){if(!ve())return;et=!0,te(),o.removeEventListener&&o.removeEventListener(Z,He,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,He,!1);var fe=setInterval(function(){He()},$)}function oe(te){var ve=u(),et=ve.body,He=ve.createElement(_);He.language=ab,He.crossOrigin=W,He.src=te,webModule.__errFn&&(He.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),et.appendChild(He)}ct(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var ct=u(),oe=ct.body,te=ct.createElement(_);te.language=ab,te.text=Ge,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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var ct=c[Ge];return ct==null?null:ct},r=d,webModule.__errFn=e}function B(){function Ge(fe){var Be=fe.lastIndexOf(rb);Be==-1&&(Be=fe.length);var ue=fe.indexOf(sb);ue==-1&&(ue=fe.length);var Me=fe.lastIndexOf(tb,Math.min(ue,Be));return Me>=O?fe.substring(O,Me+P):W}function ct(fe){if(!fe.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=fe+vb,fe=Ge(Be.src)}return fe}function oe(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function te(){for(var fe=o.getElementsByTagName(_),Be=O;Be<fe.length;++Be)if(fe[Be].src.indexOf(xb)!=-1)return Ge(fe[Be].src);return W}function ve(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function et(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var He=oe();return He==W&&(He=te()),He==W&&(He=ve()),He==W&&et()&&(He=Ge(o.location.href)),He=ct(He),He}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],ct=O,oe=[],te=[];function ve(fe){var Be=te[fe](),ue=oe[fe];if(Be in ue)return Be;var Me=[];for(var ze in ue)Me[ue[ze]]=ze;throw r&&r(fe,Me,Be),null}if(__gwt_isKnownPropertyValue=function(fe,Be){return Be in oe[fe]},webModule.__getPropMap=function(){var fe={};for(var Be in oe)oe.hasOwnProperty(Be)&&(fe[Be]=ve(Be));return fe},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var et;try{et=Cb;var He=et.indexOf(Db);He!=-1&&(ct=parseInt(et.substring(He+P),$),et=et.substring(O,He))}catch(fe){}return webModule.__softPermutationId=ct,C(et+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(Ge,ct,oe){"use strict";oe.d(ct,{Ax:function(){return He},Ds:function(){return fe},KI:function(){return ue},SI:function(){return et},f1:function(){return ve}});var te=oe(11320);function ve(Me){let ze=!0;if(Me.length>0){for(let $e=0;$e<Me.length;$e++)if(Me[$e].compile_success==0||!Me[$e].compile_success){ze=!1;break}}else ze=!1;return ze}function et(Me,ze=""){let $e=[];for(let Xe=0;Xe<Me.length;Xe++){let je=Me[Xe],Ie=ze?`${ze}/${je.name}`:`${je.name}`;$e.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:Ie})}return $e}function He(Me,ze,$e){for(let Xe=0;Xe<Me.length;Xe++){let je=Me[Xe];if(je.key===ze){je.children=$e;break}je.children&&He(je.children,ze,$e)}return Me}function fe(Me,ze,$e){let Xe;return function(){let je=this,Ie=arguments,ae=function(){Xe=null,$e||Me.apply(je,Ie)},a=$e&&!Xe;clearTimeout(Xe),Xe=setTimeout(ae,ze),a&&Me.apply(je,Ie)}}const Be=!0,ue=te.Z.API_SERVER},10191:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Zt}});var te=oe(67294),ve=oe(35973),et=oe(84567),He=oe(24018),fe=oe(40043),Be=oe(33170),ue=oe(91773),Me=oe(42563),ze={},$e=Object.defineProperty,Xe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ae=(Le,Ue,Re)=>Ue in Le?$e(Le,Ue,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Le[Ue]=Re,a=(Le,Ue)=>{for(var Re in Ue||(Ue={}))je.call(Ue,Re)&&ae(Le,Re,Ue[Re]);if(Xe)for(var Re of Xe(Ue))Ie.call(Ue,Re)&&ae(Le,Re,Ue[Re]);return Le},y=(Le,Ue,Re)=>new Promise((it,ut)=>{var Qe=$t=>{try{gt(Re.next($t))}catch(pe){ut(pe)}},Ve=$t=>{try{gt(Re.throw($t))}catch(pe){ut(pe)}},gt=$t=>$t.done?it($t.value):Promise.resolve($t.value).then(Qe,Ve);gt((Re=Re.apply(Le,Ue)).next())});const E=et.default.Group,b=({classroomList:Le,loading:Ue,user:Re,exercise_id:it=null,homework_common_id:ut=null,setitem:Qe,item:Ve,type:gt,rz:$t,dispatch:pe})=>{var Ae,rt,Ft,Je,dt,me,lt,Et;const[Xt,ft]=(0,te.useState)([]);let[Oe,Ce]=(0,te.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Ee=(0,ve.useParams)(),[tt,qe]=(0,te.useState)(!1),[ht,Gt]=(0,te.useState)(!1),[Tt]=ue.default.useForm();(0,te.useEffect)(()=>{$t&&(Oe.zydatas=$t,Ce(a({},Oe)),Ve!=null&&Ve.ec_course_id&&Yt())},[Ve,$t]);function Yt(){return y(this,null,function*(){console.log("----",Ve),yield dn(Ve==null?void 0:Ve.ec_major_school_id),yield ln(Ve==null?void 0:Ve.ec_year_id),yield zt(Ve==null?void 0:Ve.ec_course_id),Tt.setFieldsValue({ec_course_id:Ve==null?void 0:Ve.ec_course_id,ec_major_school_id:Ve==null?void 0:Ve.ec_major_school_id,ec_point_ids:Ve==null?void 0:Ve.ec_point_ids,ec_year_id:Ve==null?void 0:Ve.ec_year_id})})}function dn(Nt){return y(this,null,function*(){const Jt=yield(0,Be.ZP)(`/api/ec_major_schools/${Nt}/ec_years/get_year_list.json`,{method:"get"});Oe.jbdatas=Jt==null?void 0:Jt.data,Ce(a({},Oe)),Tt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function ln(Nt){return y(this,null,function*(){const Jt=yield(0,Be.ZP)(`/api/ec_years/${Nt}/ec_courses/get_courses.json`,{method:"get"});Oe.kcdatas=Jt==null?void 0:Jt.data,Ce(a({},Oe)),Tt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const zt=Nt=>y(void 0,null,function*(){const Jt=yield(0,Be.ZP)(`/api/ec_courses/${Nt}/ec_points.json`,{method:"get",params:{ec_course_id:Nt}});Oe.zsdatas=Jt==null?void 0:Jt.data,Ce(a({},Oe))});return te.createElement("div",{className:ze.from},te.createElement(ue.default,{form:Tt,layout:"inline",onValuesChange:Nt=>{console.log("----",Nt),Nt.ec_major_school_id&&(Oe.jbdatas=[],Oe.kcdatas=[],Oe.zsdatas=[],Ce(a({},Oe)),dn(Nt.ec_major_school_id)),Nt.ec_year_id&&(Oe.kcdatas=[],Oe.zsdatas=[],Ce(a({},Oe)),ln(Nt.ec_year_id)),Nt.ec_course_id&&(Oe.zsdatas=[],Ce(a({},Oe)),zt(Nt.ec_course_id))},onFinish:Nt=>y(void 0,null,function*(){Qe(Nt)})},te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},te.createElement(Me.default,{style:{width:150},disabled:((Ae=Oe.zydatas)==null?void 0:Ae.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(rt=Oe==null?void 0:Oe.zydatas)==null?void 0:rt.map((Nt,Jt)=>te.createElement(Me.default.Option,{key:Jt,value:Nt==null?void 0:Nt.ec_major_school_id},Nt==null?void 0:Nt.name)))),te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},te.createElement(Me.default,{style:{width:150},disabled:((Ft=Oe.jbdatas)==null?void 0:Ft.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Je=Oe==null?void 0:Oe.jbdatas)==null?void 0:Je.map((Nt,Jt)=>te.createElement(Me.default.Option,{key:Jt,value:Nt==null?void 0:Nt.ec_year_id},Nt==null?void 0:Nt.year)))),te.createElement(ue.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},te.createElement(Me.default,{style:{width:150},disabled:((dt=Oe.kcdatas)==null?void 0:dt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(me=Oe==null?void 0:Oe.kcdatas)==null?void 0:me.map((Nt,Jt)=>te.createElement(Me.default.Option,{key:Jt,value:Nt==null?void 0:Nt.id},Nt==null?void 0:Nt.name)))),te.createElement(ue.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},te.createElement(Me.default,{onChange:()=>{Tt.submit()},style:{width:150},mode:"multiple",disabled:((lt=Oe.zsdatas)==null?void 0:lt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Et=Oe==null?void 0:Oe.zsdatas)==null?void 0:Et.map((Nt,Jt)=>te.createElement(Me.default.Option,{key:Jt,value:Nt==null?void 0:Nt.id},Nt==null?void 0:Nt.name))))))};var x=(0,ve.connect)(({classroomList:Le,loading:Ue,globalSetting:Re,user:it})=>({classroomList:Le,globalSetting:Re,loading:Ue.effects,user:it}))(b),z=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Pe=(Le,Ue,Re)=>Ue in Le?z(Le,Ue,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Le[Ue]=Re,ce=(Le,Ue)=>{for(var Re in Ue||(Ue={}))ge.call(Ue,Re)&&Pe(Le,Re,Ue[Re]);if(re)for(var Re of re(Ue))de.call(Ue,Re)&&Pe(Le,Re,Ue[Re]);return Le},De=(Le,Ue)=>ee(Le,ne(Ue)),Ze=(Le,Ue,Re)=>new Promise((it,ut)=>{var Qe=$t=>{try{gt(Re.next($t))}catch(pe){ut(pe)}},Ve=$t=>{try{gt(Re.throw($t))}catch(pe){ut(pe)}},gt=$t=>$t.done?it($t.value):Promise.resolve($t.value).then(Qe,Ve);gt((Re=Re.apply(Le,Ue)).next())});const wt=et.default.Group,At=({classroomList:Le,loading:Ue,user:Re,exercise_id:it=null,homework_common_id:ut=null,setitem:Qe,type:Ve,dispatch:gt})=>{var $t,pe;let[Ae,rt]=(0,te.useState)([{}]),[Ft,Je]=(0,te.useState)([]);function dt(){return Ze(this,null,function*(){var lt,Et,Xt;let ft=yield(0,Be.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:it,homework_common_id:ut}});if(((lt=ft==null?void 0:ft.data)==null?void 0:lt.length)>0){let Oe=[];(Et=ft==null?void 0:ft.data)==null||Et.map(Ce=>{var Ee;(Ee=Ce==null?void 0:Ce.ec_point_ids)==null||Ee.map(tt=>{Oe.push(tt)})}),Qe(De(ce({},(Xt=ft==null?void 0:ft.data)==null?void 0:Xt[0]),{ec_point_ids:Oe})),rt(ft==null?void 0:ft.data)}})}(0,te.useEffect)(()=>{var lt,Et;(Et=(lt=Re==null?void 0:Re.userInfo)==null?void 0:lt.course)!=null&&Et.course_school_id&&me()},[(pe=($t=Re==null?void 0:Re.userInfo)==null?void 0:$t.course)==null?void 0:pe.course_school_id]);function me(){return Ze(this,null,function*(){var lt,Et;const Xt=yield(0,Be.ZP)(`/api/schools/${(Et=(lt=Re==null?void 0:Re.userInfo)==null?void 0:lt.course)==null?void 0:Et.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Je(Xt==null?void 0:Xt.data),(ut||it)&&dt()})}return te.createElement("div",null,te.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ae==null?void 0:Ae.map((lt,Et)=>te.createElement("div",{key:Et,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},te.createElement(x,{rz:Ft,item:lt,type:Et,setitem:Xt=>{Ae.splice(Et,1,Xt),rt([...Ae]);let ft=[];Ae==null||Ae.map(Oe=>{var Ce;(Ce=Oe==null?void 0:Oe.ec_point_ids)==null||Ce.map(Ee=>{ft.push(Ee)})}),Qe(De(ce({},Xt),{ec_point_ids:ft}))}}),Et!=0&&te.createElement(He.Z,{onClick:()=>{Ae.splice(Et,1),rt([...Ae])},style:{marginLeft:10,fontSize:"20px"}}),te.createElement(fe.Z,{onClick:()=>{Ae.push({}),rt([...Ae])},style:{marginLeft:10,fontSize:"20px"}}))))};var Zt=(0,ve.connect)(({classroomList:Le,loading:Ue,globalSetting:Re,user:it})=>({classroomList:Le,globalSetting:Re,loading:Ue.effects,user:it}))(At)},63205:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Xe}});var te=oe(67294),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},et=oe(94184),He=oe.n(et),fe=oe(57953),Be=oe(15979),ue=oe(33170),Me=oe(28706),ze=(je,Ie,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(je,Ie)).next())}),Xe=({data:je,className:Ie,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[Pe,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),je!=null&&je.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",je!=null&&je.src&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[je==null?void 0:je.visible]);const De=()=>ze(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,Me.ZJ)(je==null?void 0:je.src);z.current.src="",z.current.src=Le,z.current.onload=function(){Zt()},de(!1),ce("")}),Ze=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},wt=Le=>ze(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:Le.dataUrl}});Ue!=null&&Ue.id&&!x?(yield(0,ue.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(Le.state)}})).status===0&&E():Ue!=null&&Ue.id&&E(Ue),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),ce("")}),At=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(Re=>{const it=document.querySelector(Re.name);it&&it.setAttribute("title",Re.title)})},Zt=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",wt),ee.current.addEventListener("beforeclose",Ze),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(),je!=null&&je.snapshotData&&ee.current.restoreState(je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return te.createElement(te.Fragment,null,(je==null?void 0:je.visible)&&te.createElement(fe.Z,{spinning:ge,tip:Pe,style:{position:"absolute"}},te.createElement("div",{ref:re,className:He()(ve.imageDimensions,Ie,ae?ve.fullWidth:""),style:a},te.createElement("img",{className:ve.img,ref:z}))))}},36527:function(Ge,ct,oe){"use strict";var te=oe(67294),ve=oe(71230),et=oe(15746),He=oe(36182),fe=oe(71577),Be=oe(85725),ue=oe(71736),Me=oe(84279),ze=oe(67294);const $e=(0,te.forwardRef)(({callback:Xe,showSaveButton:je,value:Ie=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ze.createElement(ve.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,ne)=>ze.createElement(et.Z,{flex:"110px",className:ue.Z.item},ze.createElement("div",null,ze.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>ze.createElement("div",{key:ge},ze.createElement("h1",null,re.name),ze.createElement(ve.Z,{gutter:[10,10]},re.data.map((de,Pe)=>ze.createElement(et.Z,{key:Pe,onClick:()=>b(de),className:ue.Z.diamond},ze.createElement(Be.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(ve.Z,{className:ue.Z.lists,gutter:[10,10]},E.map((ee,ne)=>ze.createElement(et.Z,{flex:"110px",className:ue.Z.item},ze.createElement("div",null,ze.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>ze.createElement("div",{key:ge},re.name&&ze.createElement("h1",null,re.name),ze.createElement(ve.Z,{gutter:[10,10]},re.data.map((de,Pe)=>ze.createElement(et.Z,{key:Pe,onClick:()=>b(de),className:ue.Z.diamond},ze.createElement(Be.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Xe&&Xe(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),ze.createElement("div",{className:ue.Z.mathWrap},ze.createElement(He.default,{defaultActiveKey:"1",items:x}),ze.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),je&&ze.createElement("div",{className:ue.Z.button},ze.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ct.Z=$e},65866:function(Ge,ct,oe){"use strict";oe.d(ct,{z:function(){return it},Z:function(){return ut}});var te=oe(67294),ve=oe(92421),et=oe(2453),He=oe(14446),fe=oe(71577),Be=oe(11320),ue=oe(4440),Me=Object.defineProperty,ze=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,je=(Qe,Ve,gt)=>Ve in Qe?Me(Qe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Qe[Ve]=gt,Ie=(Qe,Ve)=>{for(var gt in Ve||(Ve={}))$e.call(Ve,gt)&&je(Qe,gt,Ve[gt]);if(ze)for(var gt of ze(Ve))Xe.call(Ve,gt)&&je(Qe,gt,Ve[gt]);return Qe},ae=(Qe,Ve,gt)=>new Promise(($t,pe)=>{var Ae=Je=>{try{Ft(gt.next(Je))}catch(dt){pe(dt)}},rt=Je=>{try{Ft(gt.throw(Je))}catch(dt){pe(dt)}},Ft=Je=>Je.done?$t(Je.value):Promise.resolve(Je.value).then(Ae,rt);Ft((gt=gt.apply(Qe,Ve)).next())});const a="\u3000\u3000";function y(Qe){var Ve=["Bytes","KB","MB","GB","TB"];if(Qe==0)return"0 Byte";var gt=parseInt(""+Math.floor(Math.log(Qe)/Math.log(1024)),10);return(Qe/Math.pow(1024,gt)).toFixed(1)+" "+Ve[gt]}var E=({value:Qe=[],action:Ve,onChange:gt,className:$t,maxSize:pe=150,title:Ae="\u6587\u4EF6\u4E0A\u4F20",accept:rt=null})=>{const Ft={multiple:!1,fileList:Qe,accept:rt,withCredentials:!0,beforeUpload:dt=>dt.size/1024/1024<pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${pe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(dt){var me,lt,Et,Xt;let ft=[...dt.fileList];if(ft=ft.map(Oe=>(Oe.name.indexOf(a)===-1&&(Oe.name=`${Oe.name}${a}${y(Oe.size)}`),Ie({},Oe))),dt.file.status==="done"&&((lt=(me=dt.file)==null?void 0:me.response)==null?void 0:lt.status)===-1){message.error((Xt=(Et=dt.file)==null?void 0:Et.response)==null?void 0:Xt.message),gt([]);return}gt(ft)},onRemove:dt=>ae(void 0,null,function*(){const me=dt.size/1024/1024;return dt.status==="uploading"?!0:me<pe&&(dt.response?dt.response.id:dt.uid)?yield removeAttachment(dt.response?dt.response.id:dt.id):!0})};function Je(dt){dt.preventDefault(),dt.stopPropagation()}return React.createElement("div",{className:`single-upload ${$t||""}`},React.createElement(Upload,Ie({},Ft),React.createElement(Button,{type:"primary",title:Qe.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Qe.length>0,ghost:!0},Ae),React.createElement("span",{onClick:Je,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",pe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(Qe,Ve,gt)=>Ve in Qe?z(Qe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Qe[Ve]=gt,de=(Qe,Ve)=>{for(var gt in Ve||(Ve={}))ne.call(Ve,gt)&&ge(Qe,gt,Ve[gt]);if(ee)for(var gt of ee(Ve))re.call(Ve,gt)&&ge(Qe,gt,Ve[gt]);return Qe};const Pe=Qe=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Qe),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",De=Object.defineProperty,Ze=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Zt=(Qe,Ve,gt)=>Ve in Qe?De(Qe,Ve,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Qe[Ve]=gt,Le=(Qe,Ve)=>{for(var gt in Ve||(Ve={}))wt.call(Ve,gt)&&Zt(Qe,gt,Ve[gt]);if(Ze)for(var gt of Ze(Ve))At.call(Ve,gt)&&Zt(Qe,gt,Ve[gt]);return Qe},Ue=(Qe,Ve,gt)=>new Promise(($t,pe)=>{var Ae=Je=>{try{Ft(gt.next(Je))}catch(dt){pe(dt)}},rt=Je=>{try{Ft(gt.throw(Je))}catch(dt){pe(dt)}},Ft=Je=>Je.done?$t(Je.value):Promise.resolve(Je.value).then(Ae,rt);Ft((gt=gt.apply(Qe,Ve)).next())});const{Dragger:Re}=ve.default;function it(Qe){let Ve=[];return Qe&&Qe.length>0&&(Ve=Qe.map(gt=>({uid:gt.id,id:gt.id,name:gt.title+a+gt.filesize,url:gt.url,filesize:gt.filesize,status:"done",response:{id:gt.id}}))),Ve}var ut=({value:Qe,onChange:Ve,action:gt,data:$t,className:pe,maxSize:Ae=150,title:rt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Ft=!1,accept:Je="",additionalText:dt,isDragger:me,number:lt=1e3,aloneClear:Et=!1,realTimeRemove:Xt=!0,uploadText:ft,setFileProgress:Oe,showFileProgress:Ce})=>{const[Ee,tt]=(0,te.useState)(!1);let[qe,ht]=(0,te.useState)(Qe||[]),[Gt,Tt]=(0,te.useState)(1);(0,te.useEffect)(()=>{Qe&&(Gt===1&&ht([...Qe]),Tt(2),lt===(Qe==null?void 0:Qe.length)&&tt(!0))},[Qe]);const Yt=()=>{setTimeout(()=>{qe.pop(),ht([...qe])},500)};Ce&&Oe(qe.some(zt=>zt.status==="uploading"));const dn={multiple:!0,disabled:Ee,accept:Je,withCredentials:!0,fileList:qe,beforeUpload:(zt,Nt)=>{const Jt=zt.size/1024/1024;return qe.concat(Nt).length>lt?(qe.pop(),ht([...qe]),et.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${lt}\u4E2A\u6587\u4EF6`),Et?Promise.reject():(Yt(),!1)):Jt<Ae?!0:(et.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ae}MB).`),Et?Promise.reject():(Yt(),!1))},data:$t,action:gt||`${Be.Z.API_SERVER}/api/attachments.json`,onChange(zt){var Nt,Jt,kn,Cn;if(zt.file.status==="removed"?qe=zt.fileList:qe=(0,x.uniqBy)([...zt.fileList,...qe],"uid"),zt.file.status==="done"&&((Jt=(Nt=zt.file)==null?void 0:Nt.response)==null?void 0:Jt.status)===-1){et.ZP.error((Cn=(kn=zt.file)==null?void 0:kn.response)==null?void 0:Cn.message);return}qe.length>=lt?tt(!0):tt(!1),ht([...qe]),qe=qe.map(vn=>{var we,Te;return(we=vn==null?void 0:vn.response)!=null&&we.id&&(vn.url=(Te=vn==null?void 0:vn.response)==null?void 0:Te.url),vn.name.indexOf(a)===-1&&(vn.name=`${vn.name}${a}${y(vn.size)}`),Le({},vn)}),console.log("info:",zt,qe),Ve(qe)},onRemove:zt=>Ue(void 0,null,function*(){if(!Xt)return!0;const Nt=()=>Ue(void 0,null,function*(){if(zt.response?zt.response.id:zt.id){let kn=yield(0,ue.JZ)(zt.response?zt.response.id:zt.uid);return Promise.resolve(kn)}else return!0});return Ft?new Promise((Jt,kn)=>{He.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ue(void 0,null,function*(){const Cn=yield Nt();et.ZP.success("\u5220\u9664\u6210\u529F"),Jt(!0)}),onCancel:()=>Jt(!1)})}):yield Nt()})};function ln(zt){zt.preventDefault(),zt.stopPropagation()}return te.createElement("div",{className:`multi-upload ${pe||""}`},me&&te.createElement(Re,Le({},dn),te.createElement("p",{className:"ant-upload-drag-icon"},te.createElement(b.Z,null)),te.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",te.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ae,"MB)"," "),dt),!me&&te.createElement(ve.default,Le({},dn),te.createElement(fe.ZP,{disabled:Ee,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:ce}),rt),te.createElement("span",{onClick:ln,className:"upload_text"},ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ae}MB)`)))}},57444:function(Ge,ct,oe){"use strict";oe.d(ct,{h:function(){return ee}});var te=oe(67294),ve=oe(42563),et=oe(91773),He=oe(71577),fe=oe(4631),Be=oe.n(fe),ue=oe(71749),Me=oe(30483),ze=Object.defineProperty,$e=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?ze(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,y=(ne,re)=>{for(var ge in re||(re={}))Ie.call(re,ge)&&a(ne,ge,re[ge]);if(je)for(var ge of je(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>$e(ne,Xe(re));const b=ve.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"]};ct.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function Pe(De){de(z[De][1])}function ce(De){ne(De)}return te.createElement(et.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(et.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ve.default,{getPopupContainer:De=>De.parentNode,onChange:Pe},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][0])))),te.createElement(et.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(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(He.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const Pe=(0,te.useRef)(),[ce,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let Ze=function(wt){const At=wt.getValue();re&&re(At)};return ce.on("change",Ze),()=>{ce.off("change",Ze)}}},[ce,re]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",ge)},[ce,ge]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(Pe.current&&!ce){const Ze=Be().fromTextArea(Pe.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De(Ze)}},[Pe.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Pe}))}},35567:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Ja}});var te=oe(67294),ve=oe(4631),et=oe.n(ve),He=oe(91033),fe=oe(71749),Be=oe(57341),ue=oe(82801),Me=oe(88386),ze=oe(49047),$e=oe(80785),Xe=oe(85725),je=({value:Fe="",className:xe,showTextOnly:ye,showLines:Pt,style:Wt={}})=>{const kt=(0,te.useMemo)(()=>"",[Fe]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:kt}}))},Ie=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Fe,xe,ye)=>xe in Fe?ae(Fe,xe,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Fe[xe]=ye,ee=(Fe,xe)=>{for(var ye in xe||(xe={}))b.call(xe,ye)&&z(Fe,ye,xe[ye]);if(E)for(var ye of E(xe))x.call(xe,ye)&&z(Fe,ye,xe[ye]);return Fe},ne=(Fe,xe)=>a(Fe,y(xe));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:Fe,title:xe,icon:ye,actionName:Pt,className:Wt="",children:kt}){function zn(){Fe(Pt)}return Ie.createElement("a",{title:xe,className:Wt,onClick:zn},Ie.createElement("i",{className:`${ye}`}),kt)}var de=({watch:Fe,showNullButton:xe,showNullProgramButton:ye,onActionCallback:Pt,fullScreen:Wt,insertTemp:kt,hidetoolBar:zn,extraUse:Sn})=>{const Fn=[...re,{title:`${Fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!zn&&Fn.map((qn,wa)=>Ie.createElement("li",{key:wa},qn.actionName?Ie.createElement(ge,ne(ee({},qn),{onActionCallback:Pt})):Ie.createElement("span",{className:"v-line"}))),xe?Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Pt},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ye?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Pt},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Pt},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,kt&&Ie.createElement("li",null,Ie.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${kt}`,onActionCallback:Pt},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Sn&&Ie.createElement("li",null,Sn),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(ge,{icon:`${Wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Pt})))},Pe=oe(76621),ce=oe(91773),De=oe(11486),Ze=oe(71577),wt=Object.defineProperty,At=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,it=(Fe,xe,ye)=>xe in Fe?wt(Fe,xe,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Fe[xe]=ye,ut=(Fe,xe)=>{for(var ye in xe||(xe={}))Ue.call(xe,ye)&&it(Fe,ye,xe[ye]);if(Le)for(var ye of Le(xe))Re.call(xe,ye)&&it(Fe,ye,xe[ye]);return Fe},Qe=(Fe,xe)=>At(Fe,Zt(xe));const Ve={labelCol:{span:4},wrapperCol:{span:20}};var gt=({callback:Fe,onCancel:xe})=>{function ye(Pt){Fe(Pt)}return te.createElement(ce.default,Qe(ut({},Ve),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ye,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(De.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(De.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},$t=oe(57444),pe=oe(70859),Ae=oe(14446),rt=oe(71230),Ft=oe(63205),Je=oe(67294),dt=({callback:Fe,onCancel:xe})=>{const ye=document.createElement("canvas"),Pt=ye.getContext("2d");ye.width=1e3,ye.height=800,Pt.fillStyle="#ffffff",Pt.fillRect(0,0,ye.width,ye.height);const Wt=ye.toDataURL("image/png");return Je.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Je.createElement(rt.Z,{style:{height:"100vh"}},Je.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Wt,visible:!0,title:String(Date.now())},onOk:kt=>{Fe({src:kt.url})},onClose:xe})))},me=oe(23495);function lt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(lt,go.CommandHandler),lt.prototype.canAlignSelection=function(){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<2)},lt.prototype.alignLeft=function(){var Fe=this.diagram;Fe.startTransaction("aligning left");var xe=1/0;Fe.selection.each(function(ye){ye instanceof go.Link||(xe=Math.min(ye.position.x,xe))}),Fe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(xe,ye.position.y))}),Fe.commitTransaction("aligning left")},lt.prototype.alignRight=function(){var Fe=this.diagram;Fe.startTransaction("aligning right");var xe=-1/0;Fe.selection.each(function(ye){if(!(ye instanceof go.Link)){var Pt=ye.actualBounds.x+ye.actualBounds.width;xe=Math.max(Pt,xe)}}),Fe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(xe-ye.actualBounds.width,ye.position.y))}),Fe.commitTransaction("aligning right")},lt.prototype.alignTop=function(){var Fe=this.diagram;Fe.startTransaction("alignTop");var xe=1/0;Fe.selection.each(function(ye){ye instanceof go.Link||(xe=Math.min(ye.position.y,xe))}),Fe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.position.x,xe))}),Fe.commitTransaction("alignTop")},lt.prototype.alignBottom=function(){var Fe=this.diagram;Fe.startTransaction("aligning bottom");var xe=-1/0;Fe.selection.each(function(ye){if(!(ye instanceof go.Link)){var Pt=ye.actualBounds.y+ye.actualBounds.height;xe=Math.max(Pt,xe)}}),Fe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.actualBounds.x,xe-ye.actualBounds.height))}),Fe.commitTransaction("aligning bottom")},lt.prototype.alignCenterX=function(){var Fe=this.diagram,xe=Fe.selection.first();if(xe){Fe.startTransaction("aligning Center X");var ye=xe.actualBounds.x+xe.actualBounds.width/2;Fe.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(ye-Pt.actualBounds.width/2,Pt.actualBounds.y))}),Fe.commitTransaction("aligning Center X")}},lt.prototype.alignCenterY=function(){var Fe=this.diagram,xe=Fe.selection.first();if(xe){Fe.startTransaction("aligning Center Y");var ye=xe.actualBounds.y+xe.actualBounds.height/2;Fe.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Pt.actualBounds.x,ye-Pt.actualBounds.height/2))}),Fe.commitTransaction("aligning Center Y")}},lt.prototype.alignColumn=function(Fe){var xe=this.diagram;xe.startTransaction("align Column"),Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var ye=new Array;xe.selection.each(function(Sn){Sn instanceof go.Link||ye.push(Sn)});for(var Pt=0;Pt<ye.length-1;Pt++){var Wt=ye[Pt],kt=Wt.actualBounds.y+Wt.actualBounds.height+Fe,zn=ye[Pt+1];zn.move(new go.Point(Wt.actualBounds.x,kt))}xe.commitTransaction("align Column")},lt.prototype.alignRow=function(Fe){Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var xe=this.diagram;xe.startTransaction("align Row");var ye=new Array;xe.selection.each(function(Sn){Sn instanceof go.Link||ye.push(Sn)});for(var Pt=0;Pt<ye.length-1;Pt++){var Wt=ye[Pt],kt=Wt.actualBounds.x+Wt.actualBounds.width+Fe,zn=ye[Pt+1];zn.move(new go.Point(kt,Wt.actualBounds.y))}xe.commitTransaction("align Row")},lt.prototype.canRotate=function(Fe){var xe=this.diagram;return!(xe===null||xe.isReadOnly||xe.isModelReadOnly||xe.selection.count<1)},lt.prototype.rotate=function(Fe){Fe===void 0&&(Fe=90);var xe=this.diagram;xe.startTransaction("rotate "+Fe.toString());var xe=this.diagram;xe.selection.each(function(ye){ye instanceof go.Link||ye instanceof go.Group||(ye.angle+=Fe)}),xe.commitTransaction("rotate "+Fe.toString())},lt.prototype.pullToFront=function(){var Fe=this.diagram;Fe.startTransaction("pullToFront");var xe=new go.Map;Fe.selection.each(function(ye){xe.set(ye.layer,0)}),xe.iteratorKeys.each(function(ye){var Pt=0;ye.parts.each(function(Wt){if(!Wt.isSelected){var kt=Wt.zOrder;isNaN(kt)?Wt.zOrder=0:Pt=Math.max(Pt,kt)}}),xe.set(ye,Pt)}),Fe.selection.each(function(ye){lt._assignZOrder(ye,xe.get(ye.layer)+1)}),Fe.commitTransaction("pullToFront")},lt.prototype.pushToBack=function(){var Fe=this.diagram;Fe.startTransaction("pushToBack");var xe=new go.Map;Fe.selection.each(function(ye){xe.set(ye.layer,0)}),xe.iteratorKeys.each(function(ye){var Pt=0;ye.parts.each(function(Wt){if(!Wt.isSelected){var kt=Wt.zOrder;isNaN(kt)?Wt.zOrder=0:Pt=Math.min(Pt,kt)}}),xe.set(ye,Pt)}),Fe.selection.each(function(ye){lt._assignZOrder(ye,xe.get(ye.layer)-1-lt._findGroupDepth(ye))}),Fe.commitTransaction("pushToBack")},lt._assignZOrder=function(Fe,xe,ye){ye===void 0&&(ye=Fe),Fe.layer===ye.layer&&(Fe.zOrder=xe),Fe instanceof go.Group&&Fe.memberParts.each(function(Pt){lt._assignZOrder(Pt,xe+1,ye)})},lt._findGroupDepth=function(Fe){if(Fe instanceof go.Group){var xe=0;return Fe.memberParts.each(function(ye){xe=Math.max(xe,lt._findGroupDepth(ye))}),xe+1}else return 0},lt.prototype.doKeyDown=function(){var Fe=this.diagram;if(Fe!==null){var xe=Fe.lastInput;if(xe.key==="Up"||xe.key==="Down"||xe.key==="Left"||xe.key==="Right"){var ye=this.arrowKeyBehavior;if(ye==="none")return;if(ye==="select"){this._arrowKeySelect();return}else if(ye==="move"){this._arrowKeyMove();return}else if(ye==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},lt.prototype._getAllParts=function(){var Fe=new Array;return this.diagram.nodes.each(function(xe){Fe.push(xe)}),this.diagram.parts.each(function(xe){Fe.push(xe)}),Fe},lt.prototype._arrowKeyMove=function(){var Fe=this.diagram,xe=Fe.lastInput,ye=0,Pt=0;if(xe.control||xe.meta)ye=1,Pt=1;else if(Fe.grid!==null){var Wt=Fe.grid.gridCellSize;Pt=Wt.width,ye=Wt.height}Fe.startTransaction("arrowKeyMove"),Fe.selection.each(function(kt){xe.key==="Up"?kt.move(new go.Point(kt.actualBounds.x,kt.actualBounds.y-ye)):xe.key==="Down"?kt.move(new go.Point(kt.actualBounds.x,kt.actualBounds.y+ye)):xe.key==="Left"?kt.move(new go.Point(kt.actualBounds.x-Pt,kt.actualBounds.y)):xe.key==="Right"&&kt.move(new go.Point(kt.actualBounds.x+Pt,kt.actualBounds.y))}),Fe.commitTransaction("arrowKeyMove")},lt.prototype._arrowKeySelect=function(){var Fe=this.diagram,xe=Fe.lastInput,ye=null;xe.key==="Up"?ye=this._findNearestPartTowards(270):xe.key==="Down"?ye=this._findNearestPartTowards(90):xe.key==="Left"?ye=this._findNearestPartTowards(180):xe.key==="Right"&&(ye=this._findNearestPartTowards(0)),ye!==null&&(xe.shift?ye.isSelected=!0:xe.control||xe.meta?ye.isSelected=!ye.isSelected:Fe.select(ye))},lt.prototype._findNearestPartTowards=function(Fe){var xe=this.diagram.selection.first();if(xe===null)return null;for(var ye=xe.actualBounds.center,Pt=this._getAllParts(),Wt=1/0,kt=xe,zn=0;zn<Pt.length;zn++){var Sn=Pt[zn];if(Sn!==xe&&Sn.canSelect()){var Fn=Sn.actualBounds.center,qn=ye.directionPoint(Fn),wa=this._angleCloseness(qn,Fe);if(wa<=45){var mt=ye.distanceSquaredPoint(Fn);mt*=1+Math.sin(wa*Math.PI/180),mt<Wt&&(Wt=mt,kt=Sn)}}}return kt},lt.prototype._angleCloseness=function(Fe,xe){return Math.min(Math.abs(xe-Fe),Math.min(Math.abs(xe+360-Fe),Math.abs(xe-360-Fe)))},lt.prototype._arrowKeyTree=function(){var Fe=this.diagram,xe=Fe.selection.first();if(xe instanceof go.Node){var ye=Fe.lastInput;if(ye.key==="Right"){if(!xe.isTreeLeaf)if(!xe.isTreeExpanded)Fe.commandHandler.canExpandTree(xe)&&Fe.commandHandler.expandTree(xe);else{var Pt=this._sortTreeChildrenByY(xe).first();Pt!==null&&Fe.select(Pt)}}else if(ye.key==="Left")if(!xe.isTreeLeaf&&xe.isTreeExpanded)Fe.commandHandler.canCollapseTree(xe)&&Fe.commandHandler.collapseTree(xe);else{var Wt=xe.findTreeParentNode();Wt!==null&&Fe.select(Wt)}else if(ye.key==="Up"){var Wt=xe.findTreeParentNode();if(Wt!==null){var kt=this._sortTreeChildrenByY(Wt),zn=kt.indexOf(xe);if(zn>0){for(var Sn=kt.elt(zn-1);Sn!==null&&Sn.isTreeExpanded&&!Sn.isTreeLeaf;){var Fn=this._sortTreeChildrenByY(Sn);Sn=Fn.last()}Sn!==null&&Fe.select(Sn)}else Fe.select(Wt)}}else if(ye.key==="Down")if(xe.isTreeExpanded&&!xe.isTreeLeaf){var Pt=this._sortTreeChildrenByY(xe).first();Pt!==null&&Fe.select(Pt)}else for(;xe!==null;){var Wt=xe.findTreeParentNode();if(Wt===null)break;var kt=this._sortTreeChildrenByY(Wt),zn=kt.indexOf(xe);if(zn<kt.length-1){Fe.select(kt.elt(zn+1));break}else xe=Wt}var qn=Fe.selection.first();qn!==null&&Fe.scrollToRect(qn.actualBounds)}},lt.prototype._sortTreeChildrenByY=function(Fe){var xe=new go.List().addAll(Fe.findTreeChildrenNodes());return xe.sort(function(ye,Pt){var Wt=ye.location,kt=Pt.location;return Wt.y<kt.y?-1:Wt.y>kt.y?1:Wt.x<kt.x?-1:Wt.x>kt.x?1:0}),xe},lt.prototype.copyToClipboard=function(Fe){go.CommandHandler.prototype.copyToClipboard.call(this,Fe),this._lastPasteOffset.set(this.pasteOffset)},lt.prototype.pasteFromClipboard=function(){var Fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Fe},Object.defineProperty(lt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Fe){if(Fe!=="move"&&Fe!=="select"&&Fe!=="scroll"&&Fe!=="tree"&&Fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Fe);this._arrowKeyBehavior=Fe}}),Object.defineProperty(lt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Fe){if(!(Fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Fe);this._pasteOffset.set(Fe)}});var Et=lt,Xt=oe(18023),ft=oe(15746),Oe=oe(33170),Ce={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ee=oe(67294),tt=(Fe,xe,ye)=>new Promise((Pt,Wt)=>{var kt=Fn=>{try{Sn(ye.next(Fn))}catch(qn){Wt(qn)}},zn=Fn=>{try{Sn(ye.throw(Fn))}catch(qn){Wt(qn)}},Sn=Fn=>Fn.done?Pt(Fn.value):Promise.resolve(Fn.value).then(kt,zn);Sn((ye=ye.apply(Fe,xe)).next())});function qe({onCancel:Fe,callback:xe}){let ye=(0,te.useRef)(),Pt=(0,te.useRef)(),Wt=(0,te.useRef)(),kt=(0,te.useRef)(!1);const zn=(0,te.useRef)(!1),[Sn,Fn]=(0,te.useState)(0);function qn(){const mt=me.bx.make,xn={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"};ye.current=new me.S0(Pt.current,{padding:20,grid:mt(me.s_,"Grid",mt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:nt=>{var yt=nt.diagram.commandHandler.addTopLevelParts(nt.diagram.selection,!0);yt||nt.diagram.currentTool.doCancel()},commandHandler:mt(Et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:nt=>{var yt=nt.subject;yt.location=yt.location.copy().snapToGridPoint(nt.diagram.grid.gridOrigin,nt.diagram.grid.gridCellSize),setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:nt=>{var yt=nt.subject;setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()})},LinkRelinked:nt=>{var yt=nt.parameter.part;yt.invalidateConnectedLinks();var Kt=nt.subject;nt.diagram.toolManager.linkingTool.isForwards?Kt.toNode.invalidateConnectedLinks():Kt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ye.current.nodeTemplate=mt(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),mt(me.bn,{name:"SHAPE",fill:xn.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")),mt(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mt(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),ye.current.nodeTemplate.toolTip=mt("ToolTip",mt(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},mt(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),mt(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function va(nt,yt){var Kt=(Bt,wn)=>{Bt.handled=!0,Bt.diagram.model.commit(pn=>{var Zn=wn.part.adornedPart,Un=new me.E9().setRectSpot(Zn.actualBounds,nt);Un.subtract(Zn.location),Un.scale(2,2),Un.x+=Math.sign(Un.x)*130,Un.y+=Math.sign(Un.y)*130,Un.add(Zn.location),Un.snapToGridPoint(Bt.diagram.grid.gridOrigin,Bt.diagram.grid.gridCellSize);var Kn=pn.copyNodeData(Zn.data);pn.setGroupKeyForNodeData(Kn,pn.getGroupKeyForNodeData(Zn.data)),pn.addNodeData(Kn);var En={from:Zn.key,to:pn.getKeyForNodeData(Kn)};pn.addLinkData(En);var pa=Bt.diagram.findNodeForData(Kn);pa.location=Un,Bt.diagram.select(pa),setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()},20)})};return mt(me.bn,{figure:yt,alignment:nt,alignmentFocus:nt.opposite(),width:nt.equals(me.z6.Top)||nt.equals(me.z6.Bottom)?25:18,height:nt.equals(me.z6.Top)||nt.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:xn.white,strokeWidth:4,mouseEnter:(Bt,wn)=>wn.fill="dodgerblue",mouseLeave:(Bt,wn)=>wn.fill="orange",isActionable:!0,click:Kt,contextClick:Kt})}function eo(nt){return mt(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:(yt,Kt)=>Kt.fill="dodgerblue",mouseLeave:(yt,Kt)=>Kt.fill="orange",click:(yt,Kt)=>{yt.diagram.commandHandler.showContextMenu(Kt.part.adornedPart)}},nt||{})}ye.current.nodeTemplate.selectionAdornmentTemplate=mt(me.uz,"Spot",mt(me.Vm,{padding:10}),va(me.z6.Top,"TriangleUp"),va(me.z6.Left,"TriangleLeft"),va(me.z6.Right,"TriangleRight"),va(me.z6.Bottom,"TriangleDown"),eo({alignment:new me.z6(.75,0)}));function ma(nt,yt){return(Kt,Bt)=>{Kt.handled=!0,Kt.diagram.model.commit(wn=>{wn.set(Bt.part.adornedPart.data,nt,yt)})}}function ea(nt,yt){return yt||(yt="color"),mt(me.bn,{width:16,height:16,stroke:"lightgray",fill:nt,margin:1,background:"transparent",mouseEnter:(Kt,Bt)=>Bt.stroke="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.stroke="lightgray",click:ma(yt,nt),contextClick:ma(yt,nt)})}function to(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",ea(xn.white,"fill"),ea(xn.beige,"fill"),ea(xn.extralightblue,"fill"),ea(xn.extralightred,"fill"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",ea(xn.lightgray,"fill"),ea(xn.lightgreen,"fill"),ea(xn.lightblue,"fill"),ea(xn.lightred,"fill")))]}function fo(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",ea(xn.black),ea(xn.green),ea(xn.blue),ea(xn.red))),mt("ContextMenuButton",mt(me.s_,"Horizontal",ea(xn.white),ea(xn.magenta),ea(xn.purple),ea(xn.orange)))]}function be(nt,yt){return yt||(yt="thickness"),mt(me.bn,"LineH",{width:16,height:16,strokeWidth:nt,margin:1,background:"transparent",mouseEnter:(Kt,Bt)=>Bt.background="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.background="transparent",click:ma(yt,nt),contextClick:ma(yt,nt)})}function We(nt,yt){return yt||(yt="dash"),mt(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:nt,margin:1,background:"transparent",mouseEnter:(Kt,Bt)=>Bt.background="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.background="transparent",click:ma(yt,nt),contextClick:ma(yt,nt)})}function ke(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",be(1),be(2),be(3),be(4))),mt("ContextMenuButton",mt(me.s_,"Horizontal",We(null),We([2,4]),We([4,4])))]}function _e(nt,yt){return yt||(yt="figure"),mt(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:nt,margin:1,background:"transparent",mouseEnter:(Kt,Bt)=>Bt.fill="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.fill="lightgray",click:ma(yt,nt),contextClick:ma(yt,nt)})}ye.current.nodeTemplate.contextMenu=mt("ContextMenu",mt("ContextMenuButton",mt(me.s_,"Horizontal",_e("Rectangle"),_e("RoundedRectangle"),_e("Ellipse"),_e("Diamond"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",_e("Parallelogram2"),_e("ManualOperation"),_e("Procedure"),_e("Cylinder1"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",_e("Terminator"),_e("CreateRequest"),_e("Document"),_e("TriangleDown"))),to(),fo(),ke()),ye.current.groupTemplate=mt(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(nt,yt)=>{var Kt=yt.addMembers(yt.diagram.selection,!0);Kt||yt.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),mt(me.s_,"Auto",{name:"BODY"},mt(me.bn,{parameter1:10,fill:xn.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")),mt(me.Vm,{background:"transparent",margin:20})),mt(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"))),ye.current.groupTemplate.selectionAdornmentTemplate=mt(me.uz,"Spot",mt(me.s_,"Auto",mt(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mt(me.Vm,{margin:1.5})),eo({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),ye.current.groupTemplate.contextMenu=mt("ContextMenu",to(),fo(),ke()),ye.current.linkTemplate=mt(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",nt=>nt>=1?10:0),new me.KX("toShortLength","dir",nt=>nt>=1?10:0),new me.KX("points").makeTwoWay(),mt(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),mt(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",nt=>nt===1)),mt(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",nt=>nt>=1),new me.KX("width","thickness",nt=>7+3*nt),new me.KX("height","thickness",nt=>7+3*nt),new me.KX("segmentOffset","thickness",nt=>new me.E9(-15,4+1.5*nt))),mt(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",nt=>nt===2),new me.KX("width","thickness",nt=>7+3*nt),new me.KX("height","thickness",nt=>7+3*nt),new me.KX("segmentOffset","thickness",nt=>new me.E9(-15,4+1.5*nt))),mt(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),ye.current.linkTemplate.selectionAdornmentTemplate=mt(me.uz,mt(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:St(2)},new me.KX("pathPattern","thickness",St)),eo({alignmentFocus:new me.z6(0,0,-6,-4)}));function St(nt){return mt(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(nt+4).toString()+" H3"})}function at(nt){var yt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return nt===0?yt="M0 0 M16 16 M0 8 L16 8":nt===2&&(yt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mt(me.bn,{geometryString:yt,margin:2,background:"transparent",mouseEnter:(Kt,Bt)=>Bt.background="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.background="transparent",click:ma("dir",nt),contextClick:ma("dir",nt)})}function st(nt){var yt=(Kt,Bt)=>{Kt.handled=!0,Kt.diagram.model.commit(wn=>{var pn=Bt.part.adornedPart;wn.set(pn.data,nt?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(nt?pn.toNode:pn.fromNode).invalidateConnectedLinks()})};return mt(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Kt,Bt)=>Bt.background="dodgerblue",mouseLeave:(Kt,Bt)=>Bt.background="transparent",click:yt,contextClick:yt})}function Se(nt,yt){var Kt=0,Bt=me.z6.RightSide;nt.equals(me.z6.Top)?(Kt=270,Bt=me.z6.TopSide):nt.equals(me.z6.Left)?(Kt=180,Bt=me.z6.LeftSide):nt.equals(me.z6.Bottom)&&(Kt=90,Bt=me.z6.BottomSide),yt||(Kt-=180);var wn=(pn,Zn)=>{pn.handled=!0,pn.diagram.model.commit(Un=>{var Kn=Zn.part.adornedPart;Un.set(Kn.data,yt?"toSpot":"fromSpot",me.z6.stringify(Bt)),(yt?Kn.toNode:Kn.fromNode).invalidateConnectedLinks()})};return mt(me.bn,{alignment:nt,alignmentFocus:nt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Kt,background:"transparent",mouseEnter:(pn,Zn)=>Zn.background="dodgerblue",mouseLeave:(pn,Zn)=>Zn.background="transparent",click:wn,contextClick:wn})}ye.current.linkTemplate.contextMenu=mt("ContextMenu",fo(),ke(),mt("ContextMenuButton",mt(me.s_,"Horizontal",at(0),at(1),at(2))),mt("ContextMenuButton",mt(me.s_,"Horizontal",mt(me.s_,"Spot",st(!1),Se(me.z6.Top,!1),Se(me.z6.Left,!1),Se(me.z6.Right,!1),Se(me.z6.Bottom,!1)),mt(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},st(!0),Se(me.z6.Top,!0),Se(me.z6.Left,!0),Se(me.z6.Right,!0),Se(me.z6.Bottom,!0)))));const nn=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Ut=["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 gn(nt){return console.log("shapeName:",nt),Ut.indexOf(nt)>=0}var hn=new me.YI(Wt.current,{maxSelectionCount:1,linkTemplate:mt(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:mt(me.uz,"Link",{locationSpot:me.z6.Center},mt(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mt(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),mt(me.bn,{isPanelMain:!0,strokeWidth:2}),mt(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(nt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:nt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ye.current.addDiagramListener("TextEdited",function(nt){var yt;const Kt=nt.subject.part;var Bt=(yt=document.activeElement)==null?void 0:yt.value;typeof Bt=="string"&&Bt.trim()===""&&ye.current.model.commit(function(wn){wn.set(Kt.data,"text","\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}),hn.nodeTemplate=mt(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),mt(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")),mt(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(()=>{ye.current.grid=mt(me.s_,"Grid",mt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ye.current.grid.visible=!0,ye.current.grid.gridCellStroke="darkgray",ye.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ye.current,ye.current}const wa=()=>tt(this,null,function*(){var mt=ye.current.makeImage();const xn=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src}});xe({src:xn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{qn()},500),Fn(Sn+1),()=>{ye.current=null}),[]),Ee.createElement("div",{ref:zn,className:kt.current?`${Ce.maxH60} body-overflow-initial`:"body-overflow-initial"},Ee.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Sn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ee.createElement(rt.Z,null,Ee.createElement(ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ee.createElement(ft.Z,{onClick:()=>{var mt,xn,va=ye.current.selection.first();if(kt.current=!kt.current,document.activeElement&&va){let eo=(xn=(mt=document.activeElement)==null?void 0:mt.value)==null?void 0:xn.trim();typeof eo=="string"&&ye.current.model.commit(function(ma){ma.set(va.data,"text",eo||"\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}Fn(Sn+1)}},Ee.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Fe},Ee.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ce.flowChartWrp},Ee.createElement("div",{style:{display:"flex",height:"100%"}},Ee.createElement("div",{style:{width:"300px",height:"100%"}},Ee.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ee.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ce.myPaletteDiv,ref:Wt})),Ee.createElement("div",{style:{flex:1,position:"relative"}},Ee.createElement("div",{ref:Pt,style:{height:"80vh"}}))),Ee.createElement("div",{className:"tr"},Ee.createElement(Ze.ZP,{size:"large",onClick:wa,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ht=qe,Gt=oe(78045),Tt=oe(42405);const Yt=Gt.ZP.Group,dn={margin:"0 8px"};var ln=({callback:Fe,onCancel:xe})=>{function ye(Pt){Fe(Pt)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ye},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:dn},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:dn},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Tt.Z,null)),te.createElement("span",{style:dn},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Tt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:dn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(Yt,null,te.createElement(Gt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Gt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Gt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Gt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},zt=oe(47897),Nt=oe(61016),Jt=oe.n(Nt),Cn=(0,te.forwardRef)(({use3d:Fe,width:xe,height:ye,callback:Pt,showSaveButton:Wt},kt)=>{const zn=(0,te.useRef)(),Sn=(0,te.useRef)(),[Fn,qn]=(0,te.useState)(!1),wa=(0,te.useRef)({id:zn,appName:"graphing",width:xe||1e3,height:ye||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)(()=>{Sn.current=new(Jt())(wa.current,!0),window.onload=function(){Sn.current.inject("applet_container")}},[]);const mt=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return Pt&&Pt(xn),xn};return(0,te.useEffect)(()=>{wa.current.appName=Fn?"3D":"graphing",Sn.current.inject("applet_container")},[Fn]),(0,te.useEffect)(()=>{qn(Fe)},[Fe]),(0,te.useImperativeHandle)(kt,()=>({getImgData:mt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zn}),te.createElement(rt.Z,{align:"middle"},te.createElement(ft.Z,{flex:1},te.createElement(zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Fn,onChange:xn=>qn(xn)})),te.createElement(ft.Z,null,te.createElement(Ze.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),vn=oe(36527),we=oe(25934),Te=oe(2453);const ot="link",pt="upload-image",xt="add-flowchart",qt="draw-image",tn="add-flowchart",Dt="code-block",en="add-table",Ln="------------",rn={default:Ln,left:`:${Ln}`,center:`:${Ln}:`,right:`${Ln}:`};var jn=oe(99914),Yn=(Fe,xe,ye)=>new Promise((Pt,Wt)=>{var kt=Fn=>{try{Sn(ye.next(Fn))}catch(qn){Wt(qn)}},zn=Fn=>{try{Sn(ye.throw(Fn))}catch(qn){Wt(qn)}},Sn=Fn=>Fn.done?Pt(Fn.value):Promise.resolve(Fn.value).then(kt,zn);Sn((ye=ye.apply(Fe,xe)).next())});function Qn(){}let Wn=0;const In=1e4,An="\u2581",Jn="@\u2581\u2581@",La="@\u2581@",ha=`
**\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`,Dn=["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 Pa(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}const aa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ga={[aa+"-B"]:"bold",[aa+"-I"]:"italic"},qa={[ot]:"\u6DFB\u52A0\u94FE\u63A5",[Dt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[pt]:"\u6DFB\u52A0\u56FE\u7247",[qt]:"\u6DFB\u52A0\u753B\u56FE",[xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[en]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ja=({defaultValue:Fe="",onChange:xe,width:ye="100%",height:Pt=400,miniToolbar:Wt=!1,isFocus:kt=!1,watch:zn,insertTemp:Sn,mode:Fn="markdown",id:qn="markdown-editor-id",showResizeBar:wa=!1,noStorage:mt=!1,showNullButton:xn=!1,showNullProgramButton:va=!1,hidetoolBar:eo=!1,fullScreen:ma=!1,onBlur:ea,onCMBeforeChange:to,onFullScreen:fo,className:be="",disablePaste:We=!1,disabled:ke=!1,disabledFill:_e=!1,placeholder:St="",values:at="",extraUse:st})=>{const[Se,nn]=(0,te.useState)(null),[Ut,gn]=(0,te.useState)(Fe),[hn,nt]=(0,te.useState)(zn),[yt,Kt]=(0,te.useState)(ma),[Bt,wn]=(0,te.useState)(""),[pn,Zn]=(0,te.useState)(0),[Un,Kn]=(0,te.useState)(Pt),[En,pa]=(0,te.useState)(!1),Ea=(0,te.useRef)((0,we.Z)()),Bo=(0,te.useRef)(!1),no=(0,te.useRef)(),[Xa,So]=(0,te.useState)(0),[Ao,zo]=(0,te.useState)(0),Ya=(0,te.useRef)(),Ia=(0,te.useRef)(),ia=(0,te.useRef)(),ho=(0,te.useRef)(),To=()=>Yn(void 0,null,function*(){var It;const bt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ea.current}});(It=bt==null?void 0:bt.attachments)!=null&&It.length&&(console.log("cm:",Se,Ya),bt.attachments.map(Mt=>{Mt.content_type.indexOf("image")>-1?Se.replaceSelection(`![,](/api/attachments/${Mt.id}?type=${Mt.content_type})`):Mt.content_type.indexOf("video")>-1?Se.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Mt.content_type.indexOf("pdf")>-1?Se.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Mt.id}?type=${Mt.content_type}&disposition=inline" target="_blank">${Mt.name}</a>`):Se.replaceSelection(`[${Mt.name}](${ENV.API_SERVER}/api/attachments/${Mt.id}?type=${Mt.content_type})`)}))});(0,te.useEffect)(()=>{const It=window.scrollY||window.pageYOffset;gn(at),Se==null||Se.setValue(at),window.scrollTo(0,It)},[at]),(0,te.useEffect)(()=>{fo==null||fo(yt)},[yt]),(0,te.useEffect)(()=>{if(Ya.current){let It=function(Mt,Rt){var Rn;if(We){Rt.preventDefault();return}const ca=Rt.clipboardData;if(ca){const Ra=ca.types.toString(),Ba=ca.items;if(Ra==="Files"||ca.types.indexOf("Files")>-1){if(Rt.preventDefault(),Fn=="stex")return;try{let Ma=Ba[1];((Rn=Ba[0])==null?void 0:Rn.kind)==="file"&&(Ma=Ba[0]);const $a=Ma.getAsFile(),lo=$a.name.split(".").pop();(0,pe.I)($a,Qa=>{var Vo,er,ko;Qa.id?((Vo=$a==null?void 0:$a.type)==null?void 0:Vo.indexOf("image"))>-1?bt.replaceSelection(`<img width="100%" src="/api/attachments/${Qa.id}?type=${Qa.content_type})" alt="" />`):((er=$a==null?void 0:$a.type)==null?void 0:er.indexOf("video"))>-1?bt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qa.id}"></video>`):((ko=$a==null?void 0:$a.type)==null?void 0:ko.indexOf("pdf"))>-1?bt.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=${$a.type}&disposition=inline" target="_blank">${$a.name}</a>`):Dn.includes(lo)?bt.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=office&disposition=inline" target="_blank">${$a.name}</a>`):bt.replaceSelection(`[${$a.name}](/api/attachments/${Qa.id}?type=${Qa.content_type})`):(Qa==null?void 0:Qa.status)===401&&(Te.ZP.warning((Qa==null?void 0:Qa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ma){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const bt=et().fromTextArea(Ya.current,{mode:Fn,lineNumbers:!Wt,lineWrapping:!0,value:Fe,autoCloseTags:!va,autoCloseBrackets:!0});return bt.on("keyup",function(Mt,Rt){Rt.keyCode===8&&(Mt.getValue()==""?bt.setOption("placeholder",St):bt.setOption("placeholder",null))}),bt.on("keydown",function(Mt,Rt){if(Rt.keyCode===8){var Rn=io(Mt);Rn&&Rt.preventDefault()}}),kt&&bt.focus(),bt.on("paste",It),bt.on("dragleave",function(Mt,Rt){Ia.current.classList.remove("mouse-hover-md")}),ke&&bt.on("beforeChange",function(Mt,Rt){(Rt.origin==="paste"||Rt.origin==="+input")&&Rt.cancel()}),nn(bt),()=>{bt.off("paste",It)}}},[]);const ao=(0,te.useCallback)(()=>{if(Ia.current)try{}catch(It){console.log(It,"---- to set md editor body height")}},[Un,Ia,yt]);(0,te.useEffect)(()=>{function It(){let bt=new He.Z(Mt=>{for(let Rt of Mt)(Rt.target.offsetHeight>0||Rt.target.offsetWidth>0)&&(ao(),Se.setSize("100%","100%"),Se.refresh())});return bt.observe(Ya.current.parentElement),bt}if(Se){const bt=It();return()=>{var Mt,Rt;(Mt=Ya.current)!=null&&Mt.parentElement&&bt.unobserve((Rt=Ya.current)==null?void 0:Rt.parentElement)}}},[Se,ao]),(0,te.useEffect)(()=>{if(Se){let It=[];for(const[bt,Mt]of Object.entries(Ga)){let Rt={[bt]:()=>{Da(Mt)}};It.push(Rt),Se.addKeyMap(Rt)}return no.current=setInterval(()=>{Bo.current&&To()},4e3),()=>{clearInterval(no.current);for(let bt of It)Se.removeKeyMap(bt)}}},[Se]),(0,te.useEffect)(()=>{ma!==yt&&Kt(ma)},[ma]),(0,jn.Z)(()=>{if(!mt&&pn>0){let It=new Date().getTime(),bt=window.sessionStorage.getItem(qn);It>=pn+In&&(!bt||bt!==Ut)&&(window.sessionStorage.setItem(qn,Ut),pa(!0))}},In),(0,te.useEffect)(()=>{nt(zn)},[Se,zn]),(0,te.useEffect)(()=>{Se&&kt&&Se.focus()},[Se,kt]),(0,te.useEffect)(()=>{if(hn&&Se){let It=function(Mt){let Rt=Mt.target;if(ho.current){let Rn=Rt.scrollTop/Rt.scrollHeight;ho.current.scrollTop=ho.current.scrollHeight*Rn}};const bt=Se.getScrollerElement();return bt.addEventListener("scroll",It),()=>{bt.removeEventListener("scroll",It)}}},[Se,hn]),(0,te.useEffect)(()=>{if(Se&&to){let It=function(bt,Mt){to(bt,Mt)};return Se.on("beforeChange",It),()=>{Se.off("beforeChange",It)}}},[Se,to]),(0,te.useEffect)(()=>{if(Se&&ea){let It=function(){ea(Se.getValue())};return Se.on("blur",It),()=>{Se.off("blur",It)}}},[Se,ea]);function io(It,bt){var Mt=It.getDoc(),Rt=Mt.getCursor(),Rn=Mt.getLine(Rt.line),ca=Rn.charAt(Rt.ch-1),Ra=Rn.lastIndexOf("@\u2581@",Rt.ch),Ba=Rn.lastIndexOf("@\u2581\u2581@",Rt.ch),Ma=Ra>Ba?Ra:Ba,$a=Ra>Ba?3:4;if(Jn.indexOf(ca)===-1)return null;if(console.log("change1:",bt,It,Rn,Rt,Ma,Ra,Ba,ca),Ma>=0&&Rt.ch-Ma<5){var lo=Ma+$a;return Mt.replaceRange("",{line:Rt.line,ch:Ma},{line:Rt.line,ch:lo}),{line:Rt.line,ch:lo}}return null}(0,te.useEffect)(()=>{if(Se){let It=function(bt,Mt){const Rt=bt.getValue();gn(Rt),Zn(new Date().getTime()),bt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),xe&&(va?xe(Rt,qo(Rt)):xe(Rt))};return Se.on("change",It),()=>{Se.off("change",It)}}},[Se,xe]),(0,te.useEffect)(()=>{if(Se)if(Fe==null)Se.setValue(""),gn("");else{const It=window.scrollY||window.pageYOffset;Fe!==Se.getValue()&&(Se.setValue(Fe),gn(Fe),Se.setCursor(ke?1:Se.lineCount(),0),window.scrollTo(0,It))}},[Se,Fe]);const Da=(0,te.useCallback)(It=>{const bt=Se.getCursor(),Mt=Se.getSelection();let Rt=Mt.split(`
`);switch(It){case"bold":return Se.replaceSelection("**"+Mt+"**"),Mt===""&&Se.setCursor(bt.line,bt.ch+2),Se.focus();case"italic":return Se.replaceSelection("*"+Mt+"*"),Mt===""&&Se.setCursor(bt.line,bt.ch+1),Se.focus();case"code":return Se.replaceSelection("`"+Mt+"`"),Mt===""&&Se.setCursor(bt.line,bt.ch+1),Se.focus();case"inline-latex":return wn("inline-latex"),Se.focus();case"latex":return Se.replaceSelection("```latex\n"+Mt+"\n```"),Se.setCursor(bt.line+1,Mt.length+1),Se.focus();case"line-break":return Se.replaceSelection(`<br/>
`),Se.focus();case"list-ul":return Mt===""?Se.replaceSelection("- "+Mt):Se.replaceSelection(Rt.map(Rn=>Rn===""?"":`- ${Rn}`).join(`
`)),Se.focus();case"list-ol":return Mt===""?Se.replaceSelection("1. "+Mt):Se.replaceSelection(Rt.map((Rn,ca)=>Rn===""?"":`${ca+1}. ${Rn}`).join(`
`)),Se.focus();case"add-null-ch":return Mt===""&&Se.setCursor(bt.line,bt.ch),Se.replaceSelection(An),Se.focus();case"add-signal":return Mt===""&&Se.setCursor(bt.line,bt.ch),Se.replaceSelection(La),Se.focus();case"add-multiple":return Mt===""&&Se.setCursor(bt.line,bt.ch),Se.replaceSelection(Jn),Se.focus();case"inster-template-1":return Mt===""&&Se.setCursor(bt.line,bt.ch),Se.replaceSelection(ha),Se.focus();case"eraser":return Se.setValue(""),Se.focus();case"trigger-watch":return nt(!hn),Se.focus();case"trigger-full-screen":return Kt(!yt),Se.focus();case ot:wn(ot);return;case Dt:wn(Dt);return;case pt:wn(pt);return;case qt:wn(qt);return;case"maths-latex":wn("maths-latex");return;case xt:wn(xt);return;case en:wn(en);return;default:throw new Error}},[Se,hn,yt]),Wa=(0,te.useCallback)((It,bt)=>{var Mt,Rt,Rn,ca,Ra,Ba;switch(wn(""),Bt){case ot:const{title:Vo,link:er}=It;return Se.replaceSelection(`[${Vo}](${er})`),Se.focus();case Dt:const{language:ko,content:Pn}=It;return Se.replaceSelection(["```"+ko,Pn,"```"].join(`
`)),Se.focus();case"maths-latex":for(var Ma=atob(It),$a=new Uint8Array(Ma.length),lo=0;lo<Ma.length;lo++)$a[lo]=Ma.charCodeAt(lo);var Qa=new Blob([$a],{type:"image/png"});(0,pe.I)(Qa,uo=>{uo.id?Se.replaceSelection(`![,](/api/attachments/${uo.id}?type=${uo.content_type})`):(uo==null?void 0:uo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Se.replaceSelection("`$$"+It+"$$`");break;case pt:case qt:case tn:const{src:Tn,alt:fa}=It,an=bt,oa=(Rn=(Rt=(Mt=an==null?void 0:an.name)==null?void 0:Mt.split("."))==null?void 0:Rt.pop)==null?void 0:Rn.call(Rt);return((ca=an==null?void 0:an.type)==null?void 0:ca.indexOf("image"))>-1||!(an!=null&&an.type)?an.align||an.width?Se.replaceSelection(`<p style="text-align:${an.align||"initial"}"><img width="${an.width?an.width+"%":"initial"}" src="${Tn}" alt="${fa||""}" /></p>`):Se.replaceSelection(`<img width="100%" src="${Tn}" alt="${fa||""}" />`):((Ra=an==null?void 0:an.type)==null?void 0:Ra.indexOf("video"))>-1?Se.replaceSelection(`<video width="100%" controls src="${Tn}"></video>`):((Ba=an==null?void 0:an.type)==null?void 0:Ba.indexOf("pdf"))>-1?Se.replaceSelection(`<a href="${Tn}?type=${an.type}&disposition=inline" target="_blank">${an.name}</a>`):Dn.includes(oa)?Se.replaceSelection(`<a href="${Tn}?type=office&disposition=inline" target="_blank">${an.name}</a>`):Se.replaceSelection(`[${an.name}](${Tn})`),Se.focus();case en:const{row:Ua,col:po,align:$o}=It;let so=`
`;for(let uo=0;uo<Ua;uo++){let Ir=[],pr=[];for(let Dr=0;Dr<po;Dr++)uo===1&&pr.push(rn[$o]),Ir.push(" ");uo===1&&(so+=`| ${pr.join(" | ")} |
`),so+=`| ${Ir.join(po===1?"":" | ")} |
`}return Se.replaceSelection(so+`
`),Se.focus();default:throw new Error}},[Se,Bt]),cn=(0,te.useMemo)(()=>{switch(Bt){case ot:return te.createElement(gt,{callback:Wa,onCancel:Bn});case Dt:return te.createElement($t.Z,{callback:Wa,onCancel:Bn});case pt:return te.createElement(pe.Z,{callback:Wa,onCancel:Bn});case xt:return te.createElement(ht,{callback:Wa,onCancel:Bn});case en:return te.createElement(ln,{callback:Wa,onCancel:Bn});case"maths-latex":return te.createElement(Cn,{showSaveButton:!0,callback:Wa});case"inline-latex":return te.createElement(vn.Z,{showSaveButton:!0,callback:Wa});default:return null}},[Bt]);function Bn(){wn("")}(0,te.useEffect)(()=>{if(ia.current){let It=function(Ra){Rn=!0,ca=Ra.pageY},bt=function(){Rn=!1},Mt=function(Ra){if(Rn){let Ba=Ra.pageY-ca;Ba<0&&(Ba=0),Ba>300&&(Ba=300);let Ma=Pt+Ba+"px";Kn(Ma)}},Rt=ia.current,Rn=!1,ca=0;return Rt.addEventListener("mousedown",It),document.addEventListener("mousemove",Mt),document.addEventListener("mouseup",bt),()=>{Rt.removeEventListener("mousedown",It),document.removeEventListener("mousemove",Mt),document.removeEventListener("mouseup",bt)}}},[Se,ia]),(0,te.useEffect)(()=>{Kn(Pt)},[Pt]);const Na=Pa(ye),Ca=Pa(Un),Po={width:Na,height:Ca},oo=(0,te.useMemo)(()=>{if(pn){let It=new Date(pn),bt=It.getHours(),Mt=It.getMinutes(),Rt=It.getSeconds();return bt=bt<10?"0"+bt:bt,Mt=Mt<10?"0"+Mt:Mt,Rt=Rt<10?"0"+Rt:Rt,`${bt}:${Mt}:${Rt}`}return 0},[pn]),qo=It=>{const bt=[];if(va){let Mt=-1;It=It.replace(/(@▁▁@|@▁@)/g,function(Rt,Rn,ca){bt.push({multiLine:Rt!==La})})}return bt};function _o(){window.sessionStorage.removeItem(qn),pa(!1),Zn(0)}function ya(){pa(!1),Zn(0),Se.setValue(window.sessionStorage.getItem(qn))}(0,te.useEffect)(()=>{qa[Bt]&&Bt!==qt&&Bt!==xt&&setTimeout(()=>{const It=document.getElementsByClassName("markdown-popup-form")[0],bt=window.innerWidth/2-It.offsetWidth/2,Mt=window.innerHeight/2-It.offsetHeight/2;So(bt),zo(Mt)},0)},[Bt]);const ua=It=>{It.preventDefault();const bt=It.clientX-Xa,Mt=It.clientY-Ao;document.body.onmousemove=Rt=>{let Rn=Rt.clientX-bt,ca=Rt.clientY-Mt;const Ra=document.getElementsByClassName("markdown-popup-form")[0],Ba=window.innerWidth-Ra.offsetWidth,Ma=window.innerHeight-Ra.offsetHeight;Rn=Math.max(0,Math.min(Rn,Ba)),ca=Math.max(0,Math.min(ca,Ma)),vo(Rt.clientX,Rt.clientY,bt,Mt)&&(So(Rn),zo(ca))},document.body.onmouseup=function(){document.body.onmousemove=null}},vo=(It,bt,Mt,Rt)=>{const Rn=document.body.clientHeight,ca=document.body.clientWidth;return It<20&&Mt>It||It>ca-20&&Mt<It||bt<20&&Rt>bt||bt>Rn-20&&Rt<bt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Ia},te.createElement("div",{className:`markdown-editor-container ${be} ${hn?"on-preview":""} ${Wt?"mini":""} ${yt?"full-screen":""}`,style:Po},te.createElement(de,{insertTemp:Sn,watch:hn,fullScreen:yt,showNullButton:xn,showNullProgramButton:va,onActionCallback:Da,hidetoolBar:eo,extraUse:st}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ya,placeholder:St})),hn?te.createElement("div",{ref:ho,className:"preview-container"},Fn==="stex"&&te.createElement(je,{value:Ut}),Fn!=="stex"&&te.createElement(Xe.Z,{disabledFill:_e,showProgramFill:va,value:Ut})):null))),wa?te.createElement("a",{ref:ia,className:"editor-resize"}):null,Bt===qt&&te.createElement(dt,{callback:Wa,onCancel:Bn}),Bt===xt&&te.createElement(ht,{callback:Wa,onCancel:Bn}),te.createElement(Pe.Z,null,qa[Bt]&&Bt!==qt&&Bt!==xt?te.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xa,top:Ao},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ua},qa[Bt]),open:!0,onCancel:Bn,footer:null,destroyOnClose:!0,width:Bt===xt?"1200px":null,height:Bt===xt?"80vh":null,className:"markdown-popup-form"},cn):null))}},70859:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ge},I:function(){return Pe}});var te=oe(91773),ve=oe(2453),et=oe(11486),He=oe(93421),fe=oe(42405),Be=oe(78045),ue=oe(71577),Me=oe(15476),ze=oe(67294),$e=oe(52262),Xe=oe(67294),je=Object.defineProperty,Ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ce,De,Ze)=>De in ce?je(ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ce[De]=Ze,x=(ce,De)=>{for(var Ze in De||(De={}))y.call(De,Ze)&&b(ce,Ze,De[Ze]);if(a)for(var Ze of a(De))E.call(De,Ze)&&b(ce,Ze,De[Ze]);return ce},z=(ce,De)=>Ie(ce,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ce,onCancel:De})=>{const[Ze]=ee();let wt=(0,ze.useRef)();function At(Ue){wt.current.width=Ze.getFieldValue("width"),wt.current.align=Ze.getFieldValue("align"),ce(Ue,wt.current)}function Zt(Ue,Re){if(Ue.status===-1){ve.ZP.error(Ue.message);return}Ze.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:Re.type})}function Le(Ue){let Re=Ue.target.files[0];wt.current=Re,Pe(Re,Zt)}return Xe.createElement(te.default,z(x({form:Ze},re),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),Xe.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Xe.createElement("div",{className:"flex-container"},Xe.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Xe.createElement(et.default,{style:ne})),Xe.createElement(de,{onFileChange:Le}))),Xe.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Xe.createElement(et.default,{style:{width:264}})),Xe.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Xe.createElement(He.Z,null,Xe.createElement(te.default.Item,{name:"width",style:{margin:0}},Xe.createElement(fe.Z,{style:{width:264}})),Xe.createElement("span",{className:"ml8"},"%"))),Xe.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Xe.createElement(Be.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"}]})),Xe.createElement("aside",null,Xe.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Xe.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Xe.createElement(ue.ZP,{type:"default",onClick:De},"\u53D6\u6D88"))))};function de({onFileChange:ce}){return Xe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Xe.createElement("input",{type:"file",onChange:ce}))}function Pe(ce,De){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,$e.bg)())throw ve.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ze=new FormData;Ze.append("editormd-image-file",ce),Ze.append("file_param_name","editormd-image-file"),Ze.append("byxhr","true");var wt=new window.XMLHttpRequest;wt.withCredentials=!0,wt.addEventListener("load",function(At){De(JSON.parse(At.target.responseText),ce)},!1),wt.addEventListener("error",function(At){console.error(At)},!1),wt.open("POST",`${Me.KI}/api/attachments.json`),wt.send(Ze)}},76621:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return et}});var te=oe(67294),ve=oe(73935);class et extends te.Component{constructor(fe){super(fe);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,ve.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ve}});var te=oe(67294);function ve(et,He){const fe=(0,te.useRef)();(0,te.useEffect)(()=>{fe.current=et}),(0,te.useEffect)(()=>{function Be(){fe.current()}if(He!==null){let ue=setInterval(Be,He);return()=>clearInterval(ue)}},[He])}},40980:function(Ge,ct,oe){"use strict";oe.r(ct),oe.d(ct,{default:function(){return wt}});var te=oe(67294),ve=oe(35973),et=oe(91773),He=oe(2453),fe=oe(85673),Be=oe(11486),ue=oe(71230),Me=oe(15746),ze=oe(42405),$e=oe(84567),Xe=oe(71577),je=oe(28706),Ie=oe(35567),ae=oe(86763),a={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},y=oe(65866),E=oe(10191),b=oe(33170),x=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,de=(At,Zt,Le)=>Zt in At?x(At,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):At[Zt]=Le,Pe=(At,Zt)=>{for(var Le in Zt||(Zt={}))re.call(Zt,Le)&&de(At,Le,Zt[Le]);if(ne)for(var Le of ne(Zt))ge.call(Zt,Le)&&de(At,Le,Zt[Le]);return At},ce=(At,Zt)=>z(At,ee(Zt)),De=(At,Zt,Le)=>new Promise((Ue,Re)=>{var it=Ve=>{try{Qe(Le.next(Ve))}catch(gt){Re(gt)}},ut=Ve=>{try{Qe(Le.throw(Ve))}catch(gt){Re(gt)}},Qe=Ve=>Ve.done?Ue(Ve.value):Promise.resolve(Ve.value).then(it,ut);Qe((Le=Le.apply(At,Zt)).next())});const Ze=({shixunHomeworks:At,newCourse:Zt,globalSetting:Le,loading:Ue,user:Re,dispatch:it})=>{var ut,Qe,Ve,gt;const $t=(0,ve.useParams)(),[pe]=et.default.useForm(),[Ae,rt]=(0,te.useState)({}),Ft=(0,te.useRef)(),{commonHomeWorkAddDefaultData:Je}=At;let[dt,me]=(0,te.useState)({});(0,te.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:Xt,categoryId:ft}=$t;it({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:ft,coursesId:Xt,type:3}})},[]);const lt=Xt=>De(void 0,null,function*(){var ft,Oe;if(Ae.min_num>Ae.max_num){He.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Ce=Pe({},Ae);Ce.attachment_ids&&(Ce.attachment_ids=(ft=Ce==null?void 0:Ce.attachment_ids)==null?void 0:ft.map(ht=>ht.response.id)),Ce.reference_attachment_ids&&(Ce.reference_attachment_ids=(Oe=Ce==null?void 0:Ce.reference_attachment_ids)==null?void 0:Oe.map(ht=>ht.response.id));const{coursesId:Ee,categoryId:tt}=$t,qe=yield(0,ae.H1)(ce(Pe({coursesId:Ee,category:tt},Ce),{type:3}));qe.status===0&&(Et(qe.homework_id),(0,je.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),ve.history.push(`/classrooms/${Ee}/group_homework/${qe.homework_id}/detail`))});function Et(Xt){return De(this,null,function*(){if(!(dt!=null&&dt.ec_point_ids))return;let ft=yield(0,b.ZP)(`/api/ec_courses/${dt==null?void 0:dt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Pe({homework_common_id:Xt},dt)})})}return te.createElement("section",{className:a.bg},Je.course_name&&te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},Je.category&&te.createElement(fe.Z,{separator:">"},te.createElement(fe.Z.Item,null,te.createElement(ve.Link,{to:`/classrooms/${Je.course_id}/group_homework`},Je.course_name)),te.createElement(fe.Z.Item,null,te.createElement(ve.Link,{to:`/classrooms/${Je.course_id}/group_homework`},Je.category.category_name)),te.createElement(fe.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),te.createElement(et.default,{form:pe,className:a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{rt(Pe({},pe.getFieldsValue()))},initialValues:{base_on_project:!1},onFinish:lt},te.createElement("div",{className:a.fieldWrap},te.createElement(et.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(Be.default,{maxLength:60,suffix:`${((ut=Ae.name)==null?void 0:ut.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:a.mdWrap},te.createElement(et.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},te.createElement(Ie.Z,{watch:!0,defaultValue:Ae.intro})),te.createElement("div",null,te.createElement(et.default.Item,{name:"attachment_ids"},te.createElement(y.Z,null))),te.createElement(ue.Z,{gutter:[20,20]},te.createElement(Me.Z,{flex:"230px"},te.createElement(et.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},te.createElement(ze.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),te.createElement(Me.Z,{flex:"230px"},te.createElement(et.default.Item,{name:"max_num",label:te.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},te.createElement(ze.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),te.createElement(Me.Z,null,te.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),te.createElement(ue.Z,{style:{display:(Qe=Le==null?void 0:Le.setting)!=null&&Qe.hide_project?"none":""}},te.createElement(Me.Z,null,te.createElement(et.default.Item,{name:"base_on_project",valuePropName:"checked"},te.createElement($e.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),te.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),te.createElement("div",{className:a.mdWrap},te.createElement(et.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(Ie.Z,{watch:!0,defaultValue:Ae.notice})),te.createElement("div",null,te.createElement(et.default.Item,{name:"reference_attachment_ids"},te.createElement(y.Z,null))))),te.createElement("div",{className:a.mdWrap,style:{display:(Ve=Le==null?void 0:Le.setting)!=null&&Ve.hide_ec?"none":(gt=Re.userInfo.course)!=null&&gt.is_openengineering?"":"none"}},te.createElement(E.Z,{setitem:Xt=>me(Pe({},Xt))})),te.createElement("div",{className:a.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(et.default.Item,null,te.createElement(Xe.ZP,{size:"middle",type:"primary",onClick:()=>{pe.submit()},className:`${a.button} mr20`,htmlType:"submit",loading:Ue["newCourse/editCourse"]||Ue["newCourse/submitCourse"]},"\u63D0\u4EA4"),te.createElement(Xe.ZP,{size:"middle",type:"primary",ghost:!0,className:a.button,onClick:()=>ve.history.push(`/classrooms/${$t.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var wt=(0,ve.connect)(({shixunHomeworks:At,newCourse:Zt,loading:Le,user:Ue,globalSetting:Re})=>({shixunHomeworks:At,newCourse:Zt,globalSetting:Re,user:Ue,loading:Le.effects}))(Ze)},4440:function(Ge,ct,oe){"use strict";oe.d(ct,{$J:function(){return et},JZ:function(){return fe},bN:function(){return ue},jP:function(){return Be},rO:function(){return He}});var te=oe(33170),ve=(Me,ze,$e)=>new Promise((Xe,je)=>{var Ie=y=>{try{a($e.next(y))}catch(E){je(E)}},ae=y=>{try{a($e.throw(y))}catch(E){je(E)}},a=y=>y.done?Xe(y.value):Promise.resolve(y.value).then(Ie,ae);a(($e=$e.apply(Me,ze)).next())});function et(Me){return(0,te.U2)(`libraries/${Me}.json`)}function He(Me){return(0,te.U2)("library_tags.json",Me)}function fe(Me){return ve(this,null,function*(){return(yield(0,te.IV)(`attachments/${Me}.json`)).status===0})}function Be(Me){return(0,te.v_)("libraries.json",Me)}function ue(Me,ze){return(0,te.gz)(`libraries/${Me}.json`,ze)}},57838:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ve}});var te=oe(67294);function ve(){const[,et]=te.useReducer(He=>He+1,0);return et}},85673:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Zt}});var te=oe(94184),ve=oe.n(te),et=oe(37419),He=oe(1337),fe=oe(67294),Be=oe(96159),ue=oe(53124),Me=oe(15558),ze=oe(56153);const $e=Le=>{let{children:Ue}=Le;const{getPrefixCls:Re}=fe.useContext(ue.E_),it=Re("breadcrumb");return fe.createElement("li",{className:`${it}-separator`,"aria-hidden":"true"},Ue===""?Ue:Ue||"/")};$e.__ANT_BREADCRUMB_SEPARATOR=!0;var Xe=$e,je=function(Le,Ue){var Re={};for(var it in Le)Object.prototype.hasOwnProperty.call(Le,it)&&Ue.indexOf(it)<0&&(Re[it]=Le[it]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(Le);ut<it.length;ut++)Ue.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(Le,it[ut])&&(Re[it[ut]]=Le[it[ut]]);return Re};function Ie(Le,Ue){if(Le.title===void 0||Le.title===null)return null;const Re=Object.keys(Ue).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Re})`,"g"),(it,ut)=>Ue[ut]||it)}function ae(Le,Ue,Re,it){if(Re==null)return null;const{className:ut,onClick:Qe}=Ue,Ve=je(Ue,["className","onClick"]),gt=Object.assign(Object.assign({},(0,He.Z)(Ve,{data:!0,aria:!0})),{onClick:Qe});return it!==void 0?fe.createElement("a",Object.assign({},gt,{className:ve()(`${Le}-link`,ut),href:it}),Re):fe.createElement("span",Object.assign({},gt,{className:ve()(`${Le}-link`,ut)}),Re)}function a(Le,Ue){return(it,ut,Qe,Ve,gt)=>{if(Ue)return Ue(it,ut,Qe,Ve);const $t=Ie(it,ut);return ae(Le,it,$t,gt)}}var y=function(Le,Ue){var Re={};for(var it in Le)Object.prototype.hasOwnProperty.call(Le,it)&&Ue.indexOf(it)<0&&(Re[it]=Le[it]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(Le);ut<it.length;ut++)Ue.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(Le,it[ut])&&(Re[it[ut]]=Le[it[ut]]);return Re};const E=Le=>{const{prefixCls:Ue,separator:Re="/",children:it,menu:ut,overlay:Qe,dropdownProps:Ve,href:gt}=Le,pe=(Ae=>{if(ut||Qe){const rt=Object.assign({},Ve);if(ut){const Ft=ut||{},{items:Je}=Ft,dt=y(Ft,["items"]);rt.menu=Object.assign(Object.assign({},dt),{items:Je==null?void 0:Je.map((me,lt)=>{var{key:Et,title:Xt,label:ft,path:Oe}=me,Ce=y(me,["key","title","label","path"]);let Ee=ft!=null?ft:Xt;return Oe&&(Ee=fe.createElement("a",{href:`${gt}${Oe}`},Ee)),Object.assign(Object.assign({},Ce),{key:Et!=null?Et:lt,label:Ee})})})}else Qe&&(rt.overlay=Qe);return fe.createElement(ze.Z,Object.assign({placement:"bottom"},rt),fe.createElement("span",{className:`${Ue}-overlay-link`},Ae,fe.createElement(Me.Z,null)))}return Ae})(it);return pe!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,pe),Re&&fe.createElement(Xe,null,Re)):null},b=Le=>{const{prefixCls:Ue,children:Re,href:it}=Le,ut=y(Le,["prefixCls","children","href"]),{getPrefixCls:Qe}=fe.useContext(ue.E_),Ve=Qe("breadcrumb",Ue);return fe.createElement(E,Object.assign({},ut,{prefixCls:Ve}),ae(Ve,ut,Re,it))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=Le=>{const{componentCls:Ue,iconCls:Re}=Le;return{[Ue]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Re]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ue}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ue}-link`]:{[`
> ${Re} + span,
> ${Re} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Ue}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Re}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Le=>{const Ue=(0,ne.TS)(Le,{});return[re(Ue)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),de=function(Le,Ue){var Re={};for(var it in Le)Object.prototype.hasOwnProperty.call(Le,it)&&Ue.indexOf(it)<0&&(Re[it]=Le[it]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(Le);ut<it.length;ut++)Ue.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(Le,it[ut])&&(Re[it[ut]]=Le[it[ut]]);return Re};function Pe(Le){const{breadcrumbName:Ue,children:Re}=Le,it=de(Le,["breadcrumbName","children"]),ut=Object.assign({title:Ue},it);return Re&&(ut.menu={items:Re.map(Qe=>{var{breadcrumbName:Ve}=Qe,gt=de(Qe,["breadcrumbName"]);return Object.assign(Object.assign({},gt),{title:Ve})})}),ut}function ce(Le,Ue){return(0,fe.useMemo)(()=>Le||(Ue?Ue.map(Pe):null),[Le,Ue])}var De=function(Le,Ue){var Re={};for(var it in Le)Object.prototype.hasOwnProperty.call(Le,it)&&Ue.indexOf(it)<0&&(Re[it]=Le[it]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(Le);ut<it.length;ut++)Ue.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(Le,it[ut])&&(Re[it[ut]]=Le[it[ut]]);return Re};const Ze=(Le,Ue)=>{if(Ue===void 0)return Ue;let Re=(Ue||"").replace(/^\//,"");return Object.keys(Le).forEach(it=>{Re=Re.replace(`:${it}`,Le[it])}),Re},wt=Le=>{const{prefixCls:Ue,separator:Re="/",style:it,className:ut,rootClassName:Qe,routes:Ve,items:gt,children:$t,itemRender:pe,params:Ae={}}=Le,rt=De(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:Je,breadcrumb:dt}=fe.useContext(ue.E_);let me;const lt=Ft("breadcrumb",Ue),[Et,Xt]=ge(lt),ft=ce(gt,Ve),Oe=a(lt,pe);if(ft&&ft.length>0){const tt=[],qe=gt||Ve;me=ft.map((ht,Gt)=>{const{path:Tt,key:Yt,type:dn,menu:ln,overlay:zt,onClick:Nt,className:Jt,separator:kn,dropdownProps:Cn}=ht,vn=Ze(Ae,Tt);vn!==void 0&&tt.push(vn);const we=Yt!=null?Yt:Gt;if(dn==="separator")return fe.createElement(Xe,{key:we},kn);const Te={},ot=Gt===ft.length-1;ln?Te.menu=ln:zt&&(Te.overlay=zt);let{href:pt}=ht;return tt.length&&vn!==void 0&&(pt=`#/${tt.join("/")}`),fe.createElement(E,Object.assign({key:we},Te,(0,He.Z)(ht,{data:!0,aria:!0}),{className:Jt,dropdownProps:Cn,href:pt,separator:ot?"":Re,onClick:Nt,prefixCls:lt}),Oe(ht,Ae,qe,tt,pt))})}else if($t){const tt=(0,et.Z)($t).length;me=(0,et.Z)($t).map((qe,ht)=>{if(!qe)return qe;const Gt=ht===tt-1;return(0,Be.Tm)(qe,{separator:Gt?"":Re,key:ht})})}const Ce=ve()(lt,dt==null?void 0:dt.className,{[`${lt}-rtl`]:Je==="rtl"},ut,Qe,Xt),Ee=Object.assign(Object.assign({},dt==null?void 0:dt.style),it);return Et(fe.createElement("nav",Object.assign({className:Ce,style:Ee},rt),fe.createElement("ol",null,me)))};wt.Item=x,wt.Separator=Xe;var At=wt,Zt=At},84567:function(Ge,ct,oe){"use strict";oe.d(ct,{default:function(){return ge}});var te=oe(94184),ve=oe.n(te),et=oe(95860),He=oe(67294),fe=oe(53124),Be=oe(98866),ue=oe(65223),ze=He.createContext(null),$e=oe(63185),Xe=oe(45353),je=oe(92429),Ie=function(de,Pe){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&Pe.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,De=Object.getOwnPropertySymbols(de);Ze<De.length;Ze++)Pe.indexOf(De[Ze])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ze])&&(ce[De[Ze]]=de[De[Ze]]);return ce};const ae=(de,Pe)=>{var ce;const{prefixCls:De,className:Ze,rootClassName:wt,children:At,indeterminate:Zt=!1,style:Le,onMouseEnter:Ue,onMouseLeave:Re,skipGroup:it=!1,disabled:ut}=de,Qe=Ie(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ve,direction:gt,checkbox:$t}=He.useContext(fe.E_),pe=He.useContext(ze),{isFormItemInput:Ae}=He.useContext(ue.aM),rt=He.useContext(Be.Z),Ft=(ce=(pe==null?void 0:pe.disabled)||ut)!==null&&ce!==void 0?ce:rt,Je=He.useRef(Qe.value);He.useEffect(()=>{pe==null||pe.registerValue(Qe.value)},[]),He.useEffect(()=>{if(!it)return Qe.value!==Je.current&&(pe==null||pe.cancelValue(Je.current),pe==null||pe.registerValue(Qe.value),Je.current=Qe.value),()=>pe==null?void 0:pe.cancelValue(Qe.value)},[Qe.value]);const dt=Ve("checkbox",De),[me,lt]=(0,$e.ZP)(dt),Et=Object.assign({},Qe);pe&&!it&&(Et.onChange=function(){Qe.onChange&&Qe.onChange.apply(Qe,arguments),pe.toggleOption&&pe.toggleOption({label:At,value:Qe.value})},Et.name=pe.name,Et.checked=pe.value.includes(Qe.value));const Xt=ve()(`${dt}-wrapper`,{[`${dt}-rtl`]:gt==="rtl",[`${dt}-wrapper-checked`]:Et.checked,[`${dt}-wrapper-disabled`]:Ft,[`${dt}-wrapper-in-form-item`]:Ae},$t==null?void 0:$t.className,Ze,wt,lt),ft=ve()({[`${dt}-indeterminate`]:Zt},je.A,lt),Oe=Zt?"mixed":void 0;return me(He.createElement(Xe.Z,{component:"Checkbox",disabled:Ft},He.createElement("label",{className:Xt,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Le),onMouseEnter:Ue,onMouseLeave:Re},He.createElement(et.Z,Object.assign({"aria-checked":Oe},Et,{prefixCls:dt,className:ft,disabled:Ft,ref:Pe})),At!==void 0&&He.createElement("span",null,At))))};var y=He.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(de,Pe){var ce={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&Pe.indexOf(De)<0&&(ce[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,De=Object.getOwnPropertySymbols(de);Ze<De.length;Ze++)Pe.indexOf(De[Ze])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ze])&&(ce[De[Ze]]=de[De[Ze]]);return ce};const z=(de,Pe)=>{const{defaultValue:ce,children:De,options:Ze=[],prefixCls:wt,className:At,rootClassName:Zt,style:Le,onChange:Ue}=de,Re=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:it,direction:ut}=He.useContext(fe.E_),[Qe,Ve]=He.useState(Re.value||ce||[]),[gt,$t]=He.useState([]);He.useEffect(()=>{"value"in Re&&Ve(Re.value||[])},[Re.value]);const pe=He.useMemo(()=>Ze.map(Ce=>typeof Ce=="string"||typeof Ce=="number"?{label:Ce,value:Ce}:Ce),[Ze]),Ae=Ce=>{$t(Ee=>Ee.filter(tt=>tt!==Ce))},rt=Ce=>{$t(Ee=>[].concat((0,E.Z)(Ee),[Ce]))},Ft=Ce=>{const Ee=Qe.indexOf(Ce.value),tt=(0,E.Z)(Qe);Ee===-1?tt.push(Ce.value):tt.splice(Ee,1),"value"in Re||Ve(tt),Ue==null||Ue(tt.filter(qe=>gt.includes(qe)).sort((qe,ht)=>{const Gt=pe.findIndex(Yt=>Yt.value===qe),Tt=pe.findIndex(Yt=>Yt.value===ht);return Gt-Tt}))},Je=it("checkbox",wt),dt=`${Je}-group`,[me,lt]=(0,$e.ZP)(Je),Et=(0,b.Z)(Re,["value","disabled"]),Xt=Ze.length?pe.map(Ce=>He.createElement(y,{prefixCls:Je,key:Ce.value.toString(),disabled:"disabled"in Ce?Ce.disabled:Re.disabled,value:Ce.value,checked:Qe.includes(Ce.value),onChange:Ce.onChange,className:`${dt}-item`,style:Ce.style,title:Ce.title},Ce.label)):De,ft={toggleOption:Ft,value:Qe,disabled:Re.disabled,name:Re.name,registerValue:rt,cancelValue:Ae},Oe=ve()(dt,{[`${dt}-rtl`]:ut==="rtl"},At,Zt,lt);return me(He.createElement("div",Object.assign({className:Oe,style:Le},Et,{ref:Pe}),He.createElement(ze.Provider,{value:ft},Xt)))},ee=He.forwardRef(z);var ne=He.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(Ge,ct,oe){"use strict";oe.d(ct,{C2:function(){return fe}});var te=oe(14747),ve=oe(45503),et=oe(67968);const He=Be=>{const{checkboxCls:ue}=Be,Me=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,te.Wf)(Be)),{display:"inline-flex",flexWrap:"wrap",columnGap:Be.marginXS,[`> ${Be.antCls}-row`]:{flex:1}}),[Me]:Object.assign(Object.assign({},(0,te.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Me}`]:{marginInlineStart:0},[`&${Me}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(Be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Be.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,te.oN)(Be))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Be.checkboxSize,height:Be.checkboxSize,direction:"ltr",backgroundColor:Be.colorBgContainer,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,borderCollapse:"separate",transition:`all ${Be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Be.checkboxSize/14*5,height:Be.checkboxSize/14*8,border:`${Be.lineWidthBold}px solid ${Be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Be.motionDurationFast} ${Be.motionEaseInBack}, opacity ${Be.motionDurationFast}`}},"& + span":{paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS}})},{[`
${Me}:not(${Me}-disabled),
${ue}:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{borderColor:Be.colorPrimary}},[`${Me}:not(${Me}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Be.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Be.colorPrimary,borderColor:Be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Be.motionDurationMid} ${Be.motionEaseOutBack} ${Be.motionDurationFast}`}}},[`
${Me}-checked:not(${Me}-disabled),
${ue}-checked:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Be.colorBgContainer,borderColor:Be.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Be.fontSizeLG/2,height:Be.fontSizeLG/2,backgroundColor:Be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Me}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,"&:after":{borderColor:Be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Be.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Be.colorTextDisabled}}}]};function fe(Be,ue){const Me=(0,ve.TS)(ue,{checkboxCls:`.${Be}`,checkboxSize:ue.controlInteractiveSize});return[He(Me)]}ct.ZP=(0,et.Z)("Checkbox",(Be,ue)=>{let{prefixCls:Me}=ue;return[fe(Me,Be)]})},56153:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Sg}});var te=oe(67294),ve=oe.t(te,2),et=oe(79269),He=oe(94184),fe=oe.n(He),Be=oe(87462),ue=oe(4942),Me=oe(97685),ze=oe(45987),$e=oe(1413),Xe=oe(73935);function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie={};function ae(ie,le){}function a(ie,le){}function y(){Ie={}}function E(ie,le,se){!le&&!Ie[se]&&(ie(!1,se),Ie[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(a,ie,le)}var z=null,ee=oe(71002),ne=oe(12060);function re(ie,le,se){var he=te.useRef({});return(!("value"in he.current)||se(he.current.condition,le))&&(he.current.value=ie(),he.current.condition=le),he.current.value}function ge(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function de(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=le.filter(function(Ne){return Ne});return he.length<=1?he[0]:function(Ne){le.forEach(function(Ke){ge(Ke,Ne)})}}function Pe(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return re(function(){return de.apply(void 0,le)},le,function(he,Ne){return he.length===Ne.length&&he.every(function(Ke,Ye){return Ke===Ne[Ye]})})}function ce(ie){var le,se,he=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof he=="function"&&!((le=he.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var De=te.createContext(null),Ze=De,wt=oe(74902),At=je()?te.useLayoutEffect:te.useEffect,Zt=At,Le=function(le,se){var he=React.useRef(!0);At(function(){if(!he.current)return le()},se),At(function(){return he.current=!1,function(){he.current=!0}},[])},Ue=[];function Re(ie,le){var se=te.useState(function(){if(!je())return null;var on=document.createElement("div");return on}),he=(0,Me.Z)(se,1),Ne=he[0],Ke=te.useRef(!1),Ye=te.useContext(Ze),vt=te.useState(Ue),Ot=(0,Me.Z)(vt,2),Lt=Ot[0],_t=Ot[1],Ct=Ye||(Ke.current?void 0:function(on){_t(function($n){var fn=[on].concat((0,wt.Z)($n));return fn})});function Vt(){Ne.parentElement||document.body.appendChild(Ne),Ke.current=!0}function jt(){var on;(on=Ne.parentElement)===null||on===void 0||on.removeChild(Ne),Ke.current=!1}return Zt(function(){return ie?Ye?Ye(Vt):Vt():jt(),jt},[ie]),Zt(function(){Lt.length&&(Lt.forEach(function(on){return on()}),_t(Ue))},[Lt]),[Ne,Ct]}function it(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ut="data-rc-order",Qe="rc-util-key",Ve=new Map;function gt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):Qe}function $t(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function pe(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function Ae(ie){return Array.from((Ve.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function rt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!je())return null;var se=le.csp,he=le.prepend,Ne=document.createElement("style");Ne.setAttribute(ut,pe(he)),se!=null&&se.nonce&&(Ne.nonce=se==null?void 0:se.nonce),Ne.innerHTML=ie;var Ke=$t(le),Ye=Ke.firstChild;if(he){if(he==="queue"){var vt=Ae(Ke).filter(function(Ot){return["prepend","prependQueue"].includes(Ot.getAttribute(ut))});if(vt.length)return Ke.insertBefore(Ne,vt[vt.length-1].nextSibling),Ne}Ke.insertBefore(Ne,Ye)}else Ke.appendChild(Ne);return Ne}function Ft(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=$t(le);return Ae(se).find(function(he){return he.getAttribute(gt(le))===ie})}function Je(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Ft(ie,le);if(se){var he=$t(le);he.removeChild(se)}}function dt(ie,le){var se=Ve.get(ie);if(!se||!it(document,se)){var he=rt("",le),Ne=he.parentNode;Ve.set(ie,Ne),ie.removeChild(he)}}function me(){Ve.clear()}function lt(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=$t(se);dt(he,se);var Ne=Ft(le,se);if(Ne){var Ke,Ye;if((Ke=se.csp)!==null&&Ke!==void 0&&Ke.nonce&&Ne.nonce!==((Ye=se.csp)===null||Ye===void 0?void 0:Ye.nonce)){var vt;Ne.nonce=(vt=se.csp)===null||vt===void 0?void 0:vt.nonce}return Ne.innerHTML!==ie&&(Ne.innerHTML=ie),Ne}var Ot=rt(ie,se);return Ot.setAttribute(gt(se),le),Ot}var Et;function Xt(ie){if(typeof document=="undefined")return 0;if(ie||Et===void 0){var le=document.createElement("div");le.style.width="100%",le.style.height="200px";var se=document.createElement("div"),he=se.style;he.position="absolute",he.top="0",he.left="0",he.pointerEvents="none",he.visibility="hidden",he.width="200px",he.height="150px",he.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var Ne=le.offsetWidth;se.style.overflow="scroll";var Ke=le.offsetWidth;Ne===Ke&&(Ke=se.clientWidth),document.body.removeChild(se),Et=Ne-Ke}return Et}function ft(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?Xt():se}function Oe(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,he=le.height;return{width:ft(se),height:ft(he)}}function Ce(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ee="rc-util-locker-".concat(Date.now()),tt=0;function qe(ie){var le=!!ie,se=te.useState(function(){return tt+=1,"".concat(Ee,"_").concat(tt)}),he=(0,Me.Z)(se,1),Ne=he[0];Zt(function(){if(le){var Ke=Oe(document.body).width,Ye=Ce();lt(`
html body {
overflow-y: hidden;
`.concat(Ye?"width: calc(100% - ".concat(Ke,"px);"):"",`
}`),Ne)}else Je(Ne);return function(){Je(Ne)}},[le,Ne])}var ht=!1;function Gt(ie){return typeof ie=="boolean"&&(ht=ie),ht}var Tt=function(le){return le===!1?!1:!je()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},Yt=te.forwardRef(function(ie,le){var se=ie.open,he=ie.autoLock,Ne=ie.getContainer,Ke=ie.debug,Ye=ie.autoDestroy,vt=Ye===void 0?!0:Ye,Ot=ie.children,Lt=te.useState(se),_t=(0,Me.Z)(Lt,2),Ct=_t[0],Vt=_t[1],jt=Ct||se;te.useEffect(function(){(vt||se)&&Vt(se)},[se,vt]);var on=te.useState(function(){return Tt(Ne)}),$n=(0,Me.Z)(on,2),fn=$n[0],Gn=$n[1];te.useEffect(function(){var Sa=Tt(Ne);Gn(Sa!=null?Sa:null)});var yn=Re(jt&&!fn,Ke),sn=(0,Me.Z)(yn,2),Ht=sn[0],ga=sn[1],ta=fn!=null?fn:Ht;qe(he&&se&&je()&&(ta===Ht||ta===document.body));var da=null;if(Ot&&ce(Ot)&&le){var ba=Ot;da=ba.ref}var ka=Pe(da,le);if(!jt||!je()||fn===void 0)return null;var _n=ta===!1||Gt(),On=Ot;return le&&(On=te.cloneElement(Ot,{ref:ka})),te.createElement(Ze.Provider,{value:ga},_n?On:(0,Xe.createPortal)(On,ta))}),dn=Yt,ln=dn,zt=oe(48555);function Nt(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Jt(ie){return Nt(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function kn(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function Cn(ie){return kn(ie)instanceof ShadowRoot}function vn(ie){return Cn(ie)?kn(ie):null}function we(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var he,Ne=arguments.length,Ke=new Array(Ne),Ye=0;Ye<Ne;Ye++)Ke[Ye]=arguments[Ye];return(he=le.current)===null||he===void 0?void 0:he.call.apply(he,[le].concat(Ke))},[]);return se}function Te(){var ie=(0,$e.Z)({},ve);return ie.useId}var ot=0;function pt(){}var xt=Te(),qt=xt?function(le){var se=xt();return le||se}:function(le){var se=te.useState("ssr-id"),he=(0,Me.Z)(se,2),Ne=he[0],Ke=he[1];return te.useEffect(function(){var Ye=ot;ot+=1,Ke("rc_unique_".concat(Ye))},[]),le||Ne};function tn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Dt=tn()?te.useLayoutEffect:te.useEffect,en=function(le,se){var he=te.useRef(!0);Dt(function(){return le(he.current)},se),Dt(function(){return he.current=!1,function(){he.current=!0}},[])},Ln=function(le,se){en(function(he){if(!he)return le()},se)},rn=en,jn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Yn=te.createContext(null),Qn=Yn;function Wn(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function In(ie,le,se,he){return te.useMemo(function(){var Ne=Wn(se!=null?se:le),Ke=Wn(he!=null?he:le),Ye=new Set(Ne),vt=new Set(Ke);return ie&&(Ye.has("hover")&&(Ye.delete("hover"),Ye.add("click")),vt.has("hover")&&(vt.delete("hover"),vt.add("click"))),[Ye,vt]},[ie,le,se,he])}var An=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var le=ie.getBBox(),se=le.width,he=le.height;if(se||he)return!0}if(ie.getBoundingClientRect){var Ne=ie.getBoundingClientRect(),Ke=Ne.width,Ye=Ne.height;if(Ke||Ye)return!0}}return!1};function Jn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?ie[0]===le[0]:ie[0]===le[0]&&ie[1]===le[1]}function La(ie,le,se,he){for(var Ne=se.points,Ke=Object.keys(ie),Ye=0;Ye<Ke.length;Ye+=1){var vt,Ot=Ke[Ye];if(Jn((vt=ie[Ot])===null||vt===void 0?void 0:vt.points,Ne,he))return"".concat(le,"-placement-").concat(Ot)}return""}function ha(ie,le,se,he){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:he?{motionName:he}:null)}function Dn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,he=["hidden","scroll","clip","auto"];se;){var Ne=Dn(se).getComputedStyle(se),Ke=Ne.overflowX,Ye=Ne.overflowY,vt=Ne.overflow;[Ke,Ye,vt].some(function(Ot){return he.includes(Ot)})&&le.push(se),se=se.parentElement}return le}function Ta(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function aa(ie){return Ta(parseFloat(ie),0)}function Ga(ie,le){var se=(0,$e.Z)({},ie);return(le||[]).forEach(function(he){if(!(he instanceof HTMLBodyElement||he instanceof HTMLHtmlElement)){var Ne=Dn(he).getComputedStyle(he),Ke=Ne.overflow,Ye=Ne.overflowClipMargin,vt=Ne.borderTopWidth,Ot=Ne.borderBottomWidth,Lt=Ne.borderLeftWidth,_t=Ne.borderRightWidth,Ct=he.getBoundingClientRect(),Vt=he.offsetHeight,jt=he.clientHeight,on=he.offsetWidth,$n=he.clientWidth,fn=aa(vt),Gn=aa(Ot),yn=aa(Lt),sn=aa(_t),Ht=Ta(Math.round(Ct.width/on*1e3)/1e3),ga=Ta(Math.round(Ct.height/Vt*1e3)/1e3),ta=(on-$n-yn-sn)*Ht,da=(Vt-jt-fn-Gn)*ga,ba=fn*ga,ka=Gn*ga,_n=yn*Ht,On=sn*Ht,Sa=0,Fa=0;if(Ke==="clip"){var la=aa(Ye);Sa=la*Ht,Fa=la*ga}var Nn=Ct.x+_n-Sa,Vn=Ct.y+ba-Fa,bn=Nn+Ct.width+2*Sa-_n-On-ta,ja=Vn+Ct.height+2*Fa-ba-ka-da;se.left=Math.max(se.left,Nn),se.top=Math.max(se.top,Vn),se.right=Math.min(se.right,bn),se.bottom=Math.min(se.bottom,ja)}}),se}function qa(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),he=se.match(/^(.*)\%$/);return he?ie*(parseFloat(he[1])/100):parseFloat(se)}function Ja(ie,le){var se=le||[],he=(0,Me.Z)(se,2),Ne=he[0],Ke=he[1];return[qa(ie.width,Ne),qa(ie.height,Ke)]}function Fe(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function xe(ie,le){var se=le[0],he=le[1],Ne,Ke;return se==="t"?Ke=ie.y:se==="b"?Ke=ie.y+ie.height:Ke=ie.y+ie.height/2,he==="l"?Ne=ie.x:he==="r"?Ne=ie.x+ie.width:Ne=ie.x+ie.width/2,{x:Ne,y:Ke}}function ye(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(he,Ne){return Ne===le?se[he]||"c":he}).join("")}function Pt(ie,le,se,he,Ne,Ke,Ye){var vt=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ne[he]||{}}),Ot=(0,Me.Z)(vt,2),Lt=Ot[0],_t=Ot[1],Ct=te.useRef(0),Vt=te.useMemo(function(){return le?Pa(le):[]},[le]),jt=te.useRef({}),on=function(){jt.current={}};ie||on();var $n=we(function(){if(le&&se&&ie){let Oo=function(ti,vr){var ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Za,Gr=Xn.x+ti,Fr=Xn.y+vr,ni=Gr+ra,bi=Fr+xa,Li=Math.max(Gr,ir.left),wi=Math.max(Fr,ir.top),Ei=Math.min(ni,ir.right),Qt=Math.min(bi,ir.bottom);return Math.max(0,(Ei-Li)*(Qt-wi))},Jo=function(){Yo=Xn.y+na,lr=Yo+xa,sr=Xn.x+Ha,ur=sr+ra};var yn,sn,Ht=le,ga=Ht.ownerDocument,ta=Dn(Ht),da=ta.getComputedStyle(Ht),ba=da.width,ka=da.height,_n=da.position,On=Ht.style.left,Sa=Ht.style.top,Fa=Ht.style.right,la=Ht.style.bottom,Nn=(0,$e.Z)((0,$e.Z)({},Ne[he]),Ke),Vn=ga.createElement("div");(yn=Ht.parentElement)===null||yn===void 0||yn.appendChild(Vn),Vn.style.left="".concat(Ht.offsetLeft,"px"),Vn.style.top="".concat(Ht.offsetTop,"px"),Vn.style.position=_n,Vn.style.height="".concat(Ht.offsetHeight,"px"),Vn.style.width="".concat(Ht.offsetWidth,"px"),Ht.style.left="0",Ht.style.top="0",Ht.style.right="auto",Ht.style.bottom="auto";var bn;if(Array.isArray(se))bn={x:se[0],y:se[1],width:0,height:0};else{var ja=se.getBoundingClientRect();bn={x:ja.x,y:ja.y,width:ja.width,height:ja.height}}var Xn=Ht.getBoundingClientRect(),_a=ga.documentElement,yo=_a.clientWidth,Va=_a.clientHeight,bo=_a.scrollWidth,Eo=_a.scrollHeight,Hn=_a.scrollTop,Lo=_a.scrollLeft,xa=Xn.height,ra=Xn.width,Oa=bn.height,No=bn.width,Ko={left:0,top:0,right:yo,bottom:Va},tr={left:-Lo,top:-Hn,right:bo-Lo,bottom:Eo-Hn},ro=Nn.htmlRegion,mo="visible",jo="visibleFirst";ro!=="scroll"&&ro!==jo&&(ro=mo);var co=ro===jo,sa=Ga(tr,Vt),un=Ga(Ko,Vt),Za=ro===mo?un:sa,wo=co?un:Za;Ht.style.left="auto",Ht.style.top="auto",Ht.style.right="0",Ht.style.bottom="0";var Zo=Ht.getBoundingClientRect();Ht.style.left=On,Ht.style.top=Sa,Ht.style.right=Fa,Ht.style.bottom=la,(sn=Ht.parentElement)===null||sn===void 0||sn.removeChild(Vn);var gr=Ta(Math.round(ra/parseFloat(ba)*1e3)/1e3),dr=Ta(Math.round(xa/parseFloat(ka)*1e3)/1e3);if(gr===0||dr===0||Nt(se)&&!An(se))return;var ii=Nn.offset,Rr=Nn.targetOffset,Go=Ja(Xn,ii),kr=(0,Me.Z)(Go,2),Io=kr[0],Do=kr[1],jr=Ja(bn,Rr),Ro=(0,Me.Z)(jr,2),gi=Ro[0],di=Ro[1];bn.x-=gi,bn.y-=di;var Lr=Nn.points||[],Co=(0,Me.Z)(Lr,2),nr=Co[0],li=Co[1],Xo=Fe(li),Fo=Fe(nr),Zr=xe(bn,Xo),xr=xe(Xn,Fo),ar=(0,$e.Z)({},Nn),Ha=Zr.x-xr.x+Io,na=Zr.y-xr.y+Do,Ho=Oo(Ha,na),Wo=Oo(Ha,na,un),Br=xe(bn,["t","l"]),$r=xe(Xn,["t","l"]),Nr=xe(bn,["b","r"]),Mo=xe(Xn,["b","r"]),wr=Nn.overflow||{},Hr=wr.adjustX,Mr=wr.adjustY,Or=wr.shiftX,Wr=wr.shiftY,Ar=function(vr){return typeof vr=="boolean"?vr:vr>=0},Yo,lr,sr,ur;Jo();var zr=Ar(Mr),Ur=Fo[0]===Xo[0];if(zr&&Fo[0]==="t"&&(lr>wo.bottom||jt.current.bt)){var Uo=na;Ur?Uo-=xa-Oa:Uo=Br.y-Mo.y-Do;var _r=Oo(Ha,Uo),xo=Oo(Ha,Uo,un);_r>Ho||_r===Ho&&(!co||xo>=Wo)?(jt.current.bt=!0,na=Uo,Do=-Do,ar.points=[ye(Fo,0),ye(Xo,0)]):jt.current.bt=!1}if(zr&&Fo[0]==="b"&&(Yo<wo.top||jt.current.tb)){var mr=na;Ur?mr+=xa-Oa:mr=Nr.y-$r.y-Do;var Vr=Oo(Ha,mr),si=Oo(Ha,mr,un);Vr>Ho||Vr===Ho&&(!co||si>=Wo)?(jt.current.tb=!0,na=mr,Do=-Do,ar.points=[ye(Fo,0),ye(Xo,0)]):jt.current.tb=!1}var Kr=Ar(Hr),Xr=Fo[1]===Xo[1];if(Kr&&Fo[1]==="l"&&(ur>wo.right||jt.current.rl)){var cr=Ha;Xr?cr-=ra-No:cr=Br.x-Mo.x-Io;var Yr=Oo(cr,na),ui=Oo(cr,na,un);Yr>Ho||Yr===Ho&&(!co||ui>=Wo)?(jt.current.rl=!0,Ha=cr,Io=-Io,ar.points=[ye(Fo,1),ye(Xo,1)]):jt.current.rl=!1}if(Kr&&Fo[1]==="r"&&(sr<wo.left||jt.current.lr)){var fr=Ha;Xr?fr+=ra-No:fr=Nr.x-$r.x-Io;var Sr=Oo(fr,na),Tr=Oo(fr,na,un);Sr>Ho||Sr===Ho&&(!co||Tr>=Wo)?(jt.current.lr=!0,Ha=fr,Io=-Io,ar.points=[ye(Fo,1),ye(Xo,1)]):jt.current.lr=!1}Jo();var hr=Or===!0?0:Or;typeof hr=="number"&&(sr<un.left&&(Ha-=sr-un.left-Io,bn.x+No<un.left+hr&&(Ha+=bn.x-un.left+No-hr)),ur>un.right&&(Ha-=ur-un.right-Io,bn.x>un.right-hr&&(Ha+=bn.x-un.right+hr)));var or=Wr===!0?0:Wr;typeof or=="number"&&(Yo<un.top&&(na-=Yo-un.top-Do,bn.y+Oa<un.top+or&&(na+=bn.y-un.top+Oa-or)),lr>un.bottom&&(na-=lr-un.bottom-Do,bn.y>un.bottom-or&&(na+=bn.y-un.bottom+or)));var rr=Xn.x+Ha,Pr=rr+ra,Er=Xn.y+na,Cr=Er+xa,Qo=bn.x,mi=Qo+No,Qr=bn.y,ci=Qr+Oa,Jr=Math.max(rr,Qo),fi=Math.min(Pr,mi),Si=(Jr+fi)/2,hi=Si-rr,qr=Math.max(Er,Qr),Pi=Math.min(Cr,ci),vi=(qr+Pi)/2,ei=vi-Er;Ye==null||Ye(le,ar);var pi=Zo.right-Xn.x-(Ha+Xn.width),yi=Zo.bottom-Xn.y-(na+Xn.height);_t({ready:!0,offsetX:Ha/gr,offsetY:na/dr,offsetR:pi/gr,offsetB:yi/dr,arrowX:hi/gr,arrowY:ei/dr,scaleX:gr,scaleY:dr,align:ar})}}),fn=function(){Ct.current+=1;var sn=Ct.current;Promise.resolve().then(function(){Ct.current===sn&&$n()})},Gn=function(){_t(function(sn){return(0,$e.Z)((0,$e.Z)({},sn),{},{ready:!1})})};return rn(Gn,[he]),rn(function(){ie||Gn()},[ie]),[Lt.ready,Lt.offsetX,Lt.offsetY,Lt.offsetR,Lt.offsetB,Lt.arrowX,Lt.arrowY,Lt.scaleX,Lt.scaleY,Lt.align,fn]}function Wt(ie,le,se,he,Ne){rn(function(){if(ie&&le&&se){let Ct=function(){he(),Ne()};var Ke=le,Ye=se,vt=Pa(Ke),Ot=Pa(Ye),Lt=Dn(Ye),_t=new Set([Lt].concat((0,wt.Z)(vt),(0,wt.Z)(Ot)));return _t.forEach(function(Vt){Vt.addEventListener("scroll",Ct,{passive:!0})}),Lt.addEventListener("resize",Ct,{passive:!0}),he(),function(){_t.forEach(function(Vt){Vt.removeEventListener("scroll",Ct),Lt.removeEventListener("resize",Ct)})}}},[ie,le,se])}function kt(ie){var le=React.useRef(!1),se=React.useState(ie),he=_slicedToArray(se,2),Ne=he[0],Ke=he[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Ye(vt,Ot){Ot&&le.current||Ke(vt)}return[Ne,Ye]}function zn(ie){return ie!==void 0}function Sn(ie,le){var se=le||{},he=se.defaultValue,Ne=se.value,Ke=se.onChange,Ye=se.postState,vt=useState(function(){return zn(Ne)?Ne:zn(he)?typeof he=="function"?he():he:typeof ie=="function"?ie():ie}),Ot=_slicedToArray(vt,2),Lt=Ot[0],_t=Ot[1],Ct=Ne!==void 0?Ne:Lt,Vt=Ye?Ye(Ct):Ct,jt=useEvent(Ke),on=useState([Ct]),$n=_slicedToArray(on,2),fn=$n[0],Gn=$n[1];useLayoutUpdateEffect(function(){var sn=fn[0];Lt!==sn&&jt(Lt,sn)},[fn]),useLayoutUpdateEffect(function(){zn(Ne)||_t(Ne)},[Ne]);var yn=useEvent(function(sn,Ht){_t(sn,Ht),Gn([Ct],Ht)});return[Vt,yn]}var Fn=oe(95845);function qn(ie,le,se){var he=te.useRef({});return(!("value"in he.current)||se(he.current.condition,le))&&(he.current.value=ie(),he.current.condition=le),he.current.value}function wa(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function mt(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=le.filter(function(Ne){return Ne});return he.length<=1?he[0]:function(Ne){le.forEach(function(Ke){wa(Ke,Ne)})}}function xn(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return qn(function(){return mt.apply(void 0,le)},le,function(he,Ne){return he.length!==Ne.length||he.every(function(Ke,Ye){return Ke!==Ne[Ye]})})}function va(ie){var le,se,he=(0,Fn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof he=="function"&&!((le=he.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function eo(ie){return!isValidElement(ie)||isFragment(ie)?!1:va(ie)}function ma(ie,le,se,he){if(!le.length)return se;var Ne=_toArray(le),Ke=Ne[0],Ye=Ne.slice(1),vt;return!ie&&typeof Ke=="number"?vt=[]:Array.isArray(ie)?vt=_toConsumableArray(ie):vt=_objectSpread({},ie),he&&se===void 0&&Ye.length===1?delete vt[Ke][Ye[0]]:vt[Ke]=ma(vt[Ke],Ye,se,he),vt}function ea(ie,le,se){var he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&he&&se===void 0&&!get(ie,le.slice(0,-1))?ie:ma(ie,le,se,he)}function to(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function fo(ie){return Array.isArray(ie)?[]:{}}var be=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function We(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var he=fo(le[0]);return le.forEach(function(Ne){function Ke(Ye,vt){var Ot=new Set(vt),Lt=get(Ne,Ye),_t=Array.isArray(Lt);if(_t||to(Lt)){if(!Ot.has(Lt)){Ot.add(Lt);var Ct=get(he,Ye);_t?he=ea(he,Ye,[]):(!Ct||_typeof(Ct)!=="object")&&(he=ea(he,Ye,fo(Lt))),be(Lt).forEach(function(Vt){Ke([].concat(_toConsumableArray(Ye),[Vt]),Ot)})}}else he=ea(he,Ye,Lt)}Ke([])}),he}var ke={},_e=[],St=function(le){_e.push(le)};function at(ie,le){if(0)var se}function st(ie,le){if(0)var se}function Se(){ke={}}function nn(ie,le,se){!le&&!ke[se]&&(ie(!1,se),ke[se]=!0)}function Ut(ie,le){nn(at,ie,le)}function gn(ie,le){nn(st,ie,le)}Ut.preMessage=St,Ut.resetWarned=Se,Ut.noteOnce=gn;var hn=null,nt=function(le){return+setTimeout(le,16)},yt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(nt=function(le){return window.requestAnimationFrame(le)},yt=function(le){return window.cancelAnimationFrame(le)});var Kt=0,Bt=new Map;function wn(ie){Bt.delete(ie)}var pn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Kt+=1;var he=Kt;function Ne(Ke){if(Ke===0)wn(he),le();else{var Ye=nt(function(){Ne(Ke-1)});Bt.set(he,Ye)}}return Ne(se),he};pn.cancel=function(ie){var le=Bt.get(ie);return wn(le),yt(le)};var Zn=pn;function Un(ie,le,se,he,Ne,Ke,Ye,vt){var Ot=te.useRef(ie),Lt=te.useRef(!1);Ot.current!==ie&&(Lt.current=!0,Ot.current=ie),te.useEffect(function(){var _t=Zn(function(){Lt.current=!1});return function(){Zn.cancel(_t)}},[ie]),te.useEffect(function(){if(le&&he&&(!Ne||Ke)){var _t=function(){var _n=!1,On=function(la){var Nn=la.target;_n=Ye(Nn)},Sa=function(la){var Nn=la.target;!Lt.current&&Ot.current&&!_n&&!Ye(Nn)&&vt(!1)};return[On,Sa]},Ct=_t(),Vt=(0,Me.Z)(Ct,2),jt=Vt[0],on=Vt[1],$n=_t(),fn=(0,Me.Z)($n,2),Gn=fn[0],yn=fn[1],sn=Dn(he);sn.addEventListener("mousedown",jt,!0),sn.addEventListener("click",on,!0),sn.addEventListener("contextmenu",on,!0);var Ht=vn(se);if(Ht&&(Ht.addEventListener("mousedown",Gn,!0),Ht.addEventListener("click",yn,!0),Ht.addEventListener("contextmenu",yn,!0)),0)var ga,ta,da,ba;return function(){sn.removeEventListener("mousedown",jt,!0),sn.removeEventListener("click",on,!0),sn.removeEventListener("contextmenu",on,!0),Ht&&(Ht.removeEventListener("mousedown",Gn,!0),Ht.removeEventListener("click",yn,!0),Ht.removeEventListener("contextmenu",yn,!0))}}},[le,se,he,Ne,Ke])}function Kn(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function En(ie){return Kn(ie)?ie:ie instanceof te.Component?Xe.findDOMNode(ie):null}function pa(ie,le){var se={};return se[ie.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(ie)]="webkit".concat(le),se["Moz".concat(ie)]="moz".concat(le),se["ms".concat(ie)]="MS".concat(le),se["O".concat(ie)]="o".concat(le.toLowerCase()),se}function Ea(ie,le){var se={animationend:pa("Animation","AnimationEnd"),transitionend:pa("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var Bo=Ea(je(),typeof window!="undefined"?window:{}),no={};if(je()){var Xa=document.createElement("div");no=Xa.style}var So={};function Ao(ie){if(So[ie])return So[ie];var le=Bo[ie];if(le)for(var se=Object.keys(le),he=se.length,Ne=0;Ne<he;Ne+=1){var Ke=se[Ne];if(Object.prototype.hasOwnProperty.call(le,Ke)&&Ke in no)return So[ie]=le[Ke],So[ie]}return""}var zo=Ao("animationend"),Ya=Ao("transitionend"),Ia=!!(zo&&Ya),ia=zo||"animationend",ho=Ya||"transitionend";function To(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(he){return he[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var ao="none",io="appear",Da="enter",Wa="leave",cn="none",Bn="prepare",Na="start",Ca="active",Po="end";function oo(ie){var le=te.useRef(!1),se=te.useState(ie),he=(0,Me.Z)(se,2),Ne=he[0],Ke=he[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Ye(vt,Ot){Ot&&le.current||Ke(vt)}return[Ne,Ye]}var qo=function(le){return+setTimeout(le,16)},_o=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qo=function(le){return window.requestAnimationFrame(le)},_o=function(le){return window.cancelAnimationFrame(le)});var ya=0,ua=new Map;function vo(ie){ua.delete(ie)}var It=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ya+=1;var he=ya;function Ne(Ke){if(Ke===0)vo(he),le();else{var Ye=qo(function(){Ne(Ke-1)});ua.set(he,Ye)}}return Ne(se),he};It.cancel=function(ie){var le=ua.get(ie);return vo(le),_o(le)};var bt=It,Mt=function(){var ie=te.useRef(null);function le(){bt.cancel(ie.current)}function se(he){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var Ke=bt(function(){Ne<=1?he({isCanceled:function(){return Ke!==ie.current}}):se(he,Ne-1)});ie.current=Ke}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Rt=je()?te.useLayoutEffect:te.useEffect,Rn=Rt,ca=[Bn,Na,Ca,Po],Ra=!1,Ba=!0;function Ma(ie){return ie===Ca||ie===Po}var $a=function(ie,le){var se=oo(cn),he=(0,Me.Z)(se,2),Ne=he[0],Ke=he[1],Ye=Mt(),vt=(0,Me.Z)(Ye,2),Ot=vt[0],Lt=vt[1];function _t(){Ke(Bn,!0)}return Rn(function(){if(Ne!==cn&&Ne!==Po){var Ct=ca.indexOf(Ne),Vt=ca[Ct+1],jt=le(Ne);jt===Ra?Ke(Vt,!0):Ot(function(on){function $n(){on.isCanceled()||Ke(Vt,!0)}jt===!0?$n():Promise.resolve(jt).then($n)})}},[ie,Ne]),te.useEffect(function(){return function(){Lt()}},[]),[_t,Ne]},lo=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var he=te.useCallback(function(Ye){se.current(Ye)},[]);function Ne(Ye){Ye&&(Ye.removeEventListener(ho,he),Ye.removeEventListener(ia,he))}function Ke(Ye){le.current&&le.current!==Ye&&Ne(le.current),Ye&&Ye!==le.current&&(Ye.addEventListener(ho,he),Ye.addEventListener(ia,he),le.current=Ye)}return te.useEffect(function(){return function(){Ne(le.current)}},[]),[Ke,Ne]};function Qa(ie,le,se,he){var Ne=he.motionEnter,Ke=Ne===void 0?!0:Ne,Ye=he.motionAppear,vt=Ye===void 0?!0:Ye,Ot=he.motionLeave,Lt=Ot===void 0?!0:Ot,_t=he.motionDeadline,Ct=he.motionLeaveImmediately,Vt=he.onAppearPrepare,jt=he.onEnterPrepare,on=he.onLeavePrepare,$n=he.onAppearStart,fn=he.onEnterStart,Gn=he.onLeaveStart,yn=he.onAppearActive,sn=he.onEnterActive,Ht=he.onLeaveActive,ga=he.onAppearEnd,ta=he.onEnterEnd,da=he.onLeaveEnd,ba=he.onVisibleChanged,ka=oo(),_n=(0,Me.Z)(ka,2),On=_n[0],Sa=_n[1],Fa=oo(ao),la=(0,Me.Z)(Fa,2),Nn=la[0],Vn=la[1],bn=oo(null),ja=(0,Me.Z)(bn,2),Xn=ja[0],_a=ja[1],yo=(0,te.useRef)(!1),Va=(0,te.useRef)(null);function bo(){return se()}var Eo=(0,te.useRef)(!1);function Hn(sa){var un=bo();if(!(sa&&!sa.deadline&&sa.target!==un)){var Za=Eo.current,wo;Nn===io&&Za?wo=ga==null?void 0:ga(un,sa):Nn===Da&&Za?wo=ta==null?void 0:ta(un,sa):Nn===Wa&&Za&&(wo=da==null?void 0:da(un,sa)),Nn!==ao&&Za&&wo!==!1&&(Vn(ao,!0),_a(null,!0))}}var Lo=lo(Hn),xa=(0,Me.Z)(Lo,1),ra=xa[0],Oa=te.useMemo(function(){var sa,un,Za;switch(Nn){case io:return sa={},(0,ue.Z)(sa,Bn,Vt),(0,ue.Z)(sa,Na,$n),(0,ue.Z)(sa,Ca,yn),sa;case Da:return un={},(0,ue.Z)(un,Bn,jt),(0,ue.Z)(un,Na,fn),(0,ue.Z)(un,Ca,sn),un;case Wa:return Za={},(0,ue.Z)(Za,Bn,on),(0,ue.Z)(Za,Na,Gn),(0,ue.Z)(Za,Ca,Ht),Za;default:return{}}},[Nn]),No=$a(Nn,function(sa){if(sa===Bn){var un=Oa[Bn];return un?un(bo()):Ra}if(ro in Oa){var Za;_a(((Za=Oa[ro])===null||Za===void 0?void 0:Za.call(Oa,bo(),null))||null)}return ro===Ca&&(ra(bo()),_t>0&&(clearTimeout(Va.current),Va.current=setTimeout(function(){Hn({deadline:!0})},_t))),Ba}),Ko=(0,Me.Z)(No,2),tr=Ko[0],ro=Ko[1],mo=Ma(ro);Eo.current=mo,Rn(function(){Sa(le);var sa=yo.current;if(yo.current=!0,!!ie){var un;!sa&&le&&vt&&(un=io),sa&&le&&Ke&&(un=Da),(sa&&!le&&Lt||!sa&&Ct&&!le&&Lt)&&(un=Wa),un&&(Vn(un),tr())}},[le]),(0,te.useEffect)(function(){(Nn===io&&!vt||Nn===Da&&!Ke||Nn===Wa&&!Lt)&&Vn(ao)},[vt,Ke,Lt]),(0,te.useEffect)(function(){return function(){yo.current=!1,clearTimeout(Va.current)}},[]);var jo=te.useRef(!1);(0,te.useEffect)(function(){On&&(jo.current=!0),On!==void 0&&Nn===ao&&((jo.current||On)&&(ba==null||ba(On)),jo.current=!0)},[On,Nn]);var co=Xn;return Oa[Bn]&&ro===Na&&(co=(0,$e.Z)({transition:"none"},co)),[Nn,ro,co,On!=null?On:le]}var Vo=oe(15671),er=oe(43144),ko=oe(60136),Pn=oe(51630),Tn=function(ie){(0,ko.Z)(se,ie);var le=(0,Pn.Z)(se);function se(){return(0,Vo.Z)(this,se),le.apply(this,arguments)}return(0,er.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),fa=Tn;function an(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se(Ne){return!!(Ne.motionName&&le)}var he=te.forwardRef(function(Ne,Ke){var Ye=Ne.visible,vt=Ye===void 0?!0:Ye,Ot=Ne.removeOnLeave,Lt=Ot===void 0?!0:Ot,_t=Ne.forceRender,Ct=Ne.children,Vt=Ne.motionName,jt=Ne.leavedClassName,on=Ne.eventProps,$n=se(Ne),fn=(0,te.useRef)(),Gn=(0,te.useRef)();function yn(){try{return fn.current instanceof HTMLElement?fn.current:En(Gn.current)}catch(bn){return null}}var sn=Qa($n,vt,yn,Ne),Ht=(0,Me.Z)(sn,4),ga=Ht[0],ta=Ht[1],da=Ht[2],ba=Ht[3],ka=te.useRef(ba);ba&&(ka.current=!0);var _n=te.useCallback(function(bn){fn.current=bn,ge(Ke,bn)},[Ke]),On,Sa=(0,$e.Z)((0,$e.Z)({},on),{},{visible:vt});if(!Ct)On=null;else if(ga===ao||!se(Ne))ba?On=Ct((0,$e.Z)({},Sa),_n):!Lt&&ka.current&&jt?On=Ct((0,$e.Z)((0,$e.Z)({},Sa),{},{className:jt}),_n):_t||!Lt&&!jt?On=Ct((0,$e.Z)((0,$e.Z)({},Sa),{},{style:{display:"none"}}),_n):On=null;else{var Fa,la;ta===Bn?la="prepare":Ma(ta)?la="active":ta===Na&&(la="start"),On=Ct((0,$e.Z)((0,$e.Z)({},Sa),{},{className:fe()(To(Vt,ga),(Fa={},(0,ue.Z)(Fa,To(Vt,"".concat(ga,"-").concat(la)),la),(0,ue.Z)(Fa,Vt,typeof Vt=="string"),Fa)),style:da}),_n)}if(te.isValidElement(On)&&ce(On)){var Nn=On,Vn=Nn.ref;Vn||(On=te.cloneElement(On,{ref:_n}))}return te.createElement(fa,{ref:Gn},On)});return he.displayName="CSSMotion",he}var oa=an(Ia),Ua=oe(97326),po="add",$o="keep",so="remove",uo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,$e.Z)((0,$e.Z)({},le),{},{key:String(le.key)})}function pr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],he=0,Ne=le.length,Ke=pr(ie),Ye=pr(le);Ke.forEach(function(Lt){for(var _t=!1,Ct=he;Ct<Ne;Ct+=1){var Vt=Ye[Ct];if(Vt.key===Lt.key){he<Ct&&(se=se.concat(Ye.slice(he,Ct).map(function(jt){return(0,$e.Z)((0,$e.Z)({},jt),{},{status:po})})),he=Ct),se.push((0,$e.Z)((0,$e.Z)({},Vt),{},{status:$o})),he+=1,_t=!0;break}}_t||se.push((0,$e.Z)((0,$e.Z)({},Lt),{},{status:so}))}),he<Ne&&(se=se.concat(Ye.slice(he).map(function(Lt){return(0,$e.Z)((0,$e.Z)({},Lt),{},{status:po})})));var vt={};se.forEach(function(Lt){var _t=Lt.key;vt[_t]=(vt[_t]||0)+1});var Ot=Object.keys(vt).filter(function(Lt){return vt[Lt]>1});return Ot.forEach(function(Lt){se=se.filter(function(_t){var Ct=_t.key,Vt=_t.status;return Ct!==Lt||Vt!==so}),se.forEach(function(_t){_t.key===Lt&&(_t.status=$o)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Ni=["status"],Mi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oi(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oa,se=function(he){(0,ko.Z)(Ke,he);var Ne=(0,Pn.Z)(Ke);function Ke(){var Ye;(0,Vo.Z)(this,Ke);for(var vt=arguments.length,Ot=new Array(vt),Lt=0;Lt<vt;Lt++)Ot[Lt]=arguments[Lt];return Ye=Ne.call.apply(Ne,[this].concat(Ot)),(0,ue.Z)((0,Ua.Z)(Ye),"state",{keyEntities:[]}),(0,ue.Z)((0,Ua.Z)(Ye),"removeKey",function(_t){var Ct=Ye.state.keyEntities,Vt=Ct.map(function(jt){return jt.key!==_t?jt:(0,$e.Z)((0,$e.Z)({},jt),{},{status:uo})});return Ye.setState({keyEntities:Vt}),Vt.filter(function(jt){var on=jt.status;return on!==uo}).length}),Ye}return(0,er.Z)(Ke,[{key:"render",value:function(){var vt=this,Ot=this.state.keyEntities,Lt=this.props,_t=Lt.component,Ct=Lt.children,Vt=Lt.onVisibleChanged,jt=Lt.onAllRemoved,on=(0,ze.Z)(Lt,$i),$n=_t||te.Fragment,fn={};return Mi.forEach(function(Gn){fn[Gn]=on[Gn],delete on[Gn]}),delete on.keys,te.createElement($n,on,Ot.map(function(Gn){var yn=Gn.status,sn=(0,ze.Z)(Gn,Ni),Ht=yn===po||yn===$o;return te.createElement(le,(0,Be.Z)({},fn,{key:sn.key,visible:Ht,eventProps:sn,onVisibleChanged:function(ta){if(Vt==null||Vt(ta,{key:sn.key}),!ta){var da=vt.removeKey(sn.key);da===0&&jt&&jt()}}}),Ct)}))}}],[{key:"getDerivedStateFromProps",value:function(vt,Ot){var Lt=vt.keys,_t=Ot.keyEntities,Ct=pr(Lt),Vt=Dr(_t,Ct);return{keyEntities:Vt.filter(function(jt){var on=_t.find(function($n){var fn=$n.key;return jt.key===fn});return!(on&&on.status===uo&&jt.status===so)})}}}]),Ke}(te.Component);return(0,ue.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ia),Fi=oa;function Ai(ie){var le=ie.prefixCls,se=ie.align,he=ie.arrow,Ne=ie.arrowPos,Ke=he||{},Ye=Ke.className,vt=Ke.content,Ot=Ne.x,Lt=Ot===void 0?0:Ot,_t=Ne.y,Ct=_t===void 0?0:_t,Vt=te.useRef();if(!se||!se.points)return null;var jt={position:"absolute"};if(se.autoArrow!==!1){var on=se.points[0],$n=se.points[1],fn=on[0],Gn=on[1],yn=$n[0],sn=$n[1];fn===yn||!["t","b"].includes(fn)?jt.top=Ct:fn==="t"?jt.top=0:jt.bottom=0,Gn===sn||!["l","r"].includes(Gn)?jt.left=Lt:Gn==="l"?jt.left=0:jt.right=0}return te.createElement("div",{ref:Vt,className:fe()("".concat(le,"-arrow"),Ye),style:jt},vt)}function zi(ie){var le=ie.prefixCls,se=ie.open,he=ie.zIndex,Ne=ie.mask,Ke=ie.motion;return Ne?te.createElement(Fi,(0,Be.Z)({},Ke,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(Ye){var vt=Ye.className;return te.createElement("div",{style:{zIndex:he},className:fe()("".concat(le,"-mask"),vt)})}):null}var Ti=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Gi=Ti,Ii=te.forwardRef(function(ie,le){var se=ie.popup,he=ie.className,Ne=ie.prefixCls,Ke=ie.style,Ye=ie.target,vt=ie.onVisibleChanged,Ot=ie.open,Lt=ie.keepDom,_t=ie.fresh,Ct=ie.onClick,Vt=ie.mask,jt=ie.arrow,on=ie.arrowPos,$n=ie.align,fn=ie.motion,Gn=ie.maskMotion,yn=ie.forceRender,sn=ie.getPopupContainer,Ht=ie.autoDestroy,ga=ie.portal,ta=ie.zIndex,da=ie.onMouseEnter,ba=ie.onMouseLeave,ka=ie.onPointerEnter,_n=ie.ready,On=ie.offsetX,Sa=ie.offsetY,Fa=ie.offsetR,la=ie.offsetB,Nn=ie.onAlign,Vn=ie.onPrepare,bn=ie.stretch,ja=ie.targetWidth,Xn=ie.targetHeight,_a=typeof se=="function"?se():se,yo=Ot||Lt,Va=(sn==null?void 0:sn.length)>0,bo=te.useState(!sn||!Va),Eo=(0,Me.Z)(bo,2),Hn=Eo[0],Lo=Eo[1];if(rn(function(){!Hn&&Va&&Ye&&Lo(!0)},[Hn,Va,Ye]),!Hn)return null;var xa="auto",ra={left:"-1000vw",top:"-1000vh",right:xa,bottom:xa};if(_n||!Ot){var Oa,No=$n.points,Ko=$n.dynamicInset||((Oa=$n._experimental)===null||Oa===void 0?void 0:Oa.dynamicInset),tr=Ko&&No[0][1]==="r",ro=Ko&&No[0][0]==="b";tr?(ra.right=Fa,ra.left=xa):(ra.left=On,ra.right=xa),ro?(ra.bottom=la,ra.top=xa):(ra.top=Sa,ra.bottom=xa)}var mo={};return bn&&(bn.includes("height")&&Xn?mo.height=Xn:bn.includes("minHeight")&&Xn&&(mo.minHeight=Xn),bn.includes("width")&&ja?mo.width=ja:bn.includes("minWidth")&&ja&&(mo.minWidth=ja)),Ot||(mo.pointerEvents="none"),te.createElement(ga,{open:yn||yo,getContainer:sn&&function(){return sn(Ye)},autoDestroy:Ht},te.createElement(zi,{prefixCls:Ne,open:Ot,zIndex:ta,mask:Vt,motion:Gn}),te.createElement(zt.Z,{onResize:Nn,disabled:!Ot},function(jo){return te.createElement(Fi,(0,Be.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:yn,leavedClassName:"".concat(Ne,"-hidden")},fn,{onAppearPrepare:Vn,onEnterPrepare:Vn,visible:Ot,onVisibleChanged:function(sa){var un;fn==null||(un=fn.onVisibleChanged)===null||un===void 0||un.call(fn,sa),vt(sa)}}),function(co,sa){var un=co.className,Za=co.style,wo=fe()(Ne,un,he);return te.createElement("div",{ref:mt(jo,le,sa),className:wo,style:(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({"--arrow-x":"".concat(on.x||0,"px"),"--arrow-y":"".concat(on.y||0,"px")},ra),mo),Za),{},{boxSizing:"border-box",zIndex:ta},Ke),onMouseEnter:da,onMouseLeave:ba,onPointerEnter:ka,onClick:Ct},jt&&te.createElement(Ai,{prefixCls:Ne,arrow:jt,arrowPos:on,align:$n}),te.createElement(Gi,{cache:!Ot&&!_t},_a))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,he=ie.getTriggerDOMNode,Ne=va(se),Ke=te.useCallback(function(vt){wa(le,he?he(vt):vt)},[he]),Ye=xn(Ke,se.ref);return Ne?te.cloneElement(se,{ref:Ye}):se}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Zi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln,le=te.forwardRef(function(se,he){var Ne=se.prefixCls,Ke=Ne===void 0?"rc-trigger-popup":Ne,Ye=se.children,vt=se.action,Ot=vt===void 0?"hover":vt,Lt=se.showAction,_t=se.hideAction,Ct=se.popupVisible,Vt=se.defaultPopupVisible,jt=se.onPopupVisibleChange,on=se.afterPopupVisibleChange,$n=se.mouseEnterDelay,fn=se.mouseLeaveDelay,Gn=fn===void 0?.1:fn,yn=se.focusDelay,sn=se.blurDelay,Ht=se.mask,ga=se.maskClosable,ta=ga===void 0?!0:ga,da=se.getPopupContainer,ba=se.forceRender,ka=se.autoDestroy,_n=se.destroyPopupOnHide,On=se.popup,Sa=se.popupClassName,Fa=se.popupStyle,la=se.popupPlacement,Nn=se.builtinPlacements,Vn=Nn===void 0?{}:Nn,bn=se.popupAlign,ja=se.zIndex,Xn=se.stretch,_a=se.getPopupClassNameFromAlign,yo=se.fresh,Va=se.alignPoint,bo=se.onPopupClick,Eo=se.onPopupAlign,Hn=se.arrow,Lo=se.popupMotion,xa=se.maskMotion,ra=se.popupTransitionName,Oa=se.popupAnimation,No=se.maskTransitionName,Ko=se.maskAnimation,tr=se.className,ro=se.getTriggerDOMNode,mo=(0,ze.Z)(se,ji),jo=ka||_n||!1,co=te.useState(!1),sa=(0,Me.Z)(co,2),un=sa[0],Za=sa[1];rn(function(){Za(jn())},[]);var wo=te.useRef({}),Zo=te.useContext(Qn),gr=te.useMemo(function(){return{registerSubPopup:function(Mn,Aa){wo.current[Mn]=Aa,Zo==null||Zo.registerSubPopup(Mn,Aa)}}},[Zo]),dr=qt(),ii=te.useState(null),Rr=(0,Me.Z)(ii,2),Go=Rr[0],kr=Rr[1],Io=we(function(Qt){Nt(Qt)&&Go!==Qt&&kr(Qt),Zo==null||Zo.registerSubPopup(dr,Qt)}),Do=te.useState(null),jr=(0,Me.Z)(Do,2),Ro=jr[0],gi=jr[1],di=we(function(Qt){Nt(Qt)&&Ro!==Qt&&gi(Qt)}),Lr=te.Children.only(Ye),Co=(Lr==null?void 0:Lr.props)||{},nr={},li=we(function(Qt){var Mn,Aa,Ka=Ro;return(Ka==null?void 0:Ka.contains(Qt))||((Mn=vn(Ka))===null||Mn===void 0?void 0:Mn.host)===Qt||Qt===Ka||(Go==null?void 0:Go.contains(Qt))||((Aa=vn(Go))===null||Aa===void 0?void 0:Aa.host)===Qt||Qt===Go||Object.values(wo.current).some(function(za){return(za==null?void 0:za.contains(Qt))||Qt===za})}),Xo=ha(Ke,Lo,Oa,ra),Fo=ha(Ke,xa,Ko,No),Zr=te.useState(Vt||!1),xr=(0,Me.Z)(Zr,2),ar=xr[0],Ha=xr[1],na=Ct!=null?Ct:ar,Ho=we(function(Qt){Ct===void 0&&Ha(Qt)});rn(function(){Ha(Ct||!1)},[Ct]);var Wo=te.useRef(na);Wo.current=na;var Br=we(function(Qt){(0,Xe.flushSync)(function(){na!==Qt&&(Ho(Qt),jt==null||jt(Qt))})}),$r=te.useRef(),Nr=function(){clearTimeout($r.current)},Mo=function(Mn){var Aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Nr(),Aa===0?Br(Mn):$r.current=setTimeout(function(){Br(Mn)},Aa*1e3)};te.useEffect(function(){return Nr},[]);var wr=te.useState(!1),Hr=(0,Me.Z)(wr,2),Mr=Hr[0],Or=Hr[1];rn(function(Qt){(!Qt||na)&&Or(!0)},[na]);var Wr=te.useState(null),Ar=(0,Me.Z)(Wr,2),Yo=Ar[0],lr=Ar[1],sr=te.useState([0,0]),ur=(0,Me.Z)(sr,2),zr=ur[0],Ur=ur[1],Uo=function(Mn){Ur([Mn.clientX,Mn.clientY])},_r=Pt(na,Go,Va?zr:Ro,la,Vn,bn,Eo),xo=(0,Me.Z)(_r,11),mr=xo[0],Vr=xo[1],si=xo[2],Kr=xo[3],Xr=xo[4],cr=xo[5],Yr=xo[6],ui=xo[7],fr=xo[8],Sr=xo[9],Tr=xo[10],hr=In(un,Ot,Lt,_t),or=(0,Me.Z)(hr,2),rr=or[0],Pr=or[1],Er=rr.has("click"),Cr=Pr.has("click")||Pr.has("contextMenu"),Qo=we(function(){Mr||Tr()}),mi=function(){Wo.current&&Va&&Cr&&Mo(!1)};Wt(na,Ro,Go,Qo,mi),rn(function(){Qo()},[zr,la]),rn(function(){na&&!(Vn!=null&&Vn[la])&&Qo()},[JSON.stringify(bn)]);var Qr=te.useMemo(function(){var Qt=La(Vn,Ke,Sr,Va);return fe()(Qt,_a==null?void 0:_a(Sr))},[Sr,_a,Vn,Ke,Va]);te.useImperativeHandle(he,function(){return{forceAlign:Qo}});var ci=te.useState(0),Jr=(0,Me.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Me.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Xn&&Ro){var Mn=Ro.getBoundingClientRect();Si(Mn.width),vi(Mn.height)}},pi=function(){ei(),Qo()},yi=function(Mn){Or(!1),Tr(),on==null||on(Mn)},Oo=function(){return new Promise(function(Mn){ei(),lr(function(){return Mn})})};rn(function(){Yo&&(Tr(),Yo(),lr(null))},[Yo]);function Jo(Qt,Mn,Aa,Ka){nr[Qt]=function(za){var ai;Ka==null||Ka(za),Mo(Mn,Aa);for(var Ci=arguments.length,Bi=new Array(Ci>1?Ci-1:0),oi=1;oi<Ci;oi++)Bi[oi-1]=arguments[oi];(ai=Co[Qt])===null||ai===void 0||ai.call.apply(ai,[Co,za].concat(Bi))}}(Er||Cr)&&(nr.onClick=function(Qt){var Mn;Wo.current&&Cr?Mo(!1):!Wo.current&&Er&&(Uo(Qt),Mo(!0));for(var Aa=arguments.length,Ka=new Array(Aa>1?Aa-1:0),za=1;za<Aa;za++)Ka[za-1]=arguments[za];(Mn=Co.onClick)===null||Mn===void 0||Mn.call.apply(Mn,[Co,Qt].concat(Ka))}),Un(na,Cr,Ro,Go,Ht,ta,li,Mo);var ti=rr.has("hover"),vr=Pr.has("hover"),ir,Gr;ti&&(Jo("onMouseEnter",!0,$n,function(Qt){Uo(Qt)}),Jo("onPointerEnter",!0,$n,function(Qt){Uo(Qt)}),ir=function(){(na||Mr)&&Mo(!0,$n)},Va&&(nr.onMouseMove=function(Qt){var Mn;(Mn=Co.onMouseMove)===null||Mn===void 0||Mn.call(Co,Qt)})),vr&&(Jo("onMouseLeave",!1,Gn),Jo("onPointerLeave",!1,Gn),Gr=function(){Mo(!1,Gn)}),rr.has("focus")&&Jo("onFocus",!0,yn),Pr.has("focus")&&Jo("onBlur",!1,sn),rr.has("contextMenu")&&(nr.onContextMenu=function(Qt){var Mn;Wo.current&&Pr.has("contextMenu")?Mo(!1):(Uo(Qt),Mo(!0)),Qt.preventDefault();for(var Aa=arguments.length,Ka=new Array(Aa>1?Aa-1:0),za=1;za<Aa;za++)Ka[za-1]=arguments[za];(Mn=Co.onContextMenu)===null||Mn===void 0||Mn.call.apply(Mn,[Co,Qt].concat(Ka))}),tr&&(nr.className=fe()(Co.className,tr));var Fr=(0,$e.Z)((0,$e.Z)({},Co),nr),ni={},bi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];bi.forEach(function(Qt){mo[Qt]&&(ni[Qt]=function(){for(var Mn,Aa=arguments.length,Ka=new Array(Aa),za=0;za<Aa;za++)Ka[za]=arguments[za];(Mn=Fr[Qt])===null||Mn===void 0||Mn.call.apply(Mn,[Fr].concat(Ka)),mo[Qt].apply(mo,Ka)})});var Li=te.cloneElement(Lr,(0,$e.Z)((0,$e.Z)({},Fr),ni)),wi={x:cr,y:Yr},Ei=Hn?(0,$e.Z)({},Hn!==!0?Hn:{}):null;return te.createElement(te.Fragment,null,te.createElement(zt.Z,{disabled:!na,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:ro},Li)),te.createElement(Qn.Provider,{value:gr},te.createElement(Di,{portal:ie,ref:Io,prefixCls:Ke,popup:On,className:fe()(Sa,Qr),style:Fa,target:Ro,onMouseEnter:ir,onMouseLeave:Gr,onPointerEnter:ir,zIndex:ja,open:na,keepDom:Mr,fresh:yo,onClick:bo,mask:Ht,motion:Xo,maskMotion:Fo,onVisibleChanged:yi,onPrepare:Oo,forceRender:ba,autoDestroy:jo,getPopupContainer:da,align:Sr,arrow:Ei,arrowPos:wi,ready:mr,offsetX:Vr,offsetY:si,offsetR:Kr,offsetB:Xr,onAlign:Qo,stretch:Xn,targetWidth:fi/ui,targetHeight:Pi/fr})))});return le}var Hi=Zi(ln),mn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var se=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||se>=mn.F1&&se<=mn.F12)return!1;switch(se){case mn.ALT:case mn.CAPS_LOCK:case mn.CONTEXT_MENU:case mn.CTRL:case mn.DOWN:case mn.END:case mn.ESC:case mn.HOME:case mn.INSERT:case mn.LEFT:case mn.MAC_FF_META:case mn.META:case mn.NUMLOCK:case mn.NUM_CENTER:case mn.PAGE_DOWN:case mn.PAGE_UP:case mn.PAUSE:case mn.PRINT_SCREEN:case mn.RIGHT:case mn.SHIFT:case mn.UP:case mn.WIN_KEY:case mn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=mn.ZERO&&le<=mn.NINE||le>=mn.NUM_ZERO&&le<=mn.NUM_MULTIPLY||le>=mn.A&&le<=mn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case mn.SPACE:case mn.QUESTION_MARK:case mn.NUM_PLUS:case mn.NUM_MINUS:case mn.NUM_PERIOD:case mn.NUM_DIVISION:case mn.SEMICOLON:case mn.DASH:case mn.EQUALS:case mn.COMMA:case mn.PERIOD:case mn.SLASH:case mn.APOSTROPHE:case mn.SINGLE_QUOTE:case mn.OPEN_SQUARE_BRACKET:case mn.BACKSLASH:case mn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=mn,Wi=xi.ESC,Ui=xi.TAB;function _i(ie){var le=ie.visible,se=ie.triggerRef,he=ie.onVisibleChange,Ne=ie.autoFocus,Ke=ie.overlayRef,Ye=te.useRef(!1),vt=function(){if(le){var Ct,Vt;(Ct=se.current)===null||Ct===void 0||(Vt=Ct.focus)===null||Vt===void 0||Vt.call(Ct),he==null||he(!1)}},Ot=function(){var Ct;return(Ct=Ke.current)!==null&&Ct!==void 0&&Ct.focus?(Ke.current.focus(),Ye.current=!0,!0):!1},Lt=function(Ct){switch(Ct.keyCode){case Wi:vt();break;case Ui:{var Vt=!1;Ye.current||(Vt=Ot()),Vt?Ct.preventDefault():vt();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",Lt),Ne&&bt(Ot,3),function(){window.removeEventListener("keydown",Lt),Ye.current=!1}):function(){Ye.current=!1}},[le])}var Vi=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,he=ie.arrow,Ne=ie.prefixCls,Ke=(0,te.useMemo)(function(){var vt;return typeof se=="function"?vt=se():vt=se,vt},[se]),Ye=de(le,Ke==null?void 0:Ke.ref);return te.createElement(te.Fragment,null,he&&te.createElement("div",{className:"".concat(Ne,"-arrow")}),te.cloneElement(Ke,{ref:ce(Ke)?Ye:void 0}))}),Ki=Vi,yr={adjustX:1,adjustY:1},br=[0,0],Xi={topLeft:{points:["bl","tl"],overflow:yr,offset:[0,-4],targetOffset:br},top:{points:["bc","tc"],overflow:yr,offset:[0,-4],targetOffset:br},topRight:{points:["br","tr"],overflow:yr,offset:[0,-4],targetOffset:br},bottomLeft:{points:["tl","bl"],overflow:yr,offset:[0,4],targetOffset:br},bottom:{points:["tc","bc"],overflow:yr,offset:[0,4],targetOffset:br},bottomRight:{points:["tr","br"],overflow:yr,offset:[0,4],targetOffset:br}},Yi=Xi,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(ie,le){var se,he=ie.arrow,Ne=he===void 0?!1:he,Ke=ie.prefixCls,Ye=Ke===void 0?"rc-dropdown":Ke,vt=ie.transitionName,Ot=ie.animation,Lt=ie.align,_t=ie.placement,Ct=_t===void 0?"bottomLeft":_t,Vt=ie.placements,jt=Vt===void 0?Yi:Vt,on=ie.getPopupContainer,$n=ie.showAction,fn=ie.hideAction,Gn=ie.overlayClassName,yn=ie.overlayStyle,sn=ie.visible,Ht=ie.trigger,ga=Ht===void 0?["hover"]:Ht,ta=ie.autoFocus,da=ie.overlay,ba=ie.children,ka=ie.onVisibleChange,_n=(0,ze.Z)(ie,Qi),On=te.useState(),Sa=(0,Me.Z)(On,2),Fa=Sa[0],la=Sa[1],Nn="visible"in ie?sn:Fa,Vn=te.useRef(null),bn=te.useRef(null),ja=te.useRef(null);te.useImperativeHandle(le,function(){return Vn.current});var Xn=function(ra){la(ra),ka==null||ka(ra)};_i({visible:Nn,triggerRef:ja,onVisibleChange:Xn,autoFocus:ta,overlayRef:bn});var _a=function(ra){var Oa=ie.onOverlayClick;la(!1),Oa&&Oa(ra)},yo=function(){return te.createElement(Ki,{ref:bn,overlay:da,prefixCls:Ye,arrow:Ne})},Va=function(){return typeof da=="function"?yo:yo()},bo=function(){var ra=ie.minOverlayWidthMatchTrigger,Oa=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?ra:!Oa},Eo=function(){var ra=ie.openClassName;return ra!==void 0?ra:"".concat(Ye,"-open")},Hn=te.cloneElement(ba,{className:fe()((se=ba.props)===null||se===void 0?void 0:se.className,Nn&&Eo()),ref:ce(ba)?de(ja,ba.ref):void 0}),Lo=fn;return!Lo&&ga.indexOf("contextMenu")!==-1&&(Lo=["click"]),te.createElement(Hi,(0,Be.Z)({builtinPlacements:jt},_n,{prefixCls:Ye,ref:Vn,popupClassName:fe()(Gn,(0,ue.Z)({},"".concat(Ye,"-show-arrow"),Ne)),popupStyle:yn,action:ga,showAction:$n,hideAction:Lo,popupPlacement:Ct,popupAlign:Lt,popupTransitionName:vt,popupAnimation:Ot,popupVisible:Nn,stretch:bo()?"minWidth":"",popup:Va(),onPopupVisibleChange:Xn,onPopupClick:_a,getPopupContainer:on}),Hn)}var qi=te.forwardRef(Ji),eg=qi,tg=oe(60276),ng=oe(5663),ag=oe(10366),og=oe(80636),rg=oe(8745),ig=oe(96159),gg=oe(53124),dg=oe(68508),lg=oe(76529),sg=oe(46605),ug=oe(66748);const Pg=null,ri=ie=>{const{menu:le,arrow:se,prefixCls:he,children:Ne,trigger:Ke,disabled:Ye,dropdownRender:vt,getPopupContainer:Ot,overlayClassName:Lt,rootClassName:_t,open:Ct,onOpenChange:Vt,visible:jt,onVisibleChange:on,mouseEnterDelay:$n=.15,mouseLeaveDelay:fn=.1,autoAdjustOverflow:Gn=!0,placement:yn="",overlay:sn,transitionName:Ht}=ie,{getPopupContainer:ga,getPrefixCls:ta,direction:da}=te.useContext(gg.E_),ba=te.useMemo(()=>{const Hn=ta();return Ht!==void 0?Ht:yn.includes("top")?`${Hn}-slide-down`:`${Hn}-slide-up`},[ta,yn,Ht]),ka=te.useMemo(()=>yn?yn.includes("Center")?yn.slice(0,yn.indexOf("Center")):yn:da==="rtl"?"bottomRight":"bottomLeft",[yn,da]),_n=ta("dropdown",he),[On,Sa]=(0,ug.Z)(_n),[,Fa]=(0,sg.Z)(),la=te.Children.only(Ne),Nn=(0,ig.Tm)(la,{className:fe()(`${_n}-trigger`,{[`${_n}-rtl`]:da==="rtl"},la.props.className),disabled:Ye}),Vn=Ye?[]:Ke;let bn;Vn&&Vn.includes("contextMenu")&&(bn=!0);const[ja,Xn]=(0,ng.Z)(!1,{value:Ct!=null?Ct:jt}),_a=(0,tg.useEvent)(Hn=>{Vt==null||Vt(Hn),on==null||on(Hn),Xn(Hn)}),yo=fe()(Lt,_t,Sa,{[`${_n}-rtl`]:da==="rtl"}),Va=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Gn,offset:Fa.marginXXS,arrowWidth:se?Fa.sizePopupArrow:0,borderRadius:Fa.borderRadius}),bo=te.useCallback(()=>{Xn(!1)},[]),Eo=()=>{let Hn;return le!=null&&le.items?Hn=te.createElement(dg.default,Object.assign({},le)):typeof sn=="function"?Hn=sn():Hn=sn,vt&&(Hn=vt(Hn)),Hn=te.Children.only(typeof Hn=="string"?te.createElement("span",null,Hn):Hn),te.createElement(lg.J,{prefixCls:`${_n}-menu`,expandIcon:te.createElement("span",{className:`${_n}-menu-submenu-arrow`},te.createElement(et.Z,{className:`${_n}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bo,validator:Lo=>{let{mode:xa}=Lo}},Hn)};return On(te.createElement(eg,Object.assign({alignPoint:bn},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:$n,mouseLeaveDelay:fn,visible:ja,builtinPlacements:Va,arrow:!!se,overlayClassName:yo,prefixCls:_n,getPopupContainer:Ot||ga,transitionName:ba,trigger:Vn,overlay:Eo,placement:ka,onVisibleChange:_a}),Nn))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",ie=>ie,mg),fg=ie=>te.createElement(cg,Object.assign({},ie),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Xe}});var te=oe(14747),ve=oe(67771),et=oe(33297),He=oe(50438),fe=oe(97414),Be=oe(67968),ue=oe(45503),ze=je=>{const{componentCls:Ie,menuCls:ae,colorError:a,colorTextLightSolid:y}=je,E=`${ae}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const $e=je=>{const{componentCls:Ie,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:Pe,colorBgElevated:ce}=je;return[{[Ie]:Object.assign(Object.assign({},(0,te.Wf)(je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:ve.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:ve.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:ve.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:ve.ly}})},(0,fe.ZP)(je,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:je.borderRadiusLG,outline:"none",boxShadow:je.boxShadowSecondary},(0,te.Qy)(je)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Pe}px`,color:je.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:je.marginXS,fontSize:je.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Pe}px`,color:je.colorText,fontWeight:"normal",fontSize:ne,lineHeight:je.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:je.borderRadiusSM,"&:hover, &-active":{backgroundColor:je.controlItemBgHover}},(0,te.Qy)(je)),{"&-selected":{color:je.colorPrimary,backgroundColor:je.controlItemBgActive,"&:hover, &-active":{backgroundColor:je.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:je.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:je.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${je.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Pe+je.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ie}-menu-submenu-title`]:{color:je.colorPrimary}})}},[(0,ve.oN)(je,"slide-up"),(0,ve.oN)(je,"slide-down"),(0,et.Fm)(je,"move-up"),(0,et.Fm)(je,"move-down"),(0,He._y)(je,"zoom-big")]]};var Xe=(0,Be.Z)("Dropdown",(je,Ie)=>{let{rootPrefixCls:ae}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=je,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,fe.fS)({contentRadius:ne}),de=(0,ue.TS)(je,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[$e(de),ze(de)]},je=>({zIndexPopup:je.zIndexPopupBase+50}))},19249:function(Ge,ct,oe){"use strict";oe.d(ct,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),ve=oe(67294),et={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"},He=et,fe=oe(44327),Be=function(ge,de){return ve.createElement(fe.Z,(0,te.Z)({},ge,{ref:de,icon:He}))},ue=ve.forwardRef(Be),Me=oe(55007),ze=oe(79269),$e=oe(94184),Xe=oe.n($e),je=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var Pe in re)Object.prototype.hasOwnProperty.call(re,Pe)&&ge.indexOf(Pe)<0&&(de[Pe]=re[Pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Pe=Object.getOwnPropertySymbols(re);ce<Pe.length;ce++)ge.indexOf(Pe[ce])<0&&Object.prototype.propertyIsEnumerable.call(re,Pe[ce])&&(de[Pe[ce]]=re[Pe[ce]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ve.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=ve.forwardRef((re,ge)=>{const{prefixCls:de,className:Pe,trigger:ce,children:De,defaultCollapsed:Ze=!1,theme:wt="dark",style:At={},collapsible:Zt=!1,reverseArrow:Le=!1,width:Ue=200,collapsedWidth:Re=80,zeroWidthTriggerStyle:it,breakpoint:ut,onCollapse:Qe,onBreakpoint:Ve}=re,gt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$t}=(0,ve.useContext)(y.Gs),[pe,Ae]=(0,ve.useState)("collapsed"in re?re.collapsed:Ze),[rt,Ft]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{"collapsed"in re&&Ae(re.collapsed)},[re.collapsed]);const Je=(ft,Oe)=>{"collapsed"in re||Ae(ft),Qe==null||Qe(ft,Oe)},dt=(0,ve.useRef)();dt.current=ft=>{Ft(ft.matches),Ve==null||Ve(ft.matches),pe!==ft.matches&&Je(ft.matches,"responsive")},(0,ve.useEffect)(()=>{function ft(Ce){return dt.current(Ce)}let Oe;if(typeof window!="undefined"){const{matchMedia:Ce}=window;if(Ce&&ut&&ut in b){Oe=Ce(`(max-width: ${b[ut]})`);try{Oe.addEventListener("change",ft)}catch(Ee){Oe.addListener(ft)}ft(Oe)}}return()=>{try{Oe==null||Oe.removeEventListener("change",ft)}catch(Ce){Oe==null||Oe.removeListener(ft)}}},[ut]),(0,ve.useEffect)(()=>{const ft=z("ant-sider-");return $t.addSider(ft),()=>$t.removeSider(ft)},[]);const me=()=>{Je(!pe,"clickTrigger")},{getPrefixCls:lt}=(0,ve.useContext)(a.E_),Et=()=>{const ft=lt("layout-sider",de),Oe=(0,je.Z)(gt,["collapsed"]),Ce=pe?Re:Ue,Ee=ae(Ce)?`${Ce}px`:String(Ce),tt=parseFloat(String(Re||0))===0?ve.createElement("span",{onClick:me,className:Xe()(`${ft}-zero-width-trigger`,`${ft}-zero-width-trigger-${Le?"right":"left"}`),style:it},ce||ve.createElement(ue,null)):null,Gt={expanded:Le?ve.createElement(ze.Z,null):ve.createElement(Me.Z,null),collapsed:Le?ve.createElement(Me.Z,null):ve.createElement(ze.Z,null)}[pe?"collapsed":"expanded"],Tt=ce!==null?tt||ve.createElement("div",{className:`${ft}-trigger`,onClick:me,style:{width:Ee}},ce||Gt):null,Yt=Object.assign(Object.assign({},At),{flex:`0 0 ${Ee}`,maxWidth:Ee,minWidth:Ee,width:Ee}),dn=Xe()(ft,`${ft}-${wt}`,{[`${ft}-collapsed`]:!!pe,[`${ft}-has-trigger`]:Zt&&ce!==null&&!tt,[`${ft}-below`]:!!rt,[`${ft}-zero-width`]:parseFloat(Ee)===0},Pe);return ve.createElement("aside",Object.assign({className:dn},Oe,{style:Yt,ref:ge}),ve.createElement("div",{className:`${ft}-children`},De),Zt||rt&&tt?Tt:null)},Xt=ve.useMemo(()=>({siderCollapsed:pe}),[pe]);return ve.createElement(x.Provider,{value:Xt},Et())})},84321:function(Ge,ct,oe){"use strict";oe.d(ct,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var te=oe(74902),ve=oe(94184),et=oe.n(ve),He=oe(10366),fe=oe(67294),Be=oe(53124),ue=oe(67968),ze=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:Pe,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:ce,background:Pe},[`${re}-sider-zero-width-trigger`]:{color:ce,background:Pe,border:`1px solid ${ge}`,borderInlineStart:0}}}};const $e=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:Pe,footerBg:ce,triggerBg:De,headerHeight:Ze,headerPadding:wt,headerColor:At,footerPadding:Zt,triggerHeight:Le,zeroTriggerHeight:Ue,zeroTriggerWidth:Re,motionDurationMid:it,motionDurationSlow:ut,fontSize:Qe,borderRadius:Ve,bodyBg:gt,headerBg:$t,siderBg:pe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:gt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:pe,transition:`all ${it}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Pe,lineHeight:`${Le}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${it}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ze,insetInlineEnd:-Re,zIndex:1,width:Re,height:Ue,color:Pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pe,borderStartStartRadius:0,borderStartEndRadius:Ve,borderEndEndRadius:Ve,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ut} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ut}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Re,borderStartStartRadius:Ve,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ve}}}}},ze(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ze,padding:wt,color:At,lineHeight:`${Ze}px`,background:$t,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Zt,color:de,fontSize:Qe,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Xe=(0,ue.Z)("Layout",ne=>[$e(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:Pe,controlHeightSM:ce,marginXXS:De,colorTextLightSolid:Ze,colorBgContainer:wt}=ne,At=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${At}px`,headerColor:Pe,footerPadding:`${ce}px ${At}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:Ze,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:wt,lightTriggerBg:wt,lightTriggerColor:Pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),je=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,de=Object.getOwnPropertySymbols(ne);Pe<de.length;Pe++)re.indexOf(de[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[Pe])&&(ge[de[Pe]]=ne[de[Pe]]);return ge};const Ie=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return Pe=>fe.forwardRef((De,Ze)=>fe.createElement(Pe,Object.assign({ref:Ze,suffixCls:re,tagName:ge},De)))}const a=fe.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:Pe,tagName:ce}=ne,De=je(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ze}=fe.useContext(Be.E_),wt=Ze("layout",ge),[At,Zt]=Xe(wt),Le=de?`${wt}-${de}`:wt;return At(fe.createElement(ce,Object.assign({className:et()(ge||Le,Pe,Zt),ref:re},De)))}),y=fe.forwardRef((ne,re)=>{const{direction:ge}=fe.useContext(Be.E_),[de,Pe]=fe.useState([]),{prefixCls:ce,className:De,rootClassName:Ze,children:wt,hasSider:At,tagName:Zt,style:Le}=ne,Ue=je(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Re=(0,He.Z)(Ue,["suffixCls"]),{getPrefixCls:it,layout:ut}=fe.useContext(Be.E_),Qe=it("layout",ce),[Ve,gt]=Xe(Qe),$t=et()(Qe,{[`${Qe}-has-sider`]:typeof At=="boolean"?At:de.length>0,[`${Qe}-rtl`]:ge==="rtl"},ut==null?void 0:ut.className,De,Ze,gt),pe=fe.useMemo(()=>({siderHook:{addSider:Ae=>{Pe(rt=>[].concat((0,te.Z)(rt),[Ae]))},removeSider:Ae=>{Pe(rt=>rt.filter(Ft=>Ft!==Ae))}}}),[]);return Ve(fe.createElement(Ie.Provider,{value:pe},fe.createElement(Zt,Object.assign({ref:re,className:$t,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Le)},Re),wt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ge,ct,oe){"use strict";oe.d(ct,{J:function(){return Be}});var te=oe(67294),ve=oe(4173),et=oe(60276),He=function(ue,Me){var ze={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Me.indexOf($e)<0&&(ze[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,$e=Object.getOwnPropertySymbols(ue);Xe<$e.length;Xe++)Me.indexOf($e[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[Xe])&&(ze[$e[Xe]]=ue[$e[Xe]]);return ze};const fe=te.createContext(null),Be=te.forwardRef((ue,Me)=>{const{children:ze}=ue,$e=He(ue,["children"]),Xe=te.useContext(fe),je=te.useMemo(()=>Object.assign(Object.assign({},Xe),$e),[Xe,$e.prefixCls,$e.mode,$e.selectable]);return te.createElement(fe.Provider,{value:je},te.createElement(ve.BR,null,(0,et.supportNodeRef)(ze)?te.cloneElement(ze,{ref:Me}):ze))});ct.Z=fe},68508:function(Ge,ct,oe){"use strict";oe.d(ct,{default:function(){return ft}});var te=oe(52073),ve=oe(67294),et=oe(19249),He=oe(94184),fe=oe.n(He),Be=oe(53124),ue=function(Oe,Ce){var Ee={};for(var tt in Oe)Object.prototype.hasOwnProperty.call(Oe,tt)&&Ce.indexOf(tt)<0&&(Ee[tt]=Oe[tt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Oe);qe<tt.length;qe++)Ce.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Oe,tt[qe])&&(Ee[tt[qe]]=Oe[tt[qe]]);return Ee},ze=Oe=>{const{prefixCls:Ce,className:Ee,dashed:tt}=Oe,qe=ue(Oe,["prefixCls","className","dashed"]),{getPrefixCls:ht}=ve.useContext(Be.E_),Gt=ht("menu",Ce),Tt=fe()({[`${Gt}-item-divider-dashed`]:!!tt},Ee);return ve.createElement(te.iz,Object.assign({className:Tt},qe))},$e=oe(37419),Xe=oe(10366),je=oe(83062),Ie=oe(96159),a=(0,ve.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Oe=>{var Ce;const{className:Ee,children:tt,icon:qe,title:ht,danger:Gt}=Oe,{prefixCls:Tt,firstLevel:Yt,direction:dn,disableMenuItemTitleTooltip:ln,inlineCollapsed:zt}=ve.useContext(a),Nt=Te=>{const ot=ve.createElement("span",{className:`${Tt}-title-content`},tt);return(!qe||(0,Ie.l$)(tt)&&tt.type==="span")&&tt&&Te&&Yt&&typeof tt=="string"?ve.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},tt.charAt(0)):ot},{siderCollapsed:Jt}=ve.useContext(et.D);let kn=ht;typeof ht=="undefined"?kn=Yt?tt:"":ht===!1&&(kn="");const Cn={title:kn};!Jt&&!zt&&(Cn.title=null,Cn.open=!1);const vn=(0,$e.Z)(tt).length;let we=ve.createElement(te.ck,Object.assign({},(0,Xe.Z)(Oe,["title","icon","danger"]),{className:fe()({[`${Tt}-item-danger`]:Gt,[`${Tt}-item-only-child`]:(qe?vn+1:vn)===1},Ee),title:typeof ht=="string"?ht:void 0}),(0,Ie.Tm)(qe,{className:fe()((0,Ie.l$)(qe)?(Ce=qe.props)===null||Ce===void 0?void 0:Ce.className:"",`${Tt}-item-icon`)}),Nt(zt));return ln||(we=ve.createElement(je.Z,Object.assign({},Cn,{placement:dn==="rtl"?"left":"right",overlayClassName:`${Tt}-inline-collapsed-tooltip`}),we)),we},x=Oe=>{var Ce;const{popupClassName:Ee,icon:tt,title:qe,theme:ht}=Oe,Gt=ve.useContext(a),{prefixCls:Tt,inlineCollapsed:Yt,theme:dn}=Gt,ln=(0,te.Xl)();let zt;if(!tt)zt=Yt&&!ln.length&&qe&&typeof qe=="string"?ve.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},qe.charAt(0)):ve.createElement("span",{className:`${Tt}-title-content`},qe);else{const Jt=(0,Ie.l$)(qe)&&qe.type==="span";zt=ve.createElement(ve.Fragment,null,(0,Ie.Tm)(tt,{className:fe()((0,Ie.l$)(tt)?(Ce=tt.props)===null||Ce===void 0?void 0:Ce.className:"",`${Tt}-item-icon`)}),Jt?qe:ve.createElement("span",{className:`${Tt}-title-content`},qe))}const Nt=ve.useMemo(()=>Object.assign(Object.assign({},Gt),{firstLevel:!1}),[Gt]);return ve.createElement(a.Provider,{value:Nt},ve.createElement(te.Wd,Object.assign({},(0,Xe.Z)(Oe,["icon"]),{title:zt,popupClassName:fe()(Tt,Ee,`${Tt}-${ht||dn}`)})))},z=oe(64582),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Oe,Ce){var Ee={};for(var tt in Oe)Object.prototype.hasOwnProperty.call(Oe,tt)&&Ce.indexOf(tt)<0&&(Ee[tt]=Oe[tt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Oe);qe<tt.length;qe++)Ce.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Oe,tt[qe])&&(Ee[tt[qe]]=Oe[tt[qe]]);return Ee};function de(Oe){return(Oe||[]).map((Ce,Ee)=>{if(Ce&&typeof Ce=="object"){const tt=Ce,{label:qe,children:ht,key:Gt,type:Tt}=tt,Yt=ge(tt,["label","children","key","type"]),dn=Gt!=null?Gt:`tmp-${Ee}`;return ht||Tt==="group"?Tt==="group"?ve.createElement(te.BW,Object.assign({key:dn},Yt,{title:qe}),de(ht)):ve.createElement(x,Object.assign({key:dn},Yt,{title:qe}),de(ht)):Tt==="divider"?ve.createElement(ze,Object.assign({key:dn},Yt)):ve.createElement(E,Object.assign({key:dn},Yt),qe)}return null}).filter(Ce=>Ce)}function Pe(Oe){return ve.useMemo(()=>Oe&&de(Oe),[Oe])}var ce=oe(84780),De=oe(14747),Ze=oe(33507),wt=oe(67771),At=oe(50438),Zt=oe(67968),Le=oe(45503),Re=Oe=>{const{componentCls:Ce,motionDurationSlow:Ee,horizontalLineHeight:tt,colorSplit:qe,lineWidth:ht,lineType:Gt,itemPaddingInline:Tt}=Oe;return{[`${Ce}-horizontal`]:{lineHeight:tt,border:0,borderBottom:`${ht}px ${Gt} ${qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ce}-item, ${Ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Tt},[`> ${Ce}-item:hover,
> ${Ce}-item-active,
> ${Ce}-submenu ${Ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ce}-item, ${Ce}-submenu-title`]:{transition:[`border-color ${Ee}`,`background ${Ee}`].join(",")},[`${Ce}-submenu-arrow`]:{display:"none"}}}},ut=Oe=>{let{componentCls:Ce,menuArrowOffset:Ee}=Oe;return{[`${Ce}-rtl`]:{direction:"rtl"},[`${Ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ce}-rtl${Ce}-vertical,
${Ce}-submenu-rtl ${Ce}-vertical`]:{[`${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ee})`},"&::after":{transform:`rotate(45deg) translateY(${Ee})`}}}}};const Qe=Oe=>Object.assign({},(0,De.oN)(Oe));var gt=(Oe,Ce)=>{const{componentCls:Ee,itemColor:tt,itemSelectedColor:qe,groupTitleColor:ht,itemBg:Gt,subMenuItemBg:Tt,itemSelectedBg:Yt,activeBarHeight:dn,activeBarWidth:ln,activeBarBorderWidth:zt,motionDurationSlow:Nt,motionEaseInOut:Jt,motionEaseOut:kn,itemPaddingInline:Cn,motionDurationMid:vn,itemHoverColor:we,lineType:Te,colorSplit:ot,itemDisabledColor:pt,dangerItemColor:xt,dangerItemHoverColor:qt,dangerItemSelectedColor:tn,dangerItemActiveBg:Dt,dangerItemSelectedBg:en,itemHoverBg:Ln,itemActiveBg:rn,menuSubMenuBg:jn,horizontalItemSelectedColor:Yn,horizontalItemSelectedBg:Qn,horizontalItemBorderRadius:Wn,horizontalItemHoverBg:In,popupBg:An}=Oe;return{[`${Ee}-${Ce}, ${Ee}-${Ce} > ${Ee}`]:{color:tt,background:Gt,[`&${Ee}-root:focus-visible`]:Object.assign({},Qe(Oe)),[`${Ee}-item-group-title`]:{color:ht},[`${Ee}-submenu-selected`]:{[`> ${Ee}-submenu-title`]:{color:qe}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{color:`${pt} !important`},[`${Ee}-item:not(${Ee}-item-selected):not(${Ee}-submenu-selected)`]:{[`&:hover, > ${Ee}-submenu-title:hover`]:{color:we}},[`&:not(${Ee}-horizontal)`]:{[`${Ee}-item:not(${Ee}-item-selected)`]:{"&:hover":{backgroundColor:Ln},"&:active":{backgroundColor:rn}},[`${Ee}-submenu-title`]:{"&:hover":{backgroundColor:Ln},"&:active":{backgroundColor:rn}}},[`${Ee}-item-danger`]:{color:xt,[`&${Ee}-item:hover`]:{[`&:not(${Ee}-item-selected):not(${Ee}-submenu-selected)`]:{color:qt}},[`&${Ee}-item:active`]:{background:Dt}},[`${Ee}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ee}-item-selected`]:{color:qe,[`&${Ee}-item-danger`]:{color:tn},"a, a:hover":{color:"inherit"}},[`& ${Ee}-item-selected`]:{backgroundColor:Yt,[`&${Ee}-item-danger`]:{backgroundColor:en}},[`${Ee}-item, ${Ee}-submenu-title`]:{[`&:not(${Ee}-item-disabled):focus-visible`]:Object.assign({},Qe(Oe))},[`&${Ee}-submenu > ${Ee}`]:{backgroundColor:jn},[`&${Ee}-popup > ${Ee}`]:{backgroundColor:An},[`&${Ee}-horizontal`]:Object.assign(Object.assign({},Ce==="dark"?{borderBottom:0}:{}),{[`> ${Ee}-item, > ${Ee}-submenu`]:{top:zt,marginTop:-zt,marginBottom:0,borderRadius:Wn,"&::after":{position:"absolute",insetInline:Cn,bottom:0,borderBottom:`${dn}px solid transparent`,transition:`border-color ${Nt} ${Jt}`,content:'""'},"&:hover, &-active, &-open":{background:In,"&::after":{borderBottomWidth:dn,borderBottomColor:Yn}},"&-selected":{color:Yn,backgroundColor:Qn,"&:hover":{backgroundColor:Qn},"&::after":{borderBottomWidth:dn,borderBottomColor:Yn}}}}),[`&${Ee}-root`]:{[`&${Ee}-inline, &${Ee}-vertical`]:{borderInlineEnd:`${zt}px ${Te} ${ot}`}},[`&${Ee}-inline`]:{[`${Ee}-sub${Ee}-inline`]:{background:Tt},[`${Ee}-item, ${Ee}-submenu-title`]:zt&&ln?{width:`calc(100% + ${zt}px)`}:{},[`${Ee}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ln}px solid ${qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vn} ${kn}`,`opacity ${vn} ${kn}`].join(","),content:'""'},[`&${Ee}-item-danger`]:{"&::after":{borderInlineEndColor:tn}}},[`${Ee}-selected, ${Ee}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vn} ${Jt}`,`opacity ${vn} ${Jt}`].join(",")}}}}}};const $t=Oe=>{const{componentCls:Ce,itemHeight:Ee,itemMarginInline:tt,padding:qe,menuArrowSize:ht,marginXS:Gt,itemMarginBlock:Tt}=Oe,Yt=qe+ht+Gt;return{[`${Ce}-item`]:{position:"relative",overflow:"hidden"},[`${Ce}-item, ${Ce}-submenu-title`]:{height:Ee,lineHeight:`${Ee}px`,paddingInline:qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:tt,marginBlock:Tt,width:`calc(100% - ${tt*2}px)`},[`> ${Ce}-item,
> ${Ce}-submenu > ${Ce}-submenu-title`]:{height:Ee,lineHeight:`${Ee}px`},[`${Ce}-item-group-list ${Ce}-submenu-title,
${Ce}-submenu-title`]:{paddingInlineEnd:Yt}}};var Ae=Oe=>{const{componentCls:Ce,iconCls:Ee,itemHeight:tt,colorTextLightSolid:qe,dropdownWidth:ht,controlHeightLG:Gt,motionDurationMid:Tt,motionEaseOut:Yt,paddingXL:dn,itemMarginInline:ln,fontSizeLG:zt,motionDurationSlow:Nt,paddingXS:Jt,boxShadowSecondary:kn,collapsedWidth:Cn,collapsedIconSize:vn}=Oe,we={height:tt,lineHeight:`${tt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ce]:{"&-inline, &-vertical":Object.assign({[`&${Ce}-root`]:{boxShadow:"none"}},$t(Oe))},[`${Ce}-submenu-popup`]:{[`${Ce}-vertical`]:Object.assign(Object.assign({},$t(Oe)),{boxShadow:kn})}},{[`${Ce}-submenu-popup ${Ce}-vertical${Ce}-sub`]:{minWidth:ht,maxHeight:`calc(100vh - ${Gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ce}-inline`]:{width:"100%",[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Nt}`,`background ${Nt}`,`padding ${Tt} ${Yt}`].join(","),[`> ${Ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ce}-sub${Ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ce}-submenu > ${Ce}-submenu-title`]:we,[`& ${Ce}-item-group-title`]:{paddingInlineStart:dn}},[`${Ce}-item`]:we}},{[`${Ce}-inline-collapsed`]:{width:Cn,[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu ${Ce}-submenu-title`]:{[`> ${Ce}-inline-collapsed-noicon`]:{fontSize:zt,textAlign:"center"}}},[`> ${Ce}-item,
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-item,
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-submenu > ${Ce}-submenu-title,
> ${Ce}-submenu > ${Ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${zt/2}px - ${ln}px)`,textOverflow:"clip",[`
${Ce}-submenu-arrow,
${Ce}-submenu-expand-icon
`]:{opacity:0},[`${Ce}-item-icon, ${Ee}`]:{margin:0,fontSize:vn,lineHeight:`${tt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ce}-item-icon, ${Ee}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ce}-item-icon, ${Ee}`]:{display:"none"},"a, a:hover":{color:qe}},[`${Ce}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Jt})}}]};const rt=Oe=>{const{componentCls:Ce,motionDurationSlow:Ee,motionDurationMid:tt,motionEaseInOut:qe,motionEaseOut:ht,iconCls:Gt,iconSize:Tt,iconMarginInlineEnd:Yt}=Oe;return{[`${Ce}-item, ${Ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ee}`,`background ${Ee}`,`padding ${Ee} ${qe}`].join(","),[`${Ce}-item-icon, ${Gt}`]:{minWidth:Tt,fontSize:Tt,transition:[`font-size ${tt} ${ht}`,`margin ${Ee} ${qe}`,`color ${Ee}`].join(","),"+ span":{marginInlineStart:Yt,opacity:1,transition:[`opacity ${Ee} ${qe}`,`margin ${Ee}`,`color ${Ee}`].join(",")}},[`${Ce}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Ce}-item-only-child`]:{[`> ${Gt}, > ${Ce}-item-icon`]:{marginInlineEnd:0}}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=Oe=>{const{componentCls:Ce,motionDurationSlow:Ee,motionEaseInOut:tt,borderRadius:qe,menuArrowSize:ht,menuArrowOffset:Gt}=Oe;return{[`${Ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Oe.margin,width:ht,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ee} ${tt}, opacity ${Ee}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ht*.6,height:ht*.15,backgroundColor:"currentcolor",borderRadius:qe,transition:[`background ${Ee} ${tt}`,`transform ${Ee} ${tt}`,`top ${Ee} ${tt}`,`color ${Ee} ${tt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Gt})`},"&::after":{transform:`rotate(-45deg) translateY(${Gt})`}}}}},Je=Oe=>{const{antCls:Ce,componentCls:Ee,fontSize:tt,motionDurationSlow:qe,motionDurationMid:ht,motionEaseInOut:Gt,paddingXS:Tt,padding:Yt,colorSplit:dn,lineWidth:ln,zIndexPopup:zt,borderRadiusLG:Nt,subMenuItemBorderRadius:Jt,menuArrowSize:kn,menuArrowOffset:Cn,lineType:vn,menuPanelMaskInset:we,groupTitleLineHeight:Te,groupTitleFontSize:ot}=Oe;return[{"":{[`${Ee}`]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${Ee}-submenu-hidden`]:{display:"none"}},{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Oe)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:tt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ee}-item`]:{flex:"none"}},[`${Ee}-item, ${Ee}-submenu, ${Ee}-submenu-title`]:{borderRadius:Oe.itemBorderRadius},[`${Ee}-item-group-title`]:{padding:`${Tt}px ${Yt}px`,fontSize:ot,lineHeight:Te,transition:`all ${qe}`},[`&-horizontal ${Ee}-submenu`]:{transition:[`border-color ${qe} ${Gt}`,`background ${qe} ${Gt}`].join(",")},[`${Ee}-submenu, ${Ee}-submenu-inline`]:{transition:[`border-color ${qe} ${Gt}`,`background ${qe} ${Gt}`,`padding ${ht} ${Gt}`].join(",")},[`${Ee}-submenu ${Ee}-sub`]:{cursor:"initial",transition:[`background ${qe} ${Gt}`,`padding ${qe} ${Gt}`].join(",")},[`${Ee}-title-content`]:{transition:`color ${qe}`},[`${Ee}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ee}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:dn,borderStyle:vn,borderWidth:0,borderTopWidth:ln,marginBlock:ln,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Oe)),{[`${Ee}-item-group`]:{[`${Ee}-item-group-list`]:{margin:0,padding:0,[`${Ee}-item, ${Ee}-submenu-title`]:{paddingInline:`${tt*2}px ${Yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:Nt,boxShadow:"none",transformOrigin:"0 0",[`&${Ee}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${we}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:we},"\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:Oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Oe.paddingXS},[`> ${Ee}`]:Object.assign(Object.assign(Object.assign({borderRadius:Nt},rt(Oe)),Ft(Oe)),{[`${Ee}-item, ${Ee}-submenu > ${Ee}-submenu-title`]:{borderRadius:Jt},[`${Ee}-submenu-title::after`]:{transition:`transform ${qe} ${Gt}`}})}}),Ft(Oe)),{[`&-inline-collapsed ${Ee}-submenu-arrow,
&-inline ${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Cn})`},"&::after":{transform:`rotate(45deg) translateX(-${Cn})`}},[`${Ee}-submenu-open${Ee}-submenu-inline > ${Ee}-submenu-title > ${Ee}-submenu-arrow`]:{transform:`translateY(-${kn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Cn})`},"&::before":{transform:`rotate(45deg) translateX(${Cn})`}}})},{[`${Ce}-layout-header`]:{[Ee]:{lineHeight:"inherit"}}}]};var dt=(Oe,Ce)=>(0,Zt.Z)("Menu",tt=>{if(Ce===!1)return[];const{colorBgElevated:qe,colorPrimary:ht,colorTextLightSolid:Gt,controlHeightLG:Tt,fontSize:Yt,darkItemColor:dn,darkDangerItemColor:ln,darkItemBg:zt,darkSubMenuItemBg:Nt,darkItemSelectedColor:Jt,darkItemSelectedBg:kn,darkDangerItemSelectedBg:Cn,darkItemHoverBg:vn,darkGroupTitleColor:we,darkItemHoverColor:Te,darkItemDisabledColor:ot,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:xt,darkDangerItemActiveBg:qt}=tt,tn=Yt/7*5,Dt=(0,Le.TS)(tt,{menuArrowSize:tn,menuHorizontalHeight:Tt*1.15,menuArrowOffset:`${tn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:qe}),en=(0,Le.TS)(Dt,{itemColor:dn,itemHoverColor:Te,groupTitleColor:we,itemSelectedColor:Jt,itemBg:zt,popupBg:zt,subMenuItemBg:Nt,itemActiveBg:"transparent",itemSelectedBg:kn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vn,itemDisabledColor:ot,dangerItemColor:ln,dangerItemHoverColor:pt,dangerItemSelectedColor:xt,dangerItemActiveBg:qt,dangerItemSelectedBg:Cn,menuSubMenuBg:Nt,horizontalItemSelectedColor:Gt,horizontalItemSelectedBg:ht});return[Je(Dt),Re(Dt),Ae(Dt),gt(Dt,"light"),gt(en,"dark"),ut(Dt),(0,Ze.Z)(Dt),(0,wt.oN)(Dt,"slide-up"),(0,wt.oN)(Dt,"slide-down"),(0,At._y)(Dt,"zoom-big")]},tt=>{const{colorPrimary:qe,colorError:ht,colorTextDisabled:Gt,colorErrorBg:Tt,colorText:Yt,colorTextDescription:dn,colorBgContainer:ln,colorFillAlter:zt,colorFillContent:Nt,lineWidth:Jt,lineWidthBold:kn,controlItemBgActive:Cn,colorBgTextHover:vn,controlHeightLG:we,lineHeight:Te,colorBgElevated:ot,marginXXS:pt,padding:xt,fontSize:qt,controlHeightSM:tn,fontSizeLG:Dt,colorTextLightSolid:en,colorErrorHover:Ln}=tt,rn=new ce.C(en).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:tt.zIndexPopupBase+50,radiusItem:tt.borderRadiusLG,itemBorderRadius:tt.borderRadiusLG,radiusSubMenuItem:tt.borderRadiusSM,subMenuItemBorderRadius:tt.borderRadiusSM,colorItemText:Yt,itemColor:Yt,colorItemTextHover:Yt,itemHoverColor:Yt,colorItemTextHoverHorizontal:qe,horizontalItemHoverColor:qe,colorGroupTitle:dn,groupTitleColor:dn,colorItemTextSelected:qe,itemSelectedColor:qe,colorItemTextSelectedHorizontal:qe,horizontalItemSelectedColor:qe,colorItemBg:ln,itemBg:ln,colorItemBgHover:vn,itemHoverBg:vn,colorItemBgActive:Nt,itemActiveBg:Cn,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:Cn,itemSelectedBg:Cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:kn,activeBarHeight:kn,colorActiveBarBorderSize:Jt,activeBarBorderWidth:Jt,colorItemTextDisabled:Gt,itemDisabledColor:Gt,colorDangerItemText:ht,dangerItemColor:ht,colorDangerItemTextHover:ht,dangerItemHoverColor:ht,colorDangerItemTextSelected:ht,dangerItemSelectedColor:ht,colorDangerItemBgActive:Tt,dangerItemActiveBg:Tt,colorDangerItemBgSelected:Tt,dangerItemSelectedBg:Tt,itemMarginInline:tt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:we,groupTitleLineHeight:Te,collapsedWidth:we*2,popupBg:ot,itemMarginBlock:pt,itemPaddingInline:xt,horizontalLineHeight:`${we*1.15}px`,iconSize:qt,iconMarginInlineEnd:tn-qt,collapsedIconSize:Dt,groupTitleFontSize:qt,darkItemDisabledColor:new ce.C(en).setAlpha(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:ht,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:en,darkItemSelectedBg:qe,darkDangerItemSelectedBg:ht,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:en,darkDangerItemHoverColor:Ln,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:ht}},{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"]]})(Oe),me=function(Oe,Ce){var Ee={};for(var tt in Oe)Object.prototype.hasOwnProperty.call(Oe,tt)&&Ce.indexOf(tt)<0&&(Ee[tt]=Oe[tt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Oe);qe<tt.length;qe++)Ce.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Oe,tt[qe])&&(Ee[tt[qe]]=Oe[tt[qe]]);return Ee},Et=(0,ve.forwardRef)((Oe,Ce)=>{var Ee,tt;const qe=ve.useContext(re.Z),ht=qe||{},{getPrefixCls:Gt,getPopupContainer:Tt,direction:Yt,menu:dn}=ve.useContext(Be.E_),ln=Gt(),{prefixCls:zt,className:Nt,style:Jt,theme:kn="light",expandIcon:Cn,_internalDisableMenuItemTitleTooltip:vn,inlineCollapsed:we,siderCollapsed:Te,items:ot,children:pt,rootClassName:xt,mode:qt,selectable:tn,onClick:Dt,overflowedIndicatorPopupClassName:en}=Oe,Ln=me(Oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),rn=(0,Xe.Z)(Ln,["collapsedWidth"]),jn=Pe(ot)||pt;(Ee=ht.validator)===null||Ee===void 0||Ee.call(ht,{mode:qt});const Yn=(0,ee.useEvent)(function(){var aa;Dt==null||Dt.apply(void 0,arguments),(aa=ht.onClick)===null||aa===void 0||aa.call(ht)}),Qn=ht.mode||qt,Wn=tn!=null?tn:ht.selectable,In=ve.useMemo(()=>Te!==void 0?Te:we,[we,Te]),An={horizontal:{motionName:`${ln}-slide-up`},inline:(0,ne.Z)(ln),other:{motionName:`${ln}-zoom-big`}},Jn=Gt("menu",zt||ht.prefixCls),[La,ha]=dt(Jn,!qe),Dn=fe()(`${Jn}-${kn}`,dn==null?void 0:dn.className,Nt);let Pa;if(typeof Cn=="function")Pa=Cn;else if(Cn===null||Cn===!1)Pa=null;else if(ht.expandIcon===null||ht.expandIcon===!1)Pa=null;else{const aa=Cn!=null?Cn:ht.expandIcon;Pa=(0,Ie.Tm)(aa,{className:fe()(`${Jn}-submenu-expand-icon`,(0,Ie.l$)(aa)?(tt=aa.props)===null||tt===void 0?void 0:tt.className:"")})}const Ta=ve.useMemo(()=>({prefixCls:Jn,inlineCollapsed:In||!1,direction:Yt,firstLevel:!0,theme:kn,mode:Qn,disableMenuItemTitleTooltip:vn}),[Jn,In,Yt,vn,kn]);return La(ve.createElement(re.Z.Provider,{value:null},ve.createElement(a.Provider,{value:Ta},ve.createElement(te.ZP,Object.assign({getPopupContainer:Tt,overflowedIndicator:ve.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(Jn,`${Jn}-${kn}`,en),mode:Qn,selectable:Wn,onClick:Yn},rn,{inlineCollapsed:In,style:Object.assign(Object.assign({},dn==null?void 0:dn.style),Jt),className:Dn,prefixCls:Jn,direction:Yt,defaultMotions:An,expandIcon:Pa,ref:Ce,rootClassName:fe()(xt,ha)}),jn))))});const Xt=(0,ve.forwardRef)((Oe,Ce)=>{const Ee=(0,ve.useRef)(null),tt=ve.useContext(et.D);return(0,ve.useImperativeHandle)(Ce,()=>({menu:Ee.current,focus:qe=>{var ht;(ht=Ee.current)===null||ht===void 0||ht.focus(qe)}})),ve.createElement(Et,Object.assign({ref:Ee},Oe,tt))});Xt.Item=E,Xt.SubMenu=x,Xt.Divider=ze,Xt.ItemGroup=te.BW;var ft=Xt},38703:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return vn}});var te=oe(67294),ve=oe(23526),et=oe(60068),He=oe(30186),fe=oe(85846),Be=oe(94184),ue=oe.n(Be),Me=oe(10366),ze=oe(53124),$e=oe(87462),Xe=oe(1413),je=oe(45987),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Te=(0,te.useRef)([]),ot=(0,te.useRef)(null);return(0,te.useEffect)(function(){var pt=Date.now(),xt=!1;Te.current.forEach(function(qt){if(qt){xt=!0;var tn=qt.style;tn.transitionDuration=".3s, .3s, .3s, .06s",ot.current&&pt-ot.current<100&&(tn.transitionDuration="0s, 0s")}}),xt&&(ot.current=Date.now())}),Te.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Te){var ot=(0,Xe.Z)((0,Xe.Z)({},Ie),Te),pt=ot.className,xt=ot.percent,qt=ot.prefixCls,tn=ot.strokeColor,Dt=ot.strokeLinecap,en=ot.strokeWidth,Ln=ot.style,rn=ot.trailColor,jn=ot.trailWidth,Yn=ot.transition,Qn=(0,je.Z)(ot,a);delete Qn.gapPosition;var Wn=Array.isArray(xt)?xt:[xt],In=Array.isArray(tn)?tn:[tn],An=ae(),Jn=en/2,La=100-en/2,ha="M ".concat(Dt==="round"?Jn:0,",").concat(Jn,`
L `).concat(Dt==="round"?La:100,",").concat(Jn),Dn="0 0 100 ".concat(en),Pa=0;return te.createElement("svg",(0,$e.Z)({className:ue()("".concat(qt,"-line"),pt),viewBox:Dn,preserveAspectRatio:"none",style:Ln},Qn),te.createElement("path",{className:"".concat(qt,"-line-trail"),d:ha,strokeLinecap:Dt,stroke:rn,strokeWidth:jn||en,fillOpacity:"0"}),Wn.map(function(Ta,aa){var Ga=1;switch(Dt){case"round":Ga=1-en/100;break;case"square":Ga=1-en/2/100;break;default:Ga=1;break}var qa={strokeDasharray:"".concat(Ta*Ga,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Yn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ja=In[aa]||In[In.length-1];return Pa+=Ta,te.createElement("path",{key:aa,className:"".concat(qt,"-line-path"),d:ha,strokeLinecap:Dt,stroke:Ja,strokeWidth:en,fillOpacity:"0",ref:function(xe){An[aa]=xe},style:qa})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var we;return ne?(we=ee,ee+=1):we="TEST_OR_SSR",we}var ge=function(we){var Te=te.useState(),ot=(0,x.Z)(Te,2),pt=ot[0],xt=ot[1];return te.useEffect(function(){xt("rc_progress_".concat(re()))},[]),we||pt},de=function(Te){var ot=Te.bg,pt=Te.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:ot}},pt)};function Pe(we,Te){return Object.keys(we).map(function(ot){var pt=parseFloat(ot),xt="".concat(Math.floor(pt*Te),"%");return"".concat(we[ot]," ").concat(xt)})}var ce=te.forwardRef(function(we,Te){var ot=we.prefixCls,pt=we.color,xt=we.gradientId,qt=we.radius,tn=we.style,Dt=we.ptg,en=we.strokeLinecap,Ln=we.strokeWidth,rn=we.size,jn=we.gapDegree,Yn=pt&&(0,b.Z)(pt)==="object",Qn=Yn?"#FFF":void 0,Wn=rn/2,In=te.createElement("circle",{className:"".concat(ot,"-circle-path"),r:qt,cx:Wn,cy:Wn,stroke:Qn,strokeLinecap:en,strokeWidth:Ln,opacity:Dt===0?0:1,style:tn,ref:Te});if(!Yn)return In;var An="".concat(xt,"-conic"),Jn=jn?"".concat(180+jn/2,"deg"):"0deg",La=Pe(pt,(360-jn)/360),ha=Pe(pt,1),Dn="conic-gradient(from ".concat(Jn,", ").concat(La.join(", "),")"),Pa="linear-gradient(to ".concat(jn?"bottom":"top",", ").concat(ha.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:An},In),te.createElement("foreignObject",{x:0,y:0,width:rn,height:rn,mask:"url(#".concat(An,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Dn}))))}),De=ce,Ze=100,wt=function(Te,ot,pt,xt,qt,tn,Dt,en,Ln,rn){var jn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Yn=pt/100*360*((360-tn)/360),Qn=tn===0?0:{bottom:0,top:180,left:90,right:-90}[Dt],Wn=(100-xt)/100*ot;Ln==="round"&&xt!==100&&(Wn+=rn/2,Wn>=ot&&(Wn=ot-.01));var In=Ze/2;return{stroke:typeof en=="string"?en:void 0,strokeDasharray:"".concat(ot,"px ").concat(Te),strokeDashoffset:Wn+jn,transform:"rotate(".concat(qt+Yn+Qn,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},At=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(we){var Te=we!=null?we:[];return Array.isArray(Te)?Te:[Te]}var Le=function(Te){var ot=(0,Xe.Z)((0,Xe.Z)({},Ie),Te),pt=ot.id,xt=ot.prefixCls,qt=ot.steps,tn=ot.strokeWidth,Dt=ot.trailWidth,en=ot.gapDegree,Ln=en===void 0?0:en,rn=ot.gapPosition,jn=ot.trailColor,Yn=ot.strokeLinecap,Qn=ot.style,Wn=ot.className,In=ot.strokeColor,An=ot.percent,Jn=(0,je.Z)(ot,At),La=Ze/2,ha=ge(pt),Dn="".concat(ha,"-gradient"),Pa=La-tn/2,Ta=Math.PI*2*Pa,aa=Ln>0?90+Ln/2:-90,Ga=Ta*((360-Ln)/360),qa=(0,b.Z)(qt)==="object"?qt:{count:qt,space:2},Ja=qa.count,Fe=qa.space,xe=Zt(An),ye=Zt(In),Pt=ye.find(function(wa){return wa&&(0,b.Z)(wa)==="object"}),Wt=Pt&&(0,b.Z)(Pt)==="object",kt=Wt?"butt":Yn,zn=wt(Ta,Ga,0,100,aa,Ln,rn,jn,kt,tn),Sn=ae(),Fn=function(){var mt=0;return xe.map(function(xn,va){var eo=ye[va]||ye[ye.length-1],ma=wt(Ta,Ga,mt,xn,aa,Ln,rn,eo,kt,tn);return mt+=xn,te.createElement(De,{key:va,color:eo,ptg:xn,radius:Pa,prefixCls:xt,gradientId:Dn,style:ma,strokeLinecap:kt,strokeWidth:tn,gapDegree:Ln,ref:function(to){Sn[va]=to},size:Ze})}).reverse()},qn=function(){var mt=Math.round(Ja*(xe[0]/100)),xn=100/Ja,va=0;return new Array(Ja).fill(null).map(function(eo,ma){var ea=ma<=mt-1?ye[0]:jn,to=ea&&(0,b.Z)(ea)==="object"?"url(#".concat(Dn,")"):void 0,fo=wt(Ta,Ga,va,xn,aa,Ln,rn,ea,"butt",tn,Fe);return va+=(Ga-fo.strokeDashoffset+Fe)*100/Ga,te.createElement("circle",{key:ma,className:"".concat(xt,"-circle-path"),r:Pa,cx:La,cy:La,stroke:to,strokeWidth:tn,opacity:1,style:fo,ref:function(We){Sn[ma]=We}})})};return te.createElement("svg",(0,$e.Z)({className:ue()("".concat(xt,"-circle"),Wn),viewBox:"0 0 ".concat(Ze," ").concat(Ze),style:Qn,id:pt,role:"presentation"},Jn),!Ja&&te.createElement("circle",{className:"".concat(xt,"-circle-trail"),r:Pa,cx:La,cy:La,stroke:jn,strokeLinecap:kt,strokeWidth:Dt||tn,style:zn}),Ja?qn():Fn())},Ue=Le,Re={Line:E,Circle:Ue},it=oe(83062),ut=oe(47448);function Qe(we){return!we||we<0?0:we>100?100:we}function Ve(we){let{success:Te,successPercent:ot}=we,pt=ot;return Te&&"progress"in Te&&(pt=Te.progress),Te&&"percent"in Te&&(pt=Te.percent),pt}const gt=we=>{let{percent:Te,success:ot,successPercent:pt}=we;const xt=Qe(Ve({success:ot,successPercent:pt}));return[xt,Qe(Qe(Te)-xt)]},$t=we=>{let{success:Te={},strokeColor:ot}=we;const{strokeColor:pt}=Te;return[pt||ut.presetPrimaryColors.green,ot||null]},pe=(we,Te,ot)=>{var pt,xt,qt,tn;let Dt=-1,en=-1;if(Te==="step"){const Ln=ot.steps,rn=ot.strokeWidth;typeof we=="string"||typeof we=="undefined"?(Dt=we==="small"?2:14,en=rn!=null?rn:8):typeof we=="number"?[Dt,en]=[we,we]:[Dt=14,en=8]=we,Dt*=Ln}else if(Te==="line"){const Ln=ot==null?void 0:ot.strokeWidth;typeof we=="string"||typeof we=="undefined"?en=Ln||(we==="small"?6:8):typeof we=="number"?[Dt,en]=[we,we]:[Dt=-1,en=8]=we}else(Te==="circle"||Te==="dashboard")&&(typeof we=="string"||typeof we=="undefined"?[Dt,en]=we==="small"?[60,60]:[120,120]:typeof we=="number"?[Dt,en]=[we,we]:(Dt=(xt=(pt=we[0])!==null&&pt!==void 0?pt:we[1])!==null&&xt!==void 0?xt:120,en=(tn=(qt=we[0])!==null&&qt!==void 0?qt:we[1])!==null&&tn!==void 0?tn:120));return[Dt,en]},Ae=3,rt=we=>Ae/we*100;var Je=we=>{const{prefixCls:Te,trailColor:ot=null,strokeLinecap:pt="round",gapPosition:xt,gapDegree:qt,width:tn=120,type:Dt,children:en,success:Ln,size:rn=tn}=we,[jn,Yn]=pe(rn,"circle");let{strokeWidth:Qn}=we;Qn===void 0&&(Qn=Math.max(rt(jn),6));const Wn={width:jn,height:Yn,fontSize:jn*.15+6},In=te.useMemo(()=>{if(qt||qt===0)return qt;if(Dt==="dashboard")return 75},[qt,Dt]),An=xt||Dt==="dashboard"&&"bottom"||void 0,Jn=Object.prototype.toString.call(we.strokeColor)==="[object Object]",La=$t({success:Ln,strokeColor:we.strokeColor}),ha=ue()(`${Te}-inner`,{[`${Te}-circle-gradient`]:Jn}),Dn=te.createElement(Ue,{percent:gt(we),strokeWidth:Qn,trailWidth:Qn,strokeColor:La,strokeLinecap:pt,trailColor:ot,prefixCls:Te,gapDegree:In,gapPosition:An});return te.createElement("div",{className:ha,style:Wn},jn<=20?te.createElement(it.Z,{title:en},te.createElement("span",null,Dn)):te.createElement(te.Fragment,null,Dn,en))},dt=function(we,Te){var ot={};for(var pt in we)Object.prototype.hasOwnProperty.call(we,pt)&&Te.indexOf(pt)<0&&(ot[pt]=we[pt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,pt=Object.getOwnPropertySymbols(we);xt<pt.length;xt++)Te.indexOf(pt[xt])<0&&Object.prototype.propertyIsEnumerable.call(we,pt[xt])&&(ot[pt[xt]]=we[pt[xt]]);return ot};const me=we=>{let Te=[];return Object.keys(we).forEach(ot=>{const pt=parseFloat(ot.replace(/%/g,""));isNaN(pt)||Te.push({key:pt,value:we[ot]})}),Te=Te.sort((ot,pt)=>ot.key-pt.key),Te.map(ot=>{let{key:pt,value:xt}=ot;return`${xt} ${pt}%`}).join(", ")},lt=(we,Te)=>{const{from:ot=ut.presetPrimaryColors.blue,to:pt=ut.presetPrimaryColors.blue,direction:xt=Te==="rtl"?"to left":"to right"}=we,qt=dt(we,["from","to","direction"]);if(Object.keys(qt).length!==0){const tn=me(qt);return{backgroundImage:`linear-gradient(${xt}, ${tn})`}}return{backgroundImage:`linear-gradient(${xt}, ${ot}, ${pt})`}};var Xt=we=>{const{prefixCls:Te,direction:ot,percent:pt,size:xt,strokeWidth:qt,strokeColor:tn,strokeLinecap:Dt="round",children:en,trailColor:Ln=null,success:rn}=we,jn=tn&&typeof tn!="string"?lt(tn,ot):{backgroundColor:tn},Yn=Dt==="square"||Dt==="butt"?0:void 0,Qn={backgroundColor:Ln||void 0,borderRadius:Yn},Wn=xt!=null?xt:[-1,qt||(xt==="small"?6:8)],[In,An]=pe(Wn,"line",{strokeWidth:qt}),Jn=Object.assign({width:`${Qe(pt)}%`,height:An,borderRadius:Yn},jn),La=Ve(we),ha={width:`${Qe(La)}%`,height:An,borderRadius:Yn,backgroundColor:rn==null?void 0:rn.strokeColor},Dn={width:In<0?"100%":In,height:An};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Te}-outer`,style:Dn},te.createElement("div",{className:`${Te}-inner`,style:Qn},te.createElement("div",{className:`${Te}-bg`,style:Jn}),La!==void 0?te.createElement("div",{className:`${Te}-success-bg`,style:ha}):null)),en)},Oe=we=>{const{size:Te,steps:ot,percent:pt=0,strokeWidth:xt=8,strokeColor:qt,trailColor:tn=null,prefixCls:Dt,children:en}=we,Ln=Math.round(ot*(pt/100)),rn=Te==="small"?2:14,jn=Te!=null?Te:[rn,xt],[Yn,Qn]=pe(jn,"step",{steps:ot,strokeWidth:xt}),Wn=Yn/ot,In=new Array(ot);for(let An=0;An<ot;An++){const Jn=Array.isArray(qt)?qt[An]:qt;In[An]=te.createElement("div",{key:An,className:ue()(`${Dt}-steps-item`,{[`${Dt}-steps-item-active`]:An<=Ln-1}),style:{backgroundColor:An<=Ln-1?Jn:tn,width:Wn,height:Qn}})}return te.createElement("div",{className:`${Dt}-steps-outer`},In,en)},Ce=oe(45930),Ee=oe(14747),tt=oe(67968),qe=oe(45503);const ht=we=>{const Te=we?"100%":"-100%";return new Ce.Keyframes(`antProgress${we?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Te}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Te}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Gt=we=>{const{componentCls:Te,iconCls:ot}=we;return{[Te]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:we.fontSize,marginInlineEnd:we.marginXS,marginBottom:we.marginXS},[`${Te}-outer`]:{display:"inline-block",width:"100%"},[`&${Te}-show-info`]:{[`${Te}-outer`]:{marginInlineEnd:`calc(-2em - ${we.marginXS}px)`,paddingInlineEnd:`calc(2em + ${we.paddingXS}px)`}},[`${Te}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:we.remainingColor,borderRadius:we.lineBorderRadius},[`${Te}-inner:not(${Te}-circle-gradient)`]:{[`${Te}-circle-path`]:{stroke:we.defaultColor}},[`${Te}-success-bg, ${Te}-bg`]:{position:"relative",backgroundColor:we.defaultColor,borderRadius:we.lineBorderRadius,transition:`all ${we.motionDurationSlow} ${we.motionEaseInOutCirc}`},[`${Te}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:we.colorSuccess},[`${Te}-text`]:{display:"inline-block",width:"2em",marginInlineStart:we.marginXS,color:we.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ot]:{fontSize:we.fontSize}},[`&${Te}-status-active`]:{[`${Te}-bg::before`]:{position:"absolute",inset:0,backgroundColor:we.colorBgContainer,borderRadius:we.lineBorderRadius,opacity:0,animationName:ht(),animationDuration:we.progressActiveMotionDuration,animationTimingFunction:we.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Te}-rtl${Te}-status-active`]:{[`${Te}-bg::before`]:{animationName:ht(!0)}},[`&${Te}-status-exception`]:{[`${Te}-bg`]:{backgroundColor:we.colorError},[`${Te}-text`]:{color:we.colorError}},[`&${Te}-status-exception ${Te}-inner:not(${Te}-circle-gradient)`]:{[`${Te}-circle-path`]:{stroke:we.colorError}},[`&${Te}-status-success`]:{[`${Te}-bg`]:{backgroundColor:we.colorSuccess},[`${Te}-text`]:{color:we.colorSuccess}},[`&${Te}-status-success ${Te}-inner:not(${Te}-circle-gradient)`]:{[`${Te}-circle-path`]:{stroke:we.colorSuccess}}})}},Tt=we=>{const{componentCls:Te,iconCls:ot}=we;return{[Te]:{[`${Te}-circle-trail`]:{stroke:we.remainingColor},[`&${Te}-circle ${Te}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Te}-circle ${Te}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:we.circleTextColor,fontSize:we.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ot]:{fontSize:`${we.fontSize/we.fontSizeSM}em`}},[`${Te}-circle&-status-exception`]:{[`${Te}-text`]:{color:we.colorError}},[`${Te}-circle&-status-success`]:{[`${Te}-text`]:{color:we.colorSuccess}}},[`${Te}-inline-circle`]:{lineHeight:1,[`${Te}-inner`]:{verticalAlign:"bottom"}}}},Yt=we=>{const{componentCls:Te}=we;return{[Te]:{[`${Te}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:we.progressStepMinWidth,marginInlineEnd:we.progressStepMarginInlineEnd,backgroundColor:we.remainingColor,transition:`all ${we.motionDurationSlow}`,"&-active":{backgroundColor:we.defaultColor}}}}}},dn=we=>{const{componentCls:Te,iconCls:ot}=we;return{[Te]:{[`${Te}-small&-line, ${Te}-small&-line ${Te}-text ${ot}`]:{fontSize:we.fontSizeSM}}}};var ln=(0,tt.Z)("Progress",we=>{const Te=we.marginXXS/2,ot=(0,qe.TS)(we,{progressStepMarginInlineEnd:Te,progressStepMinWidth:Te,progressActiveMotionDuration:"2.4s"});return[Gt(ot),Tt(ot),Yt(ot),dn(ot)]},we=>({circleTextColor:we.colorText,defaultColor:we.colorInfo,remainingColor:we.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),zt=function(we,Te){var ot={};for(var pt in we)Object.prototype.hasOwnProperty.call(we,pt)&&Te.indexOf(pt)<0&&(ot[pt]=we[pt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,pt=Object.getOwnPropertySymbols(we);xt<pt.length;xt++)Te.indexOf(pt[xt])<0&&Object.prototype.propertyIsEnumerable.call(we,pt[xt])&&(ot[pt[xt]]=we[pt[xt]]);return ot};const Nt=null,Jt=["normal","exception","active","success"];var Cn=te.forwardRef((we,Te)=>{const{prefixCls:ot,className:pt,rootClassName:xt,steps:qt,strokeColor:tn,percent:Dt=0,size:en="default",showInfo:Ln=!0,type:rn="line",status:jn,format:Yn,style:Qn}=we,Wn=zt(we,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),In=te.useMemo(()=>{var xe,ye;const Pt=Ve(we);return parseInt(Pt!==void 0?(xe=Pt!=null?Pt:0)===null||xe===void 0?void 0:xe.toString():(ye=Dt!=null?Dt:0)===null||ye===void 0?void 0:ye.toString(),10)},[Dt,we.success,we.successPercent]),An=te.useMemo(()=>!Jt.includes(jn)&&In>=100?"success":jn||"normal",[jn,In]),{getPrefixCls:Jn,direction:La,progress:ha}=te.useContext(ze.E_),Dn=Jn("progress",ot),[Pa,Ta]=ln(Dn),aa=te.useMemo(()=>{if(!Ln)return null;const xe=Ve(we);let ye;const Pt=Yn||(kt=>`${kt}%`),Wt=rn==="line";return Yn||An!=="exception"&&An!=="success"?ye=Pt(Qe(Dt),Qe(xe)):An==="exception"?ye=Wt?te.createElement(He.Z,null):te.createElement(fe.Z,null):An==="success"&&(ye=Wt?te.createElement(ve.Z,null):te.createElement(et.Z,null)),te.createElement("span",{className:`${Dn}-text`,title:typeof ye=="string"?ye:void 0},ye)},[Ln,Dt,In,An,rn,Dn,Yn]),Ga=Array.isArray(tn)?tn[0]:tn,qa=typeof tn=="string"||Array.isArray(tn)?tn:void 0;let Ja;rn==="line"?Ja=qt?te.createElement(Oe,Object.assign({},we,{strokeColor:qa,prefixCls:Dn,steps:qt}),aa):te.createElement(Xt,Object.assign({},we,{strokeColor:Ga,prefixCls:Dn,direction:La}),aa):(rn==="circle"||rn==="dashboard")&&(Ja=te.createElement(Je,Object.assign({},we,{strokeColor:Ga,prefixCls:Dn,progressStatus:An}),aa));const Fe=ue()(Dn,`${Dn}-status-${An}`,`${Dn}-${rn==="dashboard"&&"circle"||qt&&"steps"||rn}`,{[`${Dn}-inline-circle`]:rn==="circle"&&pe(en,"circle")[0]<=20,[`${Dn}-show-info`]:Ln,[`${Dn}-${en}`]:typeof en=="string",[`${Dn}-rtl`]:La==="rtl"},ha==null?void 0:ha.className,pt,xt,Ta);return Pa(te.createElement("div",Object.assign({ref:Te,style:Object.assign(Object.assign({},ha==null?void 0:ha.style),Qn),className:Fe,role:"progressbar","aria-valuenow":In},(0,Me.Z)(Wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ja))}),vn=Cn},92421:function(Ge,ct,oe){"use strict";oe.d(ct,{default:function(){return fo}});var te=oe(67294),ve=oe(74902),et=oe(94184),He=oe.n(et),fe=oe(87462),Be=oe(15671),ue=oe(43144),Me=oe(60136),ze=oe(51630),$e=oe(4942),Xe=oe(45987),je=oe(74165),Ie=oe(71002),ae=oe(15861),a=oe(64217);function y(be,We){var ke="cannot ".concat(be.method," ").concat(be.action," ").concat(We.status,"'"),_e=new Error(ke);return _e.status=We.status,_e.method=be.method,_e.url=be.action,_e}function E(be){var We=be.responseText||be.response;if(!We)return We;try{return JSON.parse(We)}catch(ke){return We}}function b(be){var We=new XMLHttpRequest;be.onProgress&&We.upload&&(We.upload.onprogress=function(at){at.total>0&&(at.percent=at.loaded/at.total*100),be.onProgress(at)});var ke=new FormData;be.data&&Object.keys(be.data).forEach(function(St){var at=be.data[St];if(Array.isArray(at)){at.forEach(function(st){ke.append("".concat(St,"[]"),st)});return}ke.append(St,at)}),be.file instanceof Blob?ke.append(be.filename,be.file,be.file.name):ke.append(be.filename,be.file),We.onerror=function(at){be.onError(at)},We.onload=function(){return We.status<200||We.status>=300?be.onError(y(be,We),E(We)):be.onSuccess(E(We),We)},We.open(be.method,be.action,!0),be.withCredentials&&"withCredentials"in We&&(We.withCredentials=!0);var _e=be.headers||{};return _e["X-Requested-With"]!==null&&We.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(_e).forEach(function(St){_e[St]!==null&&We.setRequestHeader(St,_e[St])}),We.send(ke),{abort:function(){We.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(be,We){if(be&&We){var ke=Array.isArray(We)?We:We.split(","),_e=be.name||"",St=be.type||"",at=St.replace(/\/.*$/,"");return ke.some(function(st){var Se=st.trim();if(/^\*(\/\*)?$/.test(st))return!0;if(Se.charAt(0)==="."){var nn=_e.toLowerCase(),Ut=Se.toLowerCase(),gn=[Ut];return(Ut===".jpg"||Ut===".jpeg")&&(gn=[".jpg",".jpeg"]),gn.some(function(hn){return nn.endsWith(hn)})}return/\/\*$/.test(Se)?at===Se.replace(/\/.*$/,""):St===Se?!0:/^\w+$/.test(Se)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Se,"'.Skip for check.")),!0):!1})}return!0};function ge(be,We){var ke=be.createReader(),_e=[];function St(){ke.readEntries(function(at){var st=Array.prototype.slice.apply(at);_e=_e.concat(st);var Se=!st.length;Se?We(_e):St()})}St()}var de=function(We,ke,_e){var St=function at(st,Se){st&&(st.path=Se||"",st.isFile?st.file(function(nn){_e(nn)&&(st.fullPath&&!nn.webkitRelativePath&&(Object.defineProperties(nn,{webkitRelativePath:{writable:!0}}),nn.webkitRelativePath=st.fullPath.replace(/^\//,""),Object.defineProperties(nn,{webkitRelativePath:{writable:!1}})),ke([nn]))}):st.isDirectory&&ge(st,function(nn){nn.forEach(function(Ut){at(Ut,"".concat(Se).concat(st.name,"/"))})}))};We.forEach(function(at){St(at.webkitGetAsEntry())})},Pe=de,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(be){(0,Me.Z)(ke,be);var We=(0,ze.Z)(ke);function ke(){var _e;(0,Be.Z)(this,ke);for(var St=arguments.length,at=new Array(St),st=0;st<St;st++)at[st]=arguments[st];return _e=We.call.apply(We,[this].concat(at)),_e.state={uid:ee()},_e.reqs={},_e.fileInput=void 0,_e._isMounted=void 0,_e.onChange=function(Se){var nn=_e.props,Ut=nn.accept,gn=nn.directory,hn=Se.target.files,nt=(0,ve.Z)(hn).filter(function(yt){return!gn||re(yt,Ut)});_e.uploadFiles(nt),_e.reset()},_e.onClick=function(Se){var nn=_e.fileInput;if(nn){var Ut=_e.props,gn=Ut.children,hn=Ut.onClick;if(gn&&gn.type==="button"){var nt=nn.parentNode;nt.focus(),nt.querySelector("button").blur()}nn.click(),hn&&hn(Se)}},_e.onKeyDown=function(Se){Se.key==="Enter"&&_e.onClick(Se)},_e.onFileDrop=function(Se){var nn=_e.props.multiple;if(Se.preventDefault(),Se.type!=="dragover")if(_e.props.directory)Pe(Array.prototype.slice.call(Se.dataTransfer.items),_e.uploadFiles,function(gn){return re(gn,_e.props.accept)});else{var Ut=(0,ve.Z)(Se.dataTransfer.files).filter(function(gn){return re(gn,_e.props.accept)});nn===!1&&(Ut=Ut.slice(0,1)),_e.uploadFiles(Ut)}},_e.uploadFiles=function(Se){var nn=(0,ve.Z)(Se),Ut=nn.map(function(gn){return gn.uid=ee(),_e.processFile(gn,nn)});Promise.all(Ut).then(function(gn){var hn=_e.props.onBatchStart;hn==null||hn(gn.map(function(nt){var yt=nt.origin,Kt=nt.parsedFile;return{file:yt,parsedFile:Kt}})),gn.filter(function(nt){return nt.parsedFile!==null}).forEach(function(nt){_e.post(nt)})})},_e.processFile=function(){var Se=(0,ae.Z)((0,je.Z)().mark(function nn(Ut,gn){var hn,nt,yt,Kt,Bt,wn,pn,Zn,Un;return(0,je.Z)().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:if(hn=_e.props.beforeUpload,nt=Ut,!hn){En.next=14;break}return En.prev=3,En.next=6,hn(Ut,gn);case 6:nt=En.sent,En.next=12;break;case 9:En.prev=9,En.t0=En.catch(3),nt=!1;case 12:if(nt!==!1){En.next=14;break}return En.abrupt("return",{origin:Ut,parsedFile:null,action:null,data:null});case 14:if(yt=_e.props.action,typeof yt!="function"){En.next=21;break}return En.next=18,yt(Ut);case 18:Kt=En.sent,En.next=22;break;case 21:Kt=yt;case 22:if(Bt=_e.props.data,typeof Bt!="function"){En.next=29;break}return En.next=26,Bt(Ut);case 26:wn=En.sent,En.next=30;break;case 29:wn=Bt;case 30:return pn=((0,Ie.Z)(nt)==="object"||typeof nt=="string")&&nt?nt:Ut,pn instanceof File?Zn=pn:Zn=new File([pn],Ut.name,{type:Ut.type}),Un=Zn,Un.uid=Ut.uid,En.abrupt("return",{origin:Ut,data:wn,parsedFile:Un,action:Kt});case 35:case"end":return En.stop()}},nn,null,[[3,9]])}));return function(nn,Ut){return Se.apply(this,arguments)}}(),_e.saveFileInput=function(Se){_e.fileInput=Se},_e}return(0,ue.Z)(ke,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(St){var at=this,st=St.data,Se=St.origin,nn=St.action,Ut=St.parsedFile;if(this._isMounted){var gn=this.props,hn=gn.onStart,nt=gn.customRequest,yt=gn.name,Kt=gn.headers,Bt=gn.withCredentials,wn=gn.method,pn=Se.uid,Zn=nt||b,Un={action:nn,filename:yt,data:st,file:Ut,headers:Kt,withCredentials:Bt,method:wn||"post",onProgress:function(En){var pa=at.props.onProgress;pa==null||pa(En,Ut)},onSuccess:function(En,pa){var Ea=at.props.onSuccess;Ea==null||Ea(En,Ut,pa),delete at.reqs[pn]},onError:function(En,pa){var Ea=at.props.onError;Ea==null||Ea(En,pa,Ut),delete at.reqs[pn]}};hn(Se),this.reqs[pn]=Zn(Un)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(St){var at=this.reqs;if(St){var st=St.uid?St.uid:St;at[st]&&at[st].abort&&at[st].abort(),delete at[st]}else Object.keys(at).forEach(function(Se){at[Se]&&at[Se].abort&&at[Se].abort(),delete at[Se]})}},{key:"render",value:function(){var St,at=this.props,st=at.component,Se=at.prefixCls,nn=at.className,Ut=at.disabled,gn=at.id,hn=at.style,nt=at.multiple,yt=at.accept,Kt=at.capture,Bt=at.children,wn=at.directory,pn=at.openFileDialogOnClick,Zn=at.onMouseEnter,Un=at.onMouseLeave,Kn=(0,Xe.Z)(at,ce),En=He()((St={},(0,$e.Z)(St,Se,!0),(0,$e.Z)(St,"".concat(Se,"-disabled"),Ut),(0,$e.Z)(St,nn,nn),St)),pa=wn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ea=Ut?{}:{onClick:pn?this.onClick:function(){},onKeyDown:pn?this.onKeyDown:function(){},onMouseEnter:Zn,onMouseLeave:Un,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(st,(0,fe.Z)({},Ea,{className:En,role:"button",style:hn}),te.createElement("input",(0,fe.Z)({},(0,a.Z)(Kn,{aria:!0,data:!0}),{id:gn,disabled:Ut,type:"file",ref:this.saveFileInput,onClick:function(no){return no.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:yt},pa,{multiple:nt,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),Bt)}}]),ke}(te.Component),Ze=De;function wt(){}var At=function(be){(0,Me.Z)(ke,be);var We=(0,ze.Z)(ke);function ke(){var _e;(0,Be.Z)(this,ke);for(var St=arguments.length,at=new Array(St),st=0;st<St;st++)at[st]=arguments[st];return _e=We.call.apply(We,[this].concat(at)),_e.uploader=void 0,_e.saveUploader=function(Se){_e.uploader=Se},_e}return(0,ue.Z)(ke,[{key:"abort",value:function(St){this.uploader.abort(St)}},{key:"render",value:function(){return te.createElement(Ze,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),ke}(te.Component);At.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=At,Le=Zt,Ue=oe(5663),Re=oe(73935),it=oe(53124),ut=oe(98866),Qe=oe(10110),Ve=oe(24457),gt={icon:function(We,ke){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ke}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:We}}]}},name:"file",theme:"twotone"},$t=gt,pe=oe(44327),Ae=function(We,ke){return te.createElement(pe.Z,(0,fe.Z)({},We,{ref:ke,icon:$t}))},rt=te.forwardRef(Ae),Ft=oe(77322),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},dt=Je,me=function(We,ke){return te.createElement(pe.Z,(0,fe.Z)({},We,{ref:ke,icon:dt}))},lt=te.forwardRef(me),Et={icon:function(We,ke){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:We}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ke}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:ke}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ke}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:We}}]}},name:"picture",theme:"twotone"},Xt=Et,ft=function(We,ke){return te.createElement(pe.Z,(0,fe.Z)({},We,{ref:ke,icon:Xt}))},Oe=te.forwardRef(ft),Ce=oe(38379),Ee=oe(57838),tt=oe(33603),qe=oe(96159),ht=oe(71577);function Gt(be){return Object.assign(Object.assign({},be),{lastModified:be.lastModified,lastModifiedDate:be.lastModifiedDate,name:be.name,size:be.size,type:be.type,uid:be.uid,percent:0,originFileObj:be})}function Tt(be,We){const ke=(0,ve.Z)(We),_e=ke.findIndex(St=>{let{uid:at}=St;return at===be.uid});return _e===-1?ke.push(be):ke[_e]=be,ke}function Yt(be,We){const ke=be.uid!==void 0?"uid":"name";return We.filter(_e=>_e[ke]===be[ke])[0]}function dn(be,We){const ke=be.uid!==void 0?"uid":"name",_e=We.filter(St=>St[ke]!==be[ke]);return _e.length===We.length?null:_e}const ln=function(){const We=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),_e=We[We.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(_e)||[""])[0]},zt=be=>be.indexOf("image/")===0,Nt=be=>{if(be.type&&!be.thumbUrl)return zt(be.type);const We=be.thumbUrl||be.url||"",ke=ln(We);return/^data:image\//.test(We)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ke)?!0:!(/^data:/.test(We)||ke)},Jt=200;function kn(be){return new Promise(We=>{if(!be.type||!zt(be.type)){We("");return}const ke=document.createElement("canvas");ke.width=Jt,ke.height=Jt,ke.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(ke);const _e=ke.getContext("2d"),St=new Image;if(St.onload=()=>{const{width:at,height:st}=St;let Se=Jt,nn=Jt,Ut=0,gn=0;at>st?(nn=st*(Jt/at),gn=-(nn-Se)/2):(Se=at*(Jt/st),Ut=-(Se-nn)/2),_e.drawImage(St,Ut,gn,Se,nn);const hn=ke.toDataURL();document.body.removeChild(ke),window.URL.revokeObjectURL(St.src),We(hn)},St.crossOrigin="anonymous",be.type.startsWith("image/svg+xml")){const at=new FileReader;at.onload=()=>{at.result&&(St.src=at.result)},at.readAsDataURL(be)}else if(be.type.startsWith("image/gif")){const at=new FileReader;at.onload=()=>{at.result&&We(at.result)},at.readAsDataURL(be)}else St.src=window.URL.createObjectURL(be)})}var Cn={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"},vn=Cn,we=function(We,ke){return te.createElement(pe.Z,(0,fe.Z)({},We,{ref:ke,icon:vn}))},Te=te.forwardRef(we),ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pt=ot,xt=function(We,ke){return te.createElement(pe.Z,(0,fe.Z)({},We,{ref:ke,icon:pt}))},qt=te.forwardRef(xt),tn=oe(43481),Dt=oe(38703),en=oe(83062),rn=te.forwardRef((be,We)=>{let{prefixCls:ke,className:_e,style:St,locale:at,listType:st,file:Se,items:nn,progress:Ut,iconRender:gn,actionIconRender:hn,itemRender:nt,isImgUrl:yt,showPreviewIcon:Kt,showRemoveIcon:Bt,showDownloadIcon:wn,previewIcon:pn,removeIcon:Zn,downloadIcon:Un,onPreview:Kn,onDownload:En,onClose:pa}=be;var Ea,Bo;const{status:no}=Se,[Xa,So]=te.useState(no);te.useEffect(()=>{no!=="removed"&&So(no)},[no]);const[Ao,zo]=te.useState(!1);te.useEffect(()=>{const ya=setTimeout(()=>{zo(!0)},300);return()=>{clearTimeout(ya)}},[]);const Ya=gn(Se);let Ia=te.createElement("div",{className:`${ke}-icon`},Ya);if(st==="picture"||st==="picture-card"||st==="picture-circle")if(Xa==="uploading"||!Se.thumbUrl&&!Se.url){const ya=He()(`${ke}-list-item-thumbnail`,{[`${ke}-list-item-file`]:Xa!=="uploading"});Ia=te.createElement("div",{className:ya},Ya)}else{const ya=yt!=null&&yt(Se)?te.createElement("img",{src:Se.thumbUrl||Se.url,alt:Se.name,className:`${ke}-list-item-image`,crossOrigin:Se.crossOrigin}):Ya,ua=He()(`${ke}-list-item-thumbnail`,{[`${ke}-list-item-file`]:yt&&!yt(Se)});Ia=te.createElement("a",{className:ua,onClick:vo=>Kn(Se,vo),href:Se.url||Se.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ya)}const ia=He()(`${ke}-list-item`,`${ke}-list-item-${Xa}`),ho=typeof Se.linkProps=="string"?JSON.parse(Se.linkProps):Se.linkProps,To=Bt?hn((typeof Zn=="function"?Zn(Se):Zn)||te.createElement(Te,null),()=>pa(Se),ke,at.removeFile):null,ao=wn&&Xa==="done"?hn((typeof Un=="function"?Un(Se):Un)||te.createElement(qt,null),()=>En(Se),ke,at.downloadFile):null,io=st!=="picture-card"&&st!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:He()(`${ke}-list-item-actions`,{picture:st==="picture"})},ao,To),Da=He()(`${ke}-list-item-name`),Wa=Se.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Da,title:Se.name},ho,{href:Se.url,onClick:ya=>Kn(Se,ya)}),Se.name),io]:[te.createElement("span",{key:"view",className:Da,onClick:ya=>Kn(Se,ya),title:Se.name},Se.name),io],cn={pointerEvents:"none",opacity:.5},Bn=Kt?te.createElement("a",{href:Se.url||Se.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Se.url||Se.thumbUrl?void 0:cn,onClick:ya=>Kn(Se,ya),title:at.previewFile},typeof pn=="function"?pn(Se):pn||te.createElement(tn.Z,null)):null,Na=(st==="picture-card"||st==="picture-circle")&&Xa!=="uploading"&&te.createElement("span",{className:`${ke}-list-item-actions`},Bn,Xa==="done"&&ao,To),{getPrefixCls:Ca}=te.useContext(it.E_),Po=Ca(),oo=te.createElement("div",{className:ia},Ia,Wa,Na,Ao&&te.createElement(Ce.default,{motionName:`${Po}-fade`,visible:Xa==="uploading",motionDeadline:2e3},ya=>{let{className:ua}=ya;const vo="percent"in Se?te.createElement(Dt.Z,Object.assign({},Ut,{type:"line",percent:Se.percent,"aria-label":Se["aria-label"],"aria-labelledby":Se["aria-labelledby"]})):null;return te.createElement("div",{className:He()(`${ke}-list-item-progress`,ua)},vo)})),qo=Se.response&&typeof Se.response=="string"?Se.response:((Ea=Se.error)===null||Ea===void 0?void 0:Ea.statusText)||((Bo=Se.error)===null||Bo===void 0?void 0:Bo.message)||at.uploadError,_o=Xa==="error"?te.createElement(en.Z,{title:qo,getPopupContainer:ya=>ya.parentNode},oo):oo;return te.createElement("div",{className:He()(`${ke}-list-item-container`,_e),style:St,ref:We},nt?nt(_o,Se,nn,{download:En.bind(null,Se),preview:Kn.bind(null,Se),remove:pa.bind(null,Se)}):_o)});const jn=(be,We)=>{const{listType:ke="text",previewFile:_e=kn,onPreview:St,onDownload:at,onRemove:st,locale:Se,iconRender:nn,isImageUrl:Ut=Nt,prefixCls:gn,items:hn=[],showPreviewIcon:nt=!0,showRemoveIcon:yt=!0,showDownloadIcon:Kt=!1,removeIcon:Bt,previewIcon:wn,downloadIcon:pn,progress:Zn={size:[-1,2],showInfo:!1},appendAction:Un,appendActionVisible:Kn=!0,itemRender:En,disabled:pa}=be,Ea=(0,Ee.Z)(),[Bo,no]=te.useState(!1);te.useEffect(()=>{ke!=="picture"&&ke!=="picture-card"&&ke!=="picture-circle"||(hn||[]).forEach(cn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(cn.originFileObj instanceof File||cn.originFileObj instanceof Blob)||cn.thumbUrl!==void 0||(cn.thumbUrl="",_e&&_e(cn.originFileObj).then(Bn=>{cn.thumbUrl=Bn||"",Ea()}))})},[ke,hn,_e]),te.useEffect(()=>{no(!0)},[]);const Xa=(cn,Bn)=>{if(St)return Bn==null||Bn.preventDefault(),St(cn)},So=cn=>{typeof at=="function"?at(cn):cn.url&&window.open(cn.url)},Ao=cn=>{st==null||st(cn)},zo=cn=>{if(nn)return nn(cn,ke);const Bn=cn.status==="uploading",Na=Ut&&Ut(cn)?te.createElement(Oe,null):te.createElement(rt,null);let Ca=Bn?te.createElement(Ft.Z,null):te.createElement(lt,null);return ke==="picture"?Ca=Bn?te.createElement(Ft.Z,null):Na:(ke==="picture-card"||ke==="picture-circle")&&(Ca=Bn?Se.uploading:Na),Ca},Ya=(cn,Bn,Na,Ca)=>{const Po={type:"text",size:"small",title:Ca,onClick:oo=>{Bn(),(0,qe.l$)(cn)&&cn.props.onClick&&cn.props.onClick(oo)},className:`${Na}-list-item-action`,disabled:pa};if((0,qe.l$)(cn)){const oo=(0,qe.Tm)(cn,Object.assign(Object.assign({},cn.props),{onClick:()=>{}}));return te.createElement(ht.ZP,Object.assign({},Po,{icon:oo}))}return te.createElement(ht.ZP,Object.assign({},Po),te.createElement("span",null,cn))};te.useImperativeHandle(We,()=>({handlePreview:Xa,handleDownload:So}));const{getPrefixCls:Ia}=te.useContext(it.E_),ia=Ia("upload",gn),ho=Ia(),To=He()(`${ia}-list`,`${ia}-list-${ke}`),ao=(0,ve.Z)(hn.map(cn=>({key:cn.uid,file:cn})));let Da={motionDeadline:2e3,motionName:`${ia}-${ke==="picture-card"||ke==="picture-circle"?"animate-inline":"animate"}`,keys:ao,motionAppear:Bo};const Wa=te.useMemo(()=>{const cn=Object.assign({},(0,tt.Z)(ho));return delete cn.onAppearEnd,delete cn.onEnterEnd,delete cn.onLeaveEnd,cn},[ho]);return ke!=="picture-card"&&ke!=="picture-circle"&&(Da=Object.assign(Object.assign({},Wa),Da)),te.createElement("div",{className:To},te.createElement(Ce.CSSMotionList,Object.assign({},Da,{component:!1}),cn=>{let{key:Bn,file:Na,className:Ca,style:Po}=cn;return te.createElement(rn,{key:Bn,locale:Se,prefixCls:ia,className:Ca,style:Po,file:Na,items:hn,progress:Zn,listType:ke,isImgUrl:Ut,showPreviewIcon:nt,showRemoveIcon:yt,showDownloadIcon:Kt,removeIcon:Bt,previewIcon:wn,downloadIcon:pn,iconRender:zo,actionIconRender:Ya,itemRender:En,onPreview:Xa,onDownload:So,onClose:Ao})}),Un&&te.createElement(Ce.default,Object.assign({},Da,{visible:Kn,forceRender:!0}),cn=>{let{className:Bn,style:Na}=cn;return(0,qe.Tm)(Un,Ca=>({className:He()(Ca.className,Bn),style:Object.assign(Object.assign(Object.assign({},Na),{pointerEvents:Bn?"none":void 0}),Ca.style)}))}))};var Qn=te.forwardRef(jn),Wn=oe(14747),In=oe(33507),An=oe(67968),Jn=oe(45503),ha=be=>{const{componentCls:We,iconCls:ke}=be;return{[`${We}-wrapper`]:{[`${We}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:be.colorFillAlter,border:`${be.lineWidth}px dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[We]:{padding:`${be.padding}px 0`},[`${We}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${We}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${We}-disabled):hover`]:{borderColor:be.colorPrimaryHover},[`p${We}-drag-icon`]:{marginBottom:be.margin,[ke]:{color:be.colorPrimary,fontSize:be.uploadThumbnailSize}},[`p${We}-text`]:{margin:`0 0 ${be.marginXXS}px`,color:be.colorTextHeading,fontSize:be.fontSizeLG},[`p${We}-hint`]:{color:be.colorTextDescription,fontSize:be.fontSize},[`&${We}-disabled`]:{cursor:"not-allowed",[`p${We}-drag-icon ${ke},
p${We}-text,
p${We}-hint
`]:{color:be.colorTextDisabled}}}}}},Pa=be=>{const{componentCls:We,antCls:ke,iconCls:_e,fontSize:St,lineHeight:at}=be,st=`${We}-list-item`,Se=`${st}-actions`,nn=`${st}-action`,Ut=Math.round(St*at);return{[`${We}-wrapper`]:{[`${We}-list`]:Object.assign(Object.assign({},(0,Wn.dF)()),{lineHeight:be.lineHeight,[st]:{position:"relative",height:be.lineHeight*St,marginTop:be.marginXS,fontSize:St,display:"flex",alignItems:"center",transition:`background-color ${be.motionDurationSlow}`,"&:hover":{backgroundColor:be.controlItemBgHover},[`${st}-name`]:Object.assign(Object.assign({},Wn.vS),{padding:`0 ${be.paddingXS}px`,lineHeight:at,flex:"auto",transition:`all ${be.motionDurationSlow}`}),[Se]:{[nn]:{opacity:0},[`${nn}${ke}-btn-sm`]:{height:Ut,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${nn}:focus-visible,
&.picture ${nn}
`]:{opacity:1},[_e]:{color:be.actionsColor,transition:`all ${be.motionDurationSlow}`},[`&:hover ${_e}`]:{color:be.colorText}},[`${We}-icon ${_e}`]:{color:be.colorTextDescription,fontSize:St},[`${st}-progress`]:{position:"absolute",bottom:-be.uploadProgressOffset,width:"100%",paddingInlineStart:St+be.paddingXS,fontSize:St,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${st}:hover ${nn}`]:{opacity:1,color:be.colorText},[`${st}-error`]:{color:be.colorError,[`${st}-name, ${We}-icon ${_e}`]:{color:be.colorError},[Se]:{[`${_e}, ${_e}:hover`]:{color:be.colorError},[nn]:{opacity:1}}},[`${We}-list-item-container`]:{transition:`opacity ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ta=oe(45930),aa=oe(16932);const Ga=new Ta.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qa=new Ta.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Fe=be=>{const{componentCls:We}=be,ke=`${We}-animate-inline`;return[{[`${We}-wrapper`]:{[`${ke}-appear, ${ke}-enter, ${ke}-leave`]:{animationDuration:be.motionDurationSlow,animationTimingFunction:be.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ke}-appear, ${ke}-enter`]:{animationName:Ga},[`${ke}-leave`]:{animationName:qa}}},{[`${We}-wrapper`]:(0,aa.J$)(be)},Ga,qa]},xe=oe(47448),ye=oe(84780);const Pt=be=>{const{componentCls:We,iconCls:ke,uploadThumbnailSize:_e,uploadProgressOffset:St}=be,at=`${We}-list`,st=`${at}-item`;return{[`${We}-wrapper`]:{[`
${at}${at}-picture,
${at}${at}-picture-card,
${at}${at}-picture-circle
`]:{[st]:{position:"relative",height:_e+be.lineWidth*2+be.paddingXS*2,padding:be.paddingXS,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,borderRadius:be.borderRadiusLG,"&:hover":{background:"transparent"},[`${st}-thumbnail`]:Object.assign(Object.assign({},Wn.vS),{width:_e,height:_e,lineHeight:`${_e+be.paddingSM}px`,textAlign:"center",flex:"none",[ke]:{fontSize:be.fontSizeHeading2,color:be.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${st}-progress`]:{bottom:St,width:`calc(100% - ${be.paddingSM*2}px)`,marginTop:0,paddingInlineStart:_e+be.paddingXS}},[`${st}-error`]:{borderColor:be.colorError,[`${st}-thumbnail ${ke}`]:{[`svg path[fill='${xe.blue[0]}']`]:{fill:be.colorErrorBg},[`svg path[fill='${xe.blue.primary}']`]:{fill:be.colorError}}},[`${st}-uploading`]:{borderStyle:"dashed",[`${st}-name`]:{marginBottom:St}}},[`${at}${at}-picture-circle ${st}`]:{[`&, &::before, ${st}-thumbnail`]:{borderRadius:"50%"}}}}},Wt=be=>{const{componentCls:We,iconCls:ke,fontSizeLG:_e,colorTextLightSolid:St}=be,at=`${We}-list`,st=`${at}-item`,Se=be.uploadPicCardSize;return{[`
${We}-wrapper${We}-picture-card-wrapper,
${We}-wrapper${We}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Wn.dF)()),{display:"inline-block",width:"100%",[`${We}${We}-select`]:{width:Se,height:Se,marginInlineEnd:be.marginXS,marginBottom:be.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:be.colorFillAlter,border:`${be.lineWidth}px dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[`> ${We}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${We}-disabled):hover`]:{borderColor:be.colorPrimary}},[`${at}${at}-picture-card, ${at}${at}-picture-circle`]:{[`${at}-item-container`]:{display:"inline-block",width:Se,height:Se,marginBlock:`0 ${be.marginXS}px`,marginInline:`0 ${be.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[st]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${be.paddingXS*2}px)`,height:`calc(100% - ${be.paddingXS*2}px)`,backgroundColor:be.colorBgMask,opacity:0,transition:`all ${be.motionDurationSlow}`,content:'" "'}},[`${st}:hover`]:{[`&::before, ${st}-actions`]:{opacity:1}},[`${st}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${be.motionDurationSlow}`,[`${ke}-eye, ${ke}-download, ${ke}-delete`]:{zIndex:10,width:_e,margin:`0 ${be.marginXXS}px`,fontSize:_e,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${st}-actions, ${st}-actions:hover`]:{[`${ke}-eye, ${ke}-download, ${ke}-delete`]:{color:new ye.C(St).setAlpha(.65).toRgbString(),"&:hover":{color:St}}},[`${st}-thumbnail, ${st}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${st}-name`]:{display:"none",textAlign:"center"},[`${st}-file + ${st}-name`]:{position:"absolute",bottom:be.margin,display:"block",width:`calc(100% - ${be.paddingXS*2}px)`},[`${st}-uploading`]:{[`&${st}`]:{backgroundColor:be.colorFillAlter},[`&::before, ${ke}-eye, ${ke}-download, ${ke}-delete`]:{display:"none"}},[`${st}-progress`]:{bottom:be.marginXL,width:`calc(100% - ${be.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${We}-wrapper${We}-picture-circle-wrapper`]:{[`${We}${We}-select`]:{borderRadius:"50%"}}}};var zn=be=>{const{componentCls:We}=be;return{[`${We}-rtl`]:{direction:"rtl"}}};const Sn=be=>{const{componentCls:We,colorTextDisabled:ke}=be;return{[`${We}-wrapper`]:Object.assign(Object.assign({},(0,Wn.Wf)(be)),{[We]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${We}-select`]:{display:"inline-block"},[`${We}-disabled`]:{color:ke,cursor:"not-allowed"}})}};var Fn=(0,An.Z)("Upload",be=>{const{fontSizeHeading3:We,fontSize:ke,lineHeight:_e,lineWidth:St,controlHeightLG:at}=be,st=Math.round(ke*_e),Se=(0,Jn.TS)(be,{uploadThumbnailSize:We*2,uploadProgressOffset:st/2+St,uploadPicCardSize:at*2.55});return[Sn(Se),ha(Se),Pt(Se),Wt(Se),Pa(Se),Fe(Se),zn(Se),(0,In.Z)(Se)]},be=>({actionsColor:be.colorTextDescription})),qn=function(be,We,ke,_e){function St(at){return at instanceof ke?at:new ke(function(st){st(at)})}return new(ke||(ke=Promise))(function(at,st){function Se(gn){try{Ut(_e.next(gn))}catch(hn){st(hn)}}function nn(gn){try{Ut(_e.throw(gn))}catch(hn){st(hn)}}function Ut(gn){gn.done?at(gn.value):St(gn.value).then(Se,nn)}Ut((_e=_e.apply(be,We||[])).next())})};const wa=`__LIST_IGNORE_${Date.now()}__`,mt=(be,We)=>{const{fileList:ke,defaultFileList:_e,onRemove:St,showUploadList:at=!0,listType:st="text",onPreview:Se,onDownload:nn,onChange:Ut,onDrop:gn,previewFile:hn,disabled:nt,locale:yt,iconRender:Kt,isImageUrl:Bt,progress:wn,prefixCls:pn,className:Zn,type:Un="select",children:Kn,style:En,itemRender:pa,maxCount:Ea,data:Bo={},multiple:no=!1,action:Xa="",accept:So="",supportServerRender:Ao=!0,rootClassName:zo}=be,Ya=te.useContext(ut.Z),Ia=nt!=null?nt:Ya,[ia,ho]=(0,Ue.Z)(_e||[],{value:ke,postState:Pn=>Pn!=null?Pn:[]}),[To,ao]=te.useState("drop"),io=te.useRef(null);te.useMemo(()=>{const Pn=Date.now();(ke||[]).forEach((Tn,fa)=>{!Tn.uid&&!Object.isFrozen(Tn)&&(Tn.uid=`__AUTO__${Pn}_${fa}__`)})},[ke]);const Da=(Pn,Tn,fa)=>{let an=(0,ve.Z)(Tn),oa=!1;Ea===1?an=an.slice(-1):Ea&&(oa=an.length>Ea,an=an.slice(0,Ea)),(0,Re.flushSync)(()=>{ho(an)});const Ua={file:Pn,fileList:an};fa&&(Ua.event=fa),(!oa||an.some(po=>po.uid===Pn.uid))&&(0,Re.flushSync)(()=>{Ut==null||Ut(Ua)})},Wa=(Pn,Tn)=>qn(void 0,void 0,void 0,function*(){const{beforeUpload:fa,transformFile:an}=be;let oa=Pn;if(fa){const Ua=yield fa(Pn,Tn);if(Ua===!1)return!1;if(delete Pn[wa],Ua===wa)return Object.defineProperty(Pn,wa,{value:!0,configurable:!0}),!1;typeof Ua=="object"&&Ua&&(oa=Ua)}return an&&(oa=yield an(oa)),oa}),cn=Pn=>{const Tn=Pn.filter(oa=>!oa.file[wa]);if(!Tn.length)return;const fa=Tn.map(oa=>Gt(oa.file));let an=(0,ve.Z)(ia);fa.forEach(oa=>{an=Tt(oa,an)}),fa.forEach((oa,Ua)=>{let po=oa;if(Tn[Ua].parsedFile)oa.status="uploading";else{const{originFileObj:$o}=oa;let so;try{so=new File([$o],$o.name,{type:$o.type})}catch(uo){so=new Blob([$o],{type:$o.type}),so.name=$o.name,so.lastModifiedDate=new Date,so.lastModified=new Date().getTime()}so.uid=oa.uid,po=so}Da(po,an)})},Bn=(Pn,Tn,fa)=>{try{typeof Pn=="string"&&(Pn=JSON.parse(Pn))}catch(Ua){}if(!Yt(Tn,ia))return;const an=Gt(Tn);an.status="done",an.percent=100,an.response=Pn,an.xhr=fa;const oa=Tt(an,ia);Da(an,oa)},Na=(Pn,Tn)=>{if(!Yt(Tn,ia))return;const fa=Gt(Tn);fa.status="uploading",fa.percent=Pn.percent;const an=Tt(fa,ia);Da(fa,an,Pn)},Ca=(Pn,Tn,fa)=>{if(!Yt(fa,ia))return;const an=Gt(fa);an.error=Pn,an.response=Tn,an.status="error";const oa=Tt(an,ia);Da(an,oa)},Po=Pn=>{let Tn;Promise.resolve(typeof St=="function"?St(Pn):St).then(fa=>{var an;if(fa===!1)return;const oa=dn(Pn,ia);oa&&(Tn=Object.assign(Object.assign({},Pn),{status:"removed"}),ia==null||ia.forEach(Ua=>{const po=Tn.uid!==void 0?"uid":"name";Ua[po]===Tn[po]&&!Object.isFrozen(Ua)&&(Ua.status="removed")}),(an=io.current)===null||an===void 0||an.abort(Tn),Da(Tn,oa))})},oo=Pn=>{ao(Pn.type),Pn.type==="drop"&&(gn==null||gn(Pn))};te.useImperativeHandle(We,()=>({onBatchStart:cn,onSuccess:Bn,onProgress:Na,onError:Ca,fileList:ia,upload:io.current}));const{getPrefixCls:qo,direction:_o,upload:ya}=te.useContext(it.E_),ua=qo("upload",pn),vo=Object.assign(Object.assign({onBatchStart:cn,onError:Ca,onProgress:Na,onSuccess:Bn},be),{data:Bo,multiple:no,action:Xa,accept:So,supportServerRender:Ao,prefixCls:ua,disabled:Ia,beforeUpload:Wa,onChange:void 0});delete vo.className,delete vo.style,(!Kn||Ia)&&delete vo.id;const[It,bt]=Fn(ua),[Mt]=(0,Qe.Z)("Upload",Ve.Z.Upload),{showRemoveIcon:Rt,showPreviewIcon:Rn,showDownloadIcon:ca,removeIcon:Ra,previewIcon:Ba,downloadIcon:Ma}=typeof at=="boolean"?{}:at,$a=(Pn,Tn)=>at?te.createElement(Qn,{prefixCls:ua,listType:st,items:ia,previewFile:hn,onPreview:Se,onDownload:nn,onRemove:Po,showRemoveIcon:!Ia&&Rt,showPreviewIcon:Rn,showDownloadIcon:ca,removeIcon:Ra,previewIcon:Ba,downloadIcon:Ma,iconRender:Kt,locale:Object.assign(Object.assign({},Mt),yt),isImageUrl:Bt,progress:wn,appendAction:Pn,appendActionVisible:Tn,itemRender:pa,disabled:Ia}):Pn,lo=He()(`${ua}-wrapper`,Zn,zo,bt,ya==null?void 0:ya.className,{[`${ua}-rtl`]:_o==="rtl",[`${ua}-picture-card-wrapper`]:st==="picture-card",[`${ua}-picture-circle-wrapper`]:st==="picture-circle"}),Qa=Object.assign(Object.assign({},ya==null?void 0:ya.style),En);if(Un==="drag"){const Pn=He()(bt,ua,`${ua}-drag`,{[`${ua}-drag-uploading`]:ia.some(Tn=>Tn.status==="uploading"),[`${ua}-drag-hover`]:To==="dragover",[`${ua}-disabled`]:Ia,[`${ua}-rtl`]:_o==="rtl"});return It(te.createElement("span",{className:lo},te.createElement("div",{className:Pn,style:Qa,onDrop:oo,onDragOver:oo,onDragLeave:oo},te.createElement(Le,Object.assign({},vo,{ref:io,className:`${ua}-btn`}),te.createElement("div",{className:`${ua}-drag-container`},Kn))),$a()))}const Vo=He()(ua,`${ua}-select`,{[`${ua}-disabled`]:Ia}),ko=(Pn=>te.createElement("div",{className:Vo,style:Pn},te.createElement(Le,Object.assign({},vo,{ref:io}))))(Kn?void 0:{display:"none"});return It(st==="picture-card"||st==="picture-circle"?te.createElement("span",{className:lo},$a(ko,!!Kn)):te.createElement("span",{className:lo},ko,$a()))};var va=te.forwardRef(mt),eo=function(be,We){var ke={};for(var _e in be)Object.prototype.hasOwnProperty.call(be,_e)&&We.indexOf(_e)<0&&(ke[_e]=be[_e]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,_e=Object.getOwnPropertySymbols(be);St<_e.length;St++)We.indexOf(_e[St])<0&&Object.prototype.propertyIsEnumerable.call(be,_e[St])&&(ke[_e[St]]=be[_e[St]]);return ke},ea=te.forwardRef((be,We)=>{var{style:ke,height:_e}=be,St=eo(be,["style","height"]);return te.createElement(va,Object.assign({ref:We},St,{type:"drag",style:Object.assign(Object.assign({},ke),{height:_e})}))});const to=va;to.Dragger=ea,to.LIST_IGNORE=wa;var fo=to},55007:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),ve=oe(67294),et={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"},He=et,fe=oe(44327),Be=function(ze,$e){return ve.createElement(fe.Z,(0,te.Z)({},ze,{ref:$e,icon:He}))},ue=ve.forwardRef(Be)},79269:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return ue}});var te=oe(87462),ve=oe(67294),et={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"},He=et,fe=oe(44327),Be=function(ze,$e){return ve.createElement(fe.Z,(0,te.Z)({},ze,{ref:$e,icon:He}))},ue=ve.forwardRef(Be)},62661:function(Ge,ct){"use strict";var oe;var te=Symbol.for("react.element"),ve=Symbol.for("react.portal"),et=Symbol.for("react.fragment"),He=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Me=Symbol.for("react.server_context"),ze=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case et:case fe:case He:case $e:case Xe:return E;default:switch(E=E&&E.$$typeof,E){case Me:case ue:case ze:case Ie:case je:case Be:return E;default:return b}}case ve:return b}}}oe=ue,oe=Be,oe=te,oe=ze,oe=et,oe=Ie,oe=je,oe=ve,oe=fe,oe=He,oe=$e,oe=Xe,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ue},oe=function(E){return y(E)===Be},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===ze},oe=function(E){return y(E)===et},oe=function(E){return y(E)===Ie},ct.isMemo=function(E){return y(E)===je},oe=function(E){return y(E)===ve},oe=function(E){return y(E)===fe},oe=function(E){return y(E)===He},oe=function(E){return y(E)===$e},oe=function(E){return y(E)===Xe},oe=function(E){return typeof E=="string"||typeof E=="function"||E===et||E===fe||E===He||E===$e||E===Xe||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===Ie||E.$$typeof===je||E.$$typeof===Be||E.$$typeof===ue||E.$$typeof===ze||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(Ge,ct,oe){"use strict";Ge.exports=oe(62661)},72665:function(Ge,ct){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,ve=te?Symbol.for("react.element"):60103,et=te?Symbol.for("react.portal"):60106,He=te?Symbol.for("react.fragment"):60107,fe=te?Symbol.for("react.strict_mode"):60108,Be=te?Symbol.for("react.profiler"):60114,ue=te?Symbol.for("react.provider"):60109,Me=te?Symbol.for("react.context"):60110,ze=te?Symbol.for("react.async_mode"):60111,$e=te?Symbol.for("react.concurrent_mode"):60111,Xe=te?Symbol.for("react.forward_ref"):60112,je=te?Symbol.for("react.suspense"):60113,Ie=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case ve:switch(ne=ne.type,ne){case ze:case $e:case He:case Be:case fe:case je:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Me:case Xe:case a:case ae:case ue:return ne;default:return re}}case et:return re}}}function ee(ne){return z(ne)===$e}oe=ze,oe=$e,oe=Me,oe=ue,oe=ve,oe=Xe,oe=He,oe=a,oe=ae,oe=et,oe=Be,oe=fe,oe=je,oe=function(ne){return ee(ne)||z(ne)===ze},oe=ee,oe=function(ne){return z(ne)===Me},oe=function(ne){return z(ne)===ue},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===ve},oe=function(ne){return z(ne)===Xe},oe=function(ne){return z(ne)===He},oe=function(ne){return z(ne)===a},ct.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===et},oe=function(ne){return z(ne)===Be},oe=function(ne){return z(ne)===fe},oe=function(ne){return z(ne)===je},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===He||ne===$e||ne===Be||ne===fe||ne===je||ne===Ie||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Me||ne.$$typeof===Xe||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(Ge,ct,oe){"use strict";Ge.exports=oe(72665)},64217:function(Ge,ct,oe){"use strict";oe.d(ct,{Z:function(){return Me}});var te=oe(1413),ve=`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`,et=`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`,He="".concat(ve," ").concat(et).split(/[\s\n]+/),fe="aria-",Be="data-";function ue(ze,$e){return ze.indexOf($e)===0}function Me(ze){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;$e===!1?Xe={aria:!0,data:!0,attr:!0}:$e===!0?Xe={aria:!0}:Xe=(0,te.Z)({},$e);var je={};return Object.keys(ze).forEach(function(Ie){(Xe.aria&&(Ie==="role"||ue(Ie,fe))||Xe.data&&ue(Ie,Be)||Xe.attr&&He.includes(Ie))&&(je[Ie]=ze[Ie])}),je}}}]);