You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
404 KiB
161 lines
404 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6820],{84249:function(Me,st,re){"use strict";re.d(st,{Z:function(){return me}});var ae=re(87462),he=re(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ue=_e,ce=re(74643),We=function(Xe,Ee){return he.createElement(ce.Z,(0,ae.Z)({},Xe,{ref:Ee,icon:Ue}))},me=he.forwardRef(We)},90674:function(Me,st,re){"use strict";re.d(st,{Z:function(){return me}});var ae=re(87462),he=re(67294),_e={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"},Ue=_e,ce=re(74643),We=function(Xe,Ee){return he.createElement(ce.Z,(0,ae.Z)({},Xe,{ref:Ee,icon:Ue}))},me=he.forwardRef(We)},22751:function(Me,st,re){"use strict";re.d(st,{Z:function(){return me}});var ae=re(87462),he=re(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ue=_e,ce=re(74643),We=function(Xe,Ee){return he.createElement(ce.Z,(0,ae.Z)({},Xe,{ref:Ee,icon:Ue}))},me=he.forwardRef(We)},91034:function(Me,st,re){"use strict";re.d(st,{Z:function(){return me}});var ae=re(87462),he=re(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ue=_e,ce=re(74643),We=function(Xe,Ee){return he.createElement(ce.Z,(0,ae.Z)({},Xe,{ref:Ee,icon:Ue}))},me=he.forwardRef(We)},71736:function(Me,st){"use strict";st.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 Me(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Me.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Me.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Me.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Me.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Me))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var st=[];function re(ne,a){var y=st.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=st.pop();return ne===void 0?new go.Point:ne}function he(ne){st.push(ne)}function _e(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,se=a);else{var le=(x-ee)/ge,ze=x-le*b;ie=ne,se=le*ie+ze}else if(ge===0){var Ie=(a-E)/oe,Qe=a-Ie*ne;ie=b,se=Ie*ie+Qe}else{var Ie=(a-E)/oe,le=(x-ee)/ge,Qe=a-Ie*ne,ze=x-le*b;ie=(ze-Qe)/(Ie-le),se=Ie*ie+Qe}return te.x=ie,te.y=se,te}function Ue(ne,a,y,E,b,x,z,ee,te,oe,ge,ie,se,le){var ze=1-te,Ie=te,Qe=ne*ze+y*Ie,Ft=a*ze+E*Ie,ft=y*ze+b*Ie,we=E*ze+x*Ie,ut=b*ze+z*Ie,it=x*ze+ee*Ie,Ke=Qe*ze+ft*Ie,tt=Ft*ze+we*Ie,At=ft*ze+ut*Ie,Ut=we*ze+it*Ie,dn=Ke*ze+At*Ie,pn=tt*ze+Ut*Ie;oe.x=Qe,oe.y=Ft,ge.x=Ke,ge.y=tt,ie.x=dn,ie.y=pn,se.x=At,se.y=Ut,le.x=ut,le.y=it}var ce=new go.Spot(.156,.156),We=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Me("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=We,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Me("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Me("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Me("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var ot=[];function Xe(){var ne=ot.pop();return ne===void 0?[]:ne}function Ee(ne){ne.length=0,ot.push(ne)}function et(ne){for(var a=Xe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ne(ne){var a=Ge(ne),y=Xe();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 Ee(a),y}function Ge(ne){for(var a=et(ne),y=Xe(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=_e(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ee(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=et(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()),Ee(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Ge(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()),Ee(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Ne(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(),Ee(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Me("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Me("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Me("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ce,x.spot2=We,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Me("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Me("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(te,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-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Me("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Me("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,se,se);var le=ae(),ze=ae(),Ie=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ie,le,ze);var Qe=ae(),Ft=ae(),ft=ae();Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Qe,Ft,ft,se,se);var we=ae(),ut=ae(),it=ae();return Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,it,we,ut),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,we.x*a,we.y*y,ut.x*a,ut.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,ft.x*a,ft.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ft.x*a,ft.y*y,Qe.x*a,Qe.y*y,Ft.x*a,Ft.y*y).close()),he(oe),he(ge),he(ie),he(se),he(le),he(ze),he(Ie),he(Qe),he(Ft),he(ft),he(we),he(ut),he(it),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var le=re(oe.x,oe.y);Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var ze=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=me*.35;var Ie=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie.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 Qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Qe),he(te),he(oe),he(ge),he(ie),he(le),he(ze),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Me("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Me("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Me("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Me("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Me("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=_e(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=_e(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Me("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Me("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),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,te)),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 ie=_e(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=_e(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Me("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Me("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Me("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),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,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=_e(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Me("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=_e(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Me("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=_e(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Me("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Me("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Me("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,se=me*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=me*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=me*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=me*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=me*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Me("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,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 ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var 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(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var ze=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var Ie=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var Qe=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=me*.3,x=.3,Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(ge),he(ie),he(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,ze=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,se=z,le=z,ze=ge*se,Ie=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ze+se)/2)*a,(te+(le+Ie)/2)*y,(ee-se)*a,(te+Ie)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ie)*y,(ee-ze)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ze)*a,(te-le)*y,(ee+se)*a,(te-Ie)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ie)*y,(ee+(ze+se)/2)*a,(te+(le+Ie)/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 Qe=new go.PathFigure(.2*a,y,!1);E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ft=new go.PathFigure(.8*a,y,!1);return E.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*a,ie*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=me*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.825,le=.95,ze=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y).close());var Ie=new go.PathFigure(0,y,!1);return E.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 Me={},st="5.0",re={},ae=null,he=!1,_e=!1,Ue=null,ce=!1,We=null,me=null,ot=0;ot<arguments.length;ot++){var Xe=arguments[ot];if(Xe!==null)switch(typeof Xe){case"number":st=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=Xe:Ue=Xe;break;case"object":typeof Xe.is3D!="undefined"?ae=Xe:re=Xe;break;case"boolean":he=Xe,_e=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!_e&&(he=!0)),Ue!==null&&re.id===void 0&&(re.id=Ue);var Ee="",et="",Ne=!1,Ge=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};Me.setHTML5Codebase=function(Fe,Ae){me=Fe,Ut(Fe,Ae)},Me.setJavaCodebase=Me.setJavaCodebaseVersion=Me.isCompiledInstalled=Me.setPreCompiledScriptPath=Me.setPreCompiledResourcePath=function(){},Me.setHTML5CodebaseVersion=function(Fe,Ae){var Je=parseFloat(Fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}We=Fe,At(Fe,Ae)},Me.getHTML5CodebaseVersion=function(){return ne},Me.getParameters=function(){return re},Me.setFontsCSSURL=function(Fe){z=Fe},Me.setGiacJSURL=function(Fe){},Me.setJNLPFile=function(Fe){Ee=Fe},Me.setJNLPBaseDir=function(Fe){},Me.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Je=re.id,Gt,gt=!1,Pt=0;Pt<arguments.length;Pt++){var de=arguments[Pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=de:Je=arguments[Pt]):typeof de=="boolean"?gt=de:de instanceof HTMLElement&&(Gt=de)}lt();function lt(){if(!ce){setTimeout(lt,200);return}Ae=Ke(Ae);var It=Gt||document.getElementById(Je);if(!It){console.log("possibly bug on ajax loading? ");return}if(Me.removeExistingApplet(It,!1),re.width===void 0&&It.clientWidth&&(re.width=It.clientWidth),re.height===void 0&&It.clientHeight&&(re.height=It.clientHeight),!(re.width&&re.height)&&Ae==="html5"&&(delete re.width,delete re.height),Ge=Ae,Ae==="screenshot")Ft(It,re);else{var rn=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?rn=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(rn=(!oe()||Fe())&&ge()),rn?(Ge="screenshot",we(It,re,gt,Ae)):Qe(It,re,gt)}}};function oe(){try{return window.self!==window.top}catch(Fe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Me.getViews=function(){return ae},Me.isJavaInstalled=function(){return!1};var ie=function(Fe){var Ae=function(Pt){var de=JSON.parse(Pt),lt=function(vt){return vt.type=="G"||vt.type=="E"},It=de.elements?de.elements.filter(lt)[0]:de;if(!It||!It.url){Je();return}re.fileName=It.url,se(It.settings||{}),ae.is3D=!0;var rn="https://www.geogebra.org/images/";Me.setPreviewImage(E||It.previewUrl,rn+"GeoGebra_loading.png",rn+"applet_play.png"),Fe()},Je=function(){re.onError&&re.onError(),dn("Error: Fetching material (id "+re.material_id+") failed.",re)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",gt="/materials/"+re.material_id+"?scope=basic";le("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(gt),Ae,Je)};function se(Fe){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Fe[Je]=!!Fe[Je]}),Ae.forEach(function(Je){re[Je]===void 0&&Fe[Je]!==void 0&&(re[Je]=Fe[Je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Fe,Ae,Je){var Gt=new XMLHttpRequest;Gt.open("GET",Fe),Gt.onload=function(){Ae(Gt.responseText)},Gt.onerror=Je,Gt.send()}Me.isHTML5Installed=function(){return!0},Me.getLoadedAppletType=function(){return Ge},Me.setPreviewImage=function(Fe,Ae,Je){E=Fe,b=Ae,x=Je},Me.removeExistingApplet=function(Fe,Ae){var Je;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Ge=null;var Gt=null;for(Je=0;Je<Fe.childNodes.length;Je++){var gt=Fe.childNodes[Je],Pt=gt.className;Pt==="applet_screenshot"?Ae?(gt.style.display="block",Ge="screenshot"):gt.style.display="none":Pt!=="applet_scaler prerender"&&(Fe.removeChild(gt),Gt=Pt&&Pt.indexOf("appletParameters")!=-1?gt.id:null,Je--)}var de=re.id!==void 0?re.id:Gt,lt=window[de];lt&&typeof lt.getBase64=="function"&&(lt.remove(),window[de]=null)},Me.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=Me.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},Me.startAnimation=function(){var Fe=Me.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},Me.stopAnimation=function(){var Fe=Me.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},Me.getAppletObject=function(){var Fe=re.id!==void 0?re.id:"ggbApplet";return window[Fe]},Me.resize=function(){};var ze=function(Fe,Ae,Je){var Gt=document.createElement("param");Gt.setAttribute("name",Ae),Gt.setAttribute("value",Je),Fe.appendChild(Gt)},Ie=function(Fe){return Fe&&Fe!=="false"},Qe=function(Fe,Ae,Je){te(ne)<=4.2&&(Je=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var gt=document.createElement("div");gt.classList.add("appletParameters","notranslate");var Pt=Ae.width,de=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(te(ne)<=4.4)Ie(Ae.showToolBar)&&(Ae.height-=7),Ie(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&Ie(Ae.showToolBar)&&(Ae.width=605,Pt=605);else{var lt=100;(Ie(Ae.showToolBar)||Ie(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),lt=Ie(Ae.showMenuBar)?245:155),Pt<lt&&(Ae.width=lt,Pt=lt)}gt.style.border="none",gt.style.display="inline-block";for(var It in Ae)Ae.hasOwnProperty(It)&&It!=="appletOnLoad"&>.setAttribute("data-param-"+It,Ae[It]);z&>.setAttribute("data-param-fontscssurl",z),Me.resize=function(){GGBAppletUtils.responsiveResize(Fe,Ae)},window.addEventListener("resize",function(Dt){Me.resize()});var rn=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Je&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||gt.setAttribute("data-param-showSplash","false");var vt=Fe.querySelector(".applet_scaler.prerender"),ke=vt!==null;if(ke)var xe=vt.querySelector(".ggb_preview");else{var xe=it(Pt,de,Ae.borderColor,!1);vt=document.createElement("div"),vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.style.width=Pt+"px",vt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vt,"66%"),te(ne)>=5?(Ae.appletOnLoad=function(Dt){var Rt=Fe.querySelector(".ggb_preview");Rt&&Rt.parentNode.removeChild(Rt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),rn(Dt)},ke||vt.appendChild(xe)):gt.appendChild(xe),vt.appendChild(gt),ke||Fe.appendChild(vt),setTimeout(function(){Me.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(gt),Fe.appendChild(ye),Ae.appletOnLoad=function(Dt){Me.resize(),rn(Dt)}}function ve(Dt,Rt){Rt&&typeof Rt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,Rt.appletOnLoad):renderGGBElement(Dt),dn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Rt)}function Le(Dt,Rt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:Rt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(sn){ve(sn.article,sn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Dt.className+=" geogebraweb")):ve(Dt,Rt)}if(Gt){scriptLoadStarted=!0;for(var je=0;je<gt.childNodes.length;je++){var nt=gt.childNodes[je].tagName;nt==="TABLE"&&(gt.removeChild(gt.childNodes[je]),je--)}if(ggbHTML5LoadedScript!==null){var St=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');St!=null&&St.parentNode.removeChild(St)}var Et=document.createElement("script"),$t=function(){Le(gt,Ae)};Et.src=et+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Et.src,dn("GeoGebra HTML5 codebase loaded: '"+et+"'.",Ae),!me&&(!We||We=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),$t()):et.requirejs?__webpack_require__.e(12).then(function(){var Dt=[__webpack_require__(12)];$t.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(Et.onload=$t,Fe.appendChild(Et))}else Le(gt,Ae);Ae.height=de,Ae.width=Pt},Ft=function(Fe,Ae,Je){var Gt=it(Ae.width,Ae.height,Ae.borderColor,Je),gt=document.createElement("div");gt.style.position="relative",gt.style.display="block",gt.style.width=Ae.width+"px",gt.style.height=Ae.height+"px",gt.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),gt.appendChild(Gt);var Pt=GGBAppletUtils.getScale(Ae,Fe,Je);Je?(Fe.appendChild(ut()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gt,"66%"),Fe.appendChild(gt),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(gt,Pt),gt.style.width=Ae.width+"px",gt.style.height=Ae.height+"px",gt.parentNode.style.width=Ae.width*Pt+"px",gt.parentNode.style.height=Ae.height*Pt+"px"),Me.resize=function(){ft(Fe,Gt,gt,Je)},window.addEventListener("resize",function(de){Me.resize()}),Me.resize()};function ft(Fe,Ae,Je,Gt){if(Fe.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var gt=GGBAppletUtils.getScale(re,Fe,Gt);Je.parentNode!==null&&(!isNaN(gt)&>!==1?(GGBAppletUtils.scaleElement(Je,gt),Je.parentNode.style.width=re.width*gt+"px",Je.parentNode.style.height=re.height*gt+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=re.width+"px",Je.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Me.onExitFullscreen=function(Fe,Ae){Ae.appendChild(Fe)};var we=function(Fe,Ae,Je,Gt){Ft(Fe,Ae,!0);for(var gt=function(){var lt=[];for(de=0;de<Fe.childNodes.length;de++)lt.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var It=window.GGBT_wsf_view.renderFullScreen(Fe,Ae.id),rn=document.getElementById("fullscreencontainer"),vt=jQuery(Fe).find(".fullscreencontent");vt.length>0?(It.remove(),vt.attr("id","fullscreencontent").show(),jQuery(rn).append(vt),window.dispatchEvent(new Event("resize"))):Qe(It,Ae,!1),window.GGBT_wsf_view.launchFullScreen(rn)}else Ge=Gt,Qe(Fe,Ae,!1);if(!window.GGBT_wsf_view)for(de=0;de<lt.length;de++)Fe.removeChild(lt[de])},Pt=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<Pt.length;de++)Pt[de].addEventListener("click",gt,!1),Pt[de].addEventListener("ontouchstart",gt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var Fe=document.createElement("div");if(Fe.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Ae:Je.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Je)}return Fe},it=function(Fe,Ae,Je,Gt){var gt=document.createElement("div");gt.className="ggb_preview",gt.style.position="absolute",gt.style.zIndex="90",gt.style.width=Fe-2+"px",gt.style.height=Ae-2+"px",gt.style.top="0px",gt.style.left="0px",gt.style.overflow="hidden",gt.style.backgroundColor="white";var Pt="lightgrey";Je!==void 0&&(Je==="none"?Pt="transparent":Pt=Je),gt.style.border="1px solid "+Pt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var lt,It,rn;if(!Gt){lt=document.createElement("img"),lt.style.position="absolute",lt.style.zIndex="1001",lt.style.opacity=1,de.style.opacity=.3,It=360,It>Fe/4*3&&(It=Fe/4*3),rn=It/5.8,lt.setAttribute("src",b),lt.setAttribute("width",It),lt.setAttribute("height",rn);var vt=(Fe-It)/2,ke=(Ae-rn)/2;lt.style.left=vt+"px",lt.style.top=ke+"px",gt.appendChild(lt)}}return gt.appendChild(de),gt},Ke=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},tt=["web","webSimple","web3d","tablet","tablet3d","phone"],At=function(Fe,Ae){if(ne=Fe,Ae){Ut(ne,!0);return}var Je=!he;if(Je){var Gt=te(ne);!isNaN(Gt)&&Gt<4.4&&(Je=!1)}var gt,Pt;window.location.protocol.substr(0,4)==="http"?gt=window.location.protocol:gt="http:";var de=ne.indexOf("//");de>0?Pt=ne:de===0?Pt=gt+ne:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var lt in tt)if(ne.slice(tt[lt].length*-1)===tt[lt]||ne.slice((tt[lt].length+1)*-1)===tt[lt]+"/"){Ut(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ie(re.showToolBar)&&!Ie(re.showMenuBar)&&!Ie(re.showAlgebraInput)&&!Ie(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",Ut(Pt,!1)},Ut=function(Fe,Ae){if(Fe.requirejs){et=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),et=Fe,Ae===null&&(Ae=Fe.indexOf("http")===-1),Ne=Ae,a="web.nocache.js",y=!1;var Je=et.split("/");Je.length>1&&(!Ae&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):tt.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Fe.split("/"),ne=Je[Je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Gt=parseFloat(ne);Gt!==NaN&&Gt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),At("5.0",Ae))},dn=function(Fe,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(Fe)};re.material_id!==void 0?ie(pn):pn();function pn(){var Fe=st;We!==null?Fe=We:parseFloat(Fe)<5&&(Fe="5.0"),At(Fe,!1),me!==null&&Ut(me,Ne),ce=!0}return Me},GGBAppletUtils=function(){"use strict";function Me(){return window.GGBT_wsf_edit!==void 0}function st(ce,We){We!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+We+","+We+")",ce.style.webkitTransform="scale("+We+","+We+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,We,me,ot,Xe,Ee){var et=null;if(Ee!=null&&Ee!="")for(var Ne=ce.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Ee+" ")>-1){et=Ne;break}else Ne=Ne.parentNode;var Ge=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(et)Ge=et.offsetWidth,ne=Math.max(ot?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ge):(Ge=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ge&&(Xe===void 0||!Xe)&&(document.dir==="rtl"?(E=Ge-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((me===void 0||!me)&&We>0&&We+y<Ge?Ge=We:Ge-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Ge,height:ne}}function ae(ce,We,me,ot,Xe){if(ce.isScreenshoGenerator)return 1;var Ee=ot!==void 0&&ot,et=ce.noScaleMargin!=null&&ce.noScaleMargin,Ne=function(ee){return ee&&ee!=="false"},Ge=Ne(ce.autoHeight),ne=re(We,ce.width,me,Ge,Ee&&window.GGBT_wsf_view||et,Xe),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=We.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ee?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function he(ce,We,me){var ot=1,Xe,Ee=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ee=ce.allowUpscale),ce.hasOwnProperty("scale")&&(ot=parseFloat(ce.scale),(isNaN(ot)||ot===null||ot===0)&&(ot=1),ot>1&&(Ee=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Xe=ae(ce,We,Ee,me,ce.scaleContainerClass);else return ot;return Ee&&(!ce.hasOwnProperty("scale")||ot===1)?Xe:Math.min(ot,Xe)}function _e(ce){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),ot=ce.getBoundingClientRect(),Xe=(We-ot.width)/2,Ee=(me-ot.height)/2;Ee<0&&(Ee=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?ce.style.left="40px":ce.style.left=Xe+"px",ce.style.top=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?ce.style.top="40px":ce.style.top=Ee+"px",ce.style.left=Xe+"px")}function Ue(ce,We){var me=ce.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var ot=he(We,ce);Me()&&me.setAttribute("data-param-scale",ot);for(var Xe=null,Ee=0;Ee<ce.childNodes.length;Ee++)if(ce.childNodes[Ee].className!==void 0&&ce.childNodes[Ee].className.match(/^applet_scaler/)){Xe=ce.childNodes[Ee];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var et=We.id!==void 0?We.id:"ggbApplet",Ne=window[et];(Ne==null||!Ne.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(ot)&&ot!==1?(Xe.parentNode.style.width=We.width*ot+"px",Xe.parentNode.style.height=We.height*ot+"px",st(Xe,ot)):(st(Xe,1),Xe.parentNode.style.width=We.width+"px",Xe.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Me,positionCenter:_e,getScale:he,scaleElement:st}}();__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 Me=n.location.search;return Me.indexOf(J)!=-1||Me.indexOf(K)!=-1}function q(Me,st){}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(Me){var st=s[L].bindings;s[L].bindings=function(){for(var re=st?st():{},ae=Me[webModule.__softPermutationId],he=O;he<ae.length;he++){var _e=ae[he];re[_e[O]]=_e[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Me=o.createElement(Q);if(Me.id=L,Me.style.cssText=R+S,Me.tabIndex=-1,o.body.appendChild(Me),t=Me.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(Me){function st(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=he();if(_e){ae();return}function Ue(){if(!_e){if(!he())return;_e=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var ce=setInterval(function(){Ue()},$)}function re(ae){var he=u(),_e=he.body,Ue=he.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ae,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),_e.appendChild(Ue)}st(function(){re(Me)})}webModule.__startLoadingFragment=function(Me){return C(Me)},webModule.__installRunAsyncCode=function(Me){var st=u(),re=st.body,ae=st.createElement(_);ae.language=ab,ae.text=Me,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Me){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Me){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Me){var st=c[Me];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function Me(ce){var We=ce.lastIndexOf(rb);We==-1&&(We=ce.length);var me=ce.indexOf(sb);me==-1&&(me=ce.length);var ot=ce.lastIndexOf(tb,Math.min(me,We));return ot>=O?ce.substring(O,ot+P):W}function st(ce){if(!ce.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=ce+vb,ce=Me(We.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),We=O;We<ce.length;++We)if(ce[We].src.indexOf(xb)!=-1)return Me(ce[We].src);return W}function he(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function _e(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ue=re();return Ue==W&&(Ue=ae()),Ue==W&&(Ue=he()),Ue==W&&_e()&&(Ue=Me(o.location.href)),Ue=st(Ue),Ue}function C(Me){return Me.match(/^\//)||Me.match(/^[a-zA-Z]+:\/\//)?Me:webModule.__moduleBase+Me}function D(){var Me=[],st=O,re=[],ae=[];function he(ce){var We=ae[ce](),me=re[ce];if(We in me)return We;var ot=[];for(var Xe in me)ot[me[Xe]]=Xe;throw r&&r(ce,ot,We),null}if(__gwt_isKnownPropertyValue=function(ce,We){return We in re[ce]},webModule.__getPropMap=function(){var ce={};for(var We in re)re.hasOwnProperty(We)&&(ce[We]=he(We));return ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var Ue=_e.indexOf(Db);Ue!=-1&&(st=parseInt(_e.substring(Ue+P),$),_e=_e.substring(O,Ue))}catch(ce){}return webModule.__softPermutationId=st,C(_e+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(Me,st,re){"use strict";re.d(st,{Ax:function(){return Ue},Ds:function(){return ce},KI:function(){return me},SI:function(){return _e},f1:function(){return he}});var ae=re(11320);function he(ot){let Xe=!0;if(ot.length>0){for(let Ee=0;Ee<ot.length;Ee++)if(ot[Ee].compile_success==0||!ot[Ee].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function _e(ot,Xe=""){let Ee=[];for(let et=0;et<ot.length;et++){let Ne=ot[et],Ge=Xe?`${Xe}/${Ne.name}`:`${Ne.name}`;Ee.push({title:Ne.name,type:Ne.type,isLeaf:Ne.type!=="tree",key:Ge})}return Ee}function Ue(ot,Xe,Ee){for(let et=0;et<ot.length;et++){let Ne=ot[et];if(Ne.key===Xe){Ne.children=Ee;break}Ne.children&&Ue(Ne.children,Xe,Ee)}return ot}function ce(ot,Xe,Ee){let et;return function(){let Ne=this,Ge=arguments,ne=function(){et=null,Ee||ot.apply(Ne,Ge)},a=Ee&&!et;clearTimeout(et),et=setTimeout(ne,Xe),a&&ot.apply(Ne,Ge)}}const We=!0,me=ae.Z.API_SERVER},63205:function(Me,st,re){"use strict";re.d(st,{Z:function(){return Ne}});var ae=re(67294),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=re(94184),Ue=re.n(_e),ce=re(57953),We=re(15979),me=re(33170),ot=re(28706),Xe=re(35973),Ee=(Ge,ne,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(te){E(te)}},x=ee=>{try{z(a.throw(ee))}catch(te){E(te)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(Ge,ne)).next())}),Ne=({data:Ge,className:ne,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Xe.useIntl)(),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),[se,le]=(0,ae.useState)(!1),[ze,Ie]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ge.current||(ge.current=document.createElement("style"),document.head.appendChild(ge.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),ge.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Qe()):(document.body.removeAttribute("data-custom"),ge.current&&(document.head.removeChild(ge.current),ge.current=null))},[Ge==null?void 0:Ge.visible]);const Qe=()=>Ee(void 0,null,function*(){le(!0),Ie("\u6B63\u5728\u52A0\u8F7D\u4E2D");const it=yield(0,ot.ZJ)(Ge==null?void 0:Ge.src);te.current.src="",te.current.src=it,te.current.onload=function(){ut()},le(!1),Ie("")}),Ft=()=>{document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",E()},ft=it=>Ee(void 0,null,function*(){le(!0),Ie("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ke=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:it.dataUrl}});Ke!=null&&Ke.id&&!z?(yield(0,me.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ke==null?void 0:Ke.id,settings:JSON.stringify(it.state)}})).status===0&&b():Ke!=null&&Ke.id&&b(Ke),document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",le(!1),Ie("")}),we=()=>{const it=document.querySelector('a[href="https://markerjs.com/"]');it&&it.parentNode&&(it.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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(tt=>{const At=document.querySelector(tt.name);At&&At.setAttribute("title",tt.title)})},ut=()=>{oe.current=new We.hP(te.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",ft),oe.current.addEventListener("beforeclose",Ft),x&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),Ge!=null&&Ge.snapshotData&&oe.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),we()},300)};return ae.createElement(ae.Fragment,null,(Ge==null?void 0:Ge.visible)&&ae.createElement(ce.Z,{spinning:se,tip:ze,style:{position:"absolute"}},ae.createElement("div",{ref:ie,className:Ue()(he.imageDimensions,ne,a?he.fullWidth:""),style:y},ae.createElement("img",{className:he.img,ref:te}))))}},36527:function(Me,st,re){"use strict";var ae=re(67294),he=re(71230),_e=re(15746),Ue=re(66368),ce=re(71577),We=re(85725),me=re(71736),ot=re(84279),Xe=re(35973),Ee=re(67294);const et=(0,ae.forwardRef)(({callback:Ne,showSaveButton:Ge,value:ne=""},a)=>{const y=(0,ae.useRef)(),E=(0,Xe.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ee.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},b.map((oe,ge)=>Ee.createElement(_e.Z,{flex:"110px",className:me.Z.item},Ee.createElement("div",null,Ee.createElement(We.Z,{value:`$$${oe.value}$$`}),oe.name),Ee.createElement("div",{className:me.Z.children},oe.children.map((ie,se)=>Ee.createElement("div",{key:se},Ee.createElement("h1",null,ie.name),Ee.createElement(he.Z,{gutter:[10,10]},ie.data.map((le,ze)=>Ee.createElement(_e.Z,{key:ze,onClick:()=>z(le),className:me.Z.diamond},Ee.createElement(We.Z,{value:"`$$"+le.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ee.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},x.map((oe,ge)=>Ee.createElement(_e.Z,{flex:"110px",className:me.Z.item},Ee.createElement("div",null,Ee.createElement(We.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Ee.createElement("div",{className:me.Z.children},oe.children.map((ie,se)=>Ee.createElement("div",{key:se},ie.name&&Ee.createElement("h1",null,ie.name),Ee.createElement(he.Z,{gutter:[10,10]},ie.data.map((le,ze)=>Ee.createElement(_e.Z,{key:ze,onClick:()=>z(le),className:me.Z.diamond},Ee.createElement(We.Z,{value:"`$$"+le.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var ge=oe.innerText;return Ne&&Ne(ge),ge};return(0,ae.useImperativeHandle)(a,()=>({getData:te})),Ee.createElement("div",{className:me.Z.mathWrap},Ee.createElement(Ue.default,{defaultActiveKey:"1",items:ee}),Ee.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},ne||""),Ge&&Ee.createElement("div",{className:me.Z.button},Ee.createElement(ce.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});st.Z=et},57444:function(Me,st,re){"use strict";re.d(st,{h:function(){return te}});var ae=re(67294),he=re(11713),_e=re(22150),Ue=re(71577),ce=re(4631),We=re.n(ce),me=re(71749),ot=re(30483),Xe=re(35973),Ee=Object.defineProperty,et=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,ge,ie)=>ge in oe?Ee(oe,ge,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[ge]=ie,E=(oe,ge)=>{for(var ie in ge||(ge={}))ne.call(ge,ie)&&y(oe,ie,ge[ie]);if(Ge)for(var ie of Ge(ge))a.call(ge,ie)&&y(oe,ie,ge[ie]);return oe},b=(oe,ge)=>et(oe,Ne(ge));const x=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};st.Z=({callback:oe,onCancel:ge})=>{const[ie,se]=(0,ae.useState)("python");function le(Qe){se(ee[Qe][1])}function ze(Qe){oe(Qe)}const Ie=(0,Xe.useIntl)();return ae.createElement(_e.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ze,style:{width:500}}),ae.createElement(_e.default.Item,{label:Ie.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(he.default,{getPopupContainer:Qe=>Qe.parentNode,onChange:le},Object.keys(ee).map(Qe=>ae.createElement(x,{key:Qe,value:Qe},ee[Qe][0])))),ae.createElement(_e.default.Item,{label:Ie.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(te,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ie.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ue.ZP,{type:"ghost",onClick:ge},Ie.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:oe,onChange:ge,mode:ie,options:se={}}){const le=(0,ae.useRef)(),[ze,Ie]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ze){let Qe=function(Ft){const ft=Ft.getValue();ge&&ge(ft)};return ze.on("change",Qe),()=>{ze.off("change",Qe)}}},[ze,ge]),(0,ae.useEffect)(()=>{ze&&ze.setOption("mode",ie)},[ze,ie]),(0,ae.useEffect)(()=>{ze&&(oe!==ze.getValue()||oe==="")&&setTimeout(()=>{ze.setValue(oe||"")},300)},[ze,oe]),(0,ae.useEffect)(()=>{if(le.current&&!ze){const Qe=We().fromTextArea(le.current,E({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Ie(Qe)}},[le.current,ze]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:le}))}},35567:function(Me,st,re){"use strict";re.d(st,{Z:function(){return _n}});var ae=re(67294),he=re(4631),_e=re.n(he),Ue=re(91033),ce=re(71749),We=re(57341),me=re(82801),ot=re(88386),Xe=re(49047),Ee=re(80785),et=re(85725),Ne=({value:fe="",className:pe,showTextOnly:Pe,showLines:He,style:mt={}})=>{const pt=(0,ae.useMemo)(()=>"",[fe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:pt}}))},Ge=re(35973),ne=re(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(fe,pe,Pe)=>pe in fe?a(fe,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[pe]=Pe,te=(fe,pe)=>{for(var Pe in pe||(pe={}))x.call(pe,Pe)&&ee(fe,Pe,pe[Pe]);if(b)for(var Pe of b(pe))z.call(pe,Pe)&&ee(fe,Pe,pe[Pe]);return fe},oe=(fe,pe)=>y(fe,E(pe));function ge({onActionCallback:fe,title:pe,icon:Pe,actionName:He,className:mt="",children:pt}){function on(){fe(He)}return ne.createElement("a",{title:pe,className:mt,onClick:on},ne.createElement("i",{className:`${Pe}`}),pt)}var ie=({watch:fe,showNullButton:pe,showNullProgramButton:Pe,onActionCallback:He,fullScreen:mt,insertTemp:pt,hidetoolBar:on,extraUse:Qt})=>{const Ot=(0,Ge.useIntl)(),Yn=[...[{title:Ot.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Ot.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Ot.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Ot.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Ot.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Ot.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Ot.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Ot.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Ot.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Ot.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Ot.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Ot.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Ot.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Ot.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Ot.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Ot.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${fe?Ot.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Ot.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!on&&Yn.map((zn,Ye)=>ne.createElement("li",{key:Ye},zn.actionName?ne.createElement(ge,oe(te({},zn),{onActionCallback:He})):ne.createElement("span",{className:"v-line"}))),pe?ne.createElement("li",null,ne.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:He},ne.createElement("span",{className:"fill-tip"},Ot.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Ot.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Pe?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:He},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:He},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,pt&&ne.createElement("li",null,ne.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:Ot.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${pt}`,onActionCallback:He},ne.createElement("span",{className:"fill-tip"},Ot.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Qt&&ne.createElement("li",null,Qt),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ge,{icon:`${mt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:He})))},se=re(76621),le=re(22150),ze=re(69677),Ie=re(71577),Qe=Object.defineProperty,Ft=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Ke=(fe,pe,Pe)=>pe in fe?Qe(fe,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[pe]=Pe,tt=(fe,pe)=>{for(var Pe in pe||(pe={}))ut.call(pe,Pe)&&Ke(fe,Pe,pe[Pe]);if(we)for(var Pe of we(pe))it.call(pe,Pe)&&Ke(fe,Pe,pe[Pe]);return fe},At=(fe,pe)=>Ft(fe,ft(pe));const Ut={labelCol:{span:4},wrapperCol:{span:20}};var dn=({callback:fe,onCancel:pe})=>{function Pe(mt){fe(mt)}const He=(0,Ge.useIntl)();return ae.createElement(le.default,At(tt({},Ut),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ae.createElement(le.default.Item,{label:He.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ze.default,null)),ae.createElement(le.default.Item,{label:He.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ze.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},He.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ie.ZP,{type:"ghost",onClick:pe},He.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},pn=re(57444),Fe=re(70859),Ae=re(14446),Je=re(71230),Gt=re(63205),gt=re(67294),Pt=({callback:fe,onCancel:pe})=>{const Pe=document.createElement("canvas"),He=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,He.fillStyle="#ffffff",He.fillRect(0,0,Pe.width,Pe.height);const mt=Pe.toDataURL("image/png");return gt.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gt.createElement(Je.Z,{style:{height:"100vh"}},gt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mt,visible:!0,title:String(Date.now())},onOk:pt=>{fe({src:pt.url})},onClose:pe})))},de=re(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 pe=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.x,pe))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe,Pe.position.y))}),fe.commitTransaction("aligning left")},lt.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var pe=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var He=Pe.actualBounds.x+Pe.actualBounds.width;pe=Math.max(He,pe)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe-Pe.actualBounds.width,Pe.position.y))}),fe.commitTransaction("aligning right")},lt.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var pe=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.y,pe))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,pe))}),fe.commitTransaction("alignTop")},lt.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var pe=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var He=Pe.actualBounds.y+Pe.actualBounds.height;pe=Math.max(He,pe)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,pe-Pe.actualBounds.height))}),fe.commitTransaction("aligning bottom")},lt.prototype.alignCenterX=function(){var fe=this.diagram,pe=fe.selection.first();if(pe){fe.startTransaction("aligning Center X");var Pe=pe.actualBounds.x+pe.actualBounds.width/2;fe.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Pe-He.actualBounds.width/2,He.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},lt.prototype.alignCenterY=function(){var fe=this.diagram,pe=fe.selection.first();if(pe){fe.startTransaction("aligning Center Y");var Pe=pe.actualBounds.y+pe.actualBounds.height/2;fe.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Pe-He.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},lt.prototype.alignColumn=function(fe){var pe=this.diagram;pe.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Pe=new Array;pe.selection.each(function(Qt){Qt instanceof go.Link||Pe.push(Qt)});for(var He=0;He<Pe.length-1;He++){var mt=Pe[He],pt=mt.actualBounds.y+mt.actualBounds.height+fe,on=Pe[He+1];on.move(new go.Point(mt.actualBounds.x,pt))}pe.commitTransaction("align Column")},lt.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var pe=this.diagram;pe.startTransaction("align Row");var Pe=new Array;pe.selection.each(function(Qt){Qt instanceof go.Link||Pe.push(Qt)});for(var He=0;He<Pe.length-1;He++){var mt=Pe[He],pt=mt.actualBounds.x+mt.actualBounds.width+fe,on=Pe[He+1];on.move(new go.Point(pt,mt.actualBounds.y))}pe.commitTransaction("align Row")},lt.prototype.canRotate=function(fe){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<1)},lt.prototype.rotate=function(fe){fe===void 0&&(fe=90);var pe=this.diagram;pe.startTransaction("rotate "+fe.toString());var pe=this.diagram;pe.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=fe)}),pe.commitTransaction("rotate "+fe.toString())},lt.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var pe=new go.Map;fe.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var He=0;Pe.parts.each(function(mt){if(!mt.isSelected){var pt=mt.zOrder;isNaN(pt)?mt.zOrder=0:He=Math.max(He,pt)}}),pe.set(Pe,He)}),fe.selection.each(function(Pe){lt._assignZOrder(Pe,pe.get(Pe.layer)+1)}),fe.commitTransaction("pullToFront")},lt.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var pe=new go.Map;fe.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var He=0;Pe.parts.each(function(mt){if(!mt.isSelected){var pt=mt.zOrder;isNaN(pt)?mt.zOrder=0:He=Math.min(He,pt)}}),pe.set(Pe,He)}),fe.selection.each(function(Pe){lt._assignZOrder(Pe,pe.get(Pe.layer)-1-lt._findGroupDepth(Pe))}),fe.commitTransaction("pushToBack")},lt._assignZOrder=function(fe,pe,Pe){Pe===void 0&&(Pe=fe),fe.layer===Pe.layer&&(fe.zOrder=pe),fe instanceof go.Group&&fe.memberParts.each(function(He){lt._assignZOrder(He,pe+1,Pe)})},lt._findGroupDepth=function(fe){if(fe instanceof go.Group){var pe=0;return fe.memberParts.each(function(Pe){pe=Math.max(pe,lt._findGroupDepth(Pe))}),pe+1}else return 0},lt.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var pe=fe.lastInput;if(pe.key==="Up"||pe.key==="Down"||pe.key==="Left"||pe.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},lt.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(pe){fe.push(pe)}),this.diagram.parts.each(function(pe){fe.push(pe)}),fe},lt.prototype._arrowKeyMove=function(){var fe=this.diagram,pe=fe.lastInput,Pe=0,He=0;if(pe.control||pe.meta)Pe=1,He=1;else if(fe.grid!==null){var mt=fe.grid.gridCellSize;He=mt.width,Pe=mt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(pt){pe.key==="Up"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y-Pe)):pe.key==="Down"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y+Pe)):pe.key==="Left"?pt.move(new go.Point(pt.actualBounds.x-He,pt.actualBounds.y)):pe.key==="Right"&&pt.move(new go.Point(pt.actualBounds.x+He,pt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},lt.prototype._arrowKeySelect=function(){var fe=this.diagram,pe=fe.lastInput,Pe=null;pe.key==="Up"?Pe=this._findNearestPartTowards(270):pe.key==="Down"?Pe=this._findNearestPartTowards(90):pe.key==="Left"?Pe=this._findNearestPartTowards(180):pe.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(pe.shift?Pe.isSelected=!0:pe.control||pe.meta?Pe.isSelected=!Pe.isSelected:fe.select(Pe))},lt.prototype._findNearestPartTowards=function(fe){var pe=this.diagram.selection.first();if(pe===null)return null;for(var Pe=pe.actualBounds.center,He=this._getAllParts(),mt=1/0,pt=pe,on=0;on<He.length;on++){var Qt=He[on];if(Qt!==pe&&Qt.canSelect()){var Ot=Qt.actualBounds.center,Fn=Pe.directionPoint(Ot),Yn=this._angleCloseness(Fn,fe);if(Yn<=45){var zn=Pe.distanceSquaredPoint(Ot);zn*=1+Math.sin(Yn*Math.PI/180),zn<mt&&(mt=zn,pt=Qt)}}}return pt},lt.prototype._angleCloseness=function(fe,pe){return Math.min(Math.abs(pe-fe),Math.min(Math.abs(pe+360-fe),Math.abs(pe-360-fe)))},lt.prototype._arrowKeyTree=function(){var fe=this.diagram,pe=fe.selection.first();if(pe instanceof go.Node){var Pe=fe.lastInput;if(Pe.key==="Right"){if(!pe.isTreeLeaf)if(!pe.isTreeExpanded)fe.commandHandler.canExpandTree(pe)&&fe.commandHandler.expandTree(pe);else{var He=this._sortTreeChildrenByY(pe).first();He!==null&&fe.select(He)}}else if(Pe.key==="Left")if(!pe.isTreeLeaf&&pe.isTreeExpanded)fe.commandHandler.canCollapseTree(pe)&&fe.commandHandler.collapseTree(pe);else{var mt=pe.findTreeParentNode();mt!==null&&fe.select(mt)}else if(Pe.key==="Up"){var mt=pe.findTreeParentNode();if(mt!==null){var pt=this._sortTreeChildrenByY(mt),on=pt.indexOf(pe);if(on>0){for(var Qt=pt.elt(on-1);Qt!==null&&Qt.isTreeExpanded&&!Qt.isTreeLeaf;){var Ot=this._sortTreeChildrenByY(Qt);Qt=Ot.last()}Qt!==null&&fe.select(Qt)}else fe.select(mt)}}else if(Pe.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var He=this._sortTreeChildrenByY(pe).first();He!==null&&fe.select(He)}else for(;pe!==null;){var mt=pe.findTreeParentNode();if(mt===null)break;var pt=this._sortTreeChildrenByY(mt),on=pt.indexOf(pe);if(on<pt.length-1){fe.select(pt.elt(on+1));break}else pe=mt}var Fn=fe.selection.first();Fn!==null&&fe.scrollToRect(Fn.actualBounds)}},lt.prototype._sortTreeChildrenByY=function(fe){var pe=new go.List().addAll(fe.findTreeChildrenNodes());return pe.sort(function(Pe,He){var mt=Pe.location,pt=He.location;return mt.y<pt.y?-1:mt.y>pt.y?1:mt.x<pt.x?-1:mt.x>pt.x?1:0}),pe},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 It=lt,rn=re(18023),vt=re(15746),ke=re(33170),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),ve=(fe,pe,Pe)=>new Promise((He,mt)=>{var pt=Ot=>{try{Qt(Pe.next(Ot))}catch(Fn){mt(Fn)}},on=Ot=>{try{Qt(Pe.throw(Ot))}catch(Fn){mt(Fn)}},Qt=Ot=>Ot.done?He(Ot.value):Promise.resolve(Ot.value).then(pt,on);Qt((Pe=Pe.apply(fe,pe)).next())});function Le({onCancel:fe,callback:pe}){let Pe=(0,ae.useRef)(),He=(0,ae.useRef)(),mt=(0,ae.useRef)(),pt=(0,ae.useRef)(!1);const on=(0,ae.useRef)(!1),[Qt,Ot]=(0,ae.useState)(0);function Fn(){const Ye=de.bx.make,Yt={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"};Pe.current=new de.S0(He.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ze=>{var Lt=Ze.diagram.commandHandler.addTopLevelParts(Ze.diagram.selection,!0);Lt||Ze.diagram.currentTool.doCancel()},commandHandler:Ye(It),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ze=>{var Lt=Ze.subject;Lt.location=Lt.location.copy().snapToGridPoint(Ze.diagram.grid.gridOrigin,Ze.diagram.grid.gridCellSize),setTimeout(()=>{Ze.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ze=>{var Lt=Ze.subject;setTimeout(()=>{Ze.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ze=>{var Lt=Ze.parameter.part;Lt.invalidateConnectedLinks();var yt=Ze.subject;Ze.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Ye(de.bn,{name:"SHAPE",fill:Yt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ue(Ze,Lt){var yt=(at,gn)=>{at.handled=!0,at.diagram.model.commit(nn=>{var Bn=gn.part.adornedPart,En=new de.E9().setRectSpot(Bn.actualBounds,Ze);En.subtract(Bn.location),En.scale(2,2),En.x+=Math.sign(En.x)*130,En.y+=Math.sign(En.y)*130,En.add(Bn.location),En.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var Gn=nn.copyNodeData(Bn.data);nn.setGroupKeyForNodeData(Gn,nn.getGroupKeyForNodeData(Bn.data)),nn.addNodeData(Gn);var ea={from:Bn.key,to:nn.getKeyForNodeData(Gn)};nn.addLinkData(ea);var oa=at.diagram.findNodeForData(Gn);oa.location=En,at.diagram.select(oa),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:Lt,alignment:Ze,alignmentFocus:Ze.opposite(),width:Ze.equals(de.z6.Top)||Ze.equals(de.z6.Bottom)?25:18,height:Ze.equals(de.z6.Top)||Ze.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Yt.white,strokeWidth:4,mouseEnter:(at,gn)=>gn.fill="dodgerblue",mouseLeave:(at,gn)=>gn.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function Be(Ze){return Ye(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Lt,yt)=>yt.fill="dodgerblue",mouseLeave:(Lt,yt)=>yt.fill="orange",click:(Lt,yt)=>{Lt.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},Ze||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),ue(de.z6.Top,"TriangleUp"),ue(de.z6.Left,"TriangleLeft"),ue(de.z6.Right,"TriangleRight"),ue(de.z6.Bottom,"TriangleDown"),Be({alignment:new de.z6(.75,0)}));function be(Ze,Lt){return(yt,at)=>{yt.handled=!0,yt.diagram.model.commit(gn=>{gn.set(at.part.adornedPart.data,Ze,Lt)})}}function $e(Ze,Lt){return Lt||(Lt="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ze,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.stroke="dodgerblue",mouseLeave:(yt,at)=>at.stroke="lightgray",click:be(Lt,Ze),contextClick:be(Lt,Ze)})}function qe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",$e(Yt.white,"fill"),$e(Yt.beige,"fill"),$e(Yt.extralightblue,"fill"),$e(Yt.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",$e(Yt.lightgray,"fill"),$e(Yt.lightgreen,"fill"),$e(Yt.lightblue,"fill"),$e(Yt.lightred,"fill")))]}function Re(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",$e(Yt.black),$e(Yt.green),$e(Yt.blue),$e(Yt.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",$e(Yt.white),$e(Yt.magenta),$e(Yt.purple),$e(Yt.orange)))]}function Ve(Ze,Lt){return Lt||(Lt="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:Ze,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:be(Lt,Ze),contextClick:be(Lt,Ze)})}function Te(Ze,Lt){return Lt||(Lt="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ze,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:be(Lt,Ze),contextClick:be(Lt,Ze)})}function Tt(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ve(1),Ve(2),Ve(3),Ve(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Te(null),Te([2,4]),Te([4,4])))]}function wt(Ze,Lt){return Lt||(Lt="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ze,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.fill="dodgerblue",mouseLeave:(yt,at)=>at.fill="lightgray",click:be(Lt,Ze),contextClick:be(Lt,Ze)})}Pe.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",wt("Rectangle"),wt("RoundedRectangle"),wt("Ellipse"),wt("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",wt("Parallelogram2"),wt("ManualOperation"),wt("Procedure"),wt("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",wt("Terminator"),wt("CreateRequest"),wt("Document"),wt("TriangleDown"))),qe(),Re(),Tt()),Pe.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ze,Lt)=>{var yt=Lt.addMembers(Lt.diagram.selection,!0);yt||Lt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:Yt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Be({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=Ye("ContextMenu",qe(),Re(),Tt()),Pe.current.linkTemplate=Ye(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ze=>Ze>=1?10:0),new de.KX("toShortLength","dir",Ze=>Ze>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze===1)),Ye(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze>=1),new de.KX("width","thickness",Ze=>7+3*Ze),new de.KX("height","thickness",Ze=>7+3*Ze),new de.KX("segmentOffset","thickness",Ze=>new de.E9(-15,4+1.5*Ze))),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze===2),new de.KX("width","thickness",Ze=>7+3*Ze),new de.KX("height","thickness",Ze=>7+3*Ze),new de.KX("segmentOffset","thickness",Ze=>new de.E9(-15,4+1.5*Ze))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:kt(2)},new de.KX("pathPattern","thickness",kt)),Be({alignmentFocus:new de.z6(0,0,-6,-4)}));function kt(Ze){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ze+4).toString()+" H3"})}function tn(Ze){var Lt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ze===0?Lt="M0 0 M16 16 M0 8 L16 8":Ze===2&&(Lt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:Lt,margin:2,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:be("dir",Ze),contextClick:be("dir",Ze)})}function Oe(Ze){var Lt=(yt,at)=>{yt.handled=!0,yt.diagram.model.commit(gn=>{var nn=at.part.adornedPart;gn.set(nn.data,Ze?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ze?nn.toNode:nn.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:Lt,contextClick:Lt})}function cn(Ze,Lt){var yt=0,at=de.z6.RightSide;Ze.equals(de.z6.Top)?(yt=270,at=de.z6.TopSide):Ze.equals(de.z6.Left)?(yt=180,at=de.z6.LeftSide):Ze.equals(de.z6.Bottom)&&(yt=90,at=de.z6.BottomSide),Lt||(yt-=180);var gn=(nn,Bn)=>{nn.handled=!0,nn.diagram.model.commit(En=>{var Gn=Bn.part.adornedPart;En.set(Gn.data,Lt?"toSpot":"fromSpot",de.z6.stringify(at)),(Lt?Gn.toNode:Gn.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:Ze,alignmentFocus:Ze.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(nn,Bn)=>Bn.background="dodgerblue",mouseLeave:(nn,Bn)=>Bn.background="transparent",click:gn,contextClick:gn})}Pe.current.linkTemplate.contextMenu=Ye("ContextMenu",Re(),Tt(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",tn(0),tn(1),tn(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",Oe(!1),cn(de.z6.Top,!1),cn(de.z6.Left,!1),cn(de.z6.Right,!1),cn(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Oe(!0),cn(de.z6.Top,!0),cn(de.z6.Left,!0),cn(de.z6.Right,!0),cn(de.z6.Bottom,!0)))));const Tn=`{ "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 Rn=["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 In(Ze){return console.log("shapeName:",Ze),Rn.indexOf(Ze)>=0}var Cn=new de.YI(mt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ze=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ze.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ze){var Lt;const yt=Ze.subject.part;var at=(Lt=document.activeElement)==null?void 0:Lt.value;typeof at=="string"&&at.trim()===""&&Pe.current.model.commit(function(gn){gn.set(yt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Ye(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Yn=()=>ve(this,null,function*(){var Ye=Pe.current.makeImage();const Yt=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});pe({src:Yt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{Fn()},500),Ot(Qt+1),()=>{Pe.current=null}),[]);const zn=(0,Ge.useIntl)();return ye.createElement("div",{ref:on,className:pt.current?`${xe.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(Je.Z,null,ye.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(vt.Z,{onClick:()=>{var Ye,Yt,ue=Pe.current.selection.first();if(pt.current=!pt.current,document.activeElement&&ue){let Be=(Yt=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:Yt.trim();typeof Be=="string"&&Pe.current.model.commit(function(be){be.set(ue.data,"text",Be||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ot(Qt+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},zn.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",zn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:fe},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:xe.flowChartWrp},ye.createElement("div",{style:{display:"flex",height:"100%"}},ye.createElement("div",{style:{width:"300px",height:"100%"}},ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:xe.myPaletteDiv,ref:mt})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:He,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement(Ie.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},zn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var je=Le,nt=re(78045),St=re(31795);const Et=nt.ZP.Group,$t={margin:"0 8px"};var Dt=({callback:fe,onCancel:pe})=>{function Pe(mt){fe(mt)}const He=(0,Ge.useIntl)();return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:$t},He.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:$t},He.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(St.Z,null)),ae.createElement("span",{style:$t},He.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(St.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:$t},He.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Et,null,ae.createElement(nt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(nt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(nt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(nt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},He.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ie.ZP,{type:"ghost",onClick:pe},He.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Rt=re(47897),sn=re(61016),Jt=re.n(sn),Zt=(0,ae.forwardRef)(({use3d:fe,width:pe,height:Pe,callback:He,showSaveButton:mt},pt)=>{const on=(0,ae.useRef)(),Qt=(0,ae.useRef)(),Ot=(0,Ge.useIntl)(),[Fn,Yn]=(0,ae.useState)(!1),zn=(0,ae.useRef)({id:on,appName:"graphing",width:pe||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Qt.current=new(Jt())(zn.current,!0),window.onload=function(){Qt.current.inject("applet_container")}},[]);const Ye=()=>{var Yt=window.ggbApplet.getPNGBase64(1,!0,72);return He&&He(Yt),Yt};return(0,ae.useEffect)(()=>{zn.current.appName=Fn?"3D":"graphing",Qt.current.inject("applet_container")},[Fn]),(0,ae.useEffect)(()=>{Yn(fe)},[fe]),(0,ae.useImperativeHandle)(pt,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:on}),ae.createElement(Je.Z,{align:"middle"},ae.createElement(vt.Z,{flex:1},ae.createElement(Rt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Ot.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Fn,onChange:Yt=>Yn(Yt)})),ae.createElement(vt.Z,null,ae.createElement(Ie.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},Ot.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),un=re(36527),Se=re(25934),Ce=re(2453);const De="link",rt="upload-image",dt="add-flowchart",Mt="draw-image",Nt="add-flowchart",bt="code-block",Bt="add-table",Ht="------------",jt={default:Ht,left:`:${Ht}`,center:`:${Ht}:`,right:`${Ht}:`};var an=re(99914),en=(fe,pe,Pe)=>new Promise((He,mt)=>{var pt=Ot=>{try{Qt(Pe.next(Ot))}catch(Fn){mt(Fn)}},on=Ot=>{try{Qt(Pe.throw(Ot))}catch(Fn){mt(Fn)}},Qt=Ot=>Ot.done?He(Ot.value):Promise.resolve(Ot.value).then(pt,on);Qt((Pe=Pe.apply(fe,pe)).next())});function fn(){}let vn=0;const qt=1e4,_t="\u2581",mn="@\u2581\u2581@",Pn="@\u2581@",yn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ln=["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 wn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"};var _n=({defaultValue:fe="",onChange:pe,width:Pe="100%",height:He=400,miniToolbar:mt=!1,isFocus:pt=!1,watch:on,insertTemp:Qt,mode:Ot="markdown",id:Fn="markdown-editor-id",showResizeBar:Yn=!1,noStorage:zn=!1,showNullButton:Ye=!1,showNullProgramButton:Yt=!1,hidetoolBar:ue=!1,fullScreen:Be=!1,onBlur:be,onCMBeforeChange:$e,onFullScreen:qe,className:Re="",disablePaste:Ve=!1,disabled:Te=!1,disabledFill:Tt=!1,placeholder:wt="",values:kt="",extraUse:tn})=>{const[Oe,cn]=(0,ae.useState)(null),[Tn,Rn]=(0,ae.useState)(fe),[In,Cn]=(0,ae.useState)(on),[Ze,Lt]=(0,ae.useState)(Be),[yt,at]=(0,ae.useState)(""),[gn,nn]=(0,ae.useState)(0),[Bn,En]=(0,ae.useState)(He),[Gn,ea]=(0,ae.useState)(!1),oa=(0,ae.useRef)((0,Se.Z)()),ua=(0,ae.useRef)(!1),ra=(0,ae.useRef)(),[Kn,xn]=(0,ae.useState)(0),[la,sa]=(0,ae.useState)(0),Qn=(0,ae.useRef)(),qn=(0,ae.useRef)(),Wn=(0,ae.useRef)(),ga=(0,ae.useRef)(),Kt=()=>en(void 0,null,function*(){var xt;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oa.current}});(xt=ct==null?void 0:ct.attachments)!=null&&xt.length&&(console.log("cm:",Oe,Qn),ct.attachments.map(ht=>{ht.content_type.indexOf("image")>-1?Oe.replaceSelection(``):ht.content_type.indexOf("video")>-1?Oe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ht.content_type.indexOf("pdf")>-1?Oe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type}&disposition=inline" target="_blank">${ht.name}</a>`):Oe.replaceSelection(`[${ht.name}](${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type})`)}))});(0,ae.useEffect)(()=>{const xt=window.scrollY||window.pageYOffset;Rn(kt),Oe==null||Oe.setValue(kt),window.scrollTo(0,xt)},[kt]),(0,ae.useEffect)(()=>{qe==null||qe(Ze)},[Ze]),(0,ae.useEffect)(()=>{if(Qn.current){let xt=function(ht,Ct){var Sn;if(Ve){Ct.preventDefault();return}const On=Ct.clipboardData;if(On){const Xn=On.types.toString(),An=On.items;if(Xn==="Files"||On.types.indexOf("Files")>-1){if(Ct.preventDefault(),Ot=="stex")return;try{let zt=An[1];((Sn=An[0])==null?void 0:Sn.kind)==="file"&&(zt=An[0]);const Xt=zt.getAsFile(),hn=Xt.name.split(".").pop();(0,Fe.I)(Xt,Wt=>{var Ln,kn,aa;Wt.id?((Ln=Xt==null?void 0:Xt.type)==null?void 0:Ln.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Wt.id}?type=${Wt.content_type})" alt="" />`):((kn=Xt==null?void 0:Xt.type)==null?void 0:kn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wt.id}"></video>`):((aa=Xt==null?void 0:Xt.type)==null?void 0:aa.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Wt.id}?type=${Xt.type}&disposition=inline" target="_blank">${Xt.name}</a>`):ln.includes(hn)?ct.replaceSelection(`<a href="/api/attachments/${Wt.id}?type=office&disposition=inline" target="_blank">${Xt.name}</a>`):ct.replaceSelection(`[${Xt.name}](/api/attachments/${Wt.id}?type=${Wt.content_type})`):(Wt==null?void 0:Wt.status)===401&&(Ce.ZP.warning((Wt==null?void 0:Wt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(zt){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=_e().fromTextArea(Qn.current,{mode:Ot,lineNumbers:!mt,lineWrapping:!0,value:fe,autoCloseTags:!Yt,autoCloseBrackets:!0});return ct.on("keyup",function(ht,Ct){Ct.keyCode===8&&(ht.getValue()==""?ct.setOption("placeholder",wt):ct.setOption("placeholder",null))}),ct.on("keydown",function(ht,Ct){if(Ct.keyCode===8){var Sn=Vn(ht);Sn&&Ct.preventDefault()}}),pt&&ct.focus(),ct.on("paste",xt),ct.on("dragleave",function(ht,Ct){qn.current.classList.remove("mouse-hover-md")}),Te&&ct.on("beforeChange",function(ht,Ct){(Ct.origin==="paste"||Ct.origin==="+input")&&Ct.cancel()}),cn(ct),()=>{ct.off("paste",xt)}}},[]);const $n=(0,ae.useCallback)(()=>{if(qn.current)try{}catch(xt){console.log(xt,"---- to set md editor body height")}},[Bn,qn,Ze]);(0,ae.useEffect)(()=>{function xt(){let ct=new Ue.Z(ht=>{for(let Ct of ht)(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&($n(),Oe.setSize("100%","100%"),Oe.refresh())});return ct.observe(Qn.current.parentElement),ct}if(Oe){const ct=xt();return()=>{var ht,Ct;(ht=Qn.current)!=null&&ht.parentElement&&ct.unobserve((Ct=Qn.current)==null?void 0:Ct.parentElement)}}},[Oe,$n]),(0,ae.useEffect)(()=>{if(Oe){let xt=[];for(const[ct,ht]of Object.entries(Dn)){let Ct={[ct]:()=>{Zn(ht)}};xt.push(Ct),Oe.addKeyMap(Ct)}return ra.current=setInterval(()=>{ua.current&&Kt()},4e3),()=>{clearInterval(ra.current);for(let ct of xt)Oe.removeKeyMap(ct)}}},[Oe]),(0,ae.useEffect)(()=>{Be!==Ze&&Lt(Be)},[Be]),(0,an.Z)(()=>{if(!zn&&gn>0){let xt=new Date().getTime(),ct=window.sessionStorage.getItem(Fn);xt>=gn+qt&&(!ct||ct!==Tn)&&(window.sessionStorage.setItem(Fn,Tn),ea(!0))}},qt),(0,ae.useEffect)(()=>{Cn(on)},[Oe,on]),(0,ae.useEffect)(()=>{Oe&&pt&&Oe.focus()},[Oe,pt]),(0,ae.useEffect)(()=>{if(In&&Oe){let xt=function(ht){let Ct=ht.target;if(ga.current){let Sn=Ct.scrollTop/Ct.scrollHeight;ga.current.scrollTop=ga.current.scrollHeight*Sn}};const ct=Oe.getScrollerElement();return ct.addEventListener("scroll",xt),()=>{ct.removeEventListener("scroll",xt)}}},[Oe,In]),(0,ae.useEffect)(()=>{if(Oe&&$e){let xt=function(ct,ht){$e(ct,ht)};return Oe.on("beforeChange",xt),()=>{Oe.off("beforeChange",xt)}}},[Oe,$e]),(0,ae.useEffect)(()=>{if(Oe&&be){let xt=function(){be(Oe.getValue())};return Oe.on("blur",xt),()=>{Oe.off("blur",xt)}}},[Oe,be]);function Vn(xt,ct){var ht=xt.getDoc(),Ct=ht.getCursor(),Sn=ht.getLine(Ct.line),On=Sn.charAt(Ct.ch-1),Xn=Sn.lastIndexOf("@\u2581@",Ct.ch),An=Sn.lastIndexOf("@\u2581\u2581@",Ct.ch),zt=Xn>An?Xn:An,Xt=Xn>An?3:4;if(mn.indexOf(On)===-1)return null;if(console.log("change1:",ct,xt,Sn,Ct,zt,Xn,An,On),zt>=0&&Ct.ch-zt<5){var hn=zt+Xt;return ht.replaceRange("",{line:Ct.line,ch:zt},{line:Ct.line,ch:hn}),{line:Ct.line,ch:hn}}return null}(0,ae.useEffect)(()=>{if(Oe){let xt=function(ct,ht){const Ct=ct.getValue();Rn(Ct),nn(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(Yt?pe(Ct,fa(Ct)):pe(Ct))};return Oe.on("change",xt),()=>{Oe.off("change",xt)}}},[Oe,pe]),(0,ae.useEffect)(()=>{if(Oe)if(fe==null)Oe.setValue(""),Rn("");else{const xt=window.scrollY||window.pageYOffset;fe!==Oe.getValue()&&(Oe.setValue(fe),Rn(fe),Oe.setCursor(Te?1:Oe.lineCount(),0),window.scrollTo(0,xt))}},[Oe,fe]);const Zn=(0,ae.useCallback)(xt=>{const ct=Oe.getCursor(),ht=Oe.getSelection();let Ct=ht.split(`
|
|
`);switch(xt){case"bold":return Oe.replaceSelection("**"+ht+"**"),ht===""&&Oe.setCursor(ct.line,ct.ch+2),Oe.focus();case"italic":return Oe.replaceSelection("*"+ht+"*"),ht===""&&Oe.setCursor(ct.line,ct.ch+1),Oe.focus();case"code":return Oe.replaceSelection("`"+ht+"`"),ht===""&&Oe.setCursor(ct.line,ct.ch+1),Oe.focus();case"inline-latex":return at("inline-latex"),Oe.focus();case"latex":return Oe.replaceSelection("```latex\n"+ht+"\n```"),Oe.setCursor(ct.line+1,ht.length+1),Oe.focus();case"line-break":return Oe.replaceSelection(`<br/>
|
|
`),Oe.focus();case"list-ul":return ht===""?Oe.replaceSelection("- "+ht):Oe.replaceSelection(Ct.map(Sn=>Sn===""?"":`- ${Sn}`).join(`
|
|
`)),Oe.focus();case"list-ol":return ht===""?Oe.replaceSelection("1. "+ht):Oe.replaceSelection(Ct.map((Sn,On)=>Sn===""?"":`${On+1}. ${Sn}`).join(`
|
|
`)),Oe.focus();case"add-null-ch":return ht===""&&Oe.setCursor(ct.line,ct.ch),Oe.replaceSelection(_t),Oe.focus();case"add-signal":return ht===""&&Oe.setCursor(ct.line,ct.ch),Oe.replaceSelection(Pn),Oe.focus();case"add-multiple":return ht===""&&Oe.setCursor(ct.line,ct.ch),Oe.replaceSelection(mn),Oe.focus();case"inster-template-1":return ht===""&&Oe.setCursor(ct.line,ct.ch),Oe.replaceSelection(yn),Oe.focus();case"eraser":return Oe.setValue(""),Oe.focus();case"trigger-watch":return Cn(!In),Oe.focus();case"trigger-full-screen":return Lt(!Ze),Oe.focus();case De:at(De);return;case bt:at(bt);return;case rt:at(rt);return;case Mt:at(Mt);return;case"maths-latex":at("maths-latex");return;case dt:at(dt);return;case Bt:at(Bt);return;default:throw new Error}},[Oe,In,Ze]),Un=(0,ae.useCallback)((xt,ct)=>{var ht,Ct,Sn,On,Xn,An;switch(at(""),yt){case De:const{title:Ln,link:kn}=xt;return Oe.replaceSelection(`[${Ln}](${kn})`),Oe.focus();case bt:const{language:aa,content:ma}=xt;return Oe.replaceSelection(["```"+aa,ma,"```"].join(`
|
|
`)),Oe.focus();case"maths-latex":for(var zt=atob(xt),Xt=new Uint8Array(zt.length),hn=0;hn<zt.length;hn++)Xt[hn]=zt.charCodeAt(hn);var Wt=new Blob([Xt],{type:"image/png"});(0,Fe.I)(Wt,da=>{da.id?Oe.replaceSelection(``):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Oe.replaceSelection("`$$"+xt+"$$`");break;case rt:case Mt:case Nt:const{src:Jn,alt:ya}=xt,Hn=ct,Ba=(Sn=(Ct=(ht=Hn==null?void 0:Hn.name)==null?void 0:ht.split("."))==null?void 0:Ct.pop)==null?void 0:Sn.call(Ct);return((On=Hn==null?void 0:Hn.type)==null?void 0:On.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn.align||Hn.width?Oe.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${Jn}" alt="${ya||""}" /></p>`):Oe.replaceSelection(`<img width="100%" src="${Jn}" alt="${ya||""}" />`):((Xn=Hn==null?void 0:Hn.type)==null?void 0:Xn.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="${Jn}"></video>`):((An=Hn==null?void 0:Hn.type)==null?void 0:An.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="${Jn}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):ln.includes(Ba)?Oe.replaceSelection(`<a href="${Jn}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):Oe.replaceSelection(`[${Hn.name}](${Jn})`),Oe.focus();case Bt:const{row:xa,col:wa,align:$a}=xt;let La=`
|
|
`;for(let da=0;da<xa;da++){let Fa=[],Ea=[];for(let Ca=0;Ca<wa;Ca++)da===1&&Ea.push(jt[$a]),Fa.push(" ");da===1&&(La+=`| ${Ea.join(" | ")} |
|
|
`),La+=`| ${Fa.join(wa===1?"":" | ")} |
|
|
`}return Oe.replaceSelection(La+`
|
|
`),Oe.focus();default:throw new Error}},[Oe,yt]),ta=(0,ae.useMemo)(()=>{switch(yt){case De:return ae.createElement(dn,{callback:Un,onCancel:na});case bt:return ae.createElement(pn.Z,{callback:Un,onCancel:na});case rt:return ae.createElement(Fe.Z,{callback:Un,onCancel:na});case dt:return ae.createElement(je,{callback:Un,onCancel:na});case Bt:return ae.createElement(Dt,{callback:Un,onCancel:na});case"maths-latex":return ae.createElement(Zt,{showSaveButton:!0,callback:Un});case"inline-latex":return ae.createElement(un.Z,{showSaveButton:!0,callback:Un});default:return null}},[yt]);function na(){at("")}(0,ae.useEffect)(()=>{if(Wn.current){let xt=function(Xn){Sn=!0,On=Xn.pageY},ct=function(){Sn=!1},ht=function(Xn){if(Sn){let An=Xn.pageY-On;An<0&&(An=0),An>300&&(An=300);let zt=He+An+"px";En(zt)}},Ct=Wn.current,Sn=!1,On=0;return Ct.addEventListener("mousedown",xt),document.addEventListener("mousemove",ht),document.addEventListener("mouseup",ct),()=>{Ct.removeEventListener("mousedown",xt),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",ct)}}},[Oe,Wn]),(0,ae.useEffect)(()=>{En(He)},[He]);const ca=wn(Pe),Mn=wn(Bn),Nn={width:ca,height:Mn},ia=(0,ae.useMemo)(()=>{if(gn){let xt=new Date(gn),ct=xt.getHours(),ht=xt.getMinutes(),Ct=xt.getSeconds();return ct=ct<10?"0"+ct:ct,ht=ht<10?"0"+ht:ht,Ct=Ct<10?"0"+Ct:Ct,`${ct}:${ht}:${Ct}`}return 0},[gn]),fa=xt=>{const ct=[];if(Yt){let ht=-1;xt=xt.replace(/(@▁▁@|@▁@)/g,function(Ct,Sn,On){ct.push({multiLine:Ct!==Pn})})}return ct};function ha(){window.sessionStorage.removeItem(Fn),ea(!1),nn(0)}function ba(){ea(!1),nn(0),Oe.setValue(window.sessionStorage.getItem(Fn))}const Sa=(0,Ge.useIntl)(),Pa={[De]:"\u6DFB\u52A0\u94FE\u63A5",[bt]:Sa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[rt]:Sa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Mt]:"\u6DFB\u52A0\u753B\u56FE",[dt]:Sa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Bt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Sa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Sa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{Pa[yt]&&yt!==Mt&&yt!==dt&&setTimeout(()=>{const xt=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-xt.offsetWidth/2,ht=window.innerHeight/2-xt.offsetHeight/2;xn(ct),sa(ht)},0)},[yt]);const pa=xt=>{xt.preventDefault();const ct=xt.clientX-Kn,ht=xt.clientY-la;document.body.onmousemove=Ct=>{let Sn=Ct.clientX-ct,On=Ct.clientY-ht;const Xn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Xn.offsetWidth,zt=window.innerHeight-Xn.offsetHeight;Sn=Math.max(0,Math.min(Sn,An)),On=Math.max(0,Math.min(On,zt)),va(Ct.clientX,Ct.clientY,ct,ht)&&(xn(Sn),sa(On))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(xt,ct,ht,Ct)=>{const Sn=document.body.clientHeight,On=document.body.clientWidth;return xt<20&&ht>xt||xt>On-20&&ht<xt||ct<20&&Ct>ct||ct>Sn-20&&Ct<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:qn},ae.createElement("div",{className:`markdown-editor-container ${Re} ${In?"on-preview":""} ${mt?"mini":""} ${Ze?"full-screen":""}`,style:Nn},ae.createElement(ie,{insertTemp:Qt,watch:In,fullScreen:Ze,showNullButton:Ye,showNullProgramButton:Yt,onActionCallback:Zn,hidetoolBar:ue,extraUse:tn}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Qn,placeholder:wt})),In?ae.createElement("div",{ref:ga,className:"preview-container"},Ot==="stex"&&ae.createElement(Ne,{value:Tn}),Ot!=="stex"&&ae.createElement(et.Z,{disabledFill:Tt,showProgramFill:Yt,value:Tn})):null))),Yn?ae.createElement("a",{ref:Wn,className:"editor-resize"}):null,yt===Mt&&ae.createElement(Pt,{callback:Un,onCancel:na}),yt===dt&&ae.createElement(je,{callback:Un,onCancel:na}),ae.createElement(se.Z,null,Pa[yt]&&yt!==Mt&&yt!==dt?ae.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:la},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:pa},Pa[yt]),open:!0,onCancel:na,footer:null,destroyOnClose:!0,width:yt===dt?"1200px":null,height:yt===dt?"80vh":null,className:"markdown-popup-form"},ta):null))}},70859:function(Me,st,re){"use strict";re.d(st,{Z:function(){return ie},I:function(){return le}});var ae=re(22150),he=re(2453),_e=re(69677),Ue=re(93421),ce=re(31795),We=re(78045),me=re(71577),ot=re(15476),Xe=re(67294),Ee=re(52262),et=re(35973),Ne=re(67294),Ge=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ze,Ie,Qe)=>Ie in ze?Ge(ze,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):ze[Ie]=Qe,z=(ze,Ie)=>{for(var Qe in Ie||(Ie={}))E.call(Ie,Qe)&&x(ze,Qe,Ie[Qe]);if(y)for(var Qe of y(Ie))b.call(Ie,Qe)&&x(ze,Qe,Ie[Qe]);return ze},ee=(ze,Ie)=>ne(ze,a(Ie));const{useForm:te}=ae.default,oe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:ze,onCancel:Ie})=>{const[Qe]=te();let Ft=(0,Xe.useRef)();const ft=(0,et.useIntl)();function we(Ke){Ft.current.width=Qe.getFieldValue("width"),Ft.current.align=Qe.getFieldValue("align"),ze(Ke,Ft.current)}function ut(Ke,tt){if(Ke.status===-1){he.ZP.error(Ke.message);return}Qe.setFieldsValue({src:`/api/attachments/${Ke.id}`,type:tt.type})}function it(Ke){let tt=Ke.target.files[0];Ft.current=tt,le(tt,ut)}return Ne.createElement(ae.default,ee(z({form:Qe},ge),{className:"upload-image-panel",onFinish:we,style:{width:470,overflow:"hidden"}}),Ne.createElement(ae.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Ne.createElement("div",{className:"flex-container"},Ne.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ne.createElement(_e.default,{style:oe})),Ne.createElement(se,{onFileChange:it}))),Ne.createElement(ae.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Ne.createElement(_e.default,{style:{width:264}})),Ne.createElement(ae.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Ne.createElement(Ue.Z,null,Ne.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ne.createElement(ce.Z,{style:{width:264}})),Ne.createElement("span",{className:"ml8"},"%"))),Ne.createElement(ae.default.Item,{label:ft.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Ne.createElement(We.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:ft.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:ft.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:ft.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Ne.createElement("aside",null,Ne.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ne.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ft.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Ne.createElement(me.ZP,{type:"default",onClick:Ie},ft.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function se({onFileChange:ze}){return Ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ne.createElement("input",{type:"file",onChange:ze}))}function le(ze,Ie){if(!ze)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Qe=new FormData;Qe.append("editormd-image-file",ze),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var Ft=new window.XMLHttpRequest;Ft.withCredentials=!0,Ft.addEventListener("load",function(ft){Ie(JSON.parse(ft.target.responseText),ze)},!1),Ft.addEventListener("error",function(ft){console.error(ft)},!1),Ft.open("POST",`${ot.KI}/api/attachments.json`),Ft.send(Qe)}},76621:function(Me,st,re){"use strict";re.d(st,{Z:function(){return _e}});var ae=re(67294),he=re(73935);class _e extends ae.Component{constructor(ce){super(ce);const We=window.document;this.node=We.createElement("div"),We.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,he.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Me,st,re){"use strict";re.d(st,{Z:function(){return he}});var ae=re(67294);function he(_e,Ue){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=_e}),(0,ae.useEffect)(()=>{function We(){ce.current()}if(Ue!==null){let me=setInterval(We,Ue);return()=>clearInterval(me)}},[Ue])}},27946:function(Me,st,re){"use strict";re.r(st),re.d(st,{default:function(){return ge}});var ae=re(67294),he=re(35973),_e=re(22150),Ue=re(2453),ce=re(85673),We=re(69677),me=re(59810),ot=re(71577),Xe=re(35567),Ee=re(86763),et=re(11320),Ne={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Ge=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ie,se,le)=>se in ie?Ge(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,z=(ie,se)=>{for(var le in se||(se={}))E.call(se,le)&&x(ie,le,se[le]);if(y)for(var le of y(se))b.call(se,le)&&x(ie,le,se[le]);return ie},ee=(ie,se)=>ne(ie,a(se)),te=(ie,se,le)=>new Promise((ze,Ie)=>{var Qe=we=>{try{ft(le.next(we))}catch(ut){Ie(ut)}},Ft=we=>{try{ft(le.throw(we))}catch(ut){Ie(ut)}},ft=we=>we.done?ze(we.value):Promise.resolve(we.value).then(Qe,Ft);ft((le=le.apply(ie,se)).next())});const oe=({shixunHomeworks:ie,newCourse:se,globalSetting:le,loading:ze,dispatch:Ie,match:Qe})=>{const Ft=(0,he.useIntl)(),ft=(0,he.useParams)(),[we]=_e.default.useForm(),[ut,it]=(0,ae.useState)({}),[Ke,tt]=(0,ae.useState)(!1),[At,Ut]=(0,ae.useState)([]),[dn,pn]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:Fe}=ie,Ae={name:"file",multiple:!0,action:et.Z.API_SERVER+"/api/attachments.json",defaultFileList:At,onChange(Pt){const{status:de}=Pt.file;de==="done"?Ue.ZP.success(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Ue.ZP.error(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{Gt()},[ft.topicId]);const Je=Pt=>Pt==null?void 0:Pt.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),Gt=()=>te(void 0,null,function*(){const Pt=yield Ie({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:ft.topicId}});Pt&&(we.setFieldsValue({name:Pt.name}),we.setFieldsValue({description:Pt.description}),we.setFieldsValue({reference_answer:Pt.reference_answer}),Ut([...Je(Pt.attachments)]),pn([...Je(Pt.reference_attachments)]),tt(!0))}),gt=Pt=>te(void 0,null,function*(){var de,lt;const It=z({},ut);It.attachment_ids&&(It.attachment_ids=(de=It==null?void 0:It.attachment_ids.fileList)==null?void 0:de.map(vt=>{var ke;return(ke=vt.response)==null?void 0:ke.id})),It.reference_attachment_ids&&(It.reference_attachment_ids=(lt=It==null?void 0:It.reference_attachment_ids.fileList)==null?void 0:lt.map(vt=>{var ke;return(ke=vt.response)==null?void 0:ke.id})),(yield(0,Ee.yT)(ee(z({id:ft.topicId},It),{base_on_project:null,type:1})))&&he.history.push(`/users/${ft.username}/topics/${ft.topicId}/${ft.topictype}/normal/detail`)});return ae.createElement("section",{className:Ne.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(ce.Z,{separator:">"},ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${ft.username}/${ft.topictype==="personal"?"topics":"topicbank"}/${ft.topictype}`},ft.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${ft.username}/topics/${ft.topicId}/${ft.topictype}/normal/detail`},Ft.formatMessage({id:"personalHomepageclassrooms.details",defaultMessage:"\u8BE6\u60C5"}))),ae.createElement(ce.Z.Item,null,Ft.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"}))))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},Ft.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"})),ae.createElement(_e.default,{form:we,className:Ne.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{it(z({},we.getFieldsValue()))},onFinish:gt},ae.createElement("div",{className:Ne.fieldWrap},ae.createElement(_e.default.Item,{name:"name",label:Ft.formatMessage({id:"classroomUploadVideoResourcesCheckIn.title",defaultMessage:"\u6807\u9898"})+":",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(We.default,{placeholder:Ft.formatMessage({id:"shixuns.forExampleFromPythonProgrammingBeginnerToProficient",defaultMessage:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})}))),ae.createElement("div",{className:Ne.mdWrap},ae.createElement(_e.default.Item,{name:"description",label:Ft.formatMessage({id:"paths.introduction",defaultMessage:"\u7B80\u4ECB"})+":",rules:[{required:!0,message:Ft.formatMessage({id:"shixuns.pleaseEnterAssignmentDescription",defaultMessage:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"})}]},ae.createElement(Xe.Z,{id:"topic-normal-description",watch:!0,defaultValue:Fe.description})),ae.createElement("div",null,ae.createElement(_e.default.Item,{name:"attachment_ids"},Ke&&ae.createElement(me.default,z({defaultFileList:At},Ae),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ne.mdWrap},ae.createElement(_e.default.Item,{name:"reference_answer",label:`${Ft.formatMessage({id:"questionBankAddQuestion.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})}:`},ae.createElement(Xe.Z,{id:"topic-normal-reference_answer",defaultValue:Fe.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(_e.default.Item,{name:"reference_attachment_ids"},Ke&&ae.createElement(me.default,ee(z({},Ae),{defaultFileList:dn}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ne.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(_e.default.Item,null,ae.createElement(ot.ZP,{size:"middle",type:"primary",className:`${Ne.button} mr20`,htmlType:"submit"},Ft.formatMessage({id:"classroomGraphicGroupHomework.submit",defaultMessage:"\u63D0\u4EA4"})),ae.createElement(ot.ZP,{size:"middle",type:"primary",ghost:!0,className:Ne.button,onClick:()=>he.history.push(`/users/${ft.username}/topics/${ft.topicId}/${ft.topictype}/normal/detail`)},Ft.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})))))))};var ge=(0,he.connect)(({shixunHomeworks:ie,newCourse:se,loading:le,globalSetting:ze})=>({shixunHomeworks:ie,newCourse:se,globalSetting:ze,loading:le.effects}))(oe)},57838:function(Me,st,re){"use strict";re.d(st,{Z:function(){return he}});var ae=re(67294);function he(){const[,_e]=ae.useReducer(Ue=>Ue+1,0);return _e}},85673:function(Me,st,re){"use strict";re.d(st,{Z:function(){return ft}});var ae=re(94184),he=re.n(ae),_e=re(37419),Ue=re(1337),ce=re(67294),We=re(96159),me=re(53124),ot=re(42922),Xe=re(35874);const Ee=we=>{let{children:ut}=we;const{getPrefixCls:it}=ce.useContext(me.E_),Ke=it("breadcrumb");return ce.createElement("li",{className:`${Ke}-separator`,"aria-hidden":"true"},ut===""?ut:ut||"/")};Ee.__ANT_BREADCRUMB_SEPARATOR=!0;var et=Ee,Ne=function(we,ut){var it={};for(var Ke in we)Object.prototype.hasOwnProperty.call(we,Ke)&&ut.indexOf(Ke)<0&&(it[Ke]=we[Ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ke=Object.getOwnPropertySymbols(we);tt<Ke.length;tt++)ut.indexOf(Ke[tt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ke[tt])&&(it[Ke[tt]]=we[Ke[tt]]);return it};function Ge(we,ut){if(we.title===void 0||we.title===null)return null;const it=Object.keys(ut).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${it})`,"g"),(Ke,tt)=>ut[tt]||Ke)}function ne(we,ut,it,Ke){if(it==null)return null;const{className:tt,onClick:At}=ut,Ut=Ne(ut,["className","onClick"]),dn=Object.assign(Object.assign({},(0,Ue.Z)(Ut,{data:!0,aria:!0})),{onClick:At});return Ke!==void 0?ce.createElement("a",Object.assign({},dn,{className:he()(`${we}-link`,tt),href:Ke}),it):ce.createElement("span",Object.assign({},dn,{className:he()(`${we}-link`,tt)}),it)}function a(we,ut){return(Ke,tt,At,Ut,dn)=>{if(ut)return ut(Ke,tt,At,Ut);const pn=Ge(Ke,tt);return ne(we,Ke,pn,dn)}}var y=function(we,ut){var it={};for(var Ke in we)Object.prototype.hasOwnProperty.call(we,Ke)&&ut.indexOf(Ke)<0&&(it[Ke]=we[Ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ke=Object.getOwnPropertySymbols(we);tt<Ke.length;tt++)ut.indexOf(Ke[tt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ke[tt])&&(it[Ke[tt]]=we[Ke[tt]]);return it};const E=we=>{const{prefixCls:ut,separator:it="/",children:Ke,menu:tt,overlay:At,dropdownProps:Ut,href:dn}=we,Fe=(Ae=>{if(tt||At){const Je=Object.assign({},Ut);if(tt){const Gt=tt||{},{items:gt}=Gt,Pt=y(Gt,["items"]);Je.menu=Object.assign(Object.assign({},Pt),{items:gt==null?void 0:gt.map((de,lt)=>{var{key:It,title:rn,label:vt,path:ke}=de,xe=y(de,["key","title","label","path"]);let ye=vt!=null?vt:rn;return ke&&(ye=ce.createElement("a",{href:`${dn}${ke}`},ye)),Object.assign(Object.assign({},xe),{key:It!=null?It:lt,label:ye})})})}else At&&(Je.overlay=At);return ce.createElement(Xe.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${ut}-overlay-link`},Ae,ce.createElement(ot.Z,null)))}return Ae})(Ke);return Fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Fe),it&&ce.createElement(et,null,it)):null},b=we=>{const{prefixCls:ut,children:it,href:Ke}=we,tt=y(we,["prefixCls","children","href"]),{getPrefixCls:At}=ce.useContext(me.E_),Ut=At("breadcrumb",ut);return ce.createElement(E,Object.assign({},tt,{prefixCls:Ut}),ne(Ut,tt,it,Ke))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),te=re(45503);const oe=we=>{const{componentCls:ut,iconCls:it}=we;return{[ut]:Object.assign(Object.assign({},(0,z.Wf)(we)),{color:we.itemColor,fontSize:we.fontSize,[it]:{fontSize:we.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:we.linkColor,transition:`color ${we.motionDurationMid}`,padding:`0 ${we.paddingXXS}px`,borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",marginInline:-we.marginXXS,"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover}},(0,z.Qy)(we)),"li:last-child":{color:we.lastItemColor},[`${ut}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${ut}-link`]:{[`
|
|
> ${it} + span,
|
|
> ${it} + a
|
|
`]:{marginInlineStart:we.marginXXS}},[`${ut}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",padding:`0 ${we.paddingXXS}px`,marginInline:-we.marginXXS,[`> ${it}`]:{marginInlineStart:we.marginXXS,fontSize:we.fontSizeIcon},"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover,a:{color:we.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${we.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",we=>{const ut=(0,te.TS)(we,{});return[oe(ut)]},we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS})),ie=function(we,ut){var it={};for(var Ke in we)Object.prototype.hasOwnProperty.call(we,Ke)&&ut.indexOf(Ke)<0&&(it[Ke]=we[Ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ke=Object.getOwnPropertySymbols(we);tt<Ke.length;tt++)ut.indexOf(Ke[tt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ke[tt])&&(it[Ke[tt]]=we[Ke[tt]]);return it};function se(we){const{breadcrumbName:ut,children:it}=we,Ke=ie(we,["breadcrumbName","children"]),tt=Object.assign({title:ut},Ke);return it&&(tt.menu={items:it.map(At=>{var{breadcrumbName:Ut}=At,dn=ie(At,["breadcrumbName"]);return Object.assign(Object.assign({},dn),{title:Ut})})}),tt}function le(we,ut){return(0,ce.useMemo)(()=>we||(ut?ut.map(se):null),[we,ut])}var ze=function(we,ut){var it={};for(var Ke in we)Object.prototype.hasOwnProperty.call(we,Ke)&&ut.indexOf(Ke)<0&&(it[Ke]=we[Ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ke=Object.getOwnPropertySymbols(we);tt<Ke.length;tt++)ut.indexOf(Ke[tt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ke[tt])&&(it[Ke[tt]]=we[Ke[tt]]);return it};const Ie=(we,ut)=>{if(ut===void 0)return ut;let it=(ut||"").replace(/^\//,"");return Object.keys(we).forEach(Ke=>{it=it.replace(`:${Ke}`,we[Ke])}),it},Qe=we=>{const{prefixCls:ut,separator:it="/",style:Ke,className:tt,rootClassName:At,routes:Ut,items:dn,children:pn,itemRender:Fe,params:Ae={}}=we,Je=ze(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:gt,breadcrumb:Pt}=ce.useContext(me.E_);let de;const lt=Gt("breadcrumb",ut),[It,rn]=ge(lt),vt=le(dn,Ut),ke=a(lt,Fe);if(vt&&vt.length>0){const ve=[],Le=dn||Ut;de=vt.map((je,nt)=>{const{path:St,key:Et,type:$t,menu:Dt,overlay:Rt,onClick:sn,className:Jt,separator:Vt,dropdownProps:Zt}=je,un=Ie(Ae,St);un!==void 0&&ve.push(un);const Se=Et!=null?Et:nt;if($t==="separator")return ce.createElement(et,{key:Se},Vt);const Ce={},De=nt===vt.length-1;Dt?Ce.menu=Dt:Rt&&(Ce.overlay=Rt);let{href:rt}=je;return ve.length&&un!==void 0&&(rt=`#/${ve.join("/")}`),ce.createElement(E,Object.assign({key:Se},Ce,(0,Ue.Z)(je,{data:!0,aria:!0}),{className:Jt,dropdownProps:Zt,href:rt,separator:De?"":it,onClick:sn,prefixCls:lt}),ke(je,Ae,Le,ve,rt))})}else if(pn){const ve=(0,_e.Z)(pn).length;de=(0,_e.Z)(pn).map((Le,je)=>{if(!Le)return Le;const nt=je===ve-1;return(0,We.Tm)(Le,{separator:nt?"":it,key:je})})}const xe=he()(lt,Pt==null?void 0:Pt.className,{[`${lt}-rtl`]:gt==="rtl"},tt,At,rn),ye=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Ke);return It(ce.createElement("nav",Object.assign({className:xe,style:ye},Je),ce.createElement("ol",null,de)))};Qe.Item=x,Qe.Separator=et;var Ft=Qe,ft=Ft},35874:function(Me,st,re){"use strict";re.d(st,{Z:function(){return ye}});var ae=re(67294),he=re(91034),_e=re(94184),Ue=re.n(_e),ce=re(87462),We=re(4942),me=re(97685),ot=re(45987),Xe=re(62709),Ee=re(71002),et=re(12060);function Ne(ve,Le,je){var nt=React.useRef({});return(!("value"in nt.current)||je(nt.current.condition,Le))&&(nt.current.value=ve(),nt.current.condition=Le),nt.current.value}function Ge(ve,Le){typeof ve=="function"?ve(Le):(0,Ee.Z)(ve)==="object"&&ve&&"current"in ve&&(ve.current=Le)}function ne(){for(var ve=arguments.length,Le=new Array(ve),je=0;je<ve;je++)Le[je]=arguments[je];var nt=Le.filter(function(St){return St});return nt.length<=1?nt[0]:function(St){Le.forEach(function(Et){Ge(Et,St)})}}function a(){for(var ve=arguments.length,Le=new Array(ve),je=0;je<ve;je++)Le[je]=arguments[je];return useMemo(function(){return ne.apply(void 0,Le)},Le,function(nt,St){return nt.length===St.length&&nt.every(function(Et,$t){return Et===St[$t]})})}function y(ve){var Le,je,nt=(0,et.isMemo)(ve)?ve.type.type:ve.type;return!(typeof nt=="function"&&!((Le=nt.prototype)!==null&&Le!==void 0&&Le.render)||typeof ve=="function"&&!((je=ve.prototype)!==null&&je!==void 0&&je.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Le){var je=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.metaKey||je>=E.F1&&je<=E.F12)return!1;switch(je){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Le){if(Le>=E.ZERO&&Le<=E.NINE||Le>=E.NUM_ZERO&&Le<=E.NUM_MULTIPLY||Le>=E.A&&Le<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Le){return+setTimeout(Le,16)},z=function(Le){return clearTimeout(Le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Le){return window.requestAnimationFrame(Le)},z=function(Le){return window.cancelAnimationFrame(Le)});var ee=0,te=new Map;function oe(ve){te.delete(ve)}var ge=function(Le){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var nt=ee;function St(Et){if(Et===0)oe(nt),Le();else{var $t=x(function(){St(Et-1)});te.set(nt,$t)}}return St(je),nt};ge.cancel=function(ve){var Le=te.get(ve);return oe(Le),z(Le)};var ie=ge,se=b.ESC,le=b.TAB;function ze(ve){var Le=ve.visible,je=ve.triggerRef,nt=ve.onVisibleChange,St=ve.autoFocus,Et=ve.overlayRef,$t=ae.useRef(!1),Dt=function(){if(Le){var Vt,Zt;(Vt=je.current)===null||Vt===void 0||(Zt=Vt.focus)===null||Zt===void 0||Zt.call(Vt),nt==null||nt(!1)}},Rt=function(){var Vt;return(Vt=Et.current)!==null&&Vt!==void 0&&Vt.focus?(Et.current.focus(),$t.current=!0,!0):!1},sn=function(Vt){switch(Vt.keyCode){case se:Dt();break;case le:{var Zt=!1;$t.current||(Zt=Rt()),Zt?Vt.preventDefault():Dt();break}}};ae.useEffect(function(){return Le?(window.addEventListener("keydown",sn),St&&ie(Rt,3),function(){window.removeEventListener("keydown",sn),$t.current=!1}):function(){$t.current=!1}},[Le])}var Ie=(0,ae.forwardRef)(function(ve,Le){var je=ve.overlay,nt=ve.arrow,St=ve.prefixCls,Et=(0,ae.useMemo)(function(){var Dt;return typeof je=="function"?Dt=je():Dt=je,Dt},[je]),$t=ne(Le,Et==null?void 0:Et.ref);return ae.createElement(ae.Fragment,null,nt&&ae.createElement("div",{className:"".concat(St,"-arrow")}),ae.cloneElement(Et,{ref:y(Et)?$t:void 0}))}),Qe=Ie,Ft={adjustX:1,adjustY:1},ft=[0,0],we={topLeft:{points:["bl","tl"],overflow:Ft,offset:[0,-4],targetOffset:ft},top:{points:["bc","tc"],overflow:Ft,offset:[0,-4],targetOffset:ft},topRight:{points:["br","tr"],overflow:Ft,offset:[0,-4],targetOffset:ft},bottomLeft:{points:["tl","bl"],overflow:Ft,offset:[0,4],targetOffset:ft},bottom:{points:["tc","bc"],overflow:Ft,offset:[0,4],targetOffset:ft},bottomRight:{points:["tr","br"],overflow:Ft,offset:[0,4],targetOffset:ft}},ut=we,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ke(ve,Le){var je,nt=ve.arrow,St=nt===void 0?!1:nt,Et=ve.prefixCls,$t=Et===void 0?"rc-dropdown":Et,Dt=ve.transitionName,Rt=ve.animation,sn=ve.align,Jt=ve.placement,Vt=Jt===void 0?"bottomLeft":Jt,Zt=ve.placements,un=Zt===void 0?ut:Zt,Se=ve.getPopupContainer,Ce=ve.showAction,De=ve.hideAction,rt=ve.overlayClassName,dt=ve.overlayStyle,Mt=ve.visible,Nt=ve.trigger,bt=Nt===void 0?["hover"]:Nt,Bt=ve.autoFocus,Ht=ve.overlay,jt=ve.children,an=ve.onVisibleChange,en=(0,ot.Z)(ve,it),fn=ae.useState(),vn=(0,me.Z)(fn,2),qt=vn[0],_t=vn[1],mn="visible"in ve?Mt:qt,Pn=ae.useRef(null),yn=ae.useRef(null),ln=ae.useRef(null);ae.useImperativeHandle(Le,function(){return Pn.current});var wn=function(mt){_t(mt),an==null||an(mt)};ze({visible:mn,triggerRef:ln,onVisibleChange:wn,autoFocus:Bt,overlayRef:yn});var jn=function(mt){var pt=ve.onOverlayClick;_t(!1),pt&&pt(mt)},bn=function(){return ae.createElement(Qe,{ref:yn,overlay:Ht,prefixCls:$t,arrow:St})},Dn=function(){return typeof Ht=="function"?bn:bn()},_n=function(){var mt=ve.minOverlayWidthMatchTrigger,pt=ve.alignPoint;return"minOverlayWidthMatchTrigger"in ve?mt:!pt},fe=function(){var mt=ve.openClassName;return mt!==void 0?mt:"".concat($t,"-open")},pe=ae.cloneElement(jt,{className:Ue()((je=jt.props)===null||je===void 0?void 0:je.className,mn&&fe()),ref:y(jt)?ne(ln,jt.ref):void 0}),Pe=De;return!Pe&&bt.indexOf("contextMenu")!==-1&&(Pe=["click"]),ae.createElement(Xe.Z,(0,ce.Z)({builtinPlacements:un},en,{prefixCls:$t,ref:Pn,popupClassName:Ue()(rt,(0,We.Z)({},"".concat($t,"-show-arrow"),St)),popupStyle:dt,action:bt,showAction:Ce,hideAction:Pe,popupPlacement:Vt,popupAlign:sn,popupTransitionName:Dt,popupAnimation:Rt,popupVisible:mn,stretch:_n()?"minWidth":"",popup:Dn(),onPopupVisibleChange:wn,onPopupClick:jn,getPopupContainer:Se}),pe)}var tt=ae.forwardRef(Ke),At=tt,Ut=re(60276),dn=re(5663),pn=re(10366),Fe=re(80636),Ae=re(8745),Je=re(96159),Gt=re(53124),gt=re(68508),Pt=re(76529),de=re(46605),lt=re(66748);const It=null,rn=ve=>{const{menu:Le,arrow:je,prefixCls:nt,children:St,trigger:Et,disabled:$t,dropdownRender:Dt,getPopupContainer:Rt,overlayClassName:sn,rootClassName:Jt,open:Vt,onOpenChange:Zt,visible:un,onVisibleChange:Se,mouseEnterDelay:Ce=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:rt=!0,placement:dt="",overlay:Mt,transitionName:Nt}=ve,{getPopupContainer:bt,getPrefixCls:Bt,direction:Ht}=ae.useContext(Gt.E_),jt=ae.useMemo(()=>{const pe=Bt();return Nt!==void 0?Nt:dt.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[Bt,dt,Nt]),an=ae.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:Ht==="rtl"?"bottomRight":"bottomLeft",[dt,Ht]),en=Bt("dropdown",nt),[fn,vn]=(0,lt.Z)(en),[,qt]=(0,de.Z)(),_t=ae.Children.only(St),mn=(0,Je.Tm)(_t,{className:Ue()(`${en}-trigger`,{[`${en}-rtl`]:Ht==="rtl"},_t.props.className),disabled:$t}),Pn=$t?[]:Et;let yn;Pn&&Pn.includes("contextMenu")&&(yn=!0);const[ln,wn]=(0,dn.Z)(!1,{value:Vt!=null?Vt:un}),jn=(0,Ut.useEvent)(pe=>{Zt==null||Zt(pe),Se==null||Se(pe),wn(pe)}),bn=Ue()(sn,Jt,vn,{[`${en}-rtl`]:Ht==="rtl"}),Dn=(0,Fe.Z)({arrowPointAtCenter:typeof je=="object"&&je.pointAtCenter,autoAdjustOverflow:rt,offset:qt.marginXXS,arrowWidth:je?qt.sizePopupArrow:0,borderRadius:qt.borderRadius}),_n=ae.useCallback(()=>{wn(!1)},[]),fe=()=>{let pe;return Le!=null&&Le.items?pe=ae.createElement(gt.default,Object.assign({},Le)):typeof Mt=="function"?pe=Mt():pe=Mt,Dt&&(pe=Dt(pe)),pe=ae.Children.only(typeof pe=="string"?ae.createElement("span",null,pe):pe),ae.createElement(Pt.J,{prefixCls:`${en}-menu`,expandIcon:ae.createElement("span",{className:`${en}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_n,validator:Pe=>{let{mode:He}=Pe}},pe)};return fn(ae.createElement(At,Object.assign({alignPoint:yn},(0,pn.Z)(ve,["rootClassName"]),{mouseEnterDelay:Ce,mouseLeaveDelay:De,visible:ln,builtinPlacements:Dn,arrow:!!je,overlayClassName:bn,prefixCls:en,getPopupContainer:Rt||bt,transitionName:jt,trigger:Pn,overlay:fe,placement:an,onVisibleChange:jn}),mn))};function vt(ve){return Object.assign(Object.assign({},ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ke=(0,Ae.Z)(rn,"dropdown",ve=>ve,vt),xe=ve=>ae.createElement(ke,Object.assign({},ve),ae.createElement("span",null));rn._InternalPanelDoNotUseOrYouWillBeFired=xe;var ye=rn},66748:function(Me,st,re){"use strict";re.d(st,{Z:function(){return et}});var ae=re(14747),he=re(67771),_e=re(33297),Ue=re(50438),ce=re(97414),We=re(67968),me=re(45503),Xe=Ne=>{const{componentCls:Ge,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ne,E=`${ne}-item`;return{[`${Ge}, ${Ge}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ee=Ne=>{const{componentCls:Ge,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Ne;return[{[Ge]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Ge}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ge}-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${Ge}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ge}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ge}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ge}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ge}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ge}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ge}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ge}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ge}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ge}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ge}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ge}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ge}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ge}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ge}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ge}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ge}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ge}-placement-topRight`]:{animationName:he.ly}})},(0,ce.ZP)(Ne,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ge} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ge}, ${Ge}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Ne.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ne.marginXS,fontSize:Ne.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${se}px`,color:Ne.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${Ge}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${Ge}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Ne.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Ge}-menu-submenu-title`]:{[`&, ${Ge}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Ge}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,he.oN)(Ne,"slide-up"),(0,he.oN)(Ne,"slide-down"),(0,_e.Fm)(Ne,"move-up"),(0,_e.Fm)(Ne,"move-down"),(0,Ue._y)(Ne,"zoom-big")]]};var et=(0,We.Z)("Dropdown",(Ne,Ge)=>{let{rootPrefixCls:ne}=Ge;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ne,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,me.TS)(Ne,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ee(ie),Xe(ie)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},71322:function(Me,st,re){"use strict";re.d(st,{D:function(){return x},Z:function(){return te}});var ae=re(87462),he=re(67294),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ue=_e,ce=re(74643),We=function(ge,ie){return he.createElement(ce.Z,(0,ae.Z)({},ge,{ref:ie,icon:Ue}))},me=he.forwardRef(We),ot=re(22751),Xe=re(91034),Ee=re(94184),et=re.n(Ee),Ne=re(10366),ne=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var ie={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ge.indexOf(se)<0&&(ie[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(oe);le<se.length;le++)ge.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(oe,se[le])&&(ie[se[le]]=oe[se[le]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=he.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var te=he.forwardRef((oe,ge)=>{const{prefixCls:ie,className:se,trigger:le,children:ze,defaultCollapsed:Ie=!1,theme:Qe="dark",style:Ft={},collapsible:ft=!1,reverseArrow:we=!1,width:ut=200,collapsedWidth:it=80,zeroWidthTriggerStyle:Ke,breakpoint:tt,onCollapse:At,onBreakpoint:Ut}=oe,dn=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pn}=(0,he.useContext)(y.Gs),[Fe,Ae]=(0,he.useState)("collapsed"in oe?oe.collapsed:Ie),[Je,Gt]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in oe&&Ae(oe.collapsed)},[oe.collapsed]);const gt=(vt,ke)=>{"collapsed"in oe||Ae(vt),At==null||At(vt,ke)},Pt=(0,he.useRef)();Pt.current=vt=>{Gt(vt.matches),Ut==null||Ut(vt.matches),Fe!==vt.matches&>(vt.matches,"responsive")},(0,he.useEffect)(()=>{function vt(xe){return Pt.current(xe)}let ke;if(typeof window!="undefined"){const{matchMedia:xe}=window;if(xe&&tt&&tt in b){ke=xe(`(max-width: ${b[tt]})`);try{ke.addEventListener("change",vt)}catch(ye){ke.addListener(vt)}vt(ke)}}return()=>{try{ke==null||ke.removeEventListener("change",vt)}catch(xe){ke==null||ke.removeListener(vt)}}},[tt]),(0,he.useEffect)(()=>{const vt=z("ant-sider-");return pn.addSider(vt),()=>pn.removeSider(vt)},[]);const de=()=>{gt(!Fe,"clickTrigger")},{getPrefixCls:lt}=(0,he.useContext)(a.E_),It=()=>{const vt=lt("layout-sider",ie),ke=(0,Ne.Z)(dn,["collapsed"]),xe=Fe?it:ut,ye=ne(xe)?`${xe}px`:String(xe),ve=parseFloat(String(it||0))===0?he.createElement("span",{onClick:de,className:et()(`${vt}-zero-width-trigger`,`${vt}-zero-width-trigger-${we?"right":"left"}`),style:Ke},le||he.createElement(me,null)):null,nt={expanded:we?he.createElement(Xe.Z,null):he.createElement(ot.Z,null),collapsed:we?he.createElement(ot.Z,null):he.createElement(Xe.Z,null)}[Fe?"collapsed":"expanded"],St=le!==null?ve||he.createElement("div",{className:`${vt}-trigger`,onClick:de,style:{width:ye}},le||nt):null,Et=Object.assign(Object.assign({},Ft),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),$t=et()(vt,`${vt}-${Qe}`,{[`${vt}-collapsed`]:!!Fe,[`${vt}-has-trigger`]:ft&&le!==null&&!ve,[`${vt}-below`]:!!Je,[`${vt}-zero-width`]:parseFloat(ye)===0},se);return he.createElement("aside",Object.assign({className:$t},ke,{style:Et,ref:ge}),he.createElement("div",{className:`${vt}-children`},ze),ft||Je&&ve?St:null)},rn=he.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return he.createElement(x.Provider,{value:rn},It())})},84321:function(Me,st,re){"use strict";re.d(st,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ge},ZP:function(){return ee}});var ae=re(74902),he=re(94184),_e=re.n(he),Ue=re(10366),ce=re(67294),We=re(53124),me=re(67968),Xe=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ee=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:ze,headerHeight:Ie,headerPadding:Qe,headerColor:Ft,footerPadding:ft,triggerHeight:we,zeroTriggerHeight:ut,zeroTriggerWidth:it,motionDurationMid:Ke,motionDurationSlow:tt,fontSize:At,borderRadius:Ut,bodyBg:dn,headerBg:pn,siderBg:Fe}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:dn,"&, *":{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:Fe,transition:`all ${Ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:se,lineHeight:`${we}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${Ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ie,insetInlineEnd:-it,zIndex:1,width:it,height:ut,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,cursor:"pointer",transition:`background ${tt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${tt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:Ut,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ut}}}}},Xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ie,padding:Qe,color:Ft,lineHeight:`${Ie}px`,background:pn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:ft,color:ie,fontSize:At,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var et=(0,me.Z)("Layout",te=>[Ee(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:ze,colorTextLightSolid:Ie,colorBgContainer:Qe}=te,Ft=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ft}px`,headerColor:se,footerPadding:`${le}px ${Ft}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ze*2,triggerBg:"#002140",triggerColor:Ie,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Ge=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>ce.forwardRef((ze,Ie)=>ce.createElement(se,Object.assign({ref:Ie,suffixCls:oe,tagName:ge},ze)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,ze=Ne(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ie}=ce.useContext(We.E_),Qe=Ie("layout",ge),[Ft,ft]=et(Qe),we=ie?`${Qe}-${ie}`:Qe;return Ft(ce.createElement(le,Object.assign({className:_e()(ge||we,se,ft),ref:oe},ze)))}),y=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(We.E_),[ie,se]=ce.useState([]),{prefixCls:le,className:ze,rootClassName:Ie,children:Qe,hasSider:Ft,tagName:ft,style:we}=te,ut=Ne(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Ue.Z)(ut,["suffixCls"]),{getPrefixCls:Ke,layout:tt}=ce.useContext(We.E_),At=Ke("layout",le),[Ut,dn]=et(At),pn=_e()(At,{[`${At}-has-sider`]:typeof Ft=="boolean"?Ft:ie.length>0,[`${At}-rtl`]:ge==="rtl"},tt==null?void 0:tt.className,ze,Ie,dn),Fe=ce.useMemo(()=>({siderHook:{addSider:Ae=>{se(Je=>[].concat((0,ae.Z)(Je),[Ae]))},removeSider:Ae=>{se(Je=>Je.filter(Gt=>Gt!==Ae))}}}),[]);return Ut(ce.createElement(Ge.Provider,{value:Fe},ce.createElement(ft,Object.assign({ref:oe,className:pn,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),we)},it),Qe)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Me,st,re){"use strict";re.d(st,{J:function(){return We}});var ae=re(67294),he=re(4173),_e=re(60276),Ue=function(me,ot){var Xe={};for(var Ee in me)Object.prototype.hasOwnProperty.call(me,Ee)&&ot.indexOf(Ee)<0&&(Xe[Ee]=me[Ee]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ee=Object.getOwnPropertySymbols(me);et<Ee.length;et++)ot.indexOf(Ee[et])<0&&Object.prototype.propertyIsEnumerable.call(me,Ee[et])&&(Xe[Ee[et]]=me[Ee[et]]);return Xe};const ce=ae.createContext(null),We=ae.forwardRef((me,ot)=>{const{children:Xe}=me,Ee=Ue(me,["children"]),et=ae.useContext(ce),Ne=ae.useMemo(()=>Object.assign(Object.assign({},et),Ee),[et,Ee.prefixCls,Ee.mode,Ee.selectable]);return ae.createElement(ce.Provider,{value:Ne},ae.createElement(he.BR,null,(0,_e.supportNodeRef)(Xe)?ae.cloneElement(Xe,{ref:ot}):Xe))});st.Z=ce},68508:function(Me,st,re){"use strict";re.d(st,{default:function(){return vt}});var ae=re(78595),he=re(67294),_e=re(71322),Ue=re(94184),ce=re.n(Ue),We=re(53124),me=function(ke,xe){var ye={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(ye[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ve=Object.getOwnPropertySymbols(ke);Le<ve.length;Le++)xe.indexOf(ve[Le])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Le])&&(ye[ve[Le]]=ke[ve[Le]]);return ye},Xe=ke=>{const{prefixCls:xe,className:ye,dashed:ve}=ke,Le=me(ke,["prefixCls","className","dashed"]),{getPrefixCls:je}=he.useContext(We.E_),nt=je("menu",xe),St=ce()({[`${nt}-item-divider-dashed`]:!!ve},ye);return he.createElement(ae.iz,Object.assign({className:St},Le))},Ee=re(37419),et=re(10366),Ne=re(83062),Ge=re(96159),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=ke=>{var xe;const{className:ye,children:ve,icon:Le,title:je,danger:nt}=ke,{prefixCls:St,firstLevel:Et,direction:$t,disableMenuItemTitleTooltip:Dt,inlineCollapsed:Rt}=he.useContext(a),sn=Ce=>{const De=he.createElement("span",{className:`${St}-title-content`},ve);return(!Le||(0,Ge.l$)(ve)&&ve.type==="span")&&ve&&Ce&&Et&&typeof ve=="string"?he.createElement("div",{className:`${St}-inline-collapsed-noicon`},ve.charAt(0)):De},{siderCollapsed:Jt}=he.useContext(_e.D);let Vt=je;typeof je=="undefined"?Vt=Et?ve:"":je===!1&&(Vt="");const Zt={title:Vt};!Jt&&!Rt&&(Zt.title=null,Zt.open=!1);const un=(0,Ee.Z)(ve).length;let Se=he.createElement(ae.ck,Object.assign({},(0,et.Z)(ke,["title","icon","danger"]),{className:ce()({[`${St}-item-danger`]:nt,[`${St}-item-only-child`]:(Le?un+1:un)===1},ye),title:typeof je=="string"?je:void 0}),(0,Ge.Tm)(Le,{className:ce()((0,Ge.l$)(Le)?(xe=Le.props)===null||xe===void 0?void 0:xe.className:"",`${St}-item-icon`)}),sn(Rt));return Dt||(Se=he.createElement(Ne.Z,Object.assign({},Zt,{placement:$t==="rtl"?"left":"right",overlayClassName:`${St}-inline-collapsed-tooltip`}),Se)),Se},x=ke=>{var xe;const{popupClassName:ye,icon:ve,title:Le,theme:je}=ke,nt=he.useContext(a),{prefixCls:St,inlineCollapsed:Et,theme:$t}=nt,Dt=(0,ae.Xl)();let Rt;if(!ve)Rt=Et&&!Dt.length&&Le&&typeof Le=="string"?he.createElement("div",{className:`${St}-inline-collapsed-noicon`},Le.charAt(0)):he.createElement("span",{className:`${St}-title-content`},Le);else{const Jt=(0,Ge.l$)(Le)&&Le.type==="span";Rt=he.createElement(he.Fragment,null,(0,Ge.Tm)(ve,{className:ce()((0,Ge.l$)(ve)?(xe=ve.props)===null||xe===void 0?void 0:xe.className:"",`${St}-item-icon`)}),Jt?Le:he.createElement("span",{className:`${St}-title-content`},Le))}const sn=he.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]);return he.createElement(a.Provider,{value:sn},he.createElement(ae.Wd,Object.assign({},(0,et.Z)(ke,["icon"]),{title:Rt,popupClassName:ce()(St,ye,`${St}-${je||$t}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(ke,xe){var ye={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(ye[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ve=Object.getOwnPropertySymbols(ke);Le<ve.length;Le++)xe.indexOf(ve[Le])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Le])&&(ye[ve[Le]]=ke[ve[Le]]);return ye};function ie(ke){return(ke||[]).map((xe,ye)=>{if(xe&&typeof xe=="object"){const ve=xe,{label:Le,children:je,key:nt,type:St}=ve,Et=ge(ve,["label","children","key","type"]),$t=nt!=null?nt:`tmp-${ye}`;return je||St==="group"?St==="group"?he.createElement(ae.BW,Object.assign({key:$t},Et,{title:Le}),ie(je)):he.createElement(x,Object.assign({key:$t},Et,{title:Le}),ie(je)):St==="divider"?he.createElement(Xe,Object.assign({key:$t},Et)):he.createElement(E,Object.assign({key:$t},Et),Le)}return null}).filter(xe=>xe)}function se(ke){return he.useMemo(()=>ke&&ie(ke),[ke])}var le=re(84780),ze=re(14747),Ie=re(33507),Qe=re(67771),Ft=re(50438),ft=re(67968),we=re(45503),it=ke=>{const{componentCls:xe,motionDurationSlow:ye,horizontalLineHeight:ve,colorSplit:Le,lineWidth:je,lineType:nt,itemPaddingInline:St}=ke;return{[`${xe}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${je}px ${nt} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${xe}-item, ${xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:St},[`> ${xe}-item:hover,
|
|
> ${xe}-item-active,
|
|
> ${xe}-submenu ${xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${xe}-item, ${xe}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${xe}-submenu-arrow`]:{display:"none"}}}},tt=ke=>{let{componentCls:xe,menuArrowOffset:ye}=ke;return{[`${xe}-rtl`]:{direction:"rtl"},[`${xe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${xe}-rtl${xe}-vertical,
|
|
${xe}-submenu-rtl ${xe}-vertical`]:{[`${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const At=ke=>Object.assign({},(0,ze.oN)(ke));var dn=(ke,xe)=>{const{componentCls:ye,itemColor:ve,itemSelectedColor:Le,groupTitleColor:je,itemBg:nt,subMenuItemBg:St,itemSelectedBg:Et,activeBarHeight:$t,activeBarWidth:Dt,activeBarBorderWidth:Rt,motionDurationSlow:sn,motionEaseInOut:Jt,motionEaseOut:Vt,itemPaddingInline:Zt,motionDurationMid:un,itemHoverColor:Se,lineType:Ce,colorSplit:De,itemDisabledColor:rt,dangerItemColor:dt,dangerItemHoverColor:Mt,dangerItemSelectedColor:Nt,dangerItemActiveBg:bt,dangerItemSelectedBg:Bt,itemHoverBg:Ht,itemActiveBg:jt,menuSubMenuBg:an,horizontalItemSelectedColor:en,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:qt,popupBg:_t}=ke;return{[`${ye}-${xe}, ${ye}-${xe} > ${ye}`]:{color:ve,background:nt,[`&${ye}-root:focus-visible`]:Object.assign({},At(ke)),[`${ye}-item-group-title`]:{color:je},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:Le}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${rt} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Se}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Ht},"&:active":{backgroundColor:jt}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Ht},"&:active":{backgroundColor:jt}}},[`${ye}-item-danger`]:{color:dt,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:Mt}},[`&${ye}-item:active`]:{background:bt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:Le,[`&${ye}-item-danger`]:{color:Nt},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:Et,[`&${ye}-item-danger`]:{backgroundColor:Bt}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},At(ke))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:an},[`&${ye}-popup > ${ye}`]:{backgroundColor:_t},[`&${ye}-horizontal`]:Object.assign(Object.assign({},xe==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Rt,marginTop:-Rt,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Zt,bottom:0,borderBottom:`${$t}px solid transparent`,transition:`border-color ${sn} ${Jt}`,content:'""'},"&:hover, &-active, &-open":{background:qt,"&::after":{borderBottomWidth:$t,borderBottomColor:en}},"&-selected":{color:en,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:$t,borderBottomColor:en}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${Rt}px ${Ce} ${De}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:St},[`${ye}-item, ${ye}-submenu-title`]:Rt&&Dt?{width:`calc(100% + ${Rt}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Dt}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${un} ${Vt}`,`opacity ${un} ${Vt}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Nt}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${un} ${Jt}`,`opacity ${un} ${Jt}`].join(",")}}}}}};const pn=ke=>{const{componentCls:xe,itemHeight:ye,itemMarginInline:ve,padding:Le,menuArrowSize:je,marginXS:nt,itemMarginBlock:St}=ke,Et=Le+je+nt;return{[`${xe}-item`]:{position:"relative",overflow:"hidden"},[`${xe}-item, ${xe}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:St,width:`calc(100% - ${ve*2}px)`},[`> ${xe}-item,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${xe}-item-group-list ${xe}-submenu-title,
|
|
${xe}-submenu-title`]:{paddingInlineEnd:Et}}};var Ae=ke=>{const{componentCls:xe,iconCls:ye,itemHeight:ve,colorTextLightSolid:Le,dropdownWidth:je,controlHeightLG:nt,motionDurationMid:St,motionEaseOut:Et,paddingXL:$t,itemMarginInline:Dt,fontSizeLG:Rt,motionDurationSlow:sn,paddingXS:Jt,boxShadowSecondary:Vt,collapsedWidth:Zt,collapsedIconSize:un}=ke,Se={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[xe]:{"&-inline, &-vertical":Object.assign({[`&${xe}-root`]:{boxShadow:"none"}},pn(ke))},[`${xe}-submenu-popup`]:{[`${xe}-vertical`]:Object.assign(Object.assign({},pn(ke)),{boxShadow:Vt})}},{[`${xe}-submenu-popup ${xe}-vertical${xe}-sub`]:{minWidth:je,maxHeight:`calc(100vh - ${nt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${xe}-inline`]:{width:"100%",[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${St} ${Et}`].join(","),[`> ${xe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${xe}-sub${xe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${xe}-submenu > ${xe}-submenu-title`]:Se,[`& ${xe}-item-group-title`]:{paddingInlineStart:$t}},[`${xe}-item`]:Se}},{[`${xe}-inline-collapsed`]:{width:Zt,[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu ${xe}-submenu-title`]:{[`> ${xe}-inline-collapsed-noicon`]:{fontSize:Rt,textAlign:"center"}}},[`> ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-item,
|
|
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-submenu > ${xe}-submenu-title,
|
|
> ${xe}-submenu > ${xe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt/2}px - ${Dt}px)`,textOverflow:"clip",[`
|
|
${xe}-submenu-arrow,
|
|
${xe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${xe}-item-icon, ${ye}`]:{margin:0,fontSize:un,lineHeight:`${ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${xe}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${xe}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:Le}},[`${xe}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:Jt})}}]};const Je=ke=>{const{componentCls:xe,motionDurationSlow:ye,motionDurationMid:ve,motionEaseInOut:Le,motionEaseOut:je,iconCls:nt,iconSize:St,iconMarginInlineEnd:Et}=ke;return{[`${xe}-item, ${xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${Le}`].join(","),[`${xe}-item-icon, ${nt}`]:{minWidth:St,fontSize:St,transition:[`font-size ${ve} ${je}`,`margin ${ye} ${Le}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:Et,opacity:1,transition:[`opacity ${ye} ${Le}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${xe}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${xe}-item-only-child`]:{[`> ${nt}, > ${xe}-item-icon`]:{marginInlineEnd:0}}},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${xe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gt=ke=>{const{componentCls:xe,motionDurationSlow:ye,motionEaseInOut:ve,borderRadius:Le,menuArrowSize:je,menuArrowOffset:nt}=ke;return{[`${xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ke.margin,width:je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${ve}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:je*.6,height:je*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${ye} ${ve}`,`transform ${ye} ${ve}`,`top ${ye} ${ve}`,`color ${ye} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${nt})`},"&::after":{transform:`rotate(-45deg) translateY(${nt})`}}}}},gt=ke=>{const{antCls:xe,componentCls:ye,fontSize:ve,motionDurationSlow:Le,motionDurationMid:je,motionEaseInOut:nt,paddingXS:St,padding:Et,colorSplit:$t,lineWidth:Dt,zIndexPopup:Rt,borderRadiusLG:sn,subMenuItemBorderRadius:Jt,menuArrowSize:Vt,menuArrowOffset:Zt,lineType:un,menuPanelMaskInset:Se,groupTitleLineHeight:Ce,groupTitleFontSize:De}=ke;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(ke)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:ke.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${St}px ${Et}px`,fontSize:De,lineHeight:Ce,transition:`all ${Le}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${Le} ${nt}`,`background ${Le} ${nt}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${Le} ${nt}`,`background ${Le} ${nt}`,`padding ${je} ${nt}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${Le} ${nt}`,`padding ${Le} ${nt}`].join(",")},[`${ye}-title-content`]:{transition:`color ${Le}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$t,borderStyle:un,borderWidth:0,borderTopWidth:Dt,marginBlock:Dt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(ke)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${ve*2}px ${Et}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Rt,borderRadius:sn,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Se}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Se},"\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:ke.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ke.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ke.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ke.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:sn},Je(ke)),Gt(ke)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Jt},[`${ye}-submenu-title::after`]:{transition:`transform ${Le} ${nt}`}})}}),Gt(ke)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Zt})`},"&::after":{transform:`rotate(45deg) translateX(-${Zt})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${Vt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Zt})`},"&::before":{transform:`rotate(45deg) translateX(${Zt})`}}})},{[`${xe}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var Pt=(ke,xe)=>(0,ft.Z)("Menu",ve=>{if(xe===!1)return[];const{colorBgElevated:Le,colorPrimary:je,colorTextLightSolid:nt,controlHeightLG:St,fontSize:Et,darkItemColor:$t,darkDangerItemColor:Dt,darkItemBg:Rt,darkSubMenuItemBg:sn,darkItemSelectedColor:Jt,darkItemSelectedBg:Vt,darkDangerItemSelectedBg:Zt,darkItemHoverBg:un,darkGroupTitleColor:Se,darkItemHoverColor:Ce,darkItemDisabledColor:De,darkDangerItemHoverColor:rt,darkDangerItemSelectedColor:dt,darkDangerItemActiveBg:Mt}=ve,Nt=Et/7*5,bt=(0,we.TS)(ve,{menuArrowSize:Nt,menuHorizontalHeight:St*1.15,menuArrowOffset:`${Nt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),Bt=(0,we.TS)(bt,{itemColor:$t,itemHoverColor:Ce,groupTitleColor:Se,itemSelectedColor:Jt,itemBg:Rt,popupBg:Rt,subMenuItemBg:sn,itemActiveBg:"transparent",itemSelectedBg:Vt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:un,itemDisabledColor:De,dangerItemColor:Dt,dangerItemHoverColor:rt,dangerItemSelectedColor:dt,dangerItemActiveBg:Mt,dangerItemSelectedBg:Zt,menuSubMenuBg:sn,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:je});return[gt(bt),it(bt),Ae(bt),dn(bt,"light"),dn(Bt,"dark"),tt(bt),(0,Ie.Z)(bt),(0,Qe.oN)(bt,"slide-up"),(0,Qe.oN)(bt,"slide-down"),(0,Ft._y)(bt,"zoom-big")]},ve=>{const{colorPrimary:Le,colorError:je,colorTextDisabled:nt,colorErrorBg:St,colorText:Et,colorTextDescription:$t,colorBgContainer:Dt,colorFillAlter:Rt,colorFillContent:sn,lineWidth:Jt,lineWidthBold:Vt,controlItemBgActive:Zt,colorBgTextHover:un,controlHeightLG:Se,lineHeight:Ce,colorBgElevated:De,marginXXS:rt,padding:dt,fontSize:Mt,controlHeightSM:Nt,fontSizeLG:bt,colorTextLightSolid:Bt,colorErrorHover:Ht}=ve,jt=new le.C(Bt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:Et,itemColor:Et,colorItemTextHover:Et,itemHoverColor:Et,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:Dt,itemBg:Dt,colorItemBgHover:un,itemHoverBg:un,colorItemBgActive:sn,itemActiveBg:Zt,colorSubItemBg:Rt,subMenuItemBg:Rt,colorItemBgSelected:Zt,itemSelectedBg:Zt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Vt,activeBarHeight:Vt,colorActiveBarBorderSize:Jt,activeBarBorderWidth:Jt,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:je,dangerItemColor:je,colorDangerItemTextHover:je,dangerItemHoverColor:je,colorDangerItemTextSelected:je,dangerItemSelectedColor:je,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Se,groupTitleLineHeight:Ce,collapsedWidth:Se*2,popupBg:De,itemMarginBlock:rt,itemPaddingInline:dt,horizontalLineHeight:`${Se*1.15}px`,iconSize:Mt,iconMarginInlineEnd:Nt-Mt,collapsedIconSize:bt,groupTitleFontSize:Mt,darkItemDisabledColor:new le.C(Bt).setAlpha(.25).toRgbString(),darkItemColor:jt,darkDangerItemColor:je,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Bt,darkItemSelectedBg:Le,darkDangerItemSelectedBg:je,darkItemHoverBg:"transparent",darkGroupTitleColor:jt,darkItemHoverColor:Bt,darkDangerItemHoverColor:Ht,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:je}},{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"]]})(ke),de=function(ke,xe){var ye={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(ye[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ve=Object.getOwnPropertySymbols(ke);Le<ve.length;Le++)xe.indexOf(ve[Le])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Le])&&(ye[ve[Le]]=ke[ve[Le]]);return ye},It=(0,he.forwardRef)((ke,xe)=>{var ye,ve;const Le=he.useContext(oe.Z),je=Le||{},{getPrefixCls:nt,getPopupContainer:St,direction:Et,menu:$t}=he.useContext(We.E_),Dt=nt(),{prefixCls:Rt,className:sn,style:Jt,theme:Vt="light",expandIcon:Zt,_internalDisableMenuItemTitleTooltip:un,inlineCollapsed:Se,siderCollapsed:Ce,items:De,children:rt,rootClassName:dt,mode:Mt,selectable:Nt,onClick:bt,overflowedIndicatorPopupClassName:Bt}=ke,Ht=de(ke,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jt=(0,et.Z)(Ht,["collapsedWidth"]),an=se(De)||rt;(ye=je.validator)===null||ye===void 0||ye.call(je,{mode:Mt});const en=(0,ee.useEvent)(function(){var bn;bt==null||bt.apply(void 0,arguments),(bn=je.onClick)===null||bn===void 0||bn.call(je)}),fn=je.mode||Mt,vn=Nt!=null?Nt:je.selectable,qt=he.useMemo(()=>Ce!==void 0?Ce:Se,[Se,Ce]),_t={horizontal:{motionName:`${Dt}-slide-up`},inline:(0,te.Z)(Dt),other:{motionName:`${Dt}-zoom-big`}},mn=nt("menu",Rt||je.prefixCls),[Pn,yn]=Pt(mn,!Le),ln=ce()(`${mn}-${Vt}`,$t==null?void 0:$t.className,sn);let wn;if(typeof Zt=="function")wn=Zt;else if(Zt===null||Zt===!1)wn=null;else if(je.expandIcon===null||je.expandIcon===!1)wn=null;else{const bn=Zt!=null?Zt:je.expandIcon;wn=(0,Ge.Tm)(bn,{className:ce()(`${mn}-submenu-expand-icon`,(0,Ge.l$)(bn)?(ve=bn.props)===null||ve===void 0?void 0:ve.className:"")})}const jn=he.useMemo(()=>({prefixCls:mn,inlineCollapsed:qt||!1,direction:Et,firstLevel:!0,theme:Vt,mode:fn,disableMenuItemTitleTooltip:un}),[mn,qt,Et,un,Vt]);return Pn(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:jn},he.createElement(ae.ZP,Object.assign({getPopupContainer:St,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(mn,`${mn}-${Vt}`,Bt),mode:fn,selectable:vn,onClick:en},jt,{inlineCollapsed:qt,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Jt),className:ln,prefixCls:mn,direction:Et,defaultMotions:_t,expandIcon:wn,ref:xe,rootClassName:ce()(dt,yn)}),an))))});const rn=(0,he.forwardRef)((ke,xe)=>{const ye=(0,he.useRef)(null),ve=he.useContext(_e.D);return(0,he.useImperativeHandle)(xe,()=>({menu:ye.current,focus:Le=>{var je;(je=ye.current)===null||je===void 0||je.focus(Le)}})),he.createElement(It,Object.assign({ref:ye},ke,ve))});rn.Item=E,rn.SubMenu=x,rn.Divider=Xe,rn.ItemGroup=ae.BW;var vt=rn},38703:function(Me,st,re){"use strict";re.d(st,{Z:function(){return un}});var ae=re(67294),he=re(87725),_e=re(18299),Ue=re(16646),ce=re(73475),We=re(94184),me=re.n(We),ot=re(10366),Xe=re(53124),Ee=re(87462),et=re(1413),Ne=re(45987),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ce=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var rt=Date.now(),dt=!1;Ce.current.forEach(function(Mt){if(Mt){dt=!0;var Nt=Mt.style;Nt.transitionDuration=".3s, .3s, .3s, .06s",De.current&&rt-De.current<100&&(Nt.transitionDuration="0s, 0s")}}),dt&&(De.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var De=(0,et.Z)((0,et.Z)({},Ge),Ce),rt=De.className,dt=De.percent,Mt=De.prefixCls,Nt=De.strokeColor,bt=De.strokeLinecap,Bt=De.strokeWidth,Ht=De.style,jt=De.trailColor,an=De.trailWidth,en=De.transition,fn=(0,Ne.Z)(De,a);delete fn.gapPosition;var vn=Array.isArray(dt)?dt:[dt],qt=Array.isArray(Nt)?Nt:[Nt],_t=ne(),mn=Bt/2,Pn=100-Bt/2,yn="M ".concat(bt==="round"?mn:0,",").concat(mn,`
|
|
L `).concat(bt==="round"?Pn:100,",").concat(mn),ln="0 0 100 ".concat(Bt),wn=0;return ae.createElement("svg",(0,Ee.Z)({className:me()("".concat(Mt,"-line"),rt),viewBox:ln,preserveAspectRatio:"none",style:Ht},fn),ae.createElement("path",{className:"".concat(Mt,"-line-trail"),d:yn,strokeLinecap:bt,stroke:jt,strokeWidth:an||Bt,fillOpacity:"0"}),vn.map(function(jn,bn){var Dn=1;switch(bt){case"round":Dn=1-Bt/100;break;case"square":Dn=1-Bt/2/100;break;default:Dn=1;break}var _n={strokeDasharray:"".concat(jn*Dn,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:en||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fe=qt[bn]||qt[qt.length-1];return wn+=jn,ae.createElement("path",{key:bn,className:"".concat(Mt,"-line-path"),d:yn,strokeLinecap:bt,stroke:fe,strokeWidth:Bt,fillOpacity:"0",ref:function(Pe){_t[bn]=Pe},style:_n})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var Se;return te?(Se=ee,ee+=1):Se="TEST_OR_SSR",Se}var ge=function(Se){var Ce=ae.useState(),De=(0,x.Z)(Ce,2),rt=De[0],dt=De[1];return ae.useEffect(function(){dt("rc_progress_".concat(oe()))},[]),Se||rt},ie=function(Ce){var De=Ce.bg,rt=Ce.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},rt)};function se(Se,Ce){return Object.keys(Se).map(function(De){var rt=parseFloat(De),dt="".concat(Math.floor(rt*Ce),"%");return"".concat(Se[De]," ").concat(dt)})}var le=ae.forwardRef(function(Se,Ce){var De=Se.prefixCls,rt=Se.color,dt=Se.gradientId,Mt=Se.radius,Nt=Se.style,bt=Se.ptg,Bt=Se.strokeLinecap,Ht=Se.strokeWidth,jt=Se.size,an=Se.gapDegree,en=rt&&(0,b.Z)(rt)==="object",fn=en?"#FFF":void 0,vn=jt/2,qt=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Mt,cx:vn,cy:vn,stroke:fn,strokeLinecap:Bt,strokeWidth:Ht,opacity:bt===0?0:1,style:Nt,ref:Ce});if(!en)return qt;var _t="".concat(dt,"-conic"),mn=an?"".concat(180+an/2,"deg"):"0deg",Pn=se(rt,(360-an)/360),yn=se(rt,1),ln="conic-gradient(from ".concat(mn,", ").concat(Pn.join(", "),")"),wn="linear-gradient(to ".concat(an?"bottom":"top",", ").concat(yn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:_t},qt),ae.createElement("foreignObject",{x:0,y:0,width:jt,height:jt,mask:"url(#".concat(_t,")")},ae.createElement(ie,{bg:wn},ae.createElement(ie,{bg:ln}))))}),ze=le,Ie=100,Qe=function(Ce,De,rt,dt,Mt,Nt,bt,Bt,Ht,jt){var an=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,en=rt/100*360*((360-Nt)/360),fn=Nt===0?0:{bottom:0,top:180,left:90,right:-90}[bt],vn=(100-dt)/100*De;Ht==="round"&&dt!==100&&(vn+=jt/2,vn>=De&&(vn=De-.01));var qt=Ie/2;return{stroke:typeof Bt=="string"?Bt:void 0,strokeDasharray:"".concat(De,"px ").concat(Ce),strokeDashoffset:vn+an,transform:"rotate(".concat(Mt+en+fn,"deg)"),transformOrigin:"".concat(qt,"px ").concat(qt,"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}},Ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ft(Se){var Ce=Se!=null?Se:[];return Array.isArray(Ce)?Ce:[Ce]}var we=function(Ce){var De=(0,et.Z)((0,et.Z)({},Ge),Ce),rt=De.id,dt=De.prefixCls,Mt=De.steps,Nt=De.strokeWidth,bt=De.trailWidth,Bt=De.gapDegree,Ht=Bt===void 0?0:Bt,jt=De.gapPosition,an=De.trailColor,en=De.strokeLinecap,fn=De.style,vn=De.className,qt=De.strokeColor,_t=De.percent,mn=(0,Ne.Z)(De,Ft),Pn=Ie/2,yn=ge(rt),ln="".concat(yn,"-gradient"),wn=Pn-Nt/2,jn=Math.PI*2*wn,bn=Ht>0?90+Ht/2:-90,Dn=jn*((360-Ht)/360),_n=(0,b.Z)(Mt)==="object"?Mt:{count:Mt,space:2},fe=_n.count,pe=_n.space,Pe=ft(_t),He=ft(qt),mt=He.find(function(zn){return zn&&(0,b.Z)(zn)==="object"}),pt=mt&&(0,b.Z)(mt)==="object",on=pt?"butt":en,Qt=Qe(jn,Dn,0,100,bn,Ht,jt,an,on,Nt),Ot=ne(),Fn=function(){var Ye=0;return Pe.map(function(Yt,ue){var Be=He[ue]||He[He.length-1],be=Qe(jn,Dn,Ye,Yt,bn,Ht,jt,Be,on,Nt);return Ye+=Yt,ae.createElement(ze,{key:ue,color:Be,ptg:Yt,radius:wn,prefixCls:dt,gradientId:ln,style:be,strokeLinecap:on,strokeWidth:Nt,gapDegree:Ht,ref:function(qe){Ot[ue]=qe},size:Ie})}).reverse()},Yn=function(){var Ye=Math.round(fe*(Pe[0]/100)),Yt=100/fe,ue=0;return new Array(fe).fill(null).map(function(Be,be){var $e=be<=Ye-1?He[0]:an,qe=$e&&(0,b.Z)($e)==="object"?"url(#".concat(ln,")"):void 0,Re=Qe(jn,Dn,ue,Yt,bn,Ht,jt,$e,"butt",Nt,pe);return ue+=(Dn-Re.strokeDashoffset+pe)*100/Dn,ae.createElement("circle",{key:be,className:"".concat(dt,"-circle-path"),r:wn,cx:Pn,cy:Pn,stroke:qe,strokeWidth:Nt,opacity:1,style:Re,ref:function(Te){Ot[be]=Te}})})};return ae.createElement("svg",(0,Ee.Z)({className:me()("".concat(dt,"-circle"),vn),viewBox:"0 0 ".concat(Ie," ").concat(Ie),style:fn,id:rt,role:"presentation"},mn),!fe&&ae.createElement("circle",{className:"".concat(dt,"-circle-trail"),r:wn,cx:Pn,cy:Pn,stroke:an,strokeLinecap:on,strokeWidth:bt||Nt,style:Qt}),fe?Yn():Fn())},ut=we,it={Line:E,Circle:ut},Ke=re(83062),tt=re(47448);function At(Se){return!Se||Se<0?0:Se>100?100:Se}function Ut(Se){let{success:Ce,successPercent:De}=Se,rt=De;return Ce&&"progress"in Ce&&(rt=Ce.progress),Ce&&"percent"in Ce&&(rt=Ce.percent),rt}const dn=Se=>{let{percent:Ce,success:De,successPercent:rt}=Se;const dt=At(Ut({success:De,successPercent:rt}));return[dt,At(At(Ce)-dt)]},pn=Se=>{let{success:Ce={},strokeColor:De}=Se;const{strokeColor:rt}=Ce;return[rt||tt.presetPrimaryColors.green,De||null]},Fe=(Se,Ce,De)=>{var rt,dt,Mt,Nt;let bt=-1,Bt=-1;if(Ce==="step"){const Ht=De.steps,jt=De.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?(bt=Se==="small"?2:14,Bt=jt!=null?jt:8):typeof Se=="number"?[bt,Bt]=[Se,Se]:[bt=14,Bt=8]=Se,bt*=Ht}else if(Ce==="line"){const Ht=De==null?void 0:De.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?Bt=Ht||(Se==="small"?6:8):typeof Se=="number"?[bt,Bt]=[Se,Se]:[bt=-1,Bt=8]=Se}else(Ce==="circle"||Ce==="dashboard")&&(typeof Se=="string"||typeof Se=="undefined"?[bt,Bt]=Se==="small"?[60,60]:[120,120]:typeof Se=="number"?[bt,Bt]=[Se,Se]:(bt=(dt=(rt=Se[0])!==null&&rt!==void 0?rt:Se[1])!==null&&dt!==void 0?dt:120,Bt=(Nt=(Mt=Se[0])!==null&&Mt!==void 0?Mt:Se[1])!==null&&Nt!==void 0?Nt:120));return[bt,Bt]},Ae=3,Je=Se=>Ae/Se*100;var gt=Se=>{const{prefixCls:Ce,trailColor:De=null,strokeLinecap:rt="round",gapPosition:dt,gapDegree:Mt,width:Nt=120,type:bt,children:Bt,success:Ht,size:jt=Nt}=Se,[an,en]=Fe(jt,"circle");let{strokeWidth:fn}=Se;fn===void 0&&(fn=Math.max(Je(an),6));const vn={width:an,height:en,fontSize:an*.15+6},qt=ae.useMemo(()=>{if(Mt||Mt===0)return Mt;if(bt==="dashboard")return 75},[Mt,bt]),_t=dt||bt==="dashboard"&&"bottom"||void 0,mn=Object.prototype.toString.call(Se.strokeColor)==="[object Object]",Pn=pn({success:Ht,strokeColor:Se.strokeColor}),yn=me()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:mn}),ln=ae.createElement(ut,{percent:dn(Se),strokeWidth:fn,trailWidth:fn,strokeColor:Pn,strokeLinecap:rt,trailColor:De,prefixCls:Ce,gapDegree:qt,gapPosition:_t});return ae.createElement("div",{className:yn,style:vn},an<=20?ae.createElement(Ke.Z,{title:Bt},ae.createElement("span",null,ln)):ae.createElement(ae.Fragment,null,ln,Bt))},Pt=function(Se,Ce){var De={};for(var rt in Se)Object.prototype.hasOwnProperty.call(Se,rt)&&Ce.indexOf(rt)<0&&(De[rt]=Se[rt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,rt=Object.getOwnPropertySymbols(Se);dt<rt.length;dt++)Ce.indexOf(rt[dt])<0&&Object.prototype.propertyIsEnumerable.call(Se,rt[dt])&&(De[rt[dt]]=Se[rt[dt]]);return De};const de=Se=>{let Ce=[];return Object.keys(Se).forEach(De=>{const rt=parseFloat(De.replace(/%/g,""));isNaN(rt)||Ce.push({key:rt,value:Se[De]})}),Ce=Ce.sort((De,rt)=>De.key-rt.key),Ce.map(De=>{let{key:rt,value:dt}=De;return`${dt} ${rt}%`}).join(", ")},lt=(Se,Ce)=>{const{from:De=tt.presetPrimaryColors.blue,to:rt=tt.presetPrimaryColors.blue,direction:dt=Ce==="rtl"?"to left":"to right"}=Se,Mt=Pt(Se,["from","to","direction"]);if(Object.keys(Mt).length!==0){const Nt=de(Mt);return{backgroundImage:`linear-gradient(${dt}, ${Nt})`}}return{backgroundImage:`linear-gradient(${dt}, ${De}, ${rt})`}};var rn=Se=>{const{prefixCls:Ce,direction:De,percent:rt,size:dt,strokeWidth:Mt,strokeColor:Nt,strokeLinecap:bt="round",children:Bt,trailColor:Ht=null,success:jt}=Se,an=Nt&&typeof Nt!="string"?lt(Nt,De):{backgroundColor:Nt},en=bt==="square"||bt==="butt"?0:void 0,fn={backgroundColor:Ht||void 0,borderRadius:en},vn=dt!=null?dt:[-1,Mt||(dt==="small"?6:8)],[qt,_t]=Fe(vn,"line",{strokeWidth:Mt}),mn=Object.assign({width:`${At(rt)}%`,height:_t,borderRadius:en},an),Pn=Ut(Se),yn={width:`${At(Pn)}%`,height:_t,borderRadius:en,backgroundColor:jt==null?void 0:jt.strokeColor},ln={width:qt<0?"100%":qt,height:_t};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ce}-outer`,style:ln},ae.createElement("div",{className:`${Ce}-inner`,style:fn},ae.createElement("div",{className:`${Ce}-bg`,style:mn}),Pn!==void 0?ae.createElement("div",{className:`${Ce}-success-bg`,style:yn}):null)),Bt)},ke=Se=>{const{size:Ce,steps:De,percent:rt=0,strokeWidth:dt=8,strokeColor:Mt,trailColor:Nt=null,prefixCls:bt,children:Bt}=Se,Ht=Math.round(De*(rt/100)),jt=Ce==="small"?2:14,an=Ce!=null?Ce:[jt,dt],[en,fn]=Fe(an,"step",{steps:De,strokeWidth:dt}),vn=en/De,qt=new Array(De);for(let _t=0;_t<De;_t++){const mn=Array.isArray(Mt)?Mt[_t]:Mt;qt[_t]=ae.createElement("div",{key:_t,className:me()(`${bt}-steps-item`,{[`${bt}-steps-item-active`]:_t<=Ht-1}),style:{backgroundColor:_t<=Ht-1?mn:Nt,width:vn,height:fn}})}return ae.createElement("div",{className:`${bt}-steps-outer`},qt,Bt)},xe=re(45930),ye=re(14747),ve=re(67968),Le=re(45503);const je=Se=>{const Ce=Se?"100%":"-100%";return new xe.Keyframes(`antProgress${Se?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=Se=>{const{componentCls:Ce,iconCls:De}=Se;return{[Ce]:Object.assign(Object.assign({},(0,ye.Wf)(Se)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Se.fontSize,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${Se.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Se.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Se.remainingColor,borderRadius:Se.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Se.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:Se.defaultColor,borderRadius:Se.lineBorderRadius,transition:`all ${Se.motionDurationSlow} ${Se.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Se.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Se.marginXS,color:Se.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:Se.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Se.colorBgContainer,borderRadius:Se.lineBorderRadius,opacity:0,animationName:je(),animationDuration:Se.progressActiveMotionDuration,animationTimingFunction:Se.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:je(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:Se.colorError},[`${Ce}-text`]:{color:Se.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Se.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:Se.colorSuccess},[`${Ce}-text`]:{color:Se.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Se.colorSuccess}}})}},St=Se=>{const{componentCls:Ce,iconCls:De}=Se;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:Se.remainingColor},[`&${Ce}-circle ${Ce}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ce}-circle ${Ce}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Se.circleTextColor,fontSize:Se.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${Se.fontSize/Se.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:Se.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:Se.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},Et=Se=>{const{componentCls:Ce}=Se;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Se.progressStepMinWidth,marginInlineEnd:Se.progressStepMarginInlineEnd,backgroundColor:Se.remainingColor,transition:`all ${Se.motionDurationSlow}`,"&-active":{backgroundColor:Se.defaultColor}}}}}},$t=Se=>{const{componentCls:Ce,iconCls:De}=Se;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${De}`]:{fontSize:Se.fontSizeSM}}}};var Dt=(0,ve.Z)("Progress",Se=>{const Ce=Se.marginXXS/2,De=(0,Le.TS)(Se,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[nt(De),St(De),Et(De),$t(De)]},Se=>({circleTextColor:Se.colorText,defaultColor:Se.colorInfo,remainingColor:Se.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Rt=function(Se,Ce){var De={};for(var rt in Se)Object.prototype.hasOwnProperty.call(Se,rt)&&Ce.indexOf(rt)<0&&(De[rt]=Se[rt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,rt=Object.getOwnPropertySymbols(Se);dt<rt.length;dt++)Ce.indexOf(rt[dt])<0&&Object.prototype.propertyIsEnumerable.call(Se,rt[dt])&&(De[rt[dt]]=Se[rt[dt]]);return De};const sn=null,Jt=["normal","exception","active","success"];var Zt=ae.forwardRef((Se,Ce)=>{const{prefixCls:De,className:rt,rootClassName:dt,steps:Mt,strokeColor:Nt,percent:bt=0,size:Bt="default",showInfo:Ht=!0,type:jt="line",status:an,format:en,style:fn}=Se,vn=Rt(Se,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),qt=ae.useMemo(()=>{var Pe,He;const mt=Ut(Se);return parseInt(mt!==void 0?(Pe=mt!=null?mt:0)===null||Pe===void 0?void 0:Pe.toString():(He=bt!=null?bt:0)===null||He===void 0?void 0:He.toString(),10)},[bt,Se.success,Se.successPercent]),_t=ae.useMemo(()=>!Jt.includes(an)&&qt>=100?"success":an||"normal",[an,qt]),{getPrefixCls:mn,direction:Pn,progress:yn}=ae.useContext(Xe.E_),ln=mn("progress",De),[wn,jn]=Dt(ln),bn=ae.useMemo(()=>{if(!Ht)return null;const Pe=Ut(Se);let He;const mt=en||(on=>`${on}%`),pt=jt==="line";return en||_t!=="exception"&&_t!=="success"?He=mt(At(bt),At(Pe)):_t==="exception"?He=pt?ae.createElement(Ue.Z,null):ae.createElement(ce.Z,null):_t==="success"&&(He=pt?ae.createElement(he.Z,null):ae.createElement(_e.Z,null)),ae.createElement("span",{className:`${ln}-text`,title:typeof He=="string"?He:void 0},He)},[Ht,bt,qt,_t,jt,ln,en]),Dn=Array.isArray(Nt)?Nt[0]:Nt,_n=typeof Nt=="string"||Array.isArray(Nt)?Nt:void 0;let fe;jt==="line"?fe=Mt?ae.createElement(ke,Object.assign({},Se,{strokeColor:_n,prefixCls:ln,steps:Mt}),bn):ae.createElement(rn,Object.assign({},Se,{strokeColor:Dn,prefixCls:ln,direction:Pn}),bn):(jt==="circle"||jt==="dashboard")&&(fe=ae.createElement(gt,Object.assign({},Se,{strokeColor:Dn,prefixCls:ln,progressStatus:_t}),bn));const pe=me()(ln,`${ln}-status-${_t}`,`${ln}-${jt==="dashboard"&&"circle"||Mt&&"steps"||jt}`,{[`${ln}-inline-circle`]:jt==="circle"&&Fe(Bt,"circle")[0]<=20,[`${ln}-show-info`]:Ht,[`${ln}-${Bt}`]:typeof Bt=="string",[`${ln}-rtl`]:Pn==="rtl"},yn==null?void 0:yn.className,rt,dt,jn);return wn(ae.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),fn),className:pe,role:"progressbar","aria-valuenow":qt},(0,ot.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),fe))}),un=Zt},59810:function(Me,st,re){"use strict";re.d(st,{default:function(){return Yt}});var ae=re(67294),he=re(74902),_e=re(94184),Ue=re.n(_e),ce=re(87462),We=re(15671),me=re(43144),ot=re(60136),Xe=re(51630),Ee=re(4942),et=re(45987),Ne=re(74165),Ge=re(71002),ne=re(15861),a=re(64217);function y(ue,Be){var be="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Be.status,"'"),$e=new Error(be);return $e.status=Be.status,$e.method=ue.method,$e.url=ue.action,$e}function E(ue){var Be=ue.responseText||ue.response;if(!Be)return Be;try{return JSON.parse(Be)}catch(be){return Be}}function b(ue){var Be=new XMLHttpRequest;ue.onProgress&&Be.upload&&(Be.upload.onprogress=function(Re){Re.total>0&&(Re.percent=Re.loaded/Re.total*100),ue.onProgress(Re)});var be=new FormData;ue.data&&Object.keys(ue.data).forEach(function(qe){var Re=ue.data[qe];if(Array.isArray(Re)){Re.forEach(function(Ve){be.append("".concat(qe,"[]"),Ve)});return}be.append(qe,Re)}),ue.file instanceof Blob?be.append(ue.filename,ue.file,ue.file.name):be.append(ue.filename,ue.file),Be.onerror=function(Re){ue.onError(Re)},Be.onload=function(){return Be.status<200||Be.status>=300?ue.onError(y(ue,Be),E(Be)):ue.onSuccess(E(Be),Be)},Be.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Be&&(Be.withCredentials=!0);var $e=ue.headers||{};return $e["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys($e).forEach(function(qe){$e[qe]!==null&&Be.setRequestHeader(qe,$e[qe])}),Be.send(be),{abort:function(){Be.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(ue,Be){if(ue&&Be){var be=Array.isArray(Be)?Be:Be.split(","),$e=ue.name||"",qe=ue.type||"",Re=qe.replace(/\/.*$/,"");return be.some(function(Ve){var Te=Ve.trim();if(/^\*(\/\*)?$/.test(Ve))return!0;if(Te.charAt(0)==="."){var Tt=$e.toLowerCase(),wt=Te.toLowerCase(),kt=[wt];return(wt===".jpg"||wt===".jpeg")&&(kt=[".jpg",".jpeg"]),kt.some(function(tn){return Tt.endsWith(tn)})}return/\/\*$/.test(Te)?Re===Te.replace(/\/.*$/,""):qe===Te?!0:/^\w+$/.test(Te)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Te,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,Be){var be=ue.createReader(),$e=[];function qe(){be.readEntries(function(Re){var Ve=Array.prototype.slice.apply(Re);$e=$e.concat(Ve);var Te=!Ve.length;Te?Be($e):qe()})}qe()}var ie=function(Be,be,$e){var qe=function Re(Ve,Te){Ve&&(Ve.path=Te||"",Ve.isFile?Ve.file(function(Tt){$e(Tt)&&(Ve.fullPath&&!Tt.webkitRelativePath&&(Object.defineProperties(Tt,{webkitRelativePath:{writable:!0}}),Tt.webkitRelativePath=Ve.fullPath.replace(/^\//,""),Object.defineProperties(Tt,{webkitRelativePath:{writable:!1}})),be([Tt]))}):Ve.isDirectory&&ge(Ve,function(Tt){Tt.forEach(function(wt){Re(wt,"".concat(Te).concat(Ve.name,"/"))})}))};Be.forEach(function(Re){qe(Re.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(ue){(0,ot.Z)(be,ue);var Be=(0,Xe.Z)(be);function be(){var $e;(0,We.Z)(this,be);for(var qe=arguments.length,Re=new Array(qe),Ve=0;Ve<qe;Ve++)Re[Ve]=arguments[Ve];return $e=Be.call.apply(Be,[this].concat(Re)),$e.state={uid:ee()},$e.reqs={},$e.fileInput=void 0,$e._isMounted=void 0,$e.onChange=function(Te){var Tt=$e.props,wt=Tt.accept,kt=Tt.directory,tn=Te.target.files,Oe=(0,he.Z)(tn).filter(function(cn){return!kt||oe(cn,wt)});$e.uploadFiles(Oe),$e.reset()},$e.onClick=function(Te){var Tt=$e.fileInput;if(Tt){var wt=$e.props,kt=wt.children,tn=wt.onClick;if(kt&&kt.type==="button"){var Oe=Tt.parentNode;Oe.focus(),Oe.querySelector("button").blur()}Tt.click(),tn&&tn(Te)}},$e.onKeyDown=function(Te){Te.key==="Enter"&&$e.onClick(Te)},$e.onFileDrop=function(Te){var Tt=$e.props.multiple;if(Te.preventDefault(),Te.type!=="dragover")if($e.props.directory)se(Array.prototype.slice.call(Te.dataTransfer.items),$e.uploadFiles,function(kt){return oe(kt,$e.props.accept)});else{var wt=(0,he.Z)(Te.dataTransfer.files).filter(function(kt){return oe(kt,$e.props.accept)});Tt===!1&&(wt=wt.slice(0,1)),$e.uploadFiles(wt)}},$e.uploadFiles=function(Te){var Tt=(0,he.Z)(Te),wt=Tt.map(function(kt){return kt.uid=ee(),$e.processFile(kt,Tt)});Promise.all(wt).then(function(kt){var tn=$e.props.onBatchStart;tn==null||tn(kt.map(function(Oe){var cn=Oe.origin,Tn=Oe.parsedFile;return{file:cn,parsedFile:Tn}})),kt.filter(function(Oe){return Oe.parsedFile!==null}).forEach(function(Oe){$e.post(Oe)})})},$e.processFile=function(){var Te=(0,ne.Z)((0,Ne.Z)().mark(function Tt(wt,kt){var tn,Oe,cn,Tn,Rn,In,Cn,Ze,Lt;return(0,Ne.Z)().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(tn=$e.props.beforeUpload,Oe=wt,!tn){at.next=14;break}return at.prev=3,at.next=6,tn(wt,kt);case 6:Oe=at.sent,at.next=12;break;case 9:at.prev=9,at.t0=at.catch(3),Oe=!1;case 12:if(Oe!==!1){at.next=14;break}return at.abrupt("return",{origin:wt,parsedFile:null,action:null,data:null});case 14:if(cn=$e.props.action,typeof cn!="function"){at.next=21;break}return at.next=18,cn(wt);case 18:Tn=at.sent,at.next=22;break;case 21:Tn=cn;case 22:if(Rn=$e.props.data,typeof Rn!="function"){at.next=29;break}return at.next=26,Rn(wt);case 26:In=at.sent,at.next=30;break;case 29:In=Rn;case 30:return Cn=((0,Ge.Z)(Oe)==="object"||typeof Oe=="string")&&Oe?Oe:wt,Cn instanceof File?Ze=Cn:Ze=new File([Cn],wt.name,{type:wt.type}),Lt=Ze,Lt.uid=wt.uid,at.abrupt("return",{origin:wt,data:In,parsedFile:Lt,action:Tn});case 35:case"end":return at.stop()}},Tt,null,[[3,9]])}));return function(Tt,wt){return Te.apply(this,arguments)}}(),$e.saveFileInput=function(Te){$e.fileInput=Te},$e}return(0,me.Z)(be,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(qe){var Re=this,Ve=qe.data,Te=qe.origin,Tt=qe.action,wt=qe.parsedFile;if(this._isMounted){var kt=this.props,tn=kt.onStart,Oe=kt.customRequest,cn=kt.name,Tn=kt.headers,Rn=kt.withCredentials,In=kt.method,Cn=Te.uid,Ze=Oe||b,Lt={action:Tt,filename:cn,data:Ve,file:wt,headers:Tn,withCredentials:Rn,method:In||"post",onProgress:function(at){var gn=Re.props.onProgress;gn==null||gn(at,wt)},onSuccess:function(at,gn){var nn=Re.props.onSuccess;nn==null||nn(at,wt,gn),delete Re.reqs[Cn]},onError:function(at,gn){var nn=Re.props.onError;nn==null||nn(at,gn,wt),delete Re.reqs[Cn]}};tn(Te),this.reqs[Cn]=Ze(Lt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(qe){var Re=this.reqs;if(qe){var Ve=qe.uid?qe.uid:qe;Re[Ve]&&Re[Ve].abort&&Re[Ve].abort(),delete Re[Ve]}else Object.keys(Re).forEach(function(Te){Re[Te]&&Re[Te].abort&&Re[Te].abort(),delete Re[Te]})}},{key:"render",value:function(){var qe,Re=this.props,Ve=Re.component,Te=Re.prefixCls,Tt=Re.className,wt=Re.disabled,kt=Re.id,tn=Re.style,Oe=Re.multiple,cn=Re.accept,Tn=Re.capture,Rn=Re.children,In=Re.directory,Cn=Re.openFileDialogOnClick,Ze=Re.onMouseEnter,Lt=Re.onMouseLeave,yt=(0,et.Z)(Re,le),at=Ue()((qe={},(0,Ee.Z)(qe,Te,!0),(0,Ee.Z)(qe,"".concat(Te,"-disabled"),wt),(0,Ee.Z)(qe,Tt,Tt),qe)),gn=In?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},nn=wt?{}:{onClick:Cn?this.onClick:function(){},onKeyDown:Cn?this.onKeyDown:function(){},onMouseEnter:Ze,onMouseLeave:Lt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ve,(0,ce.Z)({},nn,{className:at,role:"button",style:tn}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(yt,{aria:!0,data:!0}),{id:kt,disabled:wt,type:"file",ref:this.saveFileInput,onClick:function(En){return En.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:cn},gn,{multiple:Oe,onChange:this.onChange},Tn!=null?{capture:Tn}:{})),Rn)}}]),be}(ae.Component),Ie=ze;function Qe(){}var Ft=function(ue){(0,ot.Z)(be,ue);var Be=(0,Xe.Z)(be);function be(){var $e;(0,We.Z)(this,be);for(var qe=arguments.length,Re=new Array(qe),Ve=0;Ve<qe;Ve++)Re[Ve]=arguments[Ve];return $e=Be.call.apply(Be,[this].concat(Re)),$e.uploader=void 0,$e.saveUploader=function(Te){$e.uploader=Te},$e}return(0,me.Z)(be,[{key:"abort",value:function(qe){this.uploader.abort(qe)}},{key:"render",value:function(){return ae.createElement(Ie,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),be}(ae.Component);Ft.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Qe,onError:Qe,onSuccess:Qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ft=Ft,we=ft,ut=re(5663),it=re(73935),Ke=re(53124),tt=re(98866),At=re(10110),Ut=re(24457),dn={icon:function(Be,be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:be}},{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:Be}}]}},name:"file",theme:"twotone"},pn=dn,Fe=re(74643),Ae=function(Be,be){return ae.createElement(Fe.Z,(0,ce.Z)({},Be,{ref:be,icon:pn}))},Je=ae.forwardRef(Ae),Gt=re(3407),gt={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"},Pt=gt,de=function(Be,be){return ae.createElement(Fe.Z,(0,ce.Z)({},Be,{ref:be,icon:Pt}))},lt=ae.forwardRef(de),It={icon:function(Be,be){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:Be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:be}},{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:be}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:be}},{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:Be}}]}},name:"picture",theme:"twotone"},rn=It,vt=function(Be,be){return ae.createElement(Fe.Z,(0,ce.Z)({},Be,{ref:be,icon:rn}))},ke=ae.forwardRef(vt),xe=re(38379),ye=re(57838),ve=re(33603),Le=re(96159),je=re(71577);function nt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function St(ue,Be){const be=(0,he.Z)(Be),$e=be.findIndex(qe=>{let{uid:Re}=qe;return Re===ue.uid});return $e===-1?be.push(ue):be[$e]=ue,be}function Et(ue,Be){const be=ue.uid!==void 0?"uid":"name";return Be.filter($e=>$e[be]===ue[be])[0]}function $t(ue,Be){const be=ue.uid!==void 0?"uid":"name",$e=Be.filter(qe=>qe[be]!==ue[be]);return $e.length===Be.length?null:$e}const Dt=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),$e=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec($e)||[""])[0]},Rt=ue=>ue.indexOf("image/")===0,sn=ue=>{if(ue.type&&!ue.thumbUrl)return Rt(ue.type);const Be=ue.thumbUrl||ue.url||"",be=Dt(Be);return/^data:image\//.test(Be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(be)?!0:!(/^data:/.test(Be)||be)},Jt=200;function Vt(ue){return new Promise(Be=>{if(!ue.type||!Rt(ue.type)){Be("");return}const be=document.createElement("canvas");be.width=Jt,be.height=Jt,be.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(be);const $e=be.getContext("2d"),qe=new Image;if(qe.onload=()=>{const{width:Re,height:Ve}=qe;let Te=Jt,Tt=Jt,wt=0,kt=0;Re>Ve?(Tt=Ve*(Jt/Re),kt=-(Tt-Te)/2):(Te=Re*(Jt/Ve),wt=-(Te-Tt)/2),$e.drawImage(qe,wt,kt,Te,Tt);const tn=be.toDataURL();document.body.removeChild(be),window.URL.revokeObjectURL(qe.src),Be(tn)},qe.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const Re=new FileReader;Re.onload=()=>{Re.result&&(qe.src=Re.result)},Re.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const Re=new FileReader;Re.onload=()=>{Re.result&&Be(Re.result)},Re.readAsDataURL(ue)}else qe.src=window.URL.createObjectURL(ue)})}var Zt=re(84249),un=re(90674),Se=re(99569),Ce=re(38703),De=re(83062),dt=ae.forwardRef((ue,Be)=>{let{prefixCls:be,className:$e,style:qe,locale:Re,listType:Ve,file:Te,items:Tt,progress:wt,iconRender:kt,actionIconRender:tn,itemRender:Oe,isImgUrl:cn,showPreviewIcon:Tn,showRemoveIcon:Rn,showDownloadIcon:In,previewIcon:Cn,removeIcon:Ze,downloadIcon:Lt,onPreview:yt,onDownload:at,onClose:gn}=ue;var nn,Bn;const{status:En}=Te,[Gn,ea]=ae.useState(En);ae.useEffect(()=>{En!=="removed"&&ea(En)},[En]);const[oa,ua]=ae.useState(!1);ae.useEffect(()=>{const Mn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(Mn)}},[]);const ra=kt(Te);let Kn=ae.createElement("div",{className:`${be}-icon`},ra);if(Ve==="picture"||Ve==="picture-card"||Ve==="picture-circle")if(Gn==="uploading"||!Te.thumbUrl&&!Te.url){const Mn=Ue()(`${be}-list-item-thumbnail`,{[`${be}-list-item-file`]:Gn!=="uploading"});Kn=ae.createElement("div",{className:Mn},ra)}else{const Mn=cn!=null&&cn(Te)?ae.createElement("img",{src:Te.thumbUrl||Te.url,alt:Te.name,className:`${be}-list-item-image`,crossOrigin:Te.crossOrigin}):ra,Nn=Ue()(`${be}-list-item-thumbnail`,{[`${be}-list-item-file`]:cn&&!cn(Te)});Kn=ae.createElement("a",{className:Nn,onClick:ia=>yt(Te,ia),href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const xn=Ue()(`${be}-list-item`,`${be}-list-item-${Gn}`),la=typeof Te.linkProps=="string"?JSON.parse(Te.linkProps):Te.linkProps,sa=Rn?tn((typeof Ze=="function"?Ze(Te):Ze)||ae.createElement(Zt.Z,null),()=>gn(Te),be,Re.removeFile):null,Qn=In&&Gn==="done"?tn((typeof Lt=="function"?Lt(Te):Lt)||ae.createElement(un.Z,null),()=>at(Te),be,Re.downloadFile):null,qn=Ve!=="picture-card"&&Ve!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ue()(`${be}-list-item-actions`,{picture:Ve==="picture"})},Qn,sa),Wn=Ue()(`${be}-list-item-name`),ga=Te.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Te.name},la,{href:Te.url,onClick:Mn=>yt(Te,Mn)}),Te.name),qn]:[ae.createElement("span",{key:"view",className:Wn,onClick:Mn=>yt(Te,Mn),title:Te.name},Te.name),qn],Kt={pointerEvents:"none",opacity:.5},$n=Tn?ae.createElement("a",{href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Te.url||Te.thumbUrl?void 0:Kt,onClick:Mn=>yt(Te,Mn),title:Re.previewFile},typeof Cn=="function"?Cn(Te):Cn||ae.createElement(Se.Z,null)):null,Vn=(Ve==="picture-card"||Ve==="picture-circle")&&Gn!=="uploading"&&ae.createElement("span",{className:`${be}-list-item-actions`},$n,Gn==="done"&&Qn,sa),{getPrefixCls:Zn}=ae.useContext(Ke.E_),Un=Zn(),ta=ae.createElement("div",{className:xn},Kn,ga,Vn,oa&&ae.createElement(xe.default,{motionName:`${Un}-fade`,visible:Gn==="uploading",motionDeadline:2e3},Mn=>{let{className:Nn}=Mn;const ia="percent"in Te?ae.createElement(Ce.Z,Object.assign({},wt,{type:"line",percent:Te.percent,"aria-label":Te["aria-label"],"aria-labelledby":Te["aria-labelledby"]})):null;return ae.createElement("div",{className:Ue()(`${be}-list-item-progress`,Nn)},ia)})),na=Te.response&&typeof Te.response=="string"?Te.response:((nn=Te.error)===null||nn===void 0?void 0:nn.statusText)||((Bn=Te.error)===null||Bn===void 0?void 0:Bn.message)||Re.uploadError,ca=Gn==="error"?ae.createElement(De.Z,{title:na,getPopupContainer:Mn=>Mn.parentNode},ta):ta;return ae.createElement("div",{className:Ue()(`${be}-list-item-container`,$e),style:qe,ref:Be},Oe?Oe(ca,Te,Tt,{download:at.bind(null,Te),preview:yt.bind(null,Te),remove:gn.bind(null,Te)}):ca)});const Mt=(ue,Be)=>{const{listType:be="text",previewFile:$e=Vt,onPreview:qe,onDownload:Re,onRemove:Ve,locale:Te,iconRender:Tt,isImageUrl:wt=sn,prefixCls:kt,items:tn=[],showPreviewIcon:Oe=!0,showRemoveIcon:cn=!0,showDownloadIcon:Tn=!1,removeIcon:Rn,previewIcon:In,downloadIcon:Cn,progress:Ze={size:[-1,2],showInfo:!1},appendAction:Lt,appendActionVisible:yt=!0,itemRender:at,disabled:gn}=ue,nn=(0,ye.Z)(),[Bn,En]=ae.useState(!1);ae.useEffect(()=>{be!=="picture"&&be!=="picture-card"&&be!=="picture-circle"||(tn||[]).forEach(Kt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Kt.originFileObj instanceof File||Kt.originFileObj instanceof Blob)||Kt.thumbUrl!==void 0||(Kt.thumbUrl="",$e&&$e(Kt.originFileObj).then($n=>{Kt.thumbUrl=$n||"",nn()}))})},[be,tn,$e]),ae.useEffect(()=>{En(!0)},[]);const Gn=(Kt,$n)=>{if(qe)return $n==null||$n.preventDefault(),qe(Kt)},ea=Kt=>{typeof Re=="function"?Re(Kt):Kt.url&&window.open(Kt.url)},oa=Kt=>{Ve==null||Ve(Kt)},ua=Kt=>{if(Tt)return Tt(Kt,be);const $n=Kt.status==="uploading",Vn=wt&&wt(Kt)?ae.createElement(ke,null):ae.createElement(Je,null);let Zn=$n?ae.createElement(Gt.Z,null):ae.createElement(lt,null);return be==="picture"?Zn=$n?ae.createElement(Gt.Z,null):Vn:(be==="picture-card"||be==="picture-circle")&&(Zn=$n?Te.uploading:Vn),Zn},ra=(Kt,$n,Vn,Zn)=>{const Un={type:"text",size:"small",title:Zn,onClick:ta=>{$n(),(0,Le.l$)(Kt)&&Kt.props.onClick&&Kt.props.onClick(ta)},className:`${Vn}-list-item-action`,disabled:gn};if((0,Le.l$)(Kt)){const ta=(0,Le.Tm)(Kt,Object.assign(Object.assign({},Kt.props),{onClick:()=>{}}));return ae.createElement(je.ZP,Object.assign({},Un,{icon:ta}))}return ae.createElement(je.ZP,Object.assign({},Un),ae.createElement("span",null,Kt))};ae.useImperativeHandle(Be,()=>({handlePreview:Gn,handleDownload:ea}));const{getPrefixCls:Kn}=ae.useContext(Ke.E_),xn=Kn("upload",kt),la=Kn(),sa=Ue()(`${xn}-list`,`${xn}-list-${be}`),Qn=(0,he.Z)(tn.map(Kt=>({key:Kt.uid,file:Kt})));let Wn={motionDeadline:2e3,motionName:`${xn}-${be==="picture-card"||be==="picture-circle"?"animate-inline":"animate"}`,keys:Qn,motionAppear:Bn};const ga=ae.useMemo(()=>{const Kt=Object.assign({},(0,ve.Z)(la));return delete Kt.onAppearEnd,delete Kt.onEnterEnd,delete Kt.onLeaveEnd,Kt},[la]);return be!=="picture-card"&&be!=="picture-circle"&&(Wn=Object.assign(Object.assign({},ga),Wn)),ae.createElement("div",{className:sa},ae.createElement(xe.CSSMotionList,Object.assign({},Wn,{component:!1}),Kt=>{let{key:$n,file:Vn,className:Zn,style:Un}=Kt;return ae.createElement(dt,{key:$n,locale:Te,prefixCls:xn,className:Zn,style:Un,file:Vn,items:tn,progress:Ze,listType:be,isImgUrl:wt,showPreviewIcon:Oe,showRemoveIcon:cn,showDownloadIcon:Tn,removeIcon:Rn,previewIcon:In,downloadIcon:Cn,iconRender:ua,actionIconRender:ra,itemRender:at,onPreview:Gn,onDownload:ea,onClose:oa})}),Lt&&ae.createElement(xe.default,Object.assign({},Wn,{visible:yt,forceRender:!0}),Kt=>{let{className:$n,style:Vn}=Kt;return(0,Le.Tm)(Lt,Zn=>({className:Ue()(Zn.className,$n),style:Object.assign(Object.assign(Object.assign({},Vn),{pointerEvents:$n?"none":void 0}),Zn.style)}))}))};var bt=ae.forwardRef(Mt),Bt=re(14747),Ht=re(33507),jt=re(67968),an=re(45503),fn=ue=>{const{componentCls:Be,iconCls:be}=ue;return{[`${Be}-wrapper`]:{[`${Be}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Be]:{padding:`${ue.padding}px 0`},[`${Be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Be}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Be}-drag-icon`]:{marginBottom:ue.margin,[be]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Be}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Be}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Be}-disabled`]:{cursor:"not-allowed",[`p${Be}-drag-icon ${be},
|
|
p${Be}-text,
|
|
p${Be}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},qt=ue=>{const{componentCls:Be,antCls:be,iconCls:$e,fontSize:qe,lineHeight:Re}=ue,Ve=`${Be}-list-item`,Te=`${Ve}-actions`,Tt=`${Ve}-action`,wt=Math.round(qe*Re);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,Bt.dF)()),{lineHeight:ue.lineHeight,[Ve]:{position:"relative",height:ue.lineHeight*qe,marginTop:ue.marginXS,fontSize:qe,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ve}-name`]:Object.assign(Object.assign({},Bt.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:Re,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Te]:{[Tt]:{opacity:0},[`${Tt}${be}-btn-sm`]:{height:wt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Tt}:focus-visible,
|
|
&.picture ${Tt}
|
|
`]:{opacity:1},[$e]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${$e}`]:{color:ue.colorText}},[`${Be}-icon ${$e}`]:{color:ue.colorTextDescription,fontSize:qe},[`${Ve}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:qe+ue.paddingXS,fontSize:qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ve}:hover ${Tt}`]:{opacity:1,color:ue.colorText},[`${Ve}-error`]:{color:ue.colorError,[`${Ve}-name, ${Be}-icon ${$e}`]:{color:ue.colorError},[Te]:{[`${$e}, ${$e}:hover`]:{color:ue.colorError},[Tt]:{opacity:1}}},[`${Be}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_t=re(45930),mn=re(16932);const Pn=new _t.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new _t.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wn=ue=>{const{componentCls:Be}=ue,be=`${Be}-animate-inline`;return[{[`${Be}-wrapper`]:{[`${be}-appear, ${be}-enter, ${be}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${be}-appear, ${be}-enter`]:{animationName:Pn},[`${be}-leave`]:{animationName:yn}}},{[`${Be}-wrapper`]:(0,mn.J$)(ue)},Pn,yn]},jn=re(47448),bn=re(84780);const Dn=ue=>{const{componentCls:Be,iconCls:be,uploadThumbnailSize:$e,uploadProgressOffset:qe}=ue,Re=`${Be}-list`,Ve=`${Re}-item`;return{[`${Be}-wrapper`]:{[`
|
|
${Re}${Re}-picture,
|
|
${Re}${Re}-picture-card,
|
|
${Re}${Re}-picture-circle
|
|
`]:{[Ve]:{position:"relative",height:$e+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ve}-thumbnail`]:Object.assign(Object.assign({},Bt.vS),{width:$e,height:$e,lineHeight:`${$e+ue.paddingSM}px`,textAlign:"center",flex:"none",[be]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ve}-progress`]:{bottom:qe,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:$e+ue.paddingXS}},[`${Ve}-error`]:{borderColor:ue.colorError,[`${Ve}-thumbnail ${be}`]:{[`svg path[fill='${jn.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${jn.blue.primary}']`]:{fill:ue.colorError}}},[`${Ve}-uploading`]:{borderStyle:"dashed",[`${Ve}-name`]:{marginBottom:qe}}},[`${Re}${Re}-picture-circle ${Ve}`]:{[`&, &::before, ${Ve}-thumbnail`]:{borderRadius:"50%"}}}}},_n=ue=>{const{componentCls:Be,iconCls:be,fontSizeLG:$e,colorTextLightSolid:qe}=ue,Re=`${Be}-list`,Ve=`${Re}-item`,Te=ue.uploadPicCardSize;return{[`
|
|
${Be}-wrapper${Be}-picture-card-wrapper,
|
|
${Be}-wrapper${Be}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Bt.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:Te,height:Te,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Be}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${Re}${Re}-picture-card, ${Re}${Re}-picture-circle`]:{[`${Re}-item-container`]:{display:"inline-block",width:Te,height:Te,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ve]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ve}:hover`]:{[`&::before, ${Ve}-actions`]:{opacity:1}},[`${Ve}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${be}-eye, ${be}-download, ${be}-delete`]:{zIndex:10,width:$e,margin:`0 ${ue.marginXXS}px`,fontSize:$e,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ve}-actions, ${Ve}-actions:hover`]:{[`${be}-eye, ${be}-download, ${be}-delete`]:{color:new bn.C(qe).setAlpha(.65).toRgbString(),"&:hover":{color:qe}}},[`${Ve}-thumbnail, ${Ve}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ve}-name`]:{display:"none",textAlign:"center"},[`${Ve}-file + ${Ve}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ve}-uploading`]:{[`&${Ve}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${be}-eye, ${be}-download, ${be}-delete`]:{display:"none"}},[`${Ve}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Be}-wrapper${Be}-picture-circle-wrapper`]:{[`${Be}${Be}-select`]:{borderRadius:"50%"}}}};var pe=ue=>{const{componentCls:Be}=ue;return{[`${Be}-rtl`]:{direction:"rtl"}}};const Pe=ue=>{const{componentCls:Be,colorTextDisabled:be}=ue;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,Bt.Wf)(ue)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:be,cursor:"not-allowed"}})}};var He=(0,jt.Z)("Upload",ue=>{const{fontSizeHeading3:Be,fontSize:be,lineHeight:$e,lineWidth:qe,controlHeightLG:Re}=ue,Ve=Math.round(be*$e),Te=(0,an.TS)(ue,{uploadThumbnailSize:Be*2,uploadProgressOffset:Ve/2+qe,uploadPicCardSize:Re*2.55});return[Pe(Te),fn(Te),Dn(Te),_n(Te),qt(Te),wn(Te),pe(Te),(0,Ht.Z)(Te)]},ue=>({actionsColor:ue.colorTextDescription})),mt=function(ue,Be,be,$e){function qe(Re){return Re instanceof be?Re:new be(function(Ve){Ve(Re)})}return new(be||(be=Promise))(function(Re,Ve){function Te(kt){try{wt($e.next(kt))}catch(tn){Ve(tn)}}function Tt(kt){try{wt($e.throw(kt))}catch(tn){Ve(tn)}}function wt(kt){kt.done?Re(kt.value):qe(kt.value).then(Te,Tt)}wt(($e=$e.apply(ue,Be||[])).next())})};const pt=`__LIST_IGNORE_${Date.now()}__`,on=(ue,Be)=>{const{fileList:be,defaultFileList:$e,onRemove:qe,showUploadList:Re=!0,listType:Ve="text",onPreview:Te,onDownload:Tt,onChange:wt,onDrop:kt,previewFile:tn,disabled:Oe,locale:cn,iconRender:Tn,isImageUrl:Rn,progress:In,prefixCls:Cn,className:Ze,type:Lt="select",children:yt,style:at,itemRender:gn,maxCount:nn,data:Bn={},multiple:En=!1,action:Gn="",accept:ea="",supportServerRender:oa=!0,rootClassName:ua}=ue,ra=ae.useContext(tt.Z),Kn=Oe!=null?Oe:ra,[xn,la]=(0,ut.Z)($e||[],{value:be,postState:zt=>zt!=null?zt:[]}),[sa,Qn]=ae.useState("drop"),qn=ae.useRef(null);ae.useMemo(()=>{const zt=Date.now();(be||[]).forEach((Xt,hn)=>{!Xt.uid&&!Object.isFrozen(Xt)&&(Xt.uid=`__AUTO__${zt}_${hn}__`)})},[be]);const Wn=(zt,Xt,hn)=>{let Wt=(0,he.Z)(Xt),Ln=!1;nn===1?Wt=Wt.slice(-1):nn&&(Ln=Wt.length>nn,Wt=Wt.slice(0,nn)),(0,it.flushSync)(()=>{la(Wt)});const kn={file:zt,fileList:Wt};hn&&(kn.event=hn),(!Ln||Wt.some(aa=>aa.uid===zt.uid))&&(0,it.flushSync)(()=>{wt==null||wt(kn)})},ga=(zt,Xt)=>mt(void 0,void 0,void 0,function*(){const{beforeUpload:hn,transformFile:Wt}=ue;let Ln=zt;if(hn){const kn=yield hn(zt,Xt);if(kn===!1)return!1;if(delete zt[pt],kn===pt)return Object.defineProperty(zt,pt,{value:!0,configurable:!0}),!1;typeof kn=="object"&&kn&&(Ln=kn)}return Wt&&(Ln=yield Wt(Ln)),Ln}),Kt=zt=>{const Xt=zt.filter(Ln=>!Ln.file[pt]);if(!Xt.length)return;const hn=Xt.map(Ln=>nt(Ln.file));let Wt=(0,he.Z)(xn);hn.forEach(Ln=>{Wt=St(Ln,Wt)}),hn.forEach((Ln,kn)=>{let aa=Ln;if(Xt[kn].parsedFile)Ln.status="uploading";else{const{originFileObj:ma}=Ln;let Jn;try{Jn=new File([ma],ma.name,{type:ma.type})}catch(ya){Jn=new Blob([ma],{type:ma.type}),Jn.name=ma.name,Jn.lastModifiedDate=new Date,Jn.lastModified=new Date().getTime()}Jn.uid=Ln.uid,aa=Jn}Wn(aa,Wt)})},$n=(zt,Xt,hn)=>{try{typeof zt=="string"&&(zt=JSON.parse(zt))}catch(kn){}if(!Et(Xt,xn))return;const Wt=nt(Xt);Wt.status="done",Wt.percent=100,Wt.response=zt,Wt.xhr=hn;const Ln=St(Wt,xn);Wn(Wt,Ln)},Vn=(zt,Xt)=>{if(!Et(Xt,xn))return;const hn=nt(Xt);hn.status="uploading",hn.percent=zt.percent;const Wt=St(hn,xn);Wn(hn,Wt,zt)},Zn=(zt,Xt,hn)=>{if(!Et(hn,xn))return;const Wt=nt(hn);Wt.error=zt,Wt.response=Xt,Wt.status="error";const Ln=St(Wt,xn);Wn(Wt,Ln)},Un=zt=>{let Xt;Promise.resolve(typeof qe=="function"?qe(zt):qe).then(hn=>{var Wt;if(hn===!1)return;const Ln=$t(zt,xn);Ln&&(Xt=Object.assign(Object.assign({},zt),{status:"removed"}),xn==null||xn.forEach(kn=>{const aa=Xt.uid!==void 0?"uid":"name";kn[aa]===Xt[aa]&&!Object.isFrozen(kn)&&(kn.status="removed")}),(Wt=qn.current)===null||Wt===void 0||Wt.abort(Xt),Wn(Xt,Ln))})},ta=zt=>{Qn(zt.type),zt.type==="drop"&&(kt==null||kt(zt))};ae.useImperativeHandle(Be,()=>({onBatchStart:Kt,onSuccess:$n,onProgress:Vn,onError:Zn,fileList:xn,upload:qn.current}));const{getPrefixCls:na,direction:ca,upload:Mn}=ae.useContext(Ke.E_),Nn=na("upload",Cn),ia=Object.assign(Object.assign({onBatchStart:Kt,onError:Zn,onProgress:Vn,onSuccess:$n},ue),{data:Bn,multiple:En,action:Gn,accept:ea,supportServerRender:oa,prefixCls:Nn,disabled:Kn,beforeUpload:ga,onChange:void 0});delete ia.className,delete ia.style,(!yt||Kn)&&delete ia.id;const[fa,ha]=He(Nn),[ba]=(0,At.Z)("Upload",Ut.Z.Upload),{showRemoveIcon:Sa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:xt,downloadIcon:ct}=typeof Re=="boolean"?{}:Re,ht=(zt,Xt)=>Re?ae.createElement(bt,{prefixCls:Nn,listType:Ve,items:xn,previewFile:tn,onPreview:Te,onDownload:Tt,onRemove:Un,showRemoveIcon:!Kn&&Sa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:xt,downloadIcon:ct,iconRender:Tn,locale:Object.assign(Object.assign({},ba),cn),isImageUrl:Rn,progress:In,appendAction:zt,appendActionVisible:Xt,itemRender:gn,disabled:Kn}):zt,Ct=Ue()(`${Nn}-wrapper`,Ze,ua,ha,Mn==null?void 0:Mn.className,{[`${Nn}-rtl`]:ca==="rtl",[`${Nn}-picture-card-wrapper`]:Ve==="picture-card",[`${Nn}-picture-circle-wrapper`]:Ve==="picture-circle"}),Sn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),at);if(Lt==="drag"){const zt=Ue()(ha,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:xn.some(Xt=>Xt.status==="uploading"),[`${Nn}-drag-hover`]:sa==="dragover",[`${Nn}-disabled`]:Kn,[`${Nn}-rtl`]:ca==="rtl"});return fa(ae.createElement("span",{className:Ct},ae.createElement("div",{className:zt,style:Sn,onDrop:ta,onDragOver:ta,onDragLeave:ta},ae.createElement(we,Object.assign({},ia,{ref:qn,className:`${Nn}-btn`}),ae.createElement("div",{className:`${Nn}-drag-container`},yt))),ht()))}const On=Ue()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:Kn}),An=(zt=>ae.createElement("div",{className:On,style:zt},ae.createElement(we,Object.assign({},ia,{ref:qn}))))(yt?void 0:{display:"none"});return fa(Ve==="picture-card"||Ve==="picture-circle"?ae.createElement("span",{className:Ct},ht(An,!!yt)):ae.createElement("span",{className:Ct},An,ht()))};var Ot=ae.forwardRef(on),Fn=function(ue,Be){var be={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Be.indexOf($e)<0&&(be[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,$e=Object.getOwnPropertySymbols(ue);qe<$e.length;qe++)Be.indexOf($e[qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[qe])&&(be[$e[qe]]=ue[$e[qe]]);return be},zn=ae.forwardRef((ue,Be)=>{var{style:be,height:$e}=ue,qe=Fn(ue,["style","height"]);return ae.createElement(Ot,Object.assign({ref:Be},qe,{type:"drag",style:Object.assign(Object.assign({},be),{height:$e})}))});const Ye=Ot;Ye.Dragger=zn,Ye.LIST_IGNORE=pt;var Yt=Ye},72665:function(Me,st){"use strict";var re;var ae=typeof Symbol=="function"&&Symbol.for,he=ae?Symbol.for("react.element"):60103,_e=ae?Symbol.for("react.portal"):60106,Ue=ae?Symbol.for("react.fragment"):60107,ce=ae?Symbol.for("react.strict_mode"):60108,We=ae?Symbol.for("react.profiler"):60114,me=ae?Symbol.for("react.provider"):60109,ot=ae?Symbol.for("react.context"):60110,Xe=ae?Symbol.for("react.async_mode"):60111,Ee=ae?Symbol.for("react.concurrent_mode"):60111,et=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,Ge=ae?Symbol.for("react.suspense_list"):60120,ne=ae?Symbol.for("react.memo"):60115,a=ae?Symbol.for("react.lazy"):60116,y=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,b=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case he:switch(te=te.type,te){case Xe:case Ee:case Ue:case We:case ce:case Ne:return te;default:switch(te=te&&te.$$typeof,te){case ot:case et:case a:case ne:case me:return te;default:return oe}}case _e:return oe}}}function ee(te){return z(te)===Ee}re=Xe,re=Ee,re=ot,re=me,re=he,re=et,re=Ue,re=a,re=ne,re=_e,re=We,re=ce,re=Ne,re=function(te){return ee(te)||z(te)===Xe},re=ee,re=function(te){return z(te)===ot},re=function(te){return z(te)===me},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===he},re=function(te){return z(te)===et},re=function(te){return z(te)===Ue},re=function(te){return z(te)===a},st.isMemo=function(te){return z(te)===ne},re=function(te){return z(te)===_e},re=function(te){return z(te)===We},re=function(te){return z(te)===ce},re=function(te){return z(te)===Ne},re=function(te){return typeof te=="string"||typeof te=="function"||te===Ue||te===Ee||te===We||te===ce||te===Ne||te===Ge||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===ot||te.$$typeof===et||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},re=z},12060:function(Me,st,re){"use strict";Me.exports=re(72665)},64217:function(Me,st,re){"use strict";re.d(st,{Z:function(){return ot}});var ae=re(1413),he=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,_e=`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`,Ue="".concat(he," ").concat(_e).split(/[\s\n]+/),ce="aria-",We="data-";function me(Xe,Ee){return Xe.indexOf(Ee)===0}function ot(Xe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et;Ee===!1?et={aria:!0,data:!0,attr:!0}:Ee===!0?et={aria:!0}:et=(0,ae.Z)({},Ee);var Ne={};return Object.keys(Xe).forEach(function(Ge){(et.aria&&(Ge==="role"||me(Ge,ce))||et.data&&me(Ge,We)||et.attr&&Ue.includes(Ge))&&(Ne[Ge]=Xe[Ge])}),Ne}}}]);
|