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.
175 lines
487 KiB
175 lines
487 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1482],{22751:function(ke,it,re){"use strict";re.d(it,{Z:function(){return me}});var ge=re(87462),ie=re(67294),Ve={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"},qe=Ve,be=re(74643),Me=function(Oe,Ee){return ie.createElement(be.Z,(0,ge.Z)({},Oe,{ref:Ee,icon:qe}))},me=ie.forwardRef(Me)},91034:function(ke,it,re){"use strict";re.d(it,{Z:function(){return me}});var ge=re(87462),ie=re(67294),Ve={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"},qe=Ve,be=re(74643),Me=function(Oe,Ee){return ie.createElement(be.Z,(0,ge.Z)({},Oe,{ref:Ee,icon:qe}))},me=ie.forwardRef(Me)},71736:function(ke,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function ke(ne,a,b,y){b===void 0&&(b=0),y===void 0&&(y=1/0),this._name=ne,this._defaultValue=a,this._minimum=b,this._maximum=y}Object.defineProperty(ke.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(ke.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(ke.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(ke.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 b=go.Shape._FigureParameters[ne];return b?b[a]:null},go.Shape.setFigureParameter=function(ne,a,b){if(!(b instanceof ke))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+b);if(b.defaultValue<b.minimum||b.defaultValue>b.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+b.defaultValue);var y=go.Shape._FigureParameters[ne];y||(y=[],go.Shape._FigureParameters[ne]=y),y[a]=b};var it=[];function re(ne,a){var b=it.pop();return b===void 0?new go.Point(ne,a):(b.x=ne,b.y=a,b)}function ge(){var ne=it.pop();return ne===void 0?new go.Point:ne}function ie(ne){it.push(ne)}function Ve(ne,a,b,y,E,x,z,ee,te){te||(te=new go.Point);var oe=ne-b,le=E-z,de=NaN,ve=NaN;if(oe===0)if(le===0)ne===b&&(de=ne,ve=a);else{var Pe=(x-ee)/le,se=x-Pe*E;de=ne,ve=Pe*de+se}else if(le===0){var Ae=(a-y)/oe,Ke=a-Ae*ne;de=E,ve=Ae*de+Ke}else{var Ae=(a-y)/oe,Pe=(x-ee)/le,Ke=a-Ae*ne,se=x-Pe*E;de=(se-Ke)/(Ae-Pe),ve=Ae*de+Ke}return te.x=de,te.y=ve,te}function qe(ne,a,b,y,E,x,z,ee,te,oe,le,de,ve,Pe){var se=1-te,Ae=te,Ke=ne*se+b*Ae,Ge=a*se+y*Ae,pe=b*se+E*Ae,he=y*se+x*Ae,Ze=E*se+z*Ae,He=x*se+ee*Ae,We=Ke*se+pe*Ae,Je=Ge*se+he*Ae,Lt=pe*se+Ze*Ae,vt=he*se+He*Ae,It=We*se+Lt*Ae,Pn=Je*se+vt*Ae;oe.x=Ke,oe.y=Ge,le.x=We,le.y=Je,de.x=It,de.y=Pn,ve.x=Lt,ve.y=vt,Pe.x=Ze,Pe.y=He}var be=new go.Spot(.156,.156),Me=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=5),y=Math.min(y,a/3),y=Math.min(y,b/3);var E=y*me,x=new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,y,a-E,0,a,E)).add(new go.PathSegment(go.PathSegment.Line,a,b-y)).add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-E,a-E,b)).add(new go.PathSegment(go.PathSegment.Line,y,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,E,b,0,b-E)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,E,E,0).close()));return E>1&&(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,b){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,b).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,b)).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,b){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,b){var y=new go.Geometry(go.Geometry.Line);return y.startX=0,y.startY=b/2,y.endX=a,y.endY=b/2,y}),go.Shape.defineFigureGenerator("LineV",function(ne,a,b){var y=new go.Geometry(go.Geometry.Line);return y.startX=a/2,y.startY=0,y.endX=a/2,y.endY=b,y}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!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,b)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,.25*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Line,a,.25*b)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,b)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,.75*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,a,.75*b)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,b){var y=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(y*a,(1-y)*b,!1).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,y*b)).add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,(1-y)*b)).add(new go.PathSegment(go.PathSegment.Move,0,b/2)).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,b){var y=a/2,E=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close()));return E.spot1=be,E.spot2=Me,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Line1",function(ne,a,b){var y=new go.Geometry(go.Geometry.Line);return y.startX=0,y.startY=0,y.endX=a,y.endY=b,y}),go.Shape.defineFigureGenerator("Line2",function(ne,a,b){var y=new go.Geometry(go.Geometry.Line);return y.startX=a,y.startY=0,y.endX=0,y.endY=b,y}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,me*a,0,a,(1-me)*b)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,0,me*b,(1-me)*a,b)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,me*b,me*a,b)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,(1-me)*a,0,0,(1-me)*b)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,b){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,b).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,b){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,b).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)?y=.1:y<-1?y=-1:y>1&&(y=1);var E=Math.abs(y)*a;if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,E,b).close())),E<a/2&&x.setSpots(E/a,0,(a-E)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)?y=10:y<-a?y=-a:y>a&&(y=a);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,E,b).close())),E<a/2&&x.setSpots(E/a,0,(a-E)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ke("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)?y=.2:y<.5?y=-.5:y>.5&&(y=.5);var E=Math.abs(y)*a;if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).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-E,b)).add(new go.PathSegment(go.PathSegment.Line,E,b).close())),E<a/2&&x.setSpots(E/a,0,(a-E)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ke("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)?y=20:y<-a?y=-a/2:y>a&&(y=a/2);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).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-E,b)).add(new go.PathSegment(go.PathSegment.Line,E,b).close())),E<a/2&&x.setSpots(E/a,0,(a-E)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)?y=10:y<-a?y=-a/2:y>a&&(y=a/2);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return y>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-E,b)).add(new go.PathSegment(go.PathSegment.Line,E,b).close())):x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())),E<a/2&&x.setSpots(E/a,0,(a-E)/a,1),x}});var _e=[];function Oe(){var ne=_e.pop();return ne===void 0?[]:ne}function Ee(ne){ne.length=0,_e.push(ne)}function Te(ne){for(var a=Oe(),b=.5,y=.5,E=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+E,a[z]=new go.Point(y+b*Math.cos(x),y+b*Math.sin(x));return a.push(a[0]),a}function Le(ne){var a=xe(ne),b=Oe();b[0]=a[0];for(var y=1,E=1;y<a.length;y+=2,E+=3)b[E]=a[y],b[E+1]=a[y],b[E+2]=a[y+1];return Ee(a),b}function xe(ne){for(var a=Te(ne),b=Oe(),y=Math.floor(a.length/2),E=a.length-1,x=ne%2===0?2:1,z=0;z<E;z++){var ee=a[z],te=a[z+1],oe=a[(y+z-1)%E],le=a[(y+z+x)%E];b[z*2]=ee,b[z*2+1]=Ve(ee.x,ee.y,oe.x,oe.y,te.x,te.y,le.x,le.y,new go.Point)}return b[b.length]=b[0],Ee(a),b}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,b){var y=Te(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.2,.22),E.spot2=new go.Spot(.8,.9),E}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,b){var y=Te(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.07,.25),E.spot2=new go.Spot(.93,.75),E}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,b){var y=Te(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.2,.15),E.spot2=new go.Spot(.8,.85),E}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,b){var y=Te(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.85),E}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,b){var y=Te(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.17,.13),E.spot2=new go.Spot(.82,.82),E}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,b){var y=Te(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.16,.16),E.spot2=new go.Spot(.84,.84),E}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,b){var y=Te(12),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.16,.16),E.spot2=new go.Spot(.84,.84),E}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,b){var y=xe(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.266,.333),E.spot2=new go.Spot(.733,.733),E}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,b){var y=xe(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.17,.25),E.spot2=new go.Spot(.83,.75),E}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,b){var y=xe(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.666),E}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,b){var y=xe(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,b){var y=xe(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.666),E}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,b){var y=xe(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*a,y[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*a,y[0].y*b).close()),Ee(y),E.spot1=new go.Spot(.281,.261),E.spot2=new go.Spot(.723,.748),E}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,b){var y=Le(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,b){var y=Le(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.17,.222),E.spot2=new go.Spot(.833,.777),E}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,b){var y=Le(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,b){var y=Le(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,b){var y=Le(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,b){var y=Le(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*a,y[0].y*b,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*a,y[z+2].y*b,y[z].x*a,y[z].y*b,y[z+1].x*a,y[z+1].y*b));return x.segments.last().close(),Ee(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.setFigureParameter("FramedRectangle",0,new ke("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ke("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,b){var y=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(y)&&(y=8),isNaN(E)&&(E=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,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y<a/2&&E<b/2&&(z.add(new go.PathSegment(go.PathSegment.Move,y,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,b-E)),z.add(new go.PathSegment(go.PathSegment.Line,a-y,b-E)),z.add(new go.PathSegment(go.PathSegment.Line,a-y,E).close())),x.setSpots(0,0,1,1,y,E,-y,-E),x}),go.Shape.setFigureParameter("Ring",0,new ke("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=8);var E=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,E,E,E,E).close());var ee=Math.max(E-y,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,E,E,ee,ee).close())),x.spot1=be,x.spot2=Me,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*b,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*b,-.09239631*a,.07836421*b,.1406031*a,-.0542823*b)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*b,.2450511*a,-.00697547*b,.3776197*a,-.01112067*b)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*b,.4539471*a,0,.6066018*a,-.02526587*b)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*b,.6914277*a,-.01904177*b,.8921095*a,-.01220843*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*b,1.036446*a,.04105738*b,1.020377*a,.3022052*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*b,1.04448*a,.360238*b,.992256*a,.5219009*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*b,1.032337*a,.5771781*b,1.018411*a,.8120651*b)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*b,1.028411*a,.9571472*b,.8556702*a,1.052487*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*b,.7431877*a,1.009325*b,.5624123*a,1.021761*b)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*b,.4820677*a,1.031761*b,.3030112*a,1.002796*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*b,.2329994*a,1.01518*b,.03213784*a,1.01518*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*b,-.02812061*a,.9032597*b,-.01205169*a,.6835638*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*b,-.01812061*a,.6089503*b,-.00606892*a,.4555777*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*b,-.01606892*a,.3892545*b,-.01205169*a,.1944299*b))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,b){var y=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(y*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y*b)).add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)).add(new go.PathSegment(go.PathSegment.Line,y*a,b)).add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*b)).add(new go.PathSegment(go.PathSegment.Line,0,y*b).close())).setSpots(y/2,y/2,1-y/2,1-y/2)}),go.Shape.setFigureParameter("Pie",0,new ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,b){var y=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(y)&&(y=0),isNaN(E)&&(E=315);var x=y%360;x<0&&(x+=360);var z=E%360,ee=Math.min(a,b)/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,b){var y=me/Math.SQRT2*.5,E=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,E*a,x*b,a,(1-y)*b,(E+y)*a,(x+y)*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=30);var E=Math.min(y,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+E,0)).add(new go.PathSegment(go.PathSegment.Line,x+E,z-E)).add(new go.PathSegment(go.PathSegment.Line,a,z-E)).add(new go.PathSegment(go.PathSegment.Line,a,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,b)).add(new go.PathSegment(go.PathSegment.Line,x-E,b)).add(new go.PathSegment(go.PathSegment.Line,x-E,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z-E)).add(new go.PathSegment(go.PathSegment.Line,x-E,z-E).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=10);var E=Math.min(y,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+E,0)).add(new go.PathSegment(go.PathSegment.Line,x+E,z-E)).add(new go.PathSegment(go.PathSegment.Line,a,z-E)).add(new go.PathSegment(go.PathSegment.Line,a,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,b)).add(new go.PathSegment(go.PathSegment.Line,x-E,b)).add(new go.PathSegment(go.PathSegment.Line,x-E,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z-E)).add(new go.PathSegment(go.PathSegment.Line,x-E,z-E).close()))}),go.Shape.setFigureParameter("ThickX",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,b){var y=ne?ne.parameter1:NaN;if((isNaN(y)||y<0)&&(y=30),a===0||b===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var x=a/2,z=b/2,ee=Math.atan2(b,a),te=y-Math.min(Math.cos(ee)*y/2,x),oe=y-Math.min(Math.sin(ee)*y/2,z),E=new go.Geometry,le=new go.PathFigure(te,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,x,.2*b)),le.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,oe)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,a,b-oe)),le.add(new go.PathSegment(go.PathSegment.Line,a-te,b)),le.add(new go.PathSegment(go.PathSegment.Line,x,.8*b)),le.add(new go.PathSegment(go.PathSegment.Line,te,b)),le.add(new go.PathSegment(go.PathSegment.Line,0,b-oe)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),E}}),go.Shape.setFigureParameter("ThinX",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=10);var E=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*b).close()),E}),go.Shape.setFigureParameter("SquareIBeam",0,new ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.2);var E=new go.Geometry,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*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+y/2)*a,y*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+y/2)*a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-y/2)*a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-y/2)*a,y*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,y*b).close()),E}),go.Shape.setFigureParameter("RoundedIBeam",0,new ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.5);var E=new go.Geometry,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.Bezier,a,b,Math.abs(1-y)*a,.25*b,Math.abs(1-y)*a,.75*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,y*a,.75*b,y*a,.25*b).close()),E}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,me*a,0,a,(.5-me/2)*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,(.5+me/2)*b,me*a,b).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,0,a,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*b,.5*a,.25*b).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,.1*a,.8*b,0,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.5*b,.9*a,.8*b).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*b)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.6*a,.2*b,a,.25*b)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*b,a,.8*b,.6*a,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,.5*a,.75*b,.55*a,.95*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*b,.45*a,.95*b,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.4*a,.8*b,0,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*b,0,.25*b,.4*a,.2*b).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.4*a,.6*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,b,.5*a,.75*b,.45*a,.95*b)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*b,.55*a,.95*b,.5*a,.75*b));var x=.2,z=.3,ee=0,te=x*me;return E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z)*a,(.5-te+ee)*b,(.5+te+z)*a,(.5-x+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z+.05)*a,(.5-te+ee-.02)*b)),x=.2,z=0,ee=-.3,te=x*me,E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z)*a,(.5-te+ee)*b,(.5+te+z)*a,(.5-x+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z)*a,(.5-te+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),x=.2,z=-.3,ee=0,te=x*me,E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*b,(.5+te+z)*a,(.5-x+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z)*a,(.5-te+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b).close()),y.setSpots(.06,.33,.93,.68),y}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*.5,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),E.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),E.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 E.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*b)),E.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,b*ee,x*a,x*a).close()),E=new go.PathFigure(a*.5,0,!1),y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,E=new go.PathFigure((z+x)*a,ee*b,!0),y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,b*ee,x*a,x*a).close()),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Peace",function(ne,a,b){var y=.8535533905932737,E=.5*a,x=.5*b;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,E,x,E,x)).add(new go.PathSegment(go.PathSegment.Line,E,b)).add(new go.PathSegment(go.PathSegment.Move,E,x)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,y*b)).add(new go.PathSegment(go.PathSegment.Move,E,x)).add(new go.PathSegment(go.PathSegment.Line,y*a,y*b)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*b);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),x=.4,E=me*.4;var oe=ge(),le=ge(),de=ge(),ve=ge();qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.42,oe,le,de,ve,ve);var Pe=ge(),se=ge(),Ae=ge();qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.58,ve,ve,Ae,Pe,se);var Ke=ge(),Ge=ge(),pe=ge();qe(z,ee+x,z-E,ee+x,z-x,ee+E,z-x,ee,.42,Ke,Ge,pe,ve,ve);var he=ge(),Ze=ge(),He=ge();return qe(z,ee+x,z-E,ee+x,z-x,ee+E,z-x,ee,.58,ve,ve,He,he,Ze),te.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,he.x*a,he.y*b,Ze.x*a,Ze.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-E)*b,(z-E)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*b,oe.x*a,oe.y*b,le.x*a,le.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*b).close()),te.add(new go.PathSegment(go.PathSegment.Move,pe.x*a,pe.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,Pe.x*a,Pe.y*b,se.x*a,se.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+E)*b,(z+E)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,pe.x*a,pe.y*b,Ke.x*a,Ke.y*b,Ge.x*a,Ge.y*b).close()),ie(oe),ie(le),ie(de),ie(ve),ie(Pe),ie(se),ie(Ae),ie(Ke),ie(Ge),ie(pe),ie(he),ie(Ze),ie(He),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*b)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*b)).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*b,a,.25*b,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*b,0,.25*b).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=30),y>a&&(y=a);var E=(a-y)/2,x=E+y;return new go.Geometry().add(new go.PathFigure(x,.5*b).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Line,E,.5*b)).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,b){return new go.Geometry().add(new go.PathFigure(0,.55*b).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*b).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,b){var y=new go.Geometry,E=me*.4,x=.4,z=.5,ee=.5,te=ge(),oe=ge(),le=ge(),de=ge(),ve=new go.PathFigure((z-x)*a,ee*b,!1);y.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-E)*b,(z-E)*a,(ee-x)*b)),qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.44,le,de,oe,te,te),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,le.x*a,le.y*b,de.x*a,de.y*b));var Pe=re(oe.x,oe.y);qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.56,te,te,oe,le,de);var se=re(oe.x,oe.y);ve.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.95*.9)*a,Pe.y*.1*b)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,Pe.y*.1*b)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),ve.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.9)*a,.15*b)),ve.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.9)*a,(se.y*.1+.05*.9)*b)),ve.add(new go.PathSegment(go.PathSegment.Line,se.x*a,se.y*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,le.x*a,le.y*b,de.x*a,de.y*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+E)*b,(z+E)*a,(ee+x)*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee+x)*b,(z-x)*a,(ee+E)*b)),x=.35,E=me*.35;var Ae=new go.PathFigure(z*a,(ee-x)*b,!1);y.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b));var Ke=new go.PathFigure((z-x)*a,ee*b,!1);return y.add(Ke),ie(te),ie(oe),ie(le),ie(de),ie(Pe),ie(se),y.spot1=new go.Spot(.202,.257),y.spot2=new go.Spot(.792,.739),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,b){var y=new go.Geometry,E=.375,x=0,z=-.125,ee=E*me,te=new go.PathFigure((.525+x)*a,(.5+E+z)*b,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5+E+z)*b,(.5+E+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-E+z)*b,(1-.5+E+x)*a,(.5-ee+z)*b,(.5+ee+x)*a,(.5-E+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-E+z)*b,(.5-E+x)*a,(.5-ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+E+z)*b,(.5-E+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,(.5+E+z)*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b).close()),E=.325,x=0,z=-.125,ee=E*me;var te=new go.PathFigure((1-.5+E+x)*a,(.5+z)*b,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+E+z)*b,(.5+E+x)*a,(.5+ee+z)*b,(.5+ee+x)*a,(.5+E+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5+E+z)*b,(.5-E+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-E+z)*b,(.5-E+x)*a,(.5-ee+z)*b,(.5-ee+x)*a,(.5-E+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5-E+z)*b,(1-.5+E+x)*a,(.5-ee+z)*b));var te=new go.PathFigure((.525+x)*a,(.5+E+z)*b,!1);return y.add(te),y.spot1=new go.Spot(.232,.136),y.spot2=new go.Spot(.682,.611),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,b){var y=ne?ne.parameter1:NaN;return isNaN(y)&&(y=.2),new go.Geometry().add(new go.PathFigure((1-y)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,b){var y=ne?ne.parameter1:NaN;return isNaN(y)&&(y=.2),new go.Geometry().add(new go.PathFigure((1-y)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,y*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,y*a,b))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,b){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,b)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,b){var y=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*b,.5*a,.5*b)));return y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,b){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,b)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Move,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Move,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,0,b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,b){var y=.5;return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,0,y*b)).add(new go.PathSegment(go.PathSegment.Arc,180,180,y*a,y*b,y*a,y*b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,b){var y=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,y*b)).add(new go.PathSegment(go.PathSegment.Arc,0,180,y*a,y*b,y*a,y*b)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=.3);var x=(1-y)*a,z=(.5-E/2)*b,ee=(.5+E/2)*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*b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,b)),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/b);var le=Ve(0,ee/b,1,ee/b,x/a,1,1,.5,ge());return te.spot2=new go.Spot(le.x,le.y),ie(le),te}),go.Shape.setFigureParameter("Arrow2",0,new ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=30),y>a&&(y=a);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=30),E=Math.min(E,b/2);var x=a-y,z=(b-E)/2,ee=z+E,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*b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,b)),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/b);var le=Ve(0,ee/b,1,ee/b,x/a,1,1,.5,ge());return te.spot2=new go.Spot(le.x,le.y),ie(le),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),y}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,1*b).close()),y}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=(.5-y/2)*b,x=(.5+y/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),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,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ve(0,.5,.3,0,0,E/b,.1,E/b,ge());return z.spot1=new go.Spot(te.x,te.y),te=Ve(.7,1,1,.5,0,x/b,1,x/b,te),z.spot2=new go.Spot(te.x,te.y),ie(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=40);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=100);var x=(b-y)/2,z=x+y,ee=(b-E)/2,te=ee+E;(y>b||E>b)&&(E>y?(y=y*b/E,x=(b-y)/2,z=x+y,ee=0,te=b):(x=0,z=b,ee=0,te=b));var oe=new go.Geometry,le=new go.PathFigure(a,.5*b,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Ve(0,.5,.3,ee/b,0,x/b,1,x/b,ge());return oe.spot1=new go.Spot(de.x,de.y),de=Ve(.7,te/b,1,.5,0,z/b,1,z/b,de),oe.spot2=new go.Spot(de.x,de.y),ie(de),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=(.5-y/2)*b,x=(.5+y/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),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,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),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,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,E/b);var te=Ve(.7,1,1,.5,0,x/b,1,x/b,ge());return z.spot2=new go.Spot(te.x,te.y),ie(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=40);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=100);var x=(b-y)/2,z=x+y,ee=(b-E)/2,te=ee+E;(y>b||E>b)&&(E>y?(y=y*b/E,x=(b-y)/2,z=x+y,ee=0,te=b):(x=0,z=b,ee=0,te=b));var oe=new go.Geometry,le=new go.PathFigure(a,.5*b,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/b);var de=Ve(.7,te/b,1,.5,0,z/b,1,z/b,ge());return oe.spot2=new go.Spot(de.x,de.y),ie(de),oe}),go.Shape.setFigureParameter("Pointer",0,new ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,y*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),E.spot1=new go.Spot(y,.35);var z=Ve(.2,.65,1,.65,0,1,1,.5,ge());return E.spot2=new go.Spot(z.x,z.y),ie(z),E}),go.Shape.setFigureParameter("RoundedPointer",0,new ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,y*a,.75*b,y*a,.25*b).close()),E.spot1=new go.Spot(y,.35);var z=Ve(0,.65,1,.65,0,1,1,.5,ge());return E.spot2=new go.Spot(z.x,z.y),ie(z),E}),go.Shape.setFigureParameter("SplitEndArrow",0,new ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.4);var E=(.5-y/2)*b,x=(.5+y/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),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*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ve(.7,1,1,.5,0,x/b,1,x/b,ge());return z.spot2=new go.Spot(te.x,te.y),ie(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=50);var E=(b-y)/2,x=E+y;y>b&&(E=0,x=b);var z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),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*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,E/b);var te=Ve(.7,1,1,.5,0,x/b,1,x/b,ge());return z.spot2=new go.Spot(te.x,te.y),ie(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.7);var E=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,y*a,0).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(y,1),E}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(0,.9*b,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-E)*a,b,0,(.9+x)*b).close()),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.97),y}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.9*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,b,.85/.9*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*b).close());var x=new go.PathFigure(0,.9*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,.8*b,.85/.9*a,.8*b)),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.82),y}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var x=new go.PathFigure(.5*a,b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(.5,.85),y}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.3*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(.7,1),y}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,b/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*y,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,y,(.5+x)*a,0,1*a,me*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*b,1*a,b-me*y,(.5+x)*a,1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,(.5-x)*a,1*b,0,b-me*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y));var ee=new go.PathFigure(a,y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*y,1*a,2*y-me*y,(.5+x)*a,2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y,(.5-x)*a,2*y,0,2*y-me*y)),E.spot1=new go.Spot(0,0,0,2*y),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,b/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(0,b-y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*y,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y,(.5+x)*a,0,a,me*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,b-me*y,(.5+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,(.5-x)*a,b,0,b-me*y));var ee=new go.PathFigure(0,b-y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b-2*y,0,b-y-me*y,(.5-x)*a,b-2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b-y,(.5+x)*a,b-2*y,a,b-y-me*y)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,0,-2*y),E}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,a/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(y,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-me*y,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,(.5+x)*b,a-me*y,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,me*y,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,(.5-x)*b,me*y,0));var ee=new go.PathFigure(y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*y,.5*b,y+me*y,0,2*y,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,b,2*y,(.5+x)*b,y+me*y,b)),E.spot1=new go.Spot(0,0,2*y,0),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,a/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(a-y,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-me*y,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,(.5+x)*b,a-me*y,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,me*y,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,(.5-x)*b,me*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-y,0));var ee=new go.PathFigure(a-y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*y,.5*b,a-y-me*y,0,a-2*y,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a-2*y,(.5+x)*b,a-y-me*y,b)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,-2*y,0),E}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.25*a,.25*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(.25*a,.25*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.spot1=new go.Spot(.408,.172),y.spot2=new go.Spot(.833,.662),y}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.25*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*b).close());var x=new go.PathFigure(.5*a,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.spot1=new go.Spot(.25,.367),y.spot2=new go.Spot(.75,.875),y}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var x=new go.PathFigure(.5*a,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*b)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.spot1=new go.Spot(.25,.367),y.spot2=new go.Spot(.75,.875),y}),go.Shape.defineFigureGenerator("Actor",function(ne,a,b){var y=new go.Geometry,E=.2,x=.1,z=me*E,ee=me*x,te=.5,oe=.1,le=new go.PathFigure(te*a,(oe+x)*b,!0);y.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,oe*b,(te-z)*a,(oe+x)*b,(te-E)*a,(oe+ee)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*b,(te-E)*a,(oe-ee)*b,(te-z)*a,(oe-x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,oe*b,(te+z)*a,(oe-x)*b,(te+E)*a,(oe-ee)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*b,(te+E)*a,(oe+ee)*b,(te+z)*a,(oe+x)*b));var de=.05,ve=me*de;te=.05,oe=.25;var Pe=new go.PathFigure(.5*a,.2*b,!0);return y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*b)),te=.95,oe=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+de)*a,oe*b,(te+ve)*a,(oe-de)*b,(te+de)*a,(oe-ve)*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*b)),de=.025,ve=me*de,te=.825,oe=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-de)*b,(te+de)*a,(oe-ve)*b,(te+ve)*a,(oe-de)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-de)*a,oe*b,(te-ve)*a,(oe-de)*b,(te-de)*a,(oe-ve)*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b)),de=.05,ve=me*de,te=.5,oe=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-de)*b,(te+de)*a,(oe-ve)*b,(te+ve)*a,(oe-de)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-de)*a,oe*b,(te-ve)*a,(oe-de)*b,(te-de)*a,(oe-ve)*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*b)),de=.025,ve=me*de,te=.175,oe=.35,Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-de)*b,(te+de)*a,(oe-ve)*b,(te+ve)*a,(oe-de)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-de)*a,oe*b,(te-ve)*a,(oe-de)*b,(te-de)*a,(oe-ve)*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),de=.05,ve=me*de,te=.05,oe=.25,Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-de)*b,(te-de)*a,(oe-ve)*b,(te-ve)*a,(oe-de)*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),y.spot1=new go.Spot(.2,.2),y.spot2=new go.Spot(.8,.65),y}),go.Shape.setFigureParameter("Card",0,new ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,b){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.2);var E=new go.Geometry,x=new go.PathFigure(a,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,y*b)),x.add(new go.PathSegment(go.PathSegment.Line,y*a,0).close()),E.spot1=new go.Spot(0,y),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Collate",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b));var x=new go.PathFigure(.5*a,.5*b,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.spot1=new go.Spot(.25,0),y.spot2=new go.Spot(.75,.25),y}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,E*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,E*b)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*b)),y}),go.Shape.defineFigureGenerator("Database",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(a,.1*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-E)*a,b,0,(.9+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*b,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+E)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+E)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-E)*a,.2*b,0,(.1+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+x)*b,(.5+E)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-E)*a,.3*b,0,(.2+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*b,a,(.3+x)*b,(.5+E)*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,(.5-E)*a,.4*b,0,(.3+x)*b)),y.spot1=new go.Spot(0,.4),y.spot2=new go.Spot(1,.9),y}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*b,.25*a,.1*b).close()),y.spot1=new go.Spot(.226,0),y.spot2=new go.Spot(.81,1),y}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(a,.1*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-E)*a,b,0,(.9+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*b,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+E)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+E)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-E)*a,.2*b,0,(.1+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+x)*b,(.5+E)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-E)*a,.3*b,0,(.2+x)*b)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(1,.9),y}),go.Shape.defineFigureGenerator("Display",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.25*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close()),y.spot1=new go.Spot(.25,0),y.spot2=new go.Spot(.75,1),y}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.15&&(E=.15);var x=me*.2,z=new go.PathFigure(0,.2*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*b,(.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*b,(.8+x)*a,0,a,(.2-x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,b,a,(.8+x)*b,(.8+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*b,(.2-x)*a,b,0,(.8+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*b));var ee=new go.PathFigure(0,E*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*b)),y}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;(isNaN(E)||E<.1)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,E*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,E*b)),y}),go.Shape.defineFigureGenerator("Document",function(ne,a,b){var y=new go.Geometry;b=b/.8;var E=new go.PathFigure(0,.7*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(1,.6),y}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;(isNaN(E)||E<.2)&&(E=.2);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(E*a,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E*b)),z.add(new go.PathSegment(go.PathSegment.Move,a,E*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*b)),y}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(.1*a,.4*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*b)),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("File",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(.75*a,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b));var x=new go.PathFigure(a,.5*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b));var z=new go.PathFigure(a,.5*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var ee=new go.PathFigure(E*a,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b)),y}),go.Shape.defineFigureGenerator("Junction",function(ne,a,b){var y=new go.Geometry,E=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,b,a,(ee+z)*b,(ee+z)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*b,(ee-z)*a,b,0,(ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*b,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*b,(ee+z)*a,0,a,(ee-z)*b));var oe=new go.PathFigure((x+E)*a,(x+E)*b,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*b)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+E)*a,x*b)),y}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,b){var y=new go.Geometry;b=b/.8;var E=new go.PathFigure(0,.7*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close());var x=new go.PathFigure(.1*a,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*b)),y.spot1=new go.Spot(.1,0),y.spot2=new go.Spot(1,.6),y}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(.5*a,b,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-E)*a,b,0,(x+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-E)*b,(x-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+E)*a,0,a,(x-E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*b,a,(x+E)*b,(x+E)*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.8),y}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*b).close()),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.spot1=go.Spot.TopLeft,y}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.25);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(1,.75),y}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,b){var y=new go.Geometry;b=b/.8;var E=new go.PathFigure(a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*b,.96*a,.47*b,.93*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*b,.86*a,.57*b,.83*a,.55*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.4*a,.4*b,.4*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*b)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.8,.77),y}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.1*a,.1*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close());var x=new go.PathFigure(.2*a,.1*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),y.spot1=new go.Spot(0,.2),y.spot2=new go.Spot(.8,1),y}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=1-E,z=new go.PathFigure(0,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close());var ee=new go.PathFigure(.5*E*a,E*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*E)*a,E*b)),y}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(.75,1),y}),go.Shape.defineFigureGenerator("Or",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(a,x*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+E)*b,(x+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-E)*a,b,0,(x+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-E)*b,(x-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+E)*a,0,a,(x-E)*b));var ee=new go.PathFigure(a,.5*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,b){var y=new go.Geometry;b=b/.8;var E=new go.PathFigure(0,.7*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.3*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.5*a,.6*b,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),y.spot1=new go.Spot(0,.49),y.spot2=new go.Spot(1,.75),y}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure((1-E)*a,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,E*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),y}),go.Shape.defineFigureGenerator("Process",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(E*a,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Sort",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(0,.5*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.5),y}),go.Shape.defineFigureGenerator("Start",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.25);var x=new go.PathFigure(E*a,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b));var z=new go.PathFigure(E*a,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)),y.spot1=new go.Spot(E,0),y.spot2=new go.Spot(1-E,1),y}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.25*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b)),y.spot1=new go.Spot(.23,0),y.spot2=new go.Spot(.77,1),y}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,b){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*b).close()),y.spot1=go.Spot.TopLeft,y}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(.5+E)*a,0,a,(.5-E)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.5+E)*b,(.5+E)*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(.55,1),y}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("Clock",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(a,x*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+E)*b,(x+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-E)*a,b,0,(x+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-E)*b,(x-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+E)*a,0,a,(x-E)*b));var ee=new go.PathFigure(a,x*b,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b));var te=new go.PathFigure(.8*a,.75*b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*b)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*b)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*b)),y}),go.Shape.defineFigureGenerator("Ground",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),y}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,b){var y=new go.Geometry,E=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b));var oe=new go.PathFigure((z+x)*a,ee*b,!0);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+E)*b,(z+E)*a,(ee+x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee+x)*b,(z-x)*a,(ee+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-E)*b,(z-E)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+E)*a,(ee-x)*b,(z+x)*a,(ee-E)*b)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.4,.75),y}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,le=new go.PathFigure(.8*a,.5*b,!0);y.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,.8*a,(.5+x)*b,(.4+E)*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,0,b)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(.4+E)*a,0,.8*a,(.5-x)*b));var de=new go.PathFigure((te+ee)*a,oe*b,!0);return y.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b,(te+z)*a,(oe+ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*b,(te-z)*a,(oe+ee)*b,(te-ee)*a,(oe+z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b,(te-z)*a,(oe-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*b,(te+z)*a,(oe-ee)*b,(te+ee)*a,(oe-z)*b)),y.spot1=new go.Spot(0,.05),y.spot2=new go.Spot(.55,.95),y}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*E,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.7*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+x)*a,(ee-E)*b,.7*a,(ee-x)*b)),E=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-E)*a,ee*b,!0);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b)),y.spot1=new go.Spot(.2,.25),y.spot2=new go.Spot(.6,.75),y}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*E,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x+x)*a,(ee-E)*b,.8*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.8*a,(ee+x)*b,(z+x+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b).close()),y.spot1=new go.Spot(.2,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*E,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var oe=new go.PathFigure(.8*a,.5*b,!0);y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.7*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+x)*a,(ee-E)*b,.7*a,(ee-x)*b)),E=.1,x=me*.1,z=.9,ee=.5;var le=new go.PathFigure((z-E)*a,ee*b,!0);return y.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b)),y.spot1=new go.Spot(.4,.25),y.spot2=new go.Spot(.65,.75),y}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*E,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var oe=new go.PathFigure(.2*a,0,!0);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x)*a,(ee-E)*b,.9*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.9*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b).close()),y.spot1=new go.Spot(.4,.25),y.spot2=new go.Spot(.8,.75),y}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),y}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.5*b,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),y}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,b){var y=new go.Geometry,E=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-E*.5)*a,b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-E)*a,b,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+E)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-E)*a,b,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+E)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-E)*a,b,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+E)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-E)*a,b,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E*.5)*a,b,(z+x)*a,0,(z+E)*a,b)),y}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,b){var y=new go.Geometry,E=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-E)*b,(z-E)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+E)*a,(ee-x)*b,(z+x)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+E)*b,(z+E)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee+x)*b,(z-x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*b,z*a,(ee-x)*b,z*a,(ee+x)*b)),y}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.75*b,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),y}),go.Shape.defineFigureGenerator("Diode",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,b){var y=new go.Geometry,E=a,x=b;a=a*.38,b=b*.6;var z=me*.8,ee=.8,te=0,oe=.5,le=(E-a)/2,de=(x-b)/2,ve=new go.PathFigure(te*a+le,(oe+ee)*b+de,!0);y.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+le,oe*b+de,(te-z)*a+le,(oe+ee)*b+de,(te-ee)*a+le,(oe+z)*b+de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe-ee)*b+de,(te-ee)*a+le,(oe-z)*b+de,(te-z)*a+le,(oe-ee)*b+de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+le,oe*b+de,te*a+le,(oe-ee)*b+de,(te-ee+z*.5)*a+le,(oe-z)*b+de)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe+ee)*b+de,(te-ee+z*.5)*a+le,(oe+z)*b+de,te*a+le,(oe+ee)*b+de).close()),z=me*.4,ee=.4,te=.2,oe=.5;var Pe=new go.PathFigure(te*a+le,(oe+ee)*b+de,!0);y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+le,oe*b+de,(te-z)*a+le,(oe+ee)*b+de,(te-ee)*a+le,(oe+z)*b+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe-ee)*b+de,(te-ee)*a+le,(oe-z)*b+de,(te-z)*a+le,(oe-ee)*b+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+le,oe*b+de,te*a+le,(oe-ee)*b+de,(te-ee+z*.5)*a+le,(oe-z)*b+de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe+ee)*b+de,(te-ee+z*.5)*a+le,(oe+z)*b+de,te*a+le,(oe+ee)*b+de).close()),z=me*.2,ee=.2,te=.5,oe=.5;var se=new go.PathFigure((te-ee)*a+le,oe*b+de,!0);y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe-ee)*b+de,(te-ee)*a+le,(oe-z)*b+de,(te-z)*a+le,(oe-ee)*b+de)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+le,oe*b+de,(te+z)*a+le,(oe-ee)*b+de,(te+ee)*a+le,(oe-z)*b+de)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe+ee)*b+de,(te+ee)*a+le,(oe+z)*b+de,(te+z)*a+le,(oe+ee)*b+de)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+le,oe*b+de,(te-z)*a+le,(oe+ee)*b+de,(te-ee)*a+le,(oe+z)*b+de)),z=me*.4,ee=.4,te=.8,oe=.5;var Ae=new go.PathFigure(te*a+le,(oe-ee)*b+de,!0);y.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+le,oe*b+de,(te+z)*a+le,(oe-ee)*b+de,(te+ee)*a+le,(oe-z)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe+ee)*b+de,(te+ee)*a+le,(oe+z)*b+de,(te+z)*a+le,(oe+ee)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+le,oe*b+de,te*a+le,(oe+ee)*b+de,(te+ee-z*.5)*a+le,(oe+z)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe-ee)*b+de,(te+ee-z*.5)*a+le,(oe-z)*b+de,te*a+le,(oe-ee)*b+de).close()),z=me*.8,ee=.8,te=1,oe=.5;var Ke=new go.PathFigure(te*a+le,(oe-ee)*b+de,!0);return y.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+le,oe*b+de,(te+z)*a+le,(oe-ee)*b+de,(te+ee)*a+le,(oe-z)*b+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe+ee)*b+de,(te+ee)*a+le,(oe+z)*b+de,(te+z)*a+le,(oe+ee)*b+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+le,oe*b+de,te*a+le,(oe+ee)*b+de,(te+ee-z*.5)*a+le,(oe+z)*b+de)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+le,(oe-ee)*b+de,(te+ee-z*.5)*a+le,(oe-z)*b+de,te*a+le,(oe-ee)*b+de).close()),y}),go.Shape.defineFigureGenerator("Email",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Move,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*b)),y}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.35*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,b,!0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var z=new go.PathFigure(.6*a,b,!0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,b).close());var ee=new go.PathFigure(0,.5*b,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*b)),y}),go.Shape.defineFigureGenerator("Power",function(ne,a,b){var y=new go.Geometry,E=me*.4,x=.4,z=.5,ee=.5,te=ge(),oe=ge(),le=ge(),de=ge();qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.5,te,te,oe,le,de);var ve=re(oe.x,oe.y),Pe=new go.PathFigure(oe.x*a,oe.y*b,!0);y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,le.x*a,le.y*b,de.x*a,de.y*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+E)*b,(z+E)*a,(ee+x)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-E)*a,(ee+x)*b,(z-x)*a,(ee+E)*b)),qe(z-x,ee,z-x,ee-E,z-E,ee-x,z,ee-x,.5,le,de,oe,te,te),Pe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,le.x*a,le.y*b,de.x*a,de.y*b)),E=me*.3,x=.3,qe(z-x,ee,z-x,ee-E,z-E,ee-x,z,ee-x,.5,le,de,oe,te,te),Pe.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,de.x*a,de.y*b,le.x*a,le.y*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),qe(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.5,te,te,oe,le,de),Pe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,de.x*a,de.y*b,le.x*a,le.y*b).close());var Pe=new go.PathFigure(.45*a,0,!0);return y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*b)),Pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ie(te),ie(oe),ie(le),ie(de),ie(ve),y.spot1=new go.Spot(.25,.45),y.spot2=new go.Spot(.75,.8),y}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b/2,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,b/2,a/2,b/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*b).close())}return x(E,0,0),x(E,.4,0),x(E,.2,-.3),y}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.2*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close()),y.spot1=new go.Spot(.3,.3),y.spot2=new go.Spot(.7,.7),y}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.37*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*b)),E.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*b)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.37*b)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*b)),E.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*b)),E.add(new go.PathSegment(go.PathSegment.Line,.34*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*b)),E.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*b).close()),y}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.1*a,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*b,.45*a,.44*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*b,.48*a,.17*b,.54*a,.35*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*b,.59*a,.29*b,.58*a,.28*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*b,.8*a,.34*b,.88*a,.43*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*b,.87*a,.48*b,.88*a,.43*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,1.17*a,.76*b,.82*a,.8*b).close()),y.spot1=new go.Spot(.07,.445),y.spot2=new go.Spot(.884,.958),y}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,b){var y=new go.Geometry,E=.5,x=0,z=0,ee=E*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,le=1,de=.5,ve=.5,Pe=0,se=new go.PathFigure(te*a,(1-oe)*b,!1);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,le*a,de*b,le*a,.7*b,le*a,de*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ve+x)*a,(Pe+x)*b,(.5+E+x)*a,(.5-ee+x)*b,(.5+ee+x)*a,(.5-E+x)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-E+z)*b,(.5-E+x)*a,(.5-ee+z)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*b,(.5-E+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,.9*b)),se.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*b)),se.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*b)),se.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*b)),y}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),y}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Move,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),y}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(a,b,!1);y.add(x);var z=new go.PathFigure(0,.5*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.2*a,.35*b,.3*a,.35*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.7*a,.65*b,.8*a,.65*b)),y}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.5*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close()),y}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.2*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b).close());var E=new go.PathFigure(0,.2*b,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.7*a,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*b,0,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,b,.4*a,.5*b,a,.5*b).close());var x=new go.PathFigure(.45*a,.73*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*b)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*b)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*b)),y}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(.335*a,(1-.555)*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*b,(1-.12)*a,.46*b,(1-.02)*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*b,.02*a,.54*b,.12*a,.46*b)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*b));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,le=4*(1-Math.cos(oe))/(3*Math.sin(oe)),de=le*.5,ve=z,Pe=z,se=le*ve,Ae=le*Pe;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ve)*a,te*b,(ee-(se+ve)/2)*a,(te+(Pe+Ae)/2)*b,(ee-ve)*a,(te+Ae)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-Pe)*b,(ee-ve)*a,(te-Ae)*b,(ee-se)*a,(te-Pe)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ve)*a,te*b,(ee+se)*a,(te-Pe)*b,(ee+ve)*a,(te-Ae)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*b,(ee+ve)*a,(te+Ae)*b,(ee+(se+ve)/2)*a,(te+(Pe+Ae)/2)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b));var Ke=new go.PathFigure(.2*a,b,!1);y.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*b));var Ge=new go.PathFigure(.8*a,b,!1);return y.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),y}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var x=new go.PathFigure(.2*a,.2*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),y}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*b).close()),y}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(a,b,!1);y.add(x);var z=new go.PathFigure(.1*a,b,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),y}),go.Shape.defineFigureGenerator("Caution",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.05*a,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*b,0,b,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*b,.5*a,0,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,a,b,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,b));var x=.05;return E.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*b)),E.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*b,x*a,x*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*b,.575*a,.725*b,.625*a,.375*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*b,.375*a,.375*b,.425*a,.725*b)),y}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.45*a,.95*b,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*b,.17*a,.95*b,.15*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*b)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*b)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*b,0,.675*b,0,.7*b)),E.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*b)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*b)),E.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*b));var x=new go.PathFigure(.475*a,.2*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*b)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*b,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*b)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*b)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*b)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*b,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*b));var z=new go.PathFigure(.675*a,.575*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*b,a,.8*b,a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*b)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*b)),y}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*.5,z=new go.PathFigure(a,E*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,b,a,(E+x)*b,(E+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*b,(E-x)*a,b,0,(E+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-x)*b,(E-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*b,(E+x)*a,0,a,(E-x)*b));var ee=new go.PathFigure(E*a,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,.15*b)),ee.add(new go.PathSegment(go.PathSegment.Move,E*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,.85*b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,E*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,E*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,E*b)),ee.add(new go.PathSegment(go.PathSegment.Move,E*a,E*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*b)),ee.add(new go.PathSegment(go.PathSegment.Move,E*a,E*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*b)),y}),go.Shape.defineFigureGenerator("Package",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.15*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,.15*b,!0);return y.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*b).close()),y.spot1=new go.Spot(0,.1),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Class",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(0,.5*b,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close()),y}),go.Shape.defineFigureGenerator("Component",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b).close());var x=new go.PathFigure(0,.2*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close());var z=new go.PathFigure(0,.6*b,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*b).close()),y}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.15*a,.6*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b));var x=new go.PathFigure(.15*a,.6*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),y}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*b)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*b)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),y}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.33*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),E.add(new go.PathSegment(go.PathSegment.Move,a,.33*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.66*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.66*b)),E.add(new go.PathSegment(go.PathSegment.Move,a,.66*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),y}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*b).close());var z=.1,ee=me*.1,te=.2,oe=.9,le=new go.PathFigure((te-z)*a,oe*b,!0);y.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*b,(te-z)*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*b,(te+ee)*a,(oe-z)*b,(te+z)*a,(oe-ee)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*b,(te+z)*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*b,(te-ee)*a,(oe+z)*b,(te-z)*a,(oe+ee)*b).close()),z=.1,ee=me*.1,te=.8,oe=.9;var de=new go.PathFigure((te-z)*a,oe*b,!0);return y.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*b,(te-z)*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*b,(te+ee)*a,(oe-z)*b,(te+z)*a,(oe-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*b,(te+z)*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*b,(te-ee)*a,(oe+z)*b,(te-z)*a,(oe+ee)*b).close()),y}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.2*a,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var z=new go.PathFigure(.5*a,.8*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b));var ee=new go.PathFigure(.5*a,.7*b,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*b));var te=.1,oe=me*.1,le=.1,de=.9,ve=new go.PathFigure((le-te)*a,de*b,!0);y.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-te)*b,(le-te)*a,(de-oe)*b,(le-oe)*a,(de-te)*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+te)*a,de*b,(le+oe)*a,(de-te)*b,(le+te)*a,(de-oe)*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+te)*b,(le+te)*a,(de+oe)*b,(le+oe)*a,(de+te)*b)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-te)*a,de*b,(le-oe)*a,(de+te)*b,(le-te)*a,(de+oe)*b)),te=.1,oe=me*.1,le=.4,de=.9;var Pe=new go.PathFigure((le-te)*a,de*b,!0);return y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de-te)*b,(le-te)*a,(de-oe)*b,(le-oe)*a,(de-te)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(le+te)*a,de*b,(le+oe)*a,(de-te)*b,(le+te)*a,(de-oe)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(de+te)*b,(le+te)*a,(de+oe)*b,(le+oe)*a,(de+te)*b)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(le-te)*a,de*b,(le-oe)*a,(de+te)*b,(le-te)*a,(de+oe)*b)),y}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.1*a,.4*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*b).close());var x=new go.PathFigure(.45*a,.7*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b));var z=new go.PathFigure(.55*a,.4*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*b).close());var le=.05,de=me*.05,ve=.175,Pe=.95,ee=new go.PathFigure((ve-le)*a,Pe*b,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe-le)*b,(ve-le)*a,(Pe-de)*b,(ve-de)*a,(Pe-le)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Pe*b,(ve+de)*a,(Pe-le)*b,(ve+le)*a,(Pe-de)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe+le)*b,(ve+le)*a,(Pe+de)*b,(ve+de)*a,(Pe+le)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Pe*b,(ve-de)*a,(Pe+le)*b,(ve-le)*a,(Pe+de)*b));var le=.05,de=me*.05,ve=.375,Pe=.95,te=new go.PathFigure((ve-le)*a,Pe*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe-le)*b,(ve-le)*a,(Pe-de)*b,(ve-de)*a,(Pe-le)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Pe*b,(ve+de)*a,(Pe-le)*b,(ve+le)*a,(Pe-de)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe+le)*b,(ve+le)*a,(Pe+de)*b,(ve+de)*a,(Pe+le)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Pe*b,(ve-de)*a,(Pe+le)*b,(ve-le)*a,(Pe+de)*b));var le=.05,de=me*.05,ve=.625,Pe=.95,oe=new go.PathFigure((ve-le)*a,Pe*b,!0);y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe-le)*b,(ve-le)*a,(Pe-de)*b,(ve-de)*a,(Pe-le)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Pe*b,(ve+de)*a,(Pe-le)*b,(ve+le)*a,(Pe-de)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe+le)*b,(ve+le)*a,(Pe+de)*b,(ve+de)*a,(Pe+le)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Pe*b,(ve-de)*a,(Pe+le)*b,(ve-le)*a,(Pe+de)*b));var le=.05,de=me*.05,ve=.825,Pe=.95,se=new go.PathFigure((ve-le)*a,Pe*b,!0);y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe-le)*b,(ve-le)*a,(Pe-de)*b,(ve-de)*a,(Pe-le)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Pe*b,(ve+de)*a,(Pe-le)*b,(ve+le)*a,(Pe-de)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Pe+le)*b,(ve+le)*a,(Pe+de)*b,(ve+de)*a,(Pe+le)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Pe*b,(ve-de)*a,(Pe+le)*b,(ve-le)*a,(Pe+de)*b).close());var Ae=new go.PathFigure(0,b,!1);return y.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),y}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(.15*a,b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,b).close());var ee=.05,te=me*.05,oe=.35,le=.775,de=new go.PathFigure((oe-ee)*a,le*b,!0);return y.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(le-ee)*b,(oe-ee)*a,(le-te)*b,(oe-te)*a,(le-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,le*b,(oe+te)*a,(le-ee)*b,(oe+ee)*a,(le-te)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(le+ee)*b,(oe+ee)*a,(le+te)*b,(oe+te)*a,(le+ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,le*b,(oe-te)*a,(le+ee)*b,(oe-ee)*a,(le+te)*b).close()),y}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b).close()),y}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.75*b,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),y}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),y}),go.Shape.defineFigureGenerator("Globe",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.75*a,0,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.75*b,.75*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.25*a,b,0,.75*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*b,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,.15*a,.25*b,.15*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*b,.85*a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*b,.35*a,.3*b,.65*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*b,.35*a,.7*b,.65*a,.7*b)),y}),go.Shape.defineFigureGenerator("Wave",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.25*b,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*b,.1*a,0,.2*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*b,.425*a,.5*b,.575*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*b,.8*a,0,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*b,.1*a,.5*b,.2*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*b,.425*a,b,.575*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*b,.8*a,.5*b,.9*a,.5*b)),y}),go.Shape.defineFigureGenerator("Operator",function(ne,a,b){var y=new go.Geometry,E=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-E)*a,ee*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b));var oe=new go.PathFigure(0,.7*b,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*b,0,0,a,0)),y}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.65*a,.3*b,.65*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*b,.35*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.3*a,.6*b,.1*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.2*a,b,.35*a,.95*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,b,.7*a,.6*b,.9*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.8*a,b,.65*a,.95*b)),y}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,0,.075*b,0,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,0,b,.4*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*b,.8*a,b,.85*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),y}),go.Shape.defineFigureGenerator("Battery",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*b));var x=new go.PathFigure(0,.6*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),y}),go.Shape.defineFigureGenerator("Delete",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*b,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b));var oe=new go.PathFigure(.15*a,.5*b,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*b)),y}),go.Shape.defineFigureGenerator("Flag",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.1*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Move,0,.1*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*b,.15*a,0,.35*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,.65*a,.2*b,.85*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.85*a,.6*b,.65*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.35*a,.4*b,.15*a,.4*b).close()),y}),go.Shape.defineFigureGenerator("Help",function(ne,a,b){var y=new go.Geometry,E=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*b,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b).close()),E=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-E)*a,ee*b,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-x)*b,(z-x)*a,(ee-E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+x)*a,(ee-E)*b,(z+E)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+x)*b,(z+x)*a,(ee+E)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-x)*a,(ee+E)*b,(z-E)*a,(ee+x)*b).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,.75*a,.475*b,.75*a,.225*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*b,.4*a,.2*b,.3*a,.25*b)),y}),go.Shape.defineFigureGenerator("Location",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*b,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*b,.5*a,0,.025*a,.025*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*b)),y}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*b)),y}),go.Shape.defineFigureGenerator("Gear",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*b,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*b,.79840625*a,.39915625*b,.7834375*a,.3635*b)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*b)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*b,.64228125*a,.2188125*b,.603875*a,.2021875*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*b,.39759375*a,.20190625*b,.36053125*a,.2176875*b)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*b)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*b,.21765625*a,.36059375*b,.201875*a,.397625*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*b,.20221875*a,.603875*b,.21884375*a,.64228125*b)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*b,.36353125*a,.78340625*b,.3991875*a,.79840625*b)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*b,.602375*a,.79809375*b,.63946875*a,.78234375*b)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*b,.78234375*a,.63940625*b,.798125*a,.602375*b)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*b)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.5*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*b,0,.375*b,.05*a,.325*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*b,.3*a,.225*b,.4*a,.175*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*b,.46*a,.05*b,.525*a,.05*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*b,.525*a,.275*b,.475*a,.325*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*b,a,.4*b,a,.55*b)),E.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*b,.675*a,.55*b,.675*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*b,.65*a,.7*b,.65*a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,b,.61*a,.85*b,.61*a,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,.435*a,b,0,b).close()),y}),go.Shape.defineFigureGenerator("Map",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,.2*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),y}),go.Shape.defineFigureGenerator("Eject",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b*.7)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*.7).close());var x=new go.PathFigure(0,b*.6,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),y}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*1,b*1,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.3)),E.add(new go.PathSegment(go.PathSegment.Line,a,b*.3)),E.add(new go.PathSegment(go.PathSegment.Line,a,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.85)),E.add(new go.PathSegment(go.PathSegment.Line,a,b*.85).close());var x=new go.PathFigure(.126*a,.85*b,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*b)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*b)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*b).close());var z=new go.PathFigure(.402*a,.85*b,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*b).close());var ee=new go.PathFigure(.678*a,.85*b,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*b).close());var te=new go.PathFigure(.5*a,.1*b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*b)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*b).close()),y}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b*1,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.8)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.8)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.6)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.6)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.4)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.4)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.2)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.2)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.15)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.15)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*.95).close()),y}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,b*1,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*(1-.184)).close());var x=new go.PathFigure(a*.204,b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,b*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*1).close());var z=new go.PathFigure(a*.408,b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,b*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*1).close());var ee=new go.PathFigure(a*.612,b,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,b*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*1).close());var te=new go.PathFigure(a*.816,b,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,b*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1).close()),y}),go.Shape.defineFigureGenerator("PC",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.1).close());var z=new go.PathFigure(a*.055,.13*b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.16).close());var ee=new go.PathFigure(a*.055,.18*b,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.21).close());var te=new go.PathFigure(a*1,0,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.65).close()),y}),go.Shape.defineFigureGenerator("Plane",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(.55*a,b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*b,0,.4*b,.225*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*b)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*b)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*b,.975*a,0,a,.08*b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*b)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,b).close()),y}),go.Shape.defineFigureGenerator("Key",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*1,b*.5,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.35*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.65*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*b)),E.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*b).close()),E.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*b)),E.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*b,.075*a,.075*b).close()),y}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1));var x=new go.PathFigure(0,0,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,b*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,b*1));var z=new go.PathFigure(a*.11,b*.1,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,b*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),b*.1,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),b*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),b*.1,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),b*.8).close()),y}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,b){var y=new go.Geometry,E=8,x=E*me,z=new go.PathFigure(E,0,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,x,b,0,b-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*0).close());var te=new go.PathFigure(a*.83,b*1,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*1).close());var oe=new go.PathFigure(a*.78,b*.05,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,b*.25).close()),y}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,b){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=15),y=Math.min(y,a/3),y=Math.min(y,b/3);var E=y*me,x=b*.8,z=new go.Geometry,ee=new go.PathFigure(y,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-y,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y,a-E,0,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-y,x,a,x-E,a-E,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-y,E,x,0,x-E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,E,E,0).close()),E>1?(z.spot1=new go.Spot(0,0,E,E),z.spot2=new go.Spot(1,.8,-E,-E)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*0,b*.45,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.45).close());var x=new go.PathFigure(a*1,b*.55,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.55).close()),y}),go.Shape.defineFigureGenerator("Windows",function(ne,a,b){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,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*b).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*0,b*.1,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.9).close());var x=new go.PathFigure(a*.1,b*.2,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,b*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.25).close());var z=new go.PathFigure(a*.28,b*.37,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,b*.41).close()),y}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,b){var y=new go.Geometry,E=15,x=E*me,z=new go.PathFigure(a*.62,b*.475,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,x,b,0,b-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,b*.03).close()),x>1?(y.spot1=new go.Spot(0,0,x,x),y.spot2=new go.Spot(1,1,-x,-x)):(y.spot1=go.Spot.TopLeft,y.spot2=go.Spot.BottomRight),y}),go.Shape.defineFigureGenerator("Download",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*0,b*1,!0);y.add(E);var x=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.4,b*0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*0).close()),y}),go.Shape.defineFigureGenerator("Bin",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*0,b*1,!0);y.add(E);var x=.1/.3;return E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close()),y}),go.Shape.defineFigureGenerator("Upload",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*0,b*1,!0);y.add(E);var x=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.5,b*0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,b*.25).close()),y}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*.15,b*0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close()),y}),go.Shape.defineFigureGenerator("Drink",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*.15,b*0,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close());var x=new go.PathFigure(a*.235,b*.28,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,b*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,b*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,b*.97).close()),y}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,b){var y=new go.Geometry,E=new go.PathFigure(a*.5,b*0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.5)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.65)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.65)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.5)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.25).close()),y}),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 ke={},it="5.0",re={},ge=null,ie=!1,Ve=!1,qe=null,be=!1,Me=null,me=null,_e=0;_e<arguments.length;_e++){var Oe=arguments[_e];if(Oe!==null)switch(typeof Oe){case"number":it=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Oe:qe=Oe;break;case"object":typeof Oe.is3D!="undefined"?ge=Oe:re=Oe;break;case"boolean":ie=Oe,Ve=!0;break}}ge===null&&(ge={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&&!Ve&&(ie=!0)),qe!==null&&re.id===void 0&&(re.id=qe);var Ee="",Te="",Le=!1,xe=null,ne=null,a=null,b=!1,y=null,E=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($e){return parseFloat($e)>4?parseFloat($e):5};ke.setHTML5Codebase=function($e,Ue){me=$e,vt($e,Ue)},ke.setJavaCodebase=ke.setJavaCodebaseVersion=ke.isCompiledInstalled=ke.setPreCompiledScriptPath=ke.setPreCompiledResourcePath=function(){},ke.setHTML5CodebaseVersion=function($e,Ue){var tt=parseFloat($e);if(tt!==NaN&&tt<5){console.log("The GeoGebra HTML5 codebase version "+tt+" is deprecated. Using version latest instead.");return}Me=$e,Lt($e,Ue)},ke.getHTML5CodebaseVersion=function(){return ne},ke.getParameters=function(){return re},ke.setFontsCSSURL=function($e){z=$e},ke.setGiacJSURL=function($e){},ke.setJNLPFile=function($e){Ee=$e},ke.setJNLPBaseDir=function($e){},ke.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",tt=re.id,Nt,at=!1,Et=0;Et<arguments.length;Et++){var ce=arguments[Et];typeof ce=="string"?(ce=ce.toLowerCase(),ce.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=ce:tt=arguments[Et]):typeof ce=="boolean"?at=ce:ce instanceof HTMLElement&&(Nt=ce)}ut();function ut(){if(!be){setTimeout(ut,200);return}Ue=We(Ue);var $t=Nt||document.getElementById(tt);if(!$t){console.log("possibly bug on ajax loading? ");return}if(ke.removeExistingApplet($t,!1),re.width===void 0&&$t.clientWidth&&(re.width=$t.clientWidth),re.height===void 0&&$t.clientHeight&&(re.height=$t.clientHeight),!(re.width&&re.height)&&Ue==="html5"&&(delete re.width,delete re.height),xe=Ue,Ue==="screenshot")Ge($t,re);else{var tn=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?tn=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(tn=(!oe()||$e())&&le()),tn?(xe="screenshot",he($t,re,at,Ue)):Ke($t,re,at)}}};function oe(){try{return window.self!==window.top}catch($e){return!0}}function le(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ke.getViews=function(){return ge},ke.isJavaInstalled=function(){return!1};var de=function($e){var Ue=function(Et){var ce=JSON.parse(Et),ut=function(lt){return lt.type=="G"||lt.type=="E"},$t=ce.elements?ce.elements.filter(ut)[0]:ce;if(!$t||!$t.url){tt();return}re.fileName=$t.url,ve($t.settings||{}),ge.is3D=!0;var tn="https://www.geogebra.org/images/";ke.setPreviewImage(y||$t.previewUrl,tn+"GeoGebra_loading.png",tn+"applet_play.png"),$e()},tt=function(){re.onError&&re.onError(),It("Error: Fetching material (id "+re.material_id+") failed.",re)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",at="/materials/"+re.material_id+"?scope=basic";Pe("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(at),Ue,tt)};function ve($e){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(tt){$e[tt]=!!$e[tt]}),Ue.forEach(function(tt){re[tt]===void 0&&$e[tt]!==void 0&&(re[tt]=$e[tt])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function Pe($e,Ue,tt){var Nt=new XMLHttpRequest;Nt.open("GET",$e),Nt.onload=function(){Ue(Nt.responseText)},Nt.onerror=tt,Nt.send()}ke.isHTML5Installed=function(){return!0},ke.getLoadedAppletType=function(){return xe},ke.setPreviewImage=function($e,Ue,tt){y=$e,E=Ue,x=tt},ke.removeExistingApplet=function($e,Ue){var tt;typeof $e=="string"&&($e=document.getElementById($e)),xe=null;var Nt=null;for(tt=0;tt<$e.childNodes.length;tt++){var at=$e.childNodes[tt],Et=at.className;Et==="applet_screenshot"?Ue?(at.style.display="block",xe="screenshot"):at.style.display="none":Et!=="applet_scaler prerender"&&($e.removeChild(at),Nt=Et&&Et.indexOf("appletParameters")!=-1?at.id:null,tt--)}var ce=re.id!==void 0?re.id:Nt,ut=window[ce];ut&&typeof ut.getBase64=="function"&&(ut.remove(),window[ce]=null)},ke.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var $e=ke.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},ke.startAnimation=function(){var $e=ke.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},ke.stopAnimation=function(){var $e=ke.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},ke.getAppletObject=function(){var $e=re.id!==void 0?re.id:"ggbApplet";return window[$e]},ke.resize=function(){};var se=function($e,Ue,tt){var Nt=document.createElement("param");Nt.setAttribute("name",Ue),Nt.setAttribute("value",tt),$e.appendChild(Nt)},Ae=function($e){return $e&&$e!=="false"},Ke=function($e,Ue,tt){te(ne)<=4.2&&(tt=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!b)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var at=document.createElement("div");at.classList.add("appletParameters","notranslate");var Et=Ue.width,ce=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(te(ne)<=4.4)Ae(Ue.showToolBar)&&(Ue.height-=7),Ae(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Ae(Ue.showToolBar)&&(Ue.width=605,Et=605);else{var ut=100;(Ae(Ue.showToolBar)||Ae(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),ut=Ae(Ue.showMenuBar)?245:155),Et<ut&&(Ue.width=ut,Et=ut)}at.style.border="none",at.style.display="inline-block";for(var $t in Ue)Ue.hasOwnProperty($t)&&$t!=="appletOnLoad"&&at.setAttribute("data-param-"+$t,Ue[$t]);z&&at.setAttribute("data-param-fontscssurl",z),ke.resize=function(){GGBAppletUtils.responsiveResize($e,Ue)},window.addEventListener("resize",function(Wt){ke.resize()});var tn=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!tt&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||at.setAttribute("data-param-showSplash","false");var lt=$e.querySelector(".applet_scaler.prerender"),Qe=lt!==null;if(Qe)var Ie=lt.querySelector(".ggb_preview");else{var Ie=He(Et,ce,Ue.borderColor,!1);lt=document.createElement("div"),lt.className="applet_scaler",lt.style.position="relative",lt.style.display="block",lt.style.width=Et+"px",lt.style.height=ce+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(lt,"66%"),te(ne)>=5?(Ue.appletOnLoad=function(Wt){var Jt=$e.querySelector(".ggb_preview");Jt&&Jt.parentNode.removeChild(Jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(lt),window.GGBT_wsf_view&&$(window).trigger("resize"),tn(Wt)},Qe||lt.appendChild(Ie)):at.appendChild(Ie),lt.appendChild(at),Qe||$e.appendChild(lt),setTimeout(function(){ke.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(at),$e.appendChild(ye),Ue.appletOnLoad=function(Wt){ke.resize(),tn(Wt)}}function we(Wt,Jt){Jt&&typeof Jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Wt,Jt.appletOnLoad):renderGGBElement(Wt),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Jt)}function Re(Wt,Jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Wt,params:Jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Fn){we(Fn.article,Fn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Wt.className+=" geogebraweb")):we(Wt,Jt)}if(Nt){scriptLoadStarted=!0;for(var Ye=0;Ye<at.childNodes.length;Ye++){var ct=at.childNodes[Ye].tagName;ct==="TABLE"&&(at.removeChild(at.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var Ft=document.createElement("script"),Rt=function(){Re(at,Ue)};Ft.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ft.src,It("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ue),!me&&(!Me||Me=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):Te.requirejs?__webpack_require__.e(12).then(function(){var Wt=[__webpack_require__(12)];Rt.apply(null,Wt)}.bind(this)).catch(__webpack_require__.oe):(Ft.onload=Rt,$e.appendChild(Ft))}else Re(at,Ue);Ue.height=ce,Ue.width=Et},Ge=function($e,Ue,tt){var Nt=He(Ue.width,Ue.height,Ue.borderColor,tt),at=document.createElement("div");at.style.position="relative",at.style.display="block",at.style.width=Ue.width+"px",at.style.height=Ue.height+"px",at.className="applet_screenshot applet_scaler"+(tt?" applet_screenshot_play":""),at.appendChild(Nt);var Et=GGBAppletUtils.getScale(Ue,$e,tt);tt?($e.appendChild(Ze()),window.GGBT_wsf_view||($e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(at,"66%"),$e.appendChild(at),Et!==1&&!isNaN(Et)&&(GGBAppletUtils.scaleElement(at,Et),at.style.width=Ue.width+"px",at.style.height=Ue.height+"px",at.parentNode.style.width=Ue.width*Et+"px",at.parentNode.style.height=Ue.height*Et+"px"),ke.resize=function(){pe($e,Nt,at,tt)},window.addEventListener("resize",function(ce){ke.resize()}),ke.resize()};function pe($e,Ue,tt,Nt){if($e.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition($e)}var at=GGBAppletUtils.getScale(re,$e,Nt);tt.parentNode!==null&&(!isNaN(at)&&at!==1?(GGBAppletUtils.scaleElement(tt,at),tt.parentNode.style.width=re.width*at+"px",tt.parentNode.style.height=re.height*at+"px"):(GGBAppletUtils.scaleElement(tt,1),tt.parentNode.style.width=re.width+"px",tt.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter($e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ke.onExitFullscreen=function($e,Ue){Ue.appendChild($e)};var he=function($e,Ue,tt,Nt){Ge($e,Ue,!0);for(var at=function(){var ut=[];for(ce=0;ce<$e.childNodes.length;ce++)ut.push($e.childNodes[ce]);if(window.GGBT_wsf_view){var $t=window.GGBT_wsf_view.renderFullScreen($e,Ue.id),tn=document.getElementById("fullscreencontainer"),lt=jQuery($e).find(".fullscreencontent");lt.length>0?($t.remove(),lt.attr("id","fullscreencontent").show(),jQuery(tn).append(lt),window.dispatchEvent(new Event("resize"))):Ke($t,Ue,!1),window.GGBT_wsf_view.launchFullScreen(tn)}else xe=Nt,Ke($e,Ue,!1);if(!window.GGBT_wsf_view)for(ce=0;ce<ut.length;ce++)$e.removeChild(ut[ce])},Et=$e.getElementsByClassName("ggb_preview_play"),ce=0;ce<Et.length;ce++)Et[ce].addEventListener("click",at,!1),Et[ce].addEventListener("ontouchstart",at,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload($e),le()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ze=function(){var $e=document.createElement("div");if($e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.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");}',tt=document.createElement("style");tt.styleSheet?tt.styleSheet.cssText=Ue:tt.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(tt)}return $e},He=function($e,Ue,tt,Nt){var at=document.createElement("div");at.className="ggb_preview",at.style.position="absolute",at.style.zIndex="90",at.style.width=$e-2+"px",at.style.height=Ue-2+"px",at.style.top="0px",at.style.left="0px",at.style.overflow="hidden",at.style.backgroundColor="white";var Et="lightgrey";tt!==void 0&&(tt==="none"?Et="transparent":Et=tt),at.style.border="1px solid "+Et;var ce=document.createElement("img");if(ce.style.position="relative",ce.style.zIndex="1000",ce.style.top="-1px",ce.style.left="-1px",y!==null&&ce.setAttribute("src",y),ce.style.opacity=.7,E!==null){var ut,$t,tn;if(!Nt){ut=document.createElement("img"),ut.style.position="absolute",ut.style.zIndex="1001",ut.style.opacity=1,ce.style.opacity=.3,$t=360,$t>$e/4*3&&($t=$e/4*3),tn=$t/5.8,ut.setAttribute("src",E),ut.setAttribute("width",$t),ut.setAttribute("height",tn);var lt=($e-$t)/2,Qe=(Ue-tn)/2;ut.style.left=lt+"px",ut.style.top=Qe+"px",at.appendChild(ut)}}return at.appendChild(ce),at},We=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},Je=["web","webSimple","web3d","tablet","tablet3d","phone"],Lt=function($e,Ue){if(ne=$e,Ue){vt(ne,!0);return}var tt=!ie;if(tt){var Nt=te(ne);!isNaN(Nt)&&Nt<4.4&&(tt=!1)}var at,Et;window.location.protocol.substr(0,4)==="http"?at=window.location.protocol:at="http:";var ce=ne.indexOf("//");ce>0?Et=ne:ce===0?Et=at+ne:Et="https://www.geogebra.org/apps/5.2.814.0/";for(var ut in Je)if(ne.slice(Je[ut].length*-1)===Je[ut]||ne.slice((Je[ut].length+1)*-1)===Je[ut]+"/"){vt(Et,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tt&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!Ae(re.showToolBar)&&!Ae(re.showMenuBar)&&!Ae(re.showAlgebraInput)&&!Ae(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Et+="webSimple/":Et+="web3d/",vt(Et,!1)},vt=function($e,Ue){if($e.requirejs){Te=$e;return}$e.slice(-1)!=="/"&&($e+="/"),Te=$e,Ue===null&&(Ue=$e.indexOf("http")===-1),Le=Ue,a="web.nocache.js",b=!1;var tt=Te.split("/");tt.length>1&&(!Ue&&tt[tt.length-2]==="webSimple"?(a="webSimple.nocache.js",b=!0):Je.indexOf(tt[tt.length-2])>=0&&(a=tt[tt.length-2]+".nocache.js")),tt=$e.split("/"),ne=tt[tt.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 Nt=parseFloat(ne);Nt!==NaN&&Nt<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),Lt("5.0",Ue))},It=function($e,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log($e)};re.material_id!==void 0?de(Pn):Pn();function Pn(){var $e=it;Me!==null?$e=Me:parseFloat($e)<5&&($e="5.0"),Lt($e,!1),me!==null&&vt(me,Le),be=!0}return ke},GGBAppletUtils=function(){"use strict";function ke(){return window.GGBT_wsf_edit!==void 0}function it(be,Me){Me!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Me+","+Me+")",be.style.webkitTransform="scale("+Me+","+Me+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function re(be,Me,me,_e,Oe,Ee){var Te=null;if(Ee!=null&&Ee!="")for(var Le=be.parentNode;Le!=null;)if((" "+Le.className+" ").indexOf(" "+Ee+" ")>-1){Te=Le;break}else Le=Le.parentNode;var xe=0,ne=0,a=0,b=0,y=0,E=0,x=0;if(Te)xe=Te.offsetWidth,ne=Math.max(_e?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=xe):(xe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),be){var z=be.getBoundingClientRect();z.left>0&&z.left<=xe&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(y=xe-z.width-z.left,E=a<=480?10:30):(E=z.left,y=a<=480?10:30),b=E+y)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(b=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(b=0,x=40)}}return be&&((me===void 0||!me)&&Me>0&&Me+b<xe?xe=Me:xe-=b,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:xe,height:ne}}function ge(be,Me,me,_e,Oe){if(be.isScreenshoGenerator)return 1;var Ee=_e!==void 0&&_e,Te=be.noScaleMargin!=null&&be.noScaleMargin,Le=function(ee){return ee&&ee!=="false"},xe=Le(be.autoHeight),ne=re(Me,be.width,me,xe,Ee&&window.GGBT_wsf_view||Te,Oe),a=parseInt(ne.width),b=be.width,y=be.height;if(b===void 0){var E=Me.querySelector(".appletParameters");E&&(b=E.offsetWidth,y=E.offsetHeight)}var x=a/b,z=Ee?1:ne.height/y;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ie(be,Me,me){var _e=1,Oe,Ee=!1;if(be.hasOwnProperty("allowUpscale")&&(Ee=be.allowUpscale),be.hasOwnProperty("scale")&&(_e=parseFloat(be.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(Ee=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Oe=ge(be,Me,Ee,me,be.scaleContainerClass);else return _e;return Ee&&(!be.hasOwnProperty("scale")||_e===1)?Oe:Math.min(_e,Oe)}function Ve(be){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=be.getBoundingClientRect(),Oe=(Me-_e.width)/2,Ee=(me-_e.height)/2;Ee<0&&(Ee=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?be.style.left="40px":be.style.left=Oe+"px",be.style.top=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?be.style.top="40px":be.style.top=Ee+"px",be.style.left=Oe+"px")}function qe(be,Me){var me=be.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var _e=ie(Me,be);ke()&&me.setAttribute("data-param-scale",_e);for(var Oe=null,Ee=0;Ee<be.childNodes.length;Ee++)if(be.childNodes[Ee].className!==void 0&&be.childNodes[Ee].className.match(/^applet_scaler/)){Oe=be.childNodes[Ee];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Te=Me.id!==void 0?Me.id:"ggbApplet",Le=window[Te];(Le==null||!Le.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Oe.parentNode.style.width=Me.width*_e+"px",Oe.parentNode.style.height=Me.height*_e+"px",it(Oe,_e)):(it(Oe,1),Oe.parentNode.style.width=Me.width+"px",Oe.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:ke,positionCenter:Ve,getScale:ie,scaleElement:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ke=n.location.search;return ke.indexOf(J)!=-1||ke.indexOf(K)!=-1}function q(ke,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ke){var it=s[L].bindings;s[L].bindings=function(){for(var re=it?it():{},ge=ke[webModule.__softPermutationId],ie=O;ie<ge.length;ie++){var Ve=ge[ie];re[Ve[O]]=Ve[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var ke=o.createElement(Q);if(ke.id=L,ke.style.cssText=R+S,ke.tabIndex=-1,o.body.appendChild(ke),t=ke.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(ke){function it(ge){function ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=ie();if(Ve){ge();return}function qe(){if(!Ve){if(!ie())return;Ve=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var be=setInterval(function(){qe()},$)}function re(ge){var ie=u(),Ve=ie.body,qe=ie.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=ge,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),Ve.appendChild(qe)}it(function(){re(ke)})}webModule.__startLoadingFragment=function(ke){return C(ke)},webModule.__installRunAsyncCode=function(ke){var it=u(),re=it.body,ge=it.createElement(_);ge.language=ab,ge.text=ke,re.appendChild(ge),re.removeChild(ge)};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(ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ke){var it=c[ke];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function ke(be){var Me=be.lastIndexOf(rb);Me==-1&&(Me=be.length);var me=be.indexOf(sb);me==-1&&(me=be.length);var _e=be.lastIndexOf(tb,Math.min(me,Me));return _e>=O?be.substring(O,_e+P):W}function it(be){if(!be.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=be+vb,be=ke(Me.src)}return be}function re(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ge(){for(var be=o.getElementsByTagName(_),Me=O;Me<be.length;++Me)if(be[Me].src.indexOf(xb)!=-1)return ke(be[Me].src);return W}function ie(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Ve(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var qe=re();return qe==W&&(qe=ge()),qe==W&&(qe=ie()),qe==W&&Ve()&&(qe=ke(o.location.href)),qe=it(qe),qe}function C(ke){return ke.match(/^\//)||ke.match(/^[a-zA-Z]+:\/\//)?ke:webModule.__moduleBase+ke}function D(){var ke=[],it=O,re=[],ge=[];function ie(be){var Me=ge[be](),me=re[be];if(Me in me)return Me;var _e=[];for(var Oe in me)_e[me[Oe]]=Oe;throw r&&r(be,_e,Me),null}if(__gwt_isKnownPropertyValue=function(be,Me){return Me in re[be]},webModule.__getPropMap=function(){var be={};for(var Me in re)re.hasOwnProperty(Me)&&(be[Me]=ie(Me));return be},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var qe=Ve.indexOf(Db);qe!=-1&&(it=parseInt(Ve.substring(qe+P),$),Ve=Ve.substring(O,qe))}catch(be){}return webModule.__softPermutationId=it,C(Ve+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(ke,it,re){"use strict";re.d(it,{Ax:function(){return qe},Ds:function(){return be},KI:function(){return me},SI:function(){return Ve},f1:function(){return ie}});var ge=re(11320);function ie(_e){let Oe=!0;if(_e.length>0){for(let Ee=0;Ee<_e.length;Ee++)if(_e[Ee].compile_success==0||!_e[Ee].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ve(_e,Oe=""){let Ee=[];for(let Te=0;Te<_e.length;Te++){let Le=_e[Te],xe=Oe?`${Oe}/${Le.name}`:`${Le.name}`;Ee.push({title:Le.name,type:Le.type,isLeaf:Le.type!=="tree",key:xe})}return Ee}function qe(_e,Oe,Ee){for(let Te=0;Te<_e.length;Te++){let Le=_e[Te];if(Le.key===Oe){Le.children=Ee;break}Le.children&&qe(Le.children,Oe,Ee)}return _e}function be(_e,Oe,Ee){let Te;return function(){let Le=this,xe=arguments,ne=function(){Te=null,Ee||_e.apply(Le,xe)},a=Ee&&!Te;clearTimeout(Te),Te=setTimeout(ne,Oe),a&&_e.apply(Le,xe)}}const Me=!0,me=ge.Z.API_SERVER},63205:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Le}});var ge=re(67294),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=re(94184),qe=re.n(Ve),be=re(57953),Me=re(15979),me=re(33170),_e=re(28706),Oe=re(35973),Ee=(xe,ne,a)=>new Promise((b,y)=>{var E=ee=>{try{z(a.next(ee))}catch(te){y(te)}},x=ee=>{try{z(a.throw(ee))}catch(te){y(te)}},z=ee=>ee.done?b(ee.value):Promise.resolve(ee.value).then(E,x);z((a=a.apply(xe,ne)).next())}),Le=({data:xe,className:ne,fullWidth:a,style:b={},onClose:y,onOk:E,showFullTools:x,noAssociationId:z})=>{const ee=(0,Oe.useIntl)(),te=(0,ge.useRef)(null),oe=(0,ge.useRef)(null),le=(0,ge.useRef)(null),de=(0,ge.useRef)(null),[ve,Pe]=(0,ge.useState)(!1),[se,Ae]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{le.current||(le.current=document.createElement("style"),document.head.appendChild(le.current)),xe!=null&&xe.visible?(document.body.setAttribute("data-custom","y-hidden"),le.current.innerHTML=" html { overflow-y: hidden; }",xe!=null&&xe.src&&Ke()):(document.body.removeAttribute("data-custom"),le.current&&(document.head.removeChild(le.current),le.current=null))},[xe==null?void 0:xe.visible]);const Ke=()=>Ee(void 0,null,function*(){Pe(!0),Ae("\u6B63\u5728\u52A0\u8F7D\u4E2D");const He=yield(0,_e.ZJ)(xe==null?void 0:xe.src);te.current.src="",te.current.src=He,te.current.onload=function(){Ze()},Pe(!1),Ae("")}),Ge=()=>{document.body.removeAttribute("data-custom"),le.current.innerHTML=" ",y()},pe=He=>Ee(void 0,null,function*(){Pe(!0),Ae("\u6B63\u5728\u4FDD\u5B58\u4E2D");const We=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xe.title,file:He.dataUrl}});We!=null&&We.id&&!z?(yield(0,me.ZP)(`/api/attachments/${xe.id}/add_subitem.json`,{method:"post",body:{subitem_id:We==null?void 0:We.id,settings:JSON.stringify(He.state)}})).status===0&&E():We!=null&&We.id&&E(We),document.body.removeAttribute("data-custom"),le.current.innerHTML=" ",Pe(!1),Ae("")}),he=()=>{const He=document.querySelector('a[href="https://markerjs.com/"]');He&&He.parentNode&&(He.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(Je=>{const Lt=document.querySelector(Je.name);Lt&&Lt.setAttribute("title",Je.title)})},Ze=()=>{oe.current=new Me.hP(te.current),oe.current.targetRoot=de.current,oe.current.addEventListener("render",pe),oe.current.addEventListener("beforeclose",Ge),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(),xe!=null&&xe.snapshotData&&oe.current.restoreState(xe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),he()},300)};return ge.createElement(ge.Fragment,null,(xe==null?void 0:xe.visible)&&ge.createElement(be.Z,{spinning:ve,tip:se,style:{position:"absolute"}},ge.createElement("div",{ref:de,className:qe()(ie.imageDimensions,ne,a?ie.fullWidth:""),style:b},ge.createElement("img",{className:ie.img,ref:te}))))}},36527:function(ke,it,re){"use strict";var ge=re(67294),ie=re(71230),Ve=re(15746),qe=re(66368),be=re(71577),Me=re(85725),me=re(71736),_e=re(84279),Oe=re(35973),Ee=re(67294);const Te=(0,ge.forwardRef)(({callback:Le,showSaveButton:xe,value:ne=""},a)=>{const b=(0,ge.useRef)(),y=(0,Oe.useIntl)(),E=[{name:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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=>{b.current.setValue(b.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:y.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ee.createElement(ie.Z,{className:me.Z.lists,gutter:[10,10]},E.map((oe,le)=>Ee.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ee.createElement("div",null,Ee.createElement(Me.Z,{value:`$$${oe.value}$$`}),oe.name),Ee.createElement("div",{className:me.Z.children},oe.children.map((de,ve)=>Ee.createElement("div",{key:ve},Ee.createElement("h1",null,de.name),Ee.createElement(ie.Z,{gutter:[10,10]},de.data.map((Pe,se)=>Ee.createElement(Ve.Z,{key:se,onClick:()=>z(Pe),className:me.Z.diamond},Ee.createElement(Me.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:y.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ee.createElement(ie.Z,{className:me.Z.lists,gutter:[10,10]},x.map((oe,le)=>Ee.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ee.createElement("div",null,Ee.createElement(Me.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Ee.createElement("div",{className:me.Z.children},oe.children.map((de,ve)=>Ee.createElement("div",{key:ve},de.name&&Ee.createElement("h1",null,de.name),Ee.createElement(ie.Z,{gutter:[10,10]},de.data.map((Pe,se)=>Ee.createElement(Ve.Z,{key:se,onClick:()=>z(Pe),className:me.Z.diamond},Ee.createElement(Me.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=b.current.getValue();var le=oe.innerText;return Le&&Le(le),le};return(0,ge.useImperativeHandle)(a,()=>({getData:te})),Ee.createElement("div",{className:me.Z.mathWrap},Ee.createElement(qe.default,{defaultActiveKey:"1",items:ee}),Ee.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:y.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:b,style:{width:800,marginTop:30,fontSize:18}},ne||""),xe&&Ee.createElement("div",{className:me.Z.button},Ee.createElement(be.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},y.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});it.Z=Te},57444:function(ke,it,re){"use strict";re.d(it,{h:function(){return te}});var ge=re(67294),ie=re(11713),Ve=re(22150),qe=re(71577),be=re(4631),Me=re.n(be),me=re(71749),_e=re(30483),Oe=re(35973),Ee=Object.defineProperty,Te=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,b=(oe,le,de)=>le in oe?Ee(oe,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):oe[le]=de,y=(oe,le)=>{for(var de in le||(le={}))ne.call(le,de)&&b(oe,de,le[de]);if(xe)for(var de of xe(le))a.call(le,de)&&b(oe,de,le[de]);return oe},E=(oe,le)=>Te(oe,Le(le));const x=ie.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"]};it.Z=({callback:oe,onCancel:le})=>{const[de,ve]=(0,ge.useState)("python");function Pe(Ke){ve(ee[Ke][1])}function se(Ke){oe(Ke)}const Ae=(0,Oe.useIntl)();return ge.createElement(Ve.default,E(y({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ge.createElement(Ve.default.Item,{label:Ae.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ge.createElement(ie.default,{getPopupContainer:Ke=>Ke.parentNode,onChange:Pe},Object.keys(ee).map(Ke=>ge.createElement(x,{key:Ke,value:Ke},ee[Ke][0])))),ge.createElement(Ve.default.Item,{label:Ae.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(te,{mode:de})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ge.createElement(qe.ZP,{type:"ghost",onClick:le},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:oe,onChange:le,mode:de,options:ve={}}){const Pe=(0,ge.useRef)(),[se,Ae]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(se){let Ke=function(Ge){const pe=Ge.getValue();le&&le(pe)};return se.on("change",Ke),()=>{se.off("change",Ke)}}},[se,le]),(0,ge.useEffect)(()=>{se&&se.setOption("mode",de)},[se,de]),(0,ge.useEffect)(()=>{se&&(oe!==se.getValue()||oe==="")&&setTimeout(()=>{se.setValue(oe||"")},300)},[se,oe]),(0,ge.useEffect)(()=>{if(Pe.current&&!se){const Ke=Me().fromTextArea(Pe.current,y({mode:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ve));Ae(Ke)}},[Pe.current,se]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:Pe}))}},35567:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Ao}});var ge=re(67294),ie=re(4631),Ve=re.n(ie),qe=re(91033),be=re(71749),Me=re(57341),me=re(82801),_e=re(88386),Oe=re(49047),Ee=re(80785),Te=re(85725),Le=({value:Fe="",className:Be,showTextOnly:De,showLines:dt,style:wt={}})=>{const Ot=(0,ge.useMemo)(()=>"",[Fe]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:Ot}}))},xe=re(35973),ne=re(67294),a=Object.defineProperty,b=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Fe,Be,De)=>Be in Fe?a(Fe,Be,{enumerable:!0,configurable:!0,writable:!0,value:De}):Fe[Be]=De,te=(Fe,Be)=>{for(var De in Be||(Be={}))x.call(Be,De)&&ee(Fe,De,Be[De]);if(E)for(var De of E(Be))z.call(Be,De)&&ee(Fe,De,Be[De]);return Fe},oe=(Fe,Be)=>b(Fe,y(Be));function le({onActionCallback:Fe,title:Be,icon:De,actionName:dt,className:wt="",children:Ot}){function Zn(){Fe(dt)}return ne.createElement("a",{title:Be,className:wt,onClick:Zn},ne.createElement("i",{className:`${De}`}),Ot)}var de=({watch:Fe,showNullButton:Be,showNullProgramButton:De,onActionCallback:dt,fullScreen:wt,insertTemp:Ot,hidetoolBar:Zn,extraUse:Bn})=>{const qt=(0,xe.useIntl)(),no=[...[{title:qt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:qt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:qt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:qt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:qt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:qt.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:qt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:qt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:qt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:qt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:qt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:qt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:qt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:qt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:qt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:qt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${Fe?qt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):qt.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"},!Zn&&no.map((_a,mt)=>ne.createElement("li",{key:mt},_a.actionName?ne.createElement(le,oe(te({},_a),{onActionCallback:dt})):ne.createElement("span",{className:"v-line"}))),Be?ne.createElement("li",null,ne.createElement(le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},ne.createElement("span",{className:"fill-tip"},qt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",qt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,De?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(le,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ot&&ne.createElement("li",null,ne.createElement(le,{icon:"md-iconfont icon-edit",className:"btn-null",title:qt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Ot}`,onActionCallback:dt},ne.createElement("span",{className:"fill-tip"},qt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Bn&&ne.createElement("li",null,Bn),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(le,{icon:`${wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},ve=re(76621),Pe=re(22150),se=re(69677),Ae=re(71577),Ke=Object.defineProperty,Ge=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(Fe,Be,De)=>Be in Fe?Ke(Fe,Be,{enumerable:!0,configurable:!0,writable:!0,value:De}):Fe[Be]=De,Je=(Fe,Be)=>{for(var De in Be||(Be={}))Ze.call(Be,De)&&We(Fe,De,Be[De]);if(he)for(var De of he(Be))He.call(Be,De)&&We(Fe,De,Be[De]);return Fe},Lt=(Fe,Be)=>Ge(Fe,pe(Be));const vt={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:Fe,onCancel:Be})=>{function De(wt){Fe(wt)}const dt=(0,xe.useIntl)();return ge.createElement(Pe.default,Lt(Je({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:De,style:{width:500}}),ge.createElement(Pe.default.Item,{label:dt.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(se.default,null)),ge.createElement(Pe.default.Item,{label:dt.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(se.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},dt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ge.createElement(Ae.ZP,{type:"ghost",onClick:Be},dt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Pn=re(57444),$e=re(70859),Ue=re(14446),tt=re(71230),Nt=re(63205),at=re(67294),Et=({callback:Fe,onCancel:Be})=>{const De=document.createElement("canvas"),dt=De.getContext("2d");De.width=1e3,De.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,De.width,De.height);const wt=De.toDataURL("image/png");return at.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},at.createElement(tt.Z,{style:{height:"100vh"}},at.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wt,visible:!0,title:String(Date.now())},onOk:Ot=>{Fe({src:Ot.url})},onClose:Be})))},ce=re(23495);function ut(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ut,go.CommandHandler),ut.prototype.canAlignSelection=function(){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<2)},ut.prototype.alignLeft=function(){var Fe=this.diagram;Fe.startTransaction("aligning left");var Be=1/0;Fe.selection.each(function(De){De instanceof go.Link||(Be=Math.min(De.position.x,Be))}),Fe.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Be,De.position.y))}),Fe.commitTransaction("aligning left")},ut.prototype.alignRight=function(){var Fe=this.diagram;Fe.startTransaction("aligning right");var Be=-1/0;Fe.selection.each(function(De){if(!(De instanceof go.Link)){var dt=De.actualBounds.x+De.actualBounds.width;Be=Math.max(dt,Be)}}),Fe.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Be-De.actualBounds.width,De.position.y))}),Fe.commitTransaction("aligning right")},ut.prototype.alignTop=function(){var Fe=this.diagram;Fe.startTransaction("alignTop");var Be=1/0;Fe.selection.each(function(De){De instanceof go.Link||(Be=Math.min(De.position.y,Be))}),Fe.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.position.x,Be))}),Fe.commitTransaction("alignTop")},ut.prototype.alignBottom=function(){var Fe=this.diagram;Fe.startTransaction("aligning bottom");var Be=-1/0;Fe.selection.each(function(De){if(!(De instanceof go.Link)){var dt=De.actualBounds.y+De.actualBounds.height;Be=Math.max(dt,Be)}}),Fe.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.actualBounds.x,Be-De.actualBounds.height))}),Fe.commitTransaction("aligning bottom")},ut.prototype.alignCenterX=function(){var Fe=this.diagram,Be=Fe.selection.first();if(Be){Fe.startTransaction("aligning Center X");var De=Be.actualBounds.x+Be.actualBounds.width/2;Fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(De-dt.actualBounds.width/2,dt.actualBounds.y))}),Fe.commitTransaction("aligning Center X")}},ut.prototype.alignCenterY=function(){var Fe=this.diagram,Be=Fe.selection.first();if(Be){Fe.startTransaction("aligning Center Y");var De=Be.actualBounds.y+Be.actualBounds.height/2;Fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,De-dt.actualBounds.height/2))}),Fe.commitTransaction("aligning Center Y")}},ut.prototype.alignColumn=function(Fe){var Be=this.diagram;Be.startTransaction("align Column"),Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var De=new Array;Be.selection.each(function(Bn){Bn instanceof go.Link||De.push(Bn)});for(var dt=0;dt<De.length-1;dt++){var wt=De[dt],Ot=wt.actualBounds.y+wt.actualBounds.height+Fe,Zn=De[dt+1];Zn.move(new go.Point(wt.actualBounds.x,Ot))}Be.commitTransaction("align Column")},ut.prototype.alignRow=function(Fe){Fe===void 0&&(Fe=0),Fe=parseFloat(Fe);var Be=this.diagram;Be.startTransaction("align Row");var De=new Array;Be.selection.each(function(Bn){Bn instanceof go.Link||De.push(Bn)});for(var dt=0;dt<De.length-1;dt++){var wt=De[dt],Ot=wt.actualBounds.x+wt.actualBounds.width+Fe,Zn=De[dt+1];Zn.move(new go.Point(Ot,wt.actualBounds.y))}Be.commitTransaction("align Row")},ut.prototype.canRotate=function(Fe){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},ut.prototype.rotate=function(Fe){Fe===void 0&&(Fe=90);var Be=this.diagram;Be.startTransaction("rotate "+Fe.toString());var Be=this.diagram;Be.selection.each(function(De){De instanceof go.Link||De instanceof go.Group||(De.angle+=Fe)}),Be.commitTransaction("rotate "+Fe.toString())},ut.prototype.pullToFront=function(){var Fe=this.diagram;Fe.startTransaction("pullToFront");var Be=new go.Map;Fe.selection.each(function(De){Be.set(De.layer,0)}),Be.iteratorKeys.each(function(De){var dt=0;De.parts.each(function(wt){if(!wt.isSelected){var Ot=wt.zOrder;isNaN(Ot)?wt.zOrder=0:dt=Math.max(dt,Ot)}}),Be.set(De,dt)}),Fe.selection.each(function(De){ut._assignZOrder(De,Be.get(De.layer)+1)}),Fe.commitTransaction("pullToFront")},ut.prototype.pushToBack=function(){var Fe=this.diagram;Fe.startTransaction("pushToBack");var Be=new go.Map;Fe.selection.each(function(De){Be.set(De.layer,0)}),Be.iteratorKeys.each(function(De){var dt=0;De.parts.each(function(wt){if(!wt.isSelected){var Ot=wt.zOrder;isNaN(Ot)?wt.zOrder=0:dt=Math.min(dt,Ot)}}),Be.set(De,dt)}),Fe.selection.each(function(De){ut._assignZOrder(De,Be.get(De.layer)-1-ut._findGroupDepth(De))}),Fe.commitTransaction("pushToBack")},ut._assignZOrder=function(Fe,Be,De){De===void 0&&(De=Fe),Fe.layer===De.layer&&(Fe.zOrder=Be),Fe instanceof go.Group&&Fe.memberParts.each(function(dt){ut._assignZOrder(dt,Be+1,De)})},ut._findGroupDepth=function(Fe){if(Fe instanceof go.Group){var Be=0;return Fe.memberParts.each(function(De){Be=Math.max(Be,ut._findGroupDepth(De))}),Be+1}else return 0},ut.prototype.doKeyDown=function(){var Fe=this.diagram;if(Fe!==null){var Be=Fe.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var De=this.arrowKeyBehavior;if(De==="none")return;if(De==="select"){this._arrowKeySelect();return}else if(De==="move"){this._arrowKeyMove();return}else if(De==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ut.prototype._getAllParts=function(){var Fe=new Array;return this.diagram.nodes.each(function(Be){Fe.push(Be)}),this.diagram.parts.each(function(Be){Fe.push(Be)}),Fe},ut.prototype._arrowKeyMove=function(){var Fe=this.diagram,Be=Fe.lastInput,De=0,dt=0;if(Be.control||Be.meta)De=1,dt=1;else if(Fe.grid!==null){var wt=Fe.grid.gridCellSize;dt=wt.width,De=wt.height}Fe.startTransaction("arrowKeyMove"),Fe.selection.each(function(Ot){Be.key==="Up"?Ot.move(new go.Point(Ot.actualBounds.x,Ot.actualBounds.y-De)):Be.key==="Down"?Ot.move(new go.Point(Ot.actualBounds.x,Ot.actualBounds.y+De)):Be.key==="Left"?Ot.move(new go.Point(Ot.actualBounds.x-dt,Ot.actualBounds.y)):Be.key==="Right"&&Ot.move(new go.Point(Ot.actualBounds.x+dt,Ot.actualBounds.y))}),Fe.commitTransaction("arrowKeyMove")},ut.prototype._arrowKeySelect=function(){var Fe=this.diagram,Be=Fe.lastInput,De=null;Be.key==="Up"?De=this._findNearestPartTowards(270):Be.key==="Down"?De=this._findNearestPartTowards(90):Be.key==="Left"?De=this._findNearestPartTowards(180):Be.key==="Right"&&(De=this._findNearestPartTowards(0)),De!==null&&(Be.shift?De.isSelected=!0:Be.control||Be.meta?De.isSelected=!De.isSelected:Fe.select(De))},ut.prototype._findNearestPartTowards=function(Fe){var Be=this.diagram.selection.first();if(Be===null)return null;for(var De=Be.actualBounds.center,dt=this._getAllParts(),wt=1/0,Ot=Be,Zn=0;Zn<dt.length;Zn++){var Bn=dt[Zn];if(Bn!==Be&&Bn.canSelect()){var qt=Bn.actualBounds.center,na=De.directionPoint(qt),no=this._angleCloseness(na,Fe);if(no<=45){var _a=De.distanceSquaredPoint(qt);_a*=1+Math.sin(no*Math.PI/180),_a<wt&&(wt=_a,Ot=Bn)}}}return Ot},ut.prototype._angleCloseness=function(Fe,Be){return Math.min(Math.abs(Be-Fe),Math.min(Math.abs(Be+360-Fe),Math.abs(Be-360-Fe)))},ut.prototype._arrowKeyTree=function(){var Fe=this.diagram,Be=Fe.selection.first();if(Be instanceof go.Node){var De=Fe.lastInput;if(De.key==="Right"){if(!Be.isTreeLeaf)if(!Be.isTreeExpanded)Fe.commandHandler.canExpandTree(Be)&&Fe.commandHandler.expandTree(Be);else{var dt=this._sortTreeChildrenByY(Be).first();dt!==null&&Fe.select(dt)}}else if(De.key==="Left")if(!Be.isTreeLeaf&&Be.isTreeExpanded)Fe.commandHandler.canCollapseTree(Be)&&Fe.commandHandler.collapseTree(Be);else{var wt=Be.findTreeParentNode();wt!==null&&Fe.select(wt)}else if(De.key==="Up"){var wt=Be.findTreeParentNode();if(wt!==null){var Ot=this._sortTreeChildrenByY(wt),Zn=Ot.indexOf(Be);if(Zn>0){for(var Bn=Ot.elt(Zn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var qt=this._sortTreeChildrenByY(Bn);Bn=qt.last()}Bn!==null&&Fe.select(Bn)}else Fe.select(wt)}}else if(De.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var dt=this._sortTreeChildrenByY(Be).first();dt!==null&&Fe.select(dt)}else for(;Be!==null;){var wt=Be.findTreeParentNode();if(wt===null)break;var Ot=this._sortTreeChildrenByY(wt),Zn=Ot.indexOf(Be);if(Zn<Ot.length-1){Fe.select(Ot.elt(Zn+1));break}else Be=wt}var na=Fe.selection.first();na!==null&&Fe.scrollToRect(na.actualBounds)}},ut.prototype._sortTreeChildrenByY=function(Fe){var Be=new go.List().addAll(Fe.findTreeChildrenNodes());return Be.sort(function(De,dt){var wt=De.location,Ot=dt.location;return wt.y<Ot.y?-1:wt.y>Ot.y?1:wt.x<Ot.x?-1:wt.x>Ot.x?1:0}),Be},ut.prototype.copyToClipboard=function(Fe){go.CommandHandler.prototype.copyToClipboard.call(this,Fe),this._lastPasteOffset.set(this.pasteOffset)},ut.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(ut.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(ut.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 $t=ut,tn=re(18023),lt=re(15746),Qe=re(33170),Ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),we=(Fe,Be,De)=>new Promise((dt,wt)=>{var Ot=qt=>{try{Bn(De.next(qt))}catch(na){wt(na)}},Zn=qt=>{try{Bn(De.throw(qt))}catch(na){wt(na)}},Bn=qt=>qt.done?dt(qt.value):Promise.resolve(qt.value).then(Ot,Zn);Bn((De=De.apply(Fe,Be)).next())});function Re({onCancel:Fe,callback:Be}){let De=(0,ge.useRef)(),dt=(0,ge.useRef)(),wt=(0,ge.useRef)(),Ot=(0,ge.useRef)(!1);const Zn=(0,ge.useRef)(!1),[Bn,qt]=(0,ge.useState)(0);function na(){const mt=ce.bx.make,An={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"};De.current=new ce.S0(dt.current,{padding:20,grid:mt(ce.s_,"Grid",mt(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gt=>{var Xt=gt.diagram.commandHandler.addTopLevelParts(gt.diagram.selection,!0);Xt||gt.diagram.currentTool.doCancel()},commandHandler:mt($t),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gt=>{var Xt=gt.subject;Xt.location=Xt.location.copy().snapToGridPoint(gt.diagram.grid.gridOrigin,gt.diagram.grid.gridCellSize),setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gt=>{var Xt=gt.subject;setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()})},LinkRelinked:gt=>{var Xt=gt.parameter.part;Xt.invalidateConnectedLinks();var Yt=gt.subject;gt.diagram.toolManager.linkingTool.isForwards?Yt.toNode.invalidateConnectedLinks():Yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),De.current.nodeTemplate=mt(ce.NB,"Auto",{locationSpot:ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new ce.$u(120,60),minSize:new ce.$u(40,40),resizable:!0,resizeCellSize:new ce.$u(10,10),rotatable:!0},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),new ce.KX("desiredSize","size",ce.$u.parse).makeTwoWay(ce.$u.stringify),mt(ce.bn,{name:"SHAPE",fill:An.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("figure"),new ce.KX("fill"),new ce.KX("stroke","borderColor"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),mt(ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mt(ce.al,{margin:1,textAlign:"center",overflow:ce.al.OverflowEllipsis,editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),De.current.nodeTemplate.toolTip=mt("ToolTip",mt(ce.s_,"Vertical",{maxSize:new ce.$u(200,NaN)},mt(ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ce.KX("text")),mt(ce.al,{font:"10pt sans-serif",textAlign:"center"},new ce.KX("text","details"))));function co(gt,Xt){var Yt=(Ut,fa)=>{Ut.handled=!0,Ut.diagram.model.commit(Sa=>{var Ga=fa.part.adornedPart,Za=new ce.E9().setRectSpot(Ga.actualBounds,gt);Za.subtract(Ga.location),Za.scale(2,2),Za.x+=Math.sign(Za.x)*130,Za.y+=Math.sign(Za.y)*130,Za.add(Ga.location),Za.snapToGridPoint(Ut.diagram.grid.gridOrigin,Ut.diagram.grid.gridCellSize);var uo=Sa.copyNodeData(Ga.data);Sa.setGroupKeyForNodeData(uo,Sa.getGroupKeyForNodeData(Ga.data)),Sa.addNodeData(uo);var Co={from:Ga.key,to:Sa.getKeyForNodeData(uo)};Sa.addLinkData(Co);var er=Ut.diagram.findNodeForData(uo);er.location=Za,Ut.diagram.select(er),setTimeout(()=>{Ut.diagram.commandHandler.editTextBlock()},20)})};return mt(ce.bn,{figure:Xt,alignment:gt,alignmentFocus:gt.opposite(),width:gt.equals(ce.z6.Top)||gt.equals(ce.z6.Bottom)?25:18,height:gt.equals(ce.z6.Top)||gt.equals(ce.z6.Bottom)?18:25,fill:"orange",stroke:An.white,strokeWidth:4,mouseEnter:(Ut,fa)=>fa.fill="dodgerblue",mouseLeave:(Ut,fa)=>fa.fill="orange",isActionable:!0,click:Yt,contextClick:Yt})}function ja(gt){return mt(ce.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:(Xt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(Xt,Yt)=>Yt.fill="orange",click:(Xt,Yt)=>{Xt.diagram.commandHandler.showContextMenu(Yt.part.adornedPart)}},gt||{})}De.current.nodeTemplate.selectionAdornmentTemplate=mt(ce.uz,"Spot",mt(ce.Vm,{padding:10}),co(ce.z6.Top,"TriangleUp"),co(ce.z6.Left,"TriangleLeft"),co(ce.z6.Right,"TriangleRight"),co(ce.z6.Bottom,"TriangleDown"),ja({alignment:new ce.z6(.75,0)}));function Oa(gt,Xt){return(Yt,Ut)=>{Yt.handled=!0,Yt.diagram.model.commit(fa=>{fa.set(Ut.part.adornedPart.data,gt,Xt)})}}function ca(gt,Xt){return Xt||(Xt="color"),mt(ce.bn,{width:16,height:16,stroke:"lightgray",fill:gt,margin:1,background:"transparent",mouseEnter:(Yt,Ut)=>Ut.stroke="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.stroke="lightgray",click:Oa(Xt,gt),contextClick:Oa(Xt,gt)})}function Ko(){return[mt("ContextMenuButton",mt(ce.s_,"Horizontal",ca(An.white,"fill"),ca(An.beige,"fill"),ca(An.extralightblue,"fill"),ca(An.extralightred,"fill"))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",ca(An.lightgray,"fill"),ca(An.lightgreen,"fill"),ca(An.lightblue,"fill"),ca(An.lightred,"fill")))]}function Wo(){return[mt("ContextMenuButton",mt(ce.s_,"Horizontal",ca(An.black),ca(An.green),ca(An.blue),ca(An.red))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",ca(An.white),ca(An.magenta),ca(An.purple),ca(An.orange)))]}function Io(gt,Xt){return Xt||(Xt="thickness"),mt(ce.bn,"LineH",{width:16,height:16,strokeWidth:gt,margin:1,background:"transparent",mouseEnter:(Yt,Ut)=>Ut.background="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.background="transparent",click:Oa(Xt,gt),contextClick:Oa(Xt,gt)})}function Eo(gt,Xt){return Xt||(Xt="dash"),mt(ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gt,margin:1,background:"transparent",mouseEnter:(Yt,Ut)=>Ut.background="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.background="transparent",click:Oa(Xt,gt),contextClick:Oa(Xt,gt)})}function Uo(){return[mt("ContextMenuButton",mt(ce.s_,"Horizontal",Io(1),Io(2),Io(3),Io(4))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",Eo(null),Eo([2,4]),Eo([4,4])))]}function Ta(gt,Xt){return Xt||(Xt="figure"),mt(ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gt,margin:1,background:"transparent",mouseEnter:(Yt,Ut)=>Ut.fill="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.fill="lightgray",click:Oa(Xt,gt),contextClick:Oa(Xt,gt)})}De.current.nodeTemplate.contextMenu=mt("ContextMenu",mt("ContextMenuButton",mt(ce.s_,"Horizontal",Ta("Rectangle"),Ta("RoundedRectangle"),Ta("Ellipse"),Ta("Diamond"))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",Ta("Parallelogram2"),Ta("ManualOperation"),Ta("Procedure"),Ta("Cylinder1"))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",Ta("Terminator"),Ta("CreateRequest"),Ta("Document"),Ta("TriangleDown"))),Ko(),Wo(),Uo()),De.current.groupTemplate=mt(ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gt,Xt)=>{var Yt=Xt.addMembers(Xt.diagram.selection,!0);Yt||Xt.diagram.currentTool.doCancel()},avoidable:!1},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),mt(ce.s_,"Auto",{name:"BODY"},mt(ce.bn,{parameter1:10,fill:An.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("fill"),new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),mt(ce.Vm,{background:"transparent",margin:20})),mt(ce.al,{alignment:ce.z6.Top,alignmentFocus:ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ce.KX("text"),new ce.KX("stroke","color"))),De.current.groupTemplate.selectionAdornmentTemplate=mt(ce.uz,"Spot",mt(ce.s_,"Auto",mt(ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mt(ce.Vm,{margin:1.5})),ja({alignment:ce.z6.TopRight,alignmentFocus:ce.z6.BottomRight})),De.current.groupTemplate.contextMenu=mt("ContextMenu",Ko(),Wo(),Uo()),De.current.linkTemplate=mt(ce.rU,{layerName:"Foreground",routing:ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ce.KX("fromSpot","fromSpot",ce.z6.parse),new ce.KX("toSpot","toSpot",ce.z6.parse),new ce.KX("fromShortLength","dir",gt=>gt>=1?10:0),new ce.KX("toShortLength","dir",gt=>gt>=1?10:0),new ce.KX("points").makeTwoWay(),mt(ce.bn,{strokeWidth:2},new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),mt(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,0),segmentOrientation:ce.rU.OrientAlong,alignmentFocus:ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt===1)),mt(ce.bn,{segmentIndex:-1,segmentOffset:new ce.E9(-10,6),segmentOrientation:ce.rU.OrientPlus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt>=1),new ce.KX("width","thickness",gt=>7+3*gt),new ce.KX("height","thickness",gt=>7+3*gt),new ce.KX("segmentOffset","thickness",gt=>new ce.E9(-15,4+1.5*gt))),mt(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,-6),segmentOrientation:ce.rU.OrientMinus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt===2),new ce.KX("width","thickness",gt=>7+3*gt),new ce.KX("height","thickness",gt=>7+3*gt),new ce.KX("segmentOffset","thickness",gt=>new ce.E9(-15,4+1.5*gt))),mt(ce.al,{alignmentFocus:new ce.z6(0,1,-4,0),editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),De.current.linkTemplate.selectionAdornmentTemplate=mt(ce.uz,mt(ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yo(2)},new ce.KX("pathPattern","thickness",yo)),ja({alignmentFocus:new ce.z6(0,0,-6,-4)}));function yo(gt){return mt(ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gt+4).toString()+" H3"})}function To(gt){var Xt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gt===0?Xt="M0 0 M16 16 M0 8 L16 8":gt===2&&(Xt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mt(ce.bn,{geometryString:Xt,margin:2,background:"transparent",mouseEnter:(Yt,Ut)=>Ut.background="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.background="transparent",click:Oa("dir",gt),contextClick:Oa("dir",gt)})}function nt(gt){var Xt=(Yt,Ut)=>{Yt.handled=!0,Yt.diagram.model.commit(fa=>{var Sa=Ut.part.adornedPart;fa.set(Sa.data,gt?"toSpot":"fromSpot",ce.z6.stringify(ce.z6.AllSides)),(gt?Sa.toNode:Sa.fromNode).invalidateConnectedLinks()})};return mt(ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Yt,Ut)=>Ut.background="dodgerblue",mouseLeave:(Yt,Ut)=>Ut.background="transparent",click:Xt,contextClick:Xt})}function Ya(gt,Xt){var Yt=0,Ut=ce.z6.RightSide;gt.equals(ce.z6.Top)?(Yt=270,Ut=ce.z6.TopSide):gt.equals(ce.z6.Left)?(Yt=180,Ut=ce.z6.LeftSide):gt.equals(ce.z6.Bottom)&&(Yt=90,Ut=ce.z6.BottomSide),Xt||(Yt-=180);var fa=(Sa,Ga)=>{Sa.handled=!0,Sa.diagram.model.commit(Za=>{var uo=Ga.part.adornedPart;Za.set(uo.data,Xt?"toSpot":"fromSpot",ce.z6.stringify(Ut)),(Xt?uo.toNode:uo.fromNode).invalidateConnectedLinks()})};return mt(ce.bn,{alignment:gt,alignmentFocus:gt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Yt,background:"transparent",mouseEnter:(Sa,Ga)=>Ga.background="dodgerblue",mouseLeave:(Sa,Ga)=>Ga.background="transparent",click:fa,contextClick:fa})}De.current.linkTemplate.contextMenu=mt("ContextMenu",Wo(),Uo(),mt("ContextMenuButton",mt(ce.s_,"Horizontal",To(0),To(1),To(2))),mt("ContextMenuButton",mt(ce.s_,"Horizontal",mt(ce.s_,"Spot",nt(!1),Ya(ce.z6.Top,!1),Ya(ce.z6.Left,!1),Ya(ce.z6.Right,!1),Ya(ce.z6.Bottom,!1)),mt(ce.s_,"Spot",{margin:new ce.Zt(0,0,0,2)},nt(!0),Ya(ce.z6.Top,!0),Ya(ce.z6.Left,!0),Ya(ce.z6.Right,!0),Ya(ce.z6.Bottom,!0)))));const Vo=`{ "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 Go=["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 po(gt){return console.log("shapeName:",gt),Go.indexOf(gt)>=0}var $o=new ce.YI(wt.current,{maxSelectionCount:1,linkTemplate:mt(ce.rU,{locationSpot:ce.z6.Center,selectionAdornmentTemplate:mt(ce.uz,"Link",{locationSpot:ce.z6.Center},mt(ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mt(ce.bn,{toArrow:"Standard",stroke:null}))},{routing:ce.rU.AvoidsNodes,curve:ce.rU.JumpOver,corner:5,toShortLength:4},new ce.KX("points"),mt(ce.bn,{isPanelMain:!0,strokeWidth:2}),mt(ce.bn,{toArrow:"Standard",stroke:null})),model:new ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ce.bn.getFigureGenerators().toArray().map(gt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:gt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return De.current.addDiagramListener("TextEdited",function(gt){var Xt;const Yt=gt.subject.part;var Ut=(Xt=document.activeElement)==null?void 0:Xt.value;typeof Ut=="string"&&Ut.trim()===""&&De.current.model.commit(function(fa){fa.set(Yt.data,"text","\u672A\u547D\u540D"),De.current.commandHandler.stopCommand()},"increment")}),$o.nodeTemplate=mt(ce.NB,"Auto",{locationSpot:ce.z6.Center},new ce.KX("location","location",ce.E9.parse).makeTwoWay(ce.E9.stringify),mt(ce.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 ce.KX("stroke").makeTwoWay(),new ce.KX("fill").makeTwoWay(),new ce.KX("figure")),mt(ce.al,{margin:new ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ce.$u(16,16),maxSize:new ce.$u(10,NaN),textAlign:"center",editable:!0},new ce.KX("key").makeTwoWay())),setTimeout(()=>{De.current.grid=mt(ce.s_,"Grid",mt(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),De.current.grid.visible=!0,De.current.grid.gridCellStroke="darkgray",De.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=De.current,De.current}const no=()=>we(this,null,function*(){var mt=De.current.makeImage();const An=yield(0,Qe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src}});Be({src:An.url})});(0,ge.useEffect)(()=>(setTimeout(()=>{na()},500),qt(Bn+1),()=>{De.current=null}),[]);const _a=(0,xe.useIntl)();return ye.createElement("div",{ref:Zn,className:Ot.current?`${Ie.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(Ue.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(tt.Z,null,ye.createElement(lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(lt.Z,{onClick:()=>{var mt,An,co=De.current.selection.first();if(Ot.current=!Ot.current,document.activeElement&&co){let ja=(An=(mt=document.activeElement)==null?void 0:mt.value)==null?void 0:An.trim();typeof ja=="string"&&De.current.model.commit(function(Oa){Oa.set(co.data,"text",ja||"\u672A\u547D\u540D"),De.current.commandHandler.stopCommand()},"increment")}qt(Bn+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",_a.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:Fe},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ie.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:Ie.myPaletteDiv,ref:wt})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:dt,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement(Ae.ZP,{size:"large",onClick:no,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},_a.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Ye=Re,ct=re(78045),yt=re(31795);const Ft=ct.ZP.Group,Rt={margin:"0 8px"};var Wt=({callback:Fe,onCancel:Be})=>{function De(wt){Fe(wt)}const dt=(0,xe.useIntl)();return ge.createElement(Pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:De},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:Rt},dt.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ge.createElement("span",{style:Rt},dt.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ge.createElement(Pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(yt.Z,null)),ge.createElement("span",{style:Rt},dt.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ge.createElement(Pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(yt.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:Rt},dt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ge.createElement(Pe.default.Item,{name:"align"},ge.createElement(Ft,null,ge.createElement(ct.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(ct.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(ct.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(ct.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},dt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ge.createElement(Ae.ZP,{type:"ghost",onClick:Be},dt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Jt=re(47897),Fn=re(61016),Gn=re.n(Fn),vn=(0,ge.forwardRef)(({use3d:Fe,width:Be,height:De,callback:dt,showSaveButton:wt},Ot)=>{const Zn=(0,ge.useRef)(),Bn=(0,ge.useRef)(),qt=(0,xe.useIntl)(),[na,no]=(0,ge.useState)(!1),_a=(0,ge.useRef)({id:Zn,appName:"graphing",width:Be||1e3,height:De||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{Bn.current=new(Gn())(_a.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const mt=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(An),An};return(0,ge.useEffect)(()=>{_a.current.appName=na?"3D":"graphing",Bn.current.inject("applet_container")},[na]),(0,ge.useEffect)(()=>{no(Fe)},[Fe]),(0,ge.useImperativeHandle)(Ot,()=>({getImgData:mt})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),ge.createElement(tt.Z,{align:"middle"},ge.createElement(lt.Z,{flex:1},ge.createElement(Jt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:qt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:na,onChange:An=>no(An)})),ge.createElement(lt.Z,null,ge.createElement(Ae.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},qt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),_n=re(36527),Tn=re(25934),Qn=re(2453);const qn="link",ma="upload-image",Wn="add-flowchart",ea="draw-image",ta="add-flowchart",$n="code-block",ia="add-table",Pa="------------",Ma={default:Pa,left:`:${Pa}`,center:`:${Pa}:`,right:`${Pa}:`};var eo=re(99914),pa=(Fe,Be,De)=>new Promise((dt,wt)=>{var Ot=qt=>{try{Bn(De.next(qt))}catch(na){wt(na)}},Zn=qt=>{try{Bn(De.throw(qt))}catch(na){wt(na)}},Bn=qt=>qt.done?dt(qt.value):Promise.resolve(qt.value).then(Ot,Zn);Bn((De=De.apply(Fe,Be)).next())});function io(){}let so=0;const Ia=1e4,Xa="\u2581",Fa="@\u2581\u2581@",to="@\u2581@",Va=`
|
|
**\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`,mo=["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 ka(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}const Na=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Oo={[Na+"-B"]:"bold",[Na+"-I"]:"italic"};var Ao=({defaultValue:Fe="",onChange:Be,width:De="100%",height:dt=400,miniToolbar:wt=!1,isFocus:Ot=!1,watch:Zn,insertTemp:Bn,mode:qt="markdown",id:na="markdown-editor-id",showResizeBar:no=!1,noStorage:_a=!1,showNullButton:mt=!1,showNullProgramButton:An=!1,hidetoolBar:co=!1,fullScreen:ja=!1,onBlur:Oa,onCMBeforeChange:ca,onFullScreen:Ko,className:Wo="",disablePaste:Io=!1,disabled:Eo=!1,disabledFill:Uo=!1,placeholder:Ta="",values:yo="",extraUse:To})=>{const[nt,Ya]=(0,ge.useState)(null),[Vo,Go]=(0,ge.useState)(Fe),[po,$o]=(0,ge.useState)(Zn),[gt,Xt]=(0,ge.useState)(ja),[Yt,Ut]=(0,ge.useState)(""),[fa,Sa]=(0,ge.useState)(0),[Ga,Za]=(0,ge.useState)(dt),[uo,Co]=(0,ge.useState)(!1),er=(0,ge.useRef)((0,Tn.Z)()),Br=(0,ge.useRef)(!1),fr=(0,ge.useRef)(),[ir,Sr]=(0,ge.useState)(0),[gr,ur]=(0,ge.useState)(0),Lo=(0,ge.useRef)(),jo=(0,ge.useRef)(),tr=(0,ge.useRef)(),nr=(0,ge.useRef)(),Dr=()=>pa(void 0,null,function*(){var Gt;const ht=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:er.current}});(Gt=ht==null?void 0:ht.attachments)!=null&&Gt.length&&(console.log("cm:",nt,Lo),ht.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?nt.replaceSelection(``):Ct.content_type.indexOf("video")>-1?nt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?nt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):nt.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ge.useEffect)(()=>{const Gt=window.scrollY||window.pageYOffset;Go(yo),nt==null||nt.setValue(yo),window.scrollTo(0,Gt)},[yo]),(0,ge.useEffect)(()=>{Ko==null||Ko(gt)},[gt]),(0,ge.useEffect)(()=>{if(Lo.current){let Gt=function(Ct,xt){var Rn;if(Io){xt.preventDefault();return}const da=xt.clipboardData;if(da){const ha=da.types.toString(),aa=da.items;if(ha==="Files"||da.types.indexOf("Files")>-1){if(xt.preventDefault(),qt=="stex")return;try{let Ba=aa[1];((Rn=aa[0])==null?void 0:Rn.kind)==="file"&&(Ba=aa[0]);const Da=Ba.getAsFile(),So=Da.name.split(".").pop();(0,$e.I)(Da,Aa=>{var Yo,Qo,Ha;Aa.id?((Yo=Da==null?void 0:Da.type)==null?void 0:Yo.indexOf("image"))>-1?ht.replaceSelection(`<img width="100%" src="/api/attachments/${Aa.id}?type=${Aa.content_type})" alt="" />`):((Qo=Da==null?void 0:Da.type)==null?void 0:Qo.indexOf("video"))>-1?ht.replaceSelection(`<video width="100%" controls src="/api/attachments/${Aa.id}"></video>`):((Ha=Da==null?void 0:Da.type)==null?void 0:Ha.indexOf("pdf"))>-1?ht.replaceSelection(`<a href="/api/attachments/${Aa.id}?type=${Da.type}&disposition=inline" target="_blank">${Da.name}</a>`):mo.includes(So)?ht.replaceSelection(`<a href="/api/attachments/${Aa.id}?type=office&disposition=inline" target="_blank">${Da.name}</a>`):ht.replaceSelection(`[${Da.name}](/api/attachments/${Aa.id}?type=${Aa.content_type})`):(Aa==null?void 0:Aa.status)===401&&(Qn.ZP.warning((Aa==null?void 0:Aa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ba){Qn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ht=Ve().fromTextArea(Lo.current,{mode:qt,lineNumbers:!wt,lineWrapping:!0,value:Fe,autoCloseTags:!An,autoCloseBrackets:!0});return ht.on("keyup",function(Ct,xt){xt.keyCode===8&&(Ct.getValue()==""?ht.setOption("placeholder",Ta):ht.setOption("placeholder",null))}),ht.on("keydown",function(Ct,xt){if(xt.keyCode===8){var Rn=vr(Ct);Rn&&xt.preventDefault()}}),Ot&&ht.focus(),ht.on("paste",Gt),ht.on("dragleave",function(Ct,xt){jo.current.classList.remove("mouse-hover-md")}),Eo&&ht.on("beforeChange",function(Ct,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),Ya(ht),()=>{ht.off("paste",Gt)}}},[]);const hr=(0,ge.useCallback)(()=>{if(jo.current)try{}catch(Gt){console.log(Gt,"---- to set md editor body height")}},[Ga,jo,gt]);(0,ge.useEffect)(()=>{function Gt(){let ht=new qe.Z(Ct=>{for(let xt of Ct)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(hr(),nt.setSize("100%","100%"),nt.refresh())});return ht.observe(Lo.current.parentElement),ht}if(nt){const ht=Gt();return()=>{var Ct,xt;(Ct=Lo.current)!=null&&Ct.parentElement&&ht.unobserve((xt=Lo.current)==null?void 0:xt.parentElement)}}},[nt,hr]),(0,ge.useEffect)(()=>{if(nt){let Gt=[];for(const[ht,Ct]of Object.entries(Oo)){let xt={[ht]:()=>{Pr(Ct)}};Gt.push(xt),nt.addKeyMap(xt)}return fr.current=setInterval(()=>{Br.current&&Dr()},4e3),()=>{clearInterval(fr.current);for(let ht of Gt)nt.removeKeyMap(ht)}}},[nt]),(0,ge.useEffect)(()=>{ja!==gt&&Xt(ja)},[ja]),(0,eo.Z)(()=>{if(!_a&&fa>0){let Gt=new Date().getTime(),ht=window.sessionStorage.getItem(na);Gt>=fa+Ia&&(!ht||ht!==Vo)&&(window.sessionStorage.setItem(na,Vo),Co(!0))}},Ia),(0,ge.useEffect)(()=>{$o(Zn)},[nt,Zn]),(0,ge.useEffect)(()=>{nt&&Ot&&nt.focus()},[nt,Ot]),(0,ge.useEffect)(()=>{if(po&&nt){let Gt=function(Ct){let xt=Ct.target;if(nr.current){let Rn=xt.scrollTop/xt.scrollHeight;nr.current.scrollTop=nr.current.scrollHeight*Rn}};const ht=nt.getScrollerElement();return ht.addEventListener("scroll",Gt),()=>{ht.removeEventListener("scroll",Gt)}}},[nt,po]),(0,ge.useEffect)(()=>{if(nt&&ca){let Gt=function(ht,Ct){ca(ht,Ct)};return nt.on("beforeChange",Gt),()=>{nt.off("beforeChange",Gt)}}},[nt,ca]),(0,ge.useEffect)(()=>{if(nt&&Oa){let Gt=function(){Oa(nt.getValue())};return nt.on("blur",Gt),()=>{nt.off("blur",Gt)}}},[nt,Oa]);function vr(Gt,ht){var Ct=Gt.getDoc(),xt=Ct.getCursor(),Rn=Ct.getLine(xt.line),da=Rn.charAt(xt.ch-1),ha=Rn.lastIndexOf("@\u2581@",xt.ch),aa=Rn.lastIndexOf("@\u2581\u2581@",xt.ch),Ba=ha>aa?ha:aa,Da=ha>aa?3:4;if(Fa.indexOf(da)===-1)return null;if(console.log("change1:",ht,Gt,Rn,xt,Ba,ha,aa,da),Ba>=0&&xt.ch-Ba<5){var So=Ba+Da;return Ct.replaceRange("",{line:xt.line,ch:Ba},{line:xt.line,ch:So}),{line:xt.line,ch:So}}return null}(0,ge.useEffect)(()=>{if(nt){let Gt=function(ht,Ct){const xt=ht.getValue();Go(xt),Sa(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Be&&(An?Be(xt,Gr(xt)):Be(xt))};return nt.on("change",Gt),()=>{nt.off("change",Gt)}}},[nt,Be]),(0,ge.useEffect)(()=>{if(nt)if(Fe==null)nt.setValue(""),Go("");else{const Gt=window.scrollY||window.pageYOffset;Fe!==nt.getValue()&&(nt.setValue(Fe),Go(Fe),nt.setCursor(Eo?1:nt.lineCount(),0),window.scrollTo(0,Gt))}},[nt,Fe]);const Pr=(0,ge.useCallback)(Gt=>{const ht=nt.getCursor(),Ct=nt.getSelection();let xt=Ct.split(`
|
|
`);switch(Gt){case"bold":return nt.replaceSelection("**"+Ct+"**"),Ct===""&&nt.setCursor(ht.line,ht.ch+2),nt.focus();case"italic":return nt.replaceSelection("*"+Ct+"*"),Ct===""&&nt.setCursor(ht.line,ht.ch+1),nt.focus();case"code":return nt.replaceSelection("`"+Ct+"`"),Ct===""&&nt.setCursor(ht.line,ht.ch+1),nt.focus();case"inline-latex":return Ut("inline-latex"),nt.focus();case"latex":return nt.replaceSelection("```latex\n"+Ct+"\n```"),nt.setCursor(ht.line+1,Ct.length+1),nt.focus();case"line-break":return nt.replaceSelection(`<br/>
|
|
`),nt.focus();case"list-ul":return Ct===""?nt.replaceSelection("- "+Ct):nt.replaceSelection(xt.map(Rn=>Rn===""?"":`- ${Rn}`).join(`
|
|
`)),nt.focus();case"list-ol":return Ct===""?nt.replaceSelection("1. "+Ct):nt.replaceSelection(xt.map((Rn,da)=>Rn===""?"":`${da+1}. ${Rn}`).join(`
|
|
`)),nt.focus();case"add-null-ch":return Ct===""&&nt.setCursor(ht.line,ht.ch),nt.replaceSelection(Xa),nt.focus();case"add-signal":return Ct===""&&nt.setCursor(ht.line,ht.ch),nt.replaceSelection(to),nt.focus();case"add-multiple":return Ct===""&&nt.setCursor(ht.line,ht.ch),nt.replaceSelection(Fa),nt.focus();case"inster-template-1":return Ct===""&&nt.setCursor(ht.line,ht.ch),nt.replaceSelection(Va),nt.focus();case"eraser":return nt.setValue(""),nt.focus();case"trigger-watch":return $o(!po),nt.focus();case"trigger-full-screen":return Xt(!gt),nt.focus();case qn:Ut(qn);return;case $n:Ut($n);return;case ma:Ut(ma);return;case ea:Ut(ea);return;case"maths-latex":Ut("maths-latex");return;case Wn:Ut(Wn);return;case ia:Ut(ia);return;default:throw new Error}},[nt,po,gt]),fo=(0,ge.useCallback)((Gt,ht)=>{var Ct,xt,Rn,da,ha,aa;switch(Ut(""),Yt){case qn:const{title:Yo,link:Qo}=Gt;return nt.replaceSelection(`[${Yo}](${Qo})`),nt.focus();case $n:const{language:Ha,content:Ro}=Gt;return nt.replaceSelection(["```"+Ha,Ro,"```"].join(`
|
|
`)),nt.focus();case"maths-latex":for(var Ba=atob(Gt),Da=new Uint8Array(Ba.length),So=0;So<Ba.length;So++)Da[So]=Ba.charCodeAt(So);var Aa=new Blob([Da],{type:"image/png"});(0,$e.I)(Aa,lo=>{lo.id?nt.replaceSelection(``):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":nt.replaceSelection("`$$"+Gt+"$$`");break;case ma:case ea:case ta:const{src:zo,alt:yr}=Gt,ga=ht,Mr=(Rn=(xt=(Ct=ga==null?void 0:ga.name)==null?void 0:Ct.split("."))==null?void 0:xt.pop)==null?void 0:Rn.call(xt);return((da=ga==null?void 0:ga.type)==null?void 0:da.indexOf("image"))>-1||!(ga!=null&&ga.type)?ga.align||ga.width?nt.replaceSelection(`<p style="text-align:${ga.align||"initial"}"><img width="${ga.width?ga.width+"%":"initial"}" src="${zo}" alt="${yr||""}" /></p>`):nt.replaceSelection(`<img width="100%" src="${zo}" alt="${yr||""}" />`):((ha=ga==null?void 0:ga.type)==null?void 0:ha.indexOf("video"))>-1?nt.replaceSelection(`<video width="100%" controls src="${zo}"></video>`):((aa=ga==null?void 0:ga.type)==null?void 0:aa.indexOf("pdf"))>-1?nt.replaceSelection(`<a href="${zo}?type=${ga.type}&disposition=inline" target="_blank">${ga.name}</a>`):mo.includes(Mr)?nt.replaceSelection(`<a href="${zo}?type=office&disposition=inline" target="_blank">${ga.name}</a>`):nt.replaceSelection(`[${ga.name}](${zo})`),nt.focus();case ia:const{row:Cr,col:dr,align:Jo}=Gt;let sr=`
|
|
`;for(let lo=0;lo<Cr;lo++){let Lr=[],wr=[];for(let ar=0;ar<dr;ar++)lo===1&&wr.push(Ma[Jo]),Lr.push(" ");lo===1&&(sr+=`| ${wr.join(" | ")} |
|
|
`),sr+=`| ${Lr.join(dr===1?"":" | ")} |
|
|
`}return nt.replaceSelection(sr+`
|
|
`),nt.focus();default:throw new Error}},[nt,Yt]),pr=(0,ge.useMemo)(()=>{switch(Yt){case qn:return ge.createElement(It,{callback:fo,onCancel:bo});case $n:return ge.createElement(Pn.Z,{callback:fo,onCancel:bo});case ma:return ge.createElement($e.Z,{callback:fo,onCancel:bo});case Wn:return ge.createElement(Ye,{callback:fo,onCancel:bo});case ia:return ge.createElement(Wt,{callback:fo,onCancel:bo});case"maths-latex":return ge.createElement(vn,{showSaveButton:!0,callback:fo});case"inline-latex":return ge.createElement(_n.Z,{showSaveButton:!0,callback:fo});default:return null}},[Yt]);function bo(){Ut("")}(0,ge.useEffect)(()=>{if(tr.current){let Gt=function(ha){Rn=!0,da=ha.pageY},ht=function(){Rn=!1},Ct=function(ha){if(Rn){let aa=ha.pageY-da;aa<0&&(aa=0),aa>300&&(aa=300);let Ba=dt+aa+"px";Za(Ba)}},xt=tr.current,Rn=!1,da=0;return xt.addEventListener("mousedown",Gt),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",ht),()=>{xt.removeEventListener("mousedown",Gt),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",ht)}}},[nt,tr]),(0,ge.useEffect)(()=>{Za(dt)},[dt]);const br=ka(De),xr=ka(Ga),Tr={width:br,height:xr},qr=(0,ge.useMemo)(()=>{if(fa){let Gt=new Date(fa),ht=Gt.getHours(),Ct=Gt.getMinutes(),xt=Gt.getSeconds();return ht=ht<10?"0"+ht:ht,Ct=Ct<10?"0"+Ct:Ct,xt=xt<10?"0"+xt:xt,`${ht}:${Ct}:${xt}`}return 0},[fa]),Gr=Gt=>{const ht=[];if(An){let Ct=-1;Gt=Gt.replace(/(@▁▁@|@▁@)/g,function(xt,Rn,da){ht.push({multiLine:xt!==to})})}return ht};function $r(){window.sessionStorage.removeItem(na),Co(!1),Sa(0)}function Rr(){Co(!1),Sa(0),nt.setValue(window.sessionStorage.getItem(na))}const Xo=(0,xe.useIntl)(),lr={[qn]:"\u6DFB\u52A0\u94FE\u63A5",[$n]:Xo.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[ma]:Xo.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[ea]:"\u6DFB\u52A0\u753B\u56FE",[Wn]:Xo.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[ia]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Xo.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Xo.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ge.useEffect)(()=>{lr[Yt]&&Yt!==ea&&Yt!==Wn&&setTimeout(()=>{const Gt=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth/2-Gt.offsetWidth/2,Ct=window.innerHeight/2-Gt.offsetHeight/2;Sr(ht),ur(Ct)},0)},[Yt]);const Er=Gt=>{Gt.preventDefault();const ht=Gt.clientX-ir,Ct=Gt.clientY-gr;document.body.onmousemove=xt=>{let Rn=xt.clientX-ht,da=xt.clientY-Ct;const ha=document.getElementsByClassName("markdown-popup-form")[0],aa=window.innerWidth-ha.offsetWidth,Ba=window.innerHeight-ha.offsetHeight;Rn=Math.max(0,Math.min(Rn,aa)),da=Math.max(0,Math.min(da,Ba)),zr(xt.clientX,xt.clientY,ht,Ct)&&(Sr(Rn),ur(da))},document.body.onmouseup=function(){document.body.onmousemove=null}},zr=(Gt,ht,Ct,xt)=>{const Rn=document.body.clientHeight,da=document.body.clientWidth;return Gt<20&&Ct>Gt||Gt>da-20&&Ct<Gt||ht<20&&xt>ht||ht>Rn-20&&xt<ht?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:jo},ge.createElement("div",{className:`markdown-editor-container ${Wo} ${po?"on-preview":""} ${wt?"mini":""} ${gt?"full-screen":""}`,style:Tr},ge.createElement(de,{insertTemp:Bn,watch:po,fullScreen:gt,showNullButton:mt,showNullProgramButton:An,onActionCallback:Pr,hidetoolBar:co,extraUse:To}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:Lo,placeholder:Ta})),po?ge.createElement("div",{ref:nr,className:"preview-container"},qt==="stex"&&ge.createElement(Le,{value:Vo}),qt!=="stex"&&ge.createElement(Te.Z,{disabledFill:Uo,showProgramFill:An,value:Vo})):null))),no?ge.createElement("a",{ref:tr,className:"editor-resize"}):null,Yt===ea&&ge.createElement(Et,{callback:fo,onCancel:bo}),Yt===Wn&&ge.createElement(Ye,{callback:fo,onCancel:bo}),ge.createElement(ve.Z,null,lr[Yt]&&Yt!==ea&&Yt!==Wn?ge.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ir,top:gr},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:Er},lr[Yt]),open:!0,onCancel:bo,footer:null,destroyOnClose:!0,width:Yt===Wn?"1200px":null,height:Yt===Wn?"80vh":null,className:"markdown-popup-form"},pr):null))}},70859:function(ke,it,re){"use strict";re.d(it,{Z:function(){return de},I:function(){return Pe}});var ge=re(22150),ie=re(2453),Ve=re(69677),qe=re(93421),be=re(31795),Me=re(78045),me=re(71577),_e=re(15476),Oe=re(67294),Ee=re(52262),Te=re(35973),Le=re(67294),xe=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,x=(se,Ae,Ke)=>Ae in se?xe(se,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):se[Ae]=Ke,z=(se,Ae)=>{for(var Ke in Ae||(Ae={}))y.call(Ae,Ke)&&x(se,Ke,Ae[Ke]);if(b)for(var Ke of b(Ae))E.call(Ae,Ke)&&x(se,Ke,Ae[Ke]);return se},ee=(se,Ae)=>ne(se,a(Ae));const{useForm:te}=ge.default,oe={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var de=({callback:se,onCancel:Ae})=>{const[Ke]=te();let Ge=(0,Oe.useRef)();const pe=(0,Te.useIntl)();function he(We){Ge.current.width=Ke.getFieldValue("width"),Ge.current.align=Ke.getFieldValue("align"),se(We,Ge.current)}function Ze(We,Je){if(We.status===-1){ie.ZP.error(We.message);return}Ke.setFieldsValue({src:`/api/attachments/${We.id}`,type:Je.type})}function He(We){let Je=We.target.files[0];Ge.current=Je,Pe(Je,Ze)}return Le.createElement(ge.default,ee(z({form:Ke},le),{className:"upload-image-panel",onFinish:he,style:{width:470,overflow:"hidden"}}),Le.createElement(ge.default.Item,{label:pe.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Le.createElement("div",{className:"flex-container"},Le.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Le.createElement(Ve.default,{style:oe})),Le.createElement(ve,{onFileChange:He}))),Le.createElement(ge.default.Item,{label:pe.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Le.createElement(Ve.default,{style:{width:264}})),Le.createElement(ge.default.Item,{label:pe.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Le.createElement(qe.Z,null,Le.createElement(ge.default.Item,{name:"width",style:{margin:0}},Le.createElement(be.Z,{style:{width:264}})),Le.createElement("span",{className:"ml8"},"%"))),Le.createElement(ge.default.Item,{label:pe.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Le.createElement(Me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:pe.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:pe.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:pe.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Le.createElement("aside",null,Le.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Le.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},pe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Le.createElement(me.ZP,{type:"default",onClick:Ae},pe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function ve({onFileChange:se}){return Le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Le.createElement("input",{type:"file",onChange:se}))}function Pe(se,Ae){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw ie.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ke=new FormData;Ke.append("editormd-image-file",se),Ke.append("file_param_name","editormd-image-file"),Ke.append("byxhr","true");var Ge=new window.XMLHttpRequest;Ge.withCredentials=!0,Ge.addEventListener("load",function(pe){Ae(JSON.parse(pe.target.responseText),se)},!1),Ge.addEventListener("error",function(pe){console.error(pe)},!1),Ge.open("POST",`${_e.KI}/api/attachments.json`),Ge.send(Ke)}},76621:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Ve}});var ge=re(67294),ie=re(73935);class Ve extends ge.Component{constructor(be){super(be);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,ie.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ke,it,re){"use strict";re.d(it,{Z:function(){return ie}});var ge=re(67294);function ie(Ve,qe){const be=(0,ge.useRef)();(0,ge.useEffect)(()=>{be.current=Ve}),(0,ge.useEffect)(()=>{function Me(){be.current()}if(qe!==null){let me=setInterval(Me,qe);return()=>clearInterval(me)}},[qe])}},11264:function(ke,it,re){"use strict";re.r(it),re.d(it,{default:function(){return Ke}});var ge=re(67294),ie=re(35567),Ve=re(35973),qe=re(68508),be=re(97183),Me=re(22150),me=re(2453),_e=re(85673),Oe=re(71230),Ee=re(15746),Te=re(11713),Le=re(69677),xe=re(96074),ne=re(85546),a=re(71577),b=re(70757),y={flex_box_center:"flex_box_center___oUI48",flex_space_between:"flex_space_between___ygvRP",flex_box_vertical_center:"flex_box_vertical_center___eHXbG",flex_box_center_end:"flex_box_center_end___VqFf6",flex_box_column:"flex_box_column___VdaxG",bg:"bg___AuzLD",title:"title___ig1Ym",titleLeft:"titleLeft___HQ0Kv",titleRight:"titleRight___gvlMr",btns:"btns___vjaR0"},E=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Ge,pe,he)=>pe in Ge?E(Ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ge[pe]=he,oe=(Ge,pe)=>{for(var he in pe||(pe={}))z.call(pe,he)&&te(Ge,he,pe[he]);if(x)for(var he of x(pe))ee.call(pe,he)&&te(Ge,he,pe[he]);return Ge},le=(Ge,pe)=>{var he={};for(var Ze in Ge)z.call(Ge,Ze)&&pe.indexOf(Ze)<0&&(he[Ze]=Ge[Ze]);if(Ge!=null&&x)for(var Ze of x(Ge))pe.indexOf(Ze)<0&&ee.call(Ge,Ze)&&(he[Ze]=Ge[Ze]);return he},de=(Ge,pe,he)=>new Promise((Ze,He)=>{var We=vt=>{try{Lt(he.next(vt))}catch(It){He(It)}},Je=vt=>{try{Lt(he.throw(vt))}catch(It){He(It)}},Lt=vt=>vt.done?Ze(vt.value):Promise.resolve(vt.value).then(We,Je);Lt((he=he.apply(Ge,pe)).next())});const{SubMenu:ve}=qe.default,{Content:Pe,Sider:se}=be.default,Ae=Ge=>{var pe=Ge,{graduation:he,globalSetting:Ze,loading:He,user:We,dispatch:Je}=pe,Lt=le(pe,["graduation","globalSetting","loading","user","dispatch"]),vt,It,Pn,$e,Ue,tt,Nt,at;const Et=(0,Ve.useIntl)(),ce=(0,Ve.useParams)(),ut=(0,Ve.useLocation)(),{userInfo:$t}=We,[tn]=Me.default.useForm(),{editTopicData:lt}=he,Qe=()=>de(void 0,null,function*(){const Ie=tn.getFieldsValue(),ye=oe({},Ie);ye.city&&(ye.province=ye.city[0],ye.city=ye.city[1]);const we=yield Je({type:"graduation/editTopic",payload:{categoryId:ce.categoryId,coursesId:ce.coursesId,attachment_ids:[],graduation_topic:ye}});we.status?me.ZP.error(we.message):Ve.history.push(`/classrooms/${ce.coursesId}/graduation_topics/${lt.left_banner_id}`)});return(0,ge.useEffect)(()=>{function Ie(){return de(this,null,function*(){const ye=yield Je({type:"graduation/editTopicDefaultData",payload:oe({},ce)}),we=oe({},ye.selected_data);we.city=[we.province,we.city],tn.setFieldsValue(we)})}Ie()},[ce.coursesId]),ge.createElement("section",{className:"edu-container"},ge.createElement("section",{className:"animated fadeIn"},ge.createElement("aside",{className:"mt10"},$t&&ge.createElement(_e.Z,{separator:">"},ge.createElement(_e.Z.Item,null,ge.createElement(Ve.Link,{to:`${$t.first_category_url}`},(vt=$t==null?void 0:$t.course)==null?void 0:vt.course_name)),ge.createElement(_e.Z.Item,null,ge.createElement(Ve.Link,{to:`/classrooms/${ce.coursesId}/graduation_topics/${lt.left_banner_id}`},"\u6BD5\u8BBE\u9009\u9898")),ge.createElement(_e.Z.Item,null,Et.formatMessage({id:"classroomGraphicGroupHomework.edit",defaultMessage:"\u7F16\u8F91"})))),ge.createElement("aside",{className:[y.title,"mt20"].join(" ")},ge.createElement(Oe.Z,{style:{width:"100%"}},ge.createElement(Ee.Z,{flex:"1"},ge.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),ge.createElement(Ee.Z,null,ge.createElement(Ve.Link,{className:"font16 c-light-black",to:`/classrooms/${ce.coursesId}/graduation_topics/${lt.left_banner_id}`},Et.formatMessage({id:"classroomGraphicGroupHomework.return",defaultMessage:"\u8FD4\u56DE"})))))),ge.createElement("section",{className:[y.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ge.createElement(Me.default,{layout:"vertical",form:tn,scrollToFirstError:!0,initialValues:lt==null?void 0:lt.selected_data,onFinish:Ie=>de(void 0,null,function*(){Qe()})},ge.createElement(Me.default.Item,{name:"tea_id",label:`${Et.formatMessage({id:"competitions.instructorTeacher",defaultMessage:"\u6307\u5BFC\u8001\u5E08"})}\uFF1A`,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(It=lt.teacher_list)==null?void 0:It.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)}))),ge.createElement(Me.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ge.createElement(Le.default,{size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898"})),ge.createElement(xe.Z,null),ge.createElement(Me.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:Et.formatMessage({id:"classrooms.enterContent",defaultMessage:"\u8BF7\u8F93\u5165\u5185\u5BB9"})}]},ge.createElement(ie.Z,{watch:!0,defaultValue:(Pn=lt.selected_data)==null?void 0:Pn.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9"})),ge.createElement(Oe.Z,{gutter:[20,0]},ge.createElement(Ee.Z,{flex:"1"},ge.createElement(Me.default.Item,{name:"topic_type"},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},($e=lt.topic_type)==null?void 0:$e.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)})))),ge.createElement(Ee.Z,{flex:"1"},ge.createElement(Me.default.Item,{name:"topic_source"},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Ue=lt.topic_source)==null?void 0:Ue.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)})))),ge.createElement(Ee.Z,{flex:"1"},ge.createElement(Me.default.Item,{name:"topic_property_first"},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(tt=lt.topic_property_first)==null?void 0:tt.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)})))),ge.createElement(Ee.Z,{flex:"1"},ge.createElement(Me.default.Item,{name:"topic_property_second"},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Nt=lt.topic_property_second)==null?void 0:Nt.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)})))),ge.createElement(Ee.Z,{flex:"150px"})),ge.createElement(xe.Z,null),ge.createElement(Me.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},ge.createElement(Le.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),ge.createElement(Me.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},ge.createElement(Te.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(at=lt.topic_repeat)==null?void 0:at.map(function(Ie,ye){return ge.createElement(Te.default.Option,{value:Ie.id,key:ye},Ie.name)}))),ge.createElement(Me.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},ge.createElement(ne.Z,{size:"middle",style:{width:200},options:b.P,placeholder:Et.formatMessage({id:"paths.selectLocation",defaultMessage:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})})))),ge.createElement("aside",{className:y.btns},ge.createElement(a.ZP,{type:"primary",onClick:()=>{tn.submit()}},Et.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})),ge.createElement(Ve.Link,{to:`/classrooms/${ce.coursesId}/graduation_topics/${ce.categoryId}`},Et.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))};var Ke=(0,Ve.connect)(({graduation:Ge,loading:pe,user:he,globalSetting:Ze})=>({graduation:Ge,globalSetting:Ze,user:he,loading:pe.effects}))(Ae)},70757:function(ke,it,re){"use strict";re.d(it,{P:function(){return ge}});const ge=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},85673:function(ke,it,re){"use strict";re.d(it,{Z:function(){return pe}});var ge=re(94184),ie=re.n(ge),Ve=re(37419),qe=re(1337),be=re(67294),Me=re(96159),me=re(53124),_e=re(42922),Oe=re(35874);const Ee=he=>{let{children:Ze}=he;const{getPrefixCls:He}=be.useContext(me.E_),We=He("breadcrumb");return be.createElement("li",{className:`${We}-separator`,"aria-hidden":"true"},Ze===""?Ze:Ze||"/")};Ee.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=Ee,Le=function(he,Ze){var He={};for(var We in he)Object.prototype.hasOwnProperty.call(he,We)&&Ze.indexOf(We)<0&&(He[We]=he[We]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,We=Object.getOwnPropertySymbols(he);Je<We.length;Je++)Ze.indexOf(We[Je])<0&&Object.prototype.propertyIsEnumerable.call(he,We[Je])&&(He[We[Je]]=he[We[Je]]);return He};function xe(he,Ze){if(he.title===void 0||he.title===null)return null;const He=Object.keys(Ze).join("|");return typeof he.title=="object"?he.title:String(he.title).replace(new RegExp(`:(${He})`,"g"),(We,Je)=>Ze[Je]||We)}function ne(he,Ze,He,We){if(He==null)return null;const{className:Je,onClick:Lt}=Ze,vt=Le(Ze,["className","onClick"]),It=Object.assign(Object.assign({},(0,qe.Z)(vt,{data:!0,aria:!0})),{onClick:Lt});return We!==void 0?be.createElement("a",Object.assign({},It,{className:ie()(`${he}-link`,Je),href:We}),He):be.createElement("span",Object.assign({},It,{className:ie()(`${he}-link`,Je)}),He)}function a(he,Ze){return(We,Je,Lt,vt,It)=>{if(Ze)return Ze(We,Je,Lt,vt);const Pn=xe(We,Je);return ne(he,We,Pn,It)}}var b=function(he,Ze){var He={};for(var We in he)Object.prototype.hasOwnProperty.call(he,We)&&Ze.indexOf(We)<0&&(He[We]=he[We]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,We=Object.getOwnPropertySymbols(he);Je<We.length;Je++)Ze.indexOf(We[Je])<0&&Object.prototype.propertyIsEnumerable.call(he,We[Je])&&(He[We[Je]]=he[We[Je]]);return He};const y=he=>{const{prefixCls:Ze,separator:He="/",children:We,menu:Je,overlay:Lt,dropdownProps:vt,href:It}=he,$e=(Ue=>{if(Je||Lt){const tt=Object.assign({},vt);if(Je){const Nt=Je||{},{items:at}=Nt,Et=b(Nt,["items"]);tt.menu=Object.assign(Object.assign({},Et),{items:at==null?void 0:at.map((ce,ut)=>{var{key:$t,title:tn,label:lt,path:Qe}=ce,Ie=b(ce,["key","title","label","path"]);let ye=lt!=null?lt:tn;return Qe&&(ye=be.createElement("a",{href:`${It}${Qe}`},ye)),Object.assign(Object.assign({},Ie),{key:$t!=null?$t:ut,label:ye})})})}else Lt&&(tt.overlay=Lt);return be.createElement(Oe.Z,Object.assign({placement:"bottom"},tt),be.createElement("span",{className:`${Ze}-overlay-link`},Ue,be.createElement(_e.Z,null)))}return Ue})(We);return $e!=null?be.createElement(be.Fragment,null,be.createElement("li",null,$e),He&&be.createElement(Te,null,He)):null},E=he=>{const{prefixCls:Ze,children:He,href:We}=he,Je=b(he,["prefixCls","children","href"]),{getPrefixCls:Lt}=be.useContext(me.E_),vt=Lt("breadcrumb",Ze);return be.createElement(y,Object.assign({},Je,{prefixCls:vt}),ne(vt,Je,He,We))};E.__ANT_BREADCRUMB_ITEM=!0;var x=E,z=re(14747),ee=re(67968),te=re(45503);const oe=he=>{const{componentCls:Ze,iconCls:He}=he;return{[Ze]:Object.assign(Object.assign({},(0,z.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[He]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${he.paddingXXS}px`,borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",marginInline:-he.marginXXS,"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,z.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${Ze}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${Ze}-link`]:{[`
|
|
> ${He} + span,
|
|
> ${He} + a
|
|
`]:{marginInlineStart:he.marginXXS}},[`${Ze}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",padding:`0 ${he.paddingXXS}px`,marginInline:-he.marginXXS,[`> ${He}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,ee.Z)("Breadcrumb",he=>{const Ze=(0,te.TS)(he,{});return[oe(Ze)]},he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS})),de=function(he,Ze){var He={};for(var We in he)Object.prototype.hasOwnProperty.call(he,We)&&Ze.indexOf(We)<0&&(He[We]=he[We]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,We=Object.getOwnPropertySymbols(he);Je<We.length;Je++)Ze.indexOf(We[Je])<0&&Object.prototype.propertyIsEnumerable.call(he,We[Je])&&(He[We[Je]]=he[We[Je]]);return He};function ve(he){const{breadcrumbName:Ze,children:He}=he,We=de(he,["breadcrumbName","children"]),Je=Object.assign({title:Ze},We);return He&&(Je.menu={items:He.map(Lt=>{var{breadcrumbName:vt}=Lt,It=de(Lt,["breadcrumbName"]);return Object.assign(Object.assign({},It),{title:vt})})}),Je}function Pe(he,Ze){return(0,be.useMemo)(()=>he||(Ze?Ze.map(ve):null),[he,Ze])}var se=function(he,Ze){var He={};for(var We in he)Object.prototype.hasOwnProperty.call(he,We)&&Ze.indexOf(We)<0&&(He[We]=he[We]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,We=Object.getOwnPropertySymbols(he);Je<We.length;Je++)Ze.indexOf(We[Je])<0&&Object.prototype.propertyIsEnumerable.call(he,We[Je])&&(He[We[Je]]=he[We[Je]]);return He};const Ae=(he,Ze)=>{if(Ze===void 0)return Ze;let He=(Ze||"").replace(/^\//,"");return Object.keys(he).forEach(We=>{He=He.replace(`:${We}`,he[We])}),He},Ke=he=>{const{prefixCls:Ze,separator:He="/",style:We,className:Je,rootClassName:Lt,routes:vt,items:It,children:Pn,itemRender:$e,params:Ue={}}=he,tt=se(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Nt,direction:at,breadcrumb:Et}=be.useContext(me.E_);let ce;const ut=Nt("breadcrumb",Ze),[$t,tn]=le(ut),lt=Pe(It,vt),Qe=a(ut,$e);if(lt&<.length>0){const we=[],Re=It||vt;ce=lt.map((Ye,ct)=>{const{path:yt,key:Ft,type:Rt,menu:Wt,overlay:Jt,onClick:Fn,className:Gn,separator:En,dropdownProps:vn}=Ye,_n=Ae(Ue,yt);_n!==void 0&&we.push(_n);const Tn=Ft!=null?Ft:ct;if(Rt==="separator")return be.createElement(Te,{key:Tn},En);const Qn={},qn=ct===lt.length-1;Wt?Qn.menu=Wt:Jt&&(Qn.overlay=Jt);let{href:ma}=Ye;return we.length&&_n!==void 0&&(ma=`#/${we.join("/")}`),be.createElement(y,Object.assign({key:Tn},Qn,(0,qe.Z)(Ye,{data:!0,aria:!0}),{className:Gn,dropdownProps:vn,href:ma,separator:qn?"":He,onClick:Fn,prefixCls:ut}),Qe(Ye,Ue,Re,we,ma))})}else if(Pn){const we=(0,Ve.Z)(Pn).length;ce=(0,Ve.Z)(Pn).map((Re,Ye)=>{if(!Re)return Re;const ct=Ye===we-1;return(0,Me.Tm)(Re,{separator:ct?"":He,key:Ye})})}const Ie=ie()(ut,Et==null?void 0:Et.className,{[`${ut}-rtl`]:at==="rtl"},Je,Lt,tn),ye=Object.assign(Object.assign({},Et==null?void 0:Et.style),We);return $t(be.createElement("nav",Object.assign({className:Ie,style:ye},tt),be.createElement("ol",null,ce)))};Ke.Item=x,Ke.Separator=Te;var Ge=Ke,pe=Ge},85546:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Zi}});var ge=re(74902),ie=re(67294),Ve=re(22751),qe=re(3407),be=re(91034),Me=re(94184),me=re.n(Me),_e=re(87462),Oe=re(97685),Ee=re(45987),Te=re(4942),Le=re(1413),xe=re(71002);function ne(ae){var ue=ie.useRef();ue.current=ae;var fe=ie.useCallback(function(){for(var Se,Ce=arguments.length,Ne=new Array(Ce),ze=0;ze<Ce;ze++)Ne[ze]=arguments[ze];return(Se=ue.current)===null||Se===void 0?void 0:Se.call.apply(Se,[ue].concat(Ne))},[]);return fe}function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var b=a()?ie.useLayoutEffect:ie.useEffect,y=b,E=function(ue,fe){var Se=ie.useRef(!0);b(function(){if(!Se.current)return ue()},fe),b(function(){return Se.current=!1,function(){Se.current=!0}},[])};function x(ae){var ue=ie.useRef(!1),fe=ie.useState(ae),Se=(0,Oe.Z)(fe,2),Ce=Se[0],Ne=Se[1];ie.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function ze(je,Xe){Xe&&ue.current||Ne(je)}return[Ce,ze]}function z(ae){return ae!==void 0}function ee(ae,ue){var fe=ue||{},Se=fe.defaultValue,Ce=fe.value,Ne=fe.onChange,ze=fe.postState,je=x(function(){return z(Ce)?Ce:z(Se)?typeof Se=="function"?Se():Se:typeof ae=="function"?ae():ae}),Xe=(0,Oe.Z)(je,2),et=Xe[0],St=Xe[1],rt=Ce!==void 0?Ce:et,Pt=ze?ze(rt):rt,ot=ne(Ne),ft=x([rt]),Bt=(0,Oe.Z)(ft,2),bt=Bt[0],Tt=Bt[1];E(function(){var _t=bt[0];et!==_t&&ot(et,_t)},[bt]),E(function(){z(Ce)||St(Ce)},[Ce]);var At=ne(function(_t,Zt){St(_t,Zt),Tt([rt],Zt)});return[Pt,At]}var te={};function oe(ae,ue){}function le(ae,ue){}function de(){te={}}function ve(ae,ue,fe){!ue&&!te[fe]&&(ae(!1,fe),te[fe]=!0)}function Pe(ae,ue){ve(oe,ae,ue)}function se(ae,ue){ve(le,ae,ue)}var Ae=Pe,Ke=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ae=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ae)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ae==null?void 0:ae.substr(0,4))},Ge={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(ue){var fe=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||fe>=Ge.F1&&fe<=Ge.F12)return!1;switch(fe){case Ge.ALT:case Ge.CAPS_LOCK:case Ge.CONTEXT_MENU:case Ge.CTRL:case Ge.DOWN:case Ge.END:case Ge.ESC:case Ge.HOME:case Ge.INSERT:case Ge.LEFT:case Ge.MAC_FF_META:case Ge.META:case Ge.NUMLOCK:case Ge.NUM_CENTER:case Ge.PAGE_DOWN:case Ge.PAGE_UP:case Ge.PAUSE:case Ge.PRINT_SCREEN:case Ge.RIGHT:case Ge.SHIFT:case Ge.UP:case Ge.WIN_KEY:case Ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=Ge.ZERO&&ue<=Ge.NINE||ue>=Ge.NUM_ZERO&&ue<=Ge.NUM_MULTIPLY||ue>=Ge.A&&ue<=Ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case Ge.SPACE:case Ge.QUESTION_MARK:case Ge.NUM_PLUS:case Ge.NUM_MINUS:case Ge.NUM_PERIOD:case Ge.NUM_DIVISION:case Ge.SEMICOLON:case Ge.DASH:case Ge.EQUALS:case Ge.COMMA:case Ge.PERIOD:case Ge.SLASH:case Ge.APOSTROPHE:case Ge.SINGLE_QUOTE:case Ge.OPEN_SQUARE_BRACKET:case Ge.BACKSLASH:case Ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pe=Ge,he=re(16357);function Ze(ae,ue,fe){var Se=ie.useRef({});return(!("value"in Se.current)||fe(Se.current.condition,ue))&&(Se.current.value=ae(),Se.current.condition=ue),Se.current.value}function He(ae,ue){typeof ae=="function"?ae(ue):(0,xe.Z)(ae)==="object"&&ae&&"current"in ae&&(ae.current=ue)}function We(){for(var ae=arguments.length,ue=new Array(ae),fe=0;fe<ae;fe++)ue[fe]=arguments[fe];var Se=ue.filter(function(Ce){return Ce});return Se.length<=1?Se[0]:function(Ce){ue.forEach(function(Ne){He(Ne,Ce)})}}function Je(){for(var ae=arguments.length,ue=new Array(ae),fe=0;fe<ae;fe++)ue[fe]=arguments[fe];return Ze(function(){return We.apply(void 0,ue)},ue,function(Se,Ce){return Se.length===Ce.length&&Se.every(function(Ne,ze){return Ne===Ce[ze]})})}function Lt(ae){var ue,fe,Se=isMemo(ae)?ae.type.type:ae.type;return!(typeof Se=="function"&&!((ue=Se.prototype)!==null&&ue!==void 0&&ue.render)||typeof ae=="function"&&!((fe=ae.prototype)!==null&&fe!==void 0&&fe.render))}var vt=function(ue){var fe=ue.className,Se=ue.customizeIcon,Ce=ue.customizeIconProps,Ne=ue.onMouseDown,ze=ue.onClick,je=ue.children,Xe;return typeof Se=="function"?Xe=Se(Ce):Xe=Se,ie.createElement("span",{className:fe,onMouseDown:function(St){St.preventDefault(),Ne&&Ne(St)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ze,"aria-hidden":!0},Xe!==void 0?Xe:ie.createElement("span",{className:me()(fe.split(/\s+/).map(function(et){return"".concat(et,"-icon")}))},je))},It=vt;function Pn(ae,ue,fe,Se,Ce){var Ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ze=arguments.length>6?arguments[6]:void 0,je=arguments.length>7?arguments[7]:void 0,Xe=ie.useMemo(function(){if((0,xe.Z)(Se)==="object")return Se.clearIcon;if(Ce)return Ce},[Se,Ce]),et=ie.useMemo(function(){return!!(!Ne&&Se&&(fe.length||ze)&&!(je==="combobox"&&ze===""))},[Se,Ne,fe.length,ze,je]);return{allowClear:et,clearIcon:ie.createElement(It,{className:"".concat(ae,"-clear"),onMouseDown:ue,customizeIcon:Xe},"\xD7")}}var $e=ie.createContext(null);function Ue(){return ie.useContext($e)}function tt(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ue=ie.useState(!1),fe=(0,Oe.Z)(ue,2),Se=fe[0],Ce=fe[1],Ne=ie.useRef(null),ze=function(){window.clearTimeout(Ne.current)};ie.useEffect(function(){return ze},[]);var je=function(et,St){ze(),Ne.current=window.setTimeout(function(){Ce(et),St&&St()},ae)};return[Se,je,ze]}function Nt(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ue=ie.useRef(null),fe=ie.useRef(null);ie.useEffect(function(){return function(){window.clearTimeout(fe.current)}},[]);function Se(Ce){(Ce||ue.current===null)&&(ue.current=Ce),window.clearTimeout(fe.current),fe.current=window.setTimeout(function(){ue.current=null},ae)}return[function(){return ue.current},Se]}function at(ae,ue,fe,Se){var Ce=ie.useRef(null);Ce.current={open:ue,triggerOpen:fe,customizedTrigger:Se},ie.useEffect(function(){function Ne(ze){var je;if(!((je=Ce.current)!==null&&je!==void 0&&je.customizedTrigger)){var Xe=ze.target;Xe.shadowRoot&&ze.composed&&(Xe=ze.composedPath()[0]||Xe),Ce.current.open&&ae().filter(function(et){return et}).every(function(et){return!et.contains(Xe)&&et!==Xe})&&Ce.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ne),function(){return window.removeEventListener("mousedown",Ne)}},[])}var Et=`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`,ce=`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`,ut="".concat(Et," ").concat(ce).split(/[\s\n]+/),$t="aria-",tn="data-";function lt(ae,ue){return ae.indexOf(ue)===0}function Qe(ae){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe;ue===!1?fe={aria:!0,data:!0,attr:!0}:ue===!0?fe={aria:!0}:fe=(0,Le.Z)({},ue);var Se={};return Object.keys(ae).forEach(function(Ce){(fe.aria&&(Ce==="role"||lt(Ce,$t))||fe.data&<(Ce,tn)||fe.attr&&ut.includes(Ce))&&(Se[Ce]=ae[Ce])}),Se}var Ie=re(48555);function ye(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we=ye()?ie.useLayoutEffect:ie.useEffect,Re=function(ue,fe){var Se=ie.useRef(!0);we(function(){return ue(Se.current)},fe),we(function(){return Se.current=!1,function(){Se.current=!0}},[])},Ye=function(ue,fe){Re(function(Se){if(!Se)return ue()},fe)},ct=Re,yt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ft=void 0;function Rt(ae,ue){var fe=ae.prefixCls,Se=ae.invalidate,Ce=ae.item,Ne=ae.renderItem,ze=ae.responsive,je=ae.responsiveDisabled,Xe=ae.registerSize,et=ae.itemKey,St=ae.className,rt=ae.style,Pt=ae.children,ot=ae.display,ft=ae.order,Bt=ae.component,bt=Bt===void 0?"div":Bt,Tt=(0,Ee.Z)(ae,yt),At=ze&&!ot;function _t(jt){Xe(et,jt)}ie.useEffect(function(){return function(){_t(null)}},[]);var Zt=Ne&&Ce!==Ft?Ne(Ce):Pt,gn;Se||(gn={opacity:At?0:1,height:At?0:Ft,overflowY:At?"hidden":Ft,order:ze?ft:Ft,pointerEvents:At?"none":Ft,position:At?"absolute":Ft});var Dt={};At&&(Dt["aria-hidden"]=!0);var Vt=ie.createElement(bt,(0,_e.Z)({className:me()(!Se&&fe,St),style:(0,Le.Z)((0,Le.Z)({},gn),rt)},Dt,Tt,{ref:ue}),Zt);return ze&&(Vt=ie.createElement(Ie.Z,{onResize:function(pt){var zt=pt.offsetWidth;_t(zt)},disabled:je},Vt)),Vt}var Wt=ie.forwardRef(Rt);Wt.displayName="Item";var Jt=Wt;function Fn(ae){var ue=ie.useRef();ue.current=ae;var fe=ie.useCallback(function(){for(var Se,Ce=arguments.length,Ne=new Array(Ce),ze=0;ze<Ce;ze++)Ne[ze]=arguments[ze];return(Se=ue.current)===null||Se===void 0?void 0:Se.call.apply(Se,[ue].concat(Ne))},[]);return fe}var Gn=re(73935),En=function(ue){return+setTimeout(ue,16)},vn=function(ue){return clearTimeout(ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(En=function(ue){return window.requestAnimationFrame(ue)},vn=function(ue){return window.cancelAnimationFrame(ue)});var _n=0,Tn=new Map;function Qn(ae){Tn.delete(ae)}var qn=function(ue){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_n+=1;var Se=_n;function Ce(Ne){if(Ne===0)Qn(Se),ue();else{var ze=En(function(){Ce(Ne-1)});Tn.set(Se,ze)}}return Ce(fe),Se};qn.cancel=function(ae){var ue=Tn.get(ae);return Qn(ue),vn(ue)};var ma=qn;function Wn(ae){if(typeof MessageChannel=="undefined")ma(ae);else{var ue=new MessageChannel;ue.port1.onmessage=function(){return ae()},ue.port2.postMessage(void 0)}}function ea(){var ae=ie.useRef(null),ue=function(Se){ae.current||(ae.current=[],Wn(function(){(0,Gn.unstable_batchedUpdates)(function(){ae.current.forEach(function(Ce){Ce()}),ae.current=null})})),ae.current.push(Se)};return ue}function ta(ae,ue){var fe=ie.useState(ue),Se=(0,Oe.Z)(fe,2),Ce=Se[0],Ne=Se[1],ze=Fn(function(je){ae(function(){Ne(je)})});return[Ce,ze]}var $n=ie.createContext(null),ia=["component"],Pa=["className"],Ma=["className"],eo=function(ue,fe){var Se=ie.useContext($n);if(!Se){var Ce=ue.component,Ne=Ce===void 0?"div":Ce,ze=(0,Ee.Z)(ue,ia);return ie.createElement(Ne,(0,_e.Z)({},ze,{ref:fe}))}var je=Se.className,Xe=(0,Ee.Z)(Se,Pa),et=ue.className,St=(0,Ee.Z)(ue,Ma);return ie.createElement($n.Provider,{value:null},ie.createElement(Jt,(0,_e.Z)({ref:fe,className:me()(je,et)},Xe,St)))},pa=ie.forwardRef(eo);pa.displayName="RawItem";var io=pa,so=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ia="responsive",Xa="invalidate";function Fa(ae){return"+ ".concat(ae.length," ...")}function to(ae,ue){var fe=ae.prefixCls,Se=fe===void 0?"rc-overflow":fe,Ce=ae.data,Ne=Ce===void 0?[]:Ce,ze=ae.renderItem,je=ae.renderRawItem,Xe=ae.itemKey,et=ae.itemWidth,St=et===void 0?10:et,rt=ae.ssr,Pt=ae.style,ot=ae.className,ft=ae.maxCount,Bt=ae.renderRest,bt=ae.renderRawRest,Tt=ae.suffix,At=ae.component,_t=At===void 0?"div":At,Zt=ae.itemComponent,gn=ae.onVisibleChange,Dt=(0,Ee.Z)(ae,so),Vt=rt==="full",jt=ea(),pt=ta(jt,null),zt=(0,Oe.Z)(pt,2),Ht=zt[0],Cn=zt[1],Sn=Ht||0,dn=ta(jt,new Map),hn=(0,Oe.Z)(dn,2),rn=hn[0],Qt=hn[1],on=ta(jt,0),sn=(0,Oe.Z)(on,2),Vn=sn[0],Ln=sn[1],jn=ta(jt,0),va=(0,Oe.Z)(jn,2),mn=va[0],On=va[1],kn=ta(jt,0),un=(0,Oe.Z)(kn,2),Kt=un[0],nn=un[1],wn=(0,ie.useState)(null),yn=(0,Oe.Z)(wn,2),Dn=yn[0],pn=yn[1],fn=(0,ie.useState)(null),an=(0,Oe.Z)(fn,2),bn=an[0],Nn=an[1],Mn=ie.useMemo(function(){return bn===null&&Vt?Number.MAX_SAFE_INTEGER:bn||0},[bn,Ht]),Kn=(0,ie.useState)(!1),oa=(0,Oe.Z)(Kn,2),Hn=oa[0],ba=oa[1],Ea="".concat(Se,"-item"),$a=Math.max(Vn,mn),ra=ft===Ia,Un=Ne.length&&ra,ya=ft===Xa,ua=Un||typeof ft=="number"&&Ne.length>ft,sa=(0,ie.useMemo)(function(){var ln=Ne;return Un?Ht===null&&Vt?ln=Ne:ln=Ne.slice(0,Math.min(Ne.length,Sn/St)):typeof ft=="number"&&(ln=Ne.slice(0,ft)),ln},[Ne,St,Ht,ft,Un]),Ca=(0,ie.useMemo)(function(){return Un?Ne.slice(Mn+1):Ne.slice(sa.length)},[Ne,sa,Un,Mn]),xa=(0,ie.useCallback)(function(ln,st){var Mt;return typeof Xe=="function"?Xe(ln):(Mt=Xe&&(ln==null?void 0:ln[Xe]))!==null&&Mt!==void 0?Mt:st},[Xe]),ao=(0,ie.useCallback)(ze||function(ln){return ln},[ze]);function oo(ln,st,Mt){bn===ln&&(st===void 0||st===Dn)||(Nn(ln),Mt||(ba(ln<Ne.length-1),gn==null||gn(ln)),st!==void 0&&pn(st))}function Fo(ln,st){Cn(st.clientWidth)}function ho(ln,st){Qt(function(Mt){var kt=new Map(Mt);return st===null?kt.delete(ln):kt.set(ln,st),kt})}function Qa(ln,st){On(st),Ln(mn)}function Bo(ln,st){nn(st)}function Ka(ln){return rn.get(xa(sa[ln],ln))}ct(function(){if(Sn&&typeof $a=="number"&&sa){var ln=Kt,st=sa.length,Mt=st-1;if(!st){oo(0,null);return}for(var kt=0;kt<st;kt+=1){var en=Ka(kt);if(Vt&&(en=en||0),en===void 0){oo(kt-1,void 0,!0);break}if(ln+=en,Mt===0&&ln<=Sn||kt===Mt-1&&ln+Ka(Mt)<=Sn){oo(Mt,null);break}else if(ln+$a>Sn){oo(kt-1,ln-en-Kt+mn);break}}Tt&&Ka(0)+Kt>Sn&&pn(null)}},[Sn,rn,mn,Kt,xa,sa]);var Do=Hn&&!!Ca.length,xo={};Dn!==null&&Un&&(xo={position:"absolute",left:Dn,top:0});var Xn={prefixCls:Ea,responsive:Un,component:Zt,invalidate:ya},zn=je?function(ln,st){var Mt=xa(ln,st);return ie.createElement($n.Provider,{key:Mt,value:(0,Le.Z)((0,Le.Z)({},Xn),{},{order:st,item:ln,itemKey:Mt,registerSize:ho,display:st<=Mn})},je(ln,st))}:function(ln,st){var Mt=xa(ln,st);return ie.createElement(Jt,(0,_e.Z)({},Xn,{order:st,key:Mt,item:ln,renderItem:ao,itemKey:Mt,registerSize:ho,display:st<=Mn}))},la,Ra={order:Do?Mn:Number.MAX_SAFE_INTEGER,className:"".concat(Ea,"-rest"),registerSize:Qa,display:Do};if(bt)bt&&(la=ie.createElement($n.Provider,{value:(0,Le.Z)((0,Le.Z)({},Xn),Ra)},bt(Ca)));else{var La=Bt||Fa;la=ie.createElement(Jt,(0,_e.Z)({},Xn,Ra),typeof La=="function"?La(Ca):La)}var Ja=ie.createElement(_t,(0,_e.Z)({className:me()(!ya&&Se,ot),style:Pt,ref:ue},Dt),sa.map(zn),ua?la:null,Tt&&ie.createElement(Jt,(0,_e.Z)({},Xn,{responsive:ra,responsiveDisabled:!Un,order:Mn,className:"".concat(Ea,"-suffix"),registerSize:Bo,display:!0,style:xo}),Tt));return ra&&(Ja=ie.createElement(Ie.Z,{onResize:Fo,disabled:!Un},Ja)),Ja}var Va=ie.forwardRef(to);Va.displayName="Overflow",Va.Item=io,Va.RESPONSIVE=Ia,Va.INVALIDATE=Xa;var mo=Va,ka=mo,No=function(ue,fe){var Se,Ce,Ne=ue.prefixCls,ze=ue.id,je=ue.inputElement,Xe=ue.disabled,et=ue.tabIndex,St=ue.autoFocus,rt=ue.autoComplete,Pt=ue.editable,ot=ue.activeDescendantId,ft=ue.value,Bt=ue.maxLength,bt=ue.onKeyDown,Tt=ue.onMouseDown,At=ue.onChange,_t=ue.onPaste,Zt=ue.onCompositionStart,gn=ue.onCompositionEnd,Dt=ue.open,Vt=ue.attrs,jt=je||ie.createElement("input",null),pt=jt,zt=pt.ref,Ht=pt.props,Cn=Ht.onKeyDown,Sn=Ht.onChange,dn=Ht.onMouseDown,hn=Ht.onCompositionStart,rn=Ht.onCompositionEnd,Qt=Ht.style;return"maxLength"in jt.props,jt=ie.cloneElement(jt,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},Ht),{},{id:ze,ref:We(fe,zt),disabled:Xe,tabIndex:et,autoComplete:rt||"off",autoFocus:St,className:me()("".concat(Ne,"-selection-search-input"),(Se=jt)===null||Se===void 0||(Ce=Se.props)===null||Ce===void 0?void 0:Ce.className),role:"combobox","aria-label":"Search","aria-expanded":Dt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ze,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ze,"_list"),"aria-activedescendant":Dt?ot:void 0},Vt),{},{value:Pt?ft:"",maxLength:Bt,readOnly:!Pt,unselectable:Pt?null:"on",style:(0,Le.Z)((0,Le.Z)({},Qt),{},{opacity:Pt?null:0}),onKeyDown:function(sn){bt(sn),Cn&&Cn(sn)},onMouseDown:function(sn){Tt(sn),dn&&dn(sn)},onChange:function(sn){At(sn),Sn&&Sn(sn)},onCompositionStart:function(sn){Zt(sn),hn&&hn(sn)},onCompositionEnd:function(sn){gn(sn),rn&&rn(sn)},onPaste:_t})),jt},Na=ie.forwardRef(No);Na.displayName="Input";var Oo=Na;function Ao(ae){return Array.isArray(ae)?ae:ae!==void 0?[ae]:[]}var Fe=typeof window!="undefined"&&window.document&&window.document.documentElement,Be=Fe;function De(ae){return ae!=null}function dt(ae){return!ae&&ae!==0}function wt(ae){return["string","number"].includes((0,xe.Z)(ae))}function Ot(ae){var ue=void 0;return ae&&(wt(ae.title)?ue=ae.title.toString():wt(ae.label)&&(ue=ae.label.toString())),ue}function Zn(ae,ue){Be?ie.useLayoutEffect(ae,ue):ie.useEffect(ae,ue)}function Bn(ae){var ue;return(ue=ae.key)!==null&&ue!==void 0?ue:ae.value}var qt=function(ue){ue.preventDefault(),ue.stopPropagation()},na=function(ue){var fe=ue.id,Se=ue.prefixCls,Ce=ue.values,Ne=ue.open,ze=ue.searchValue,je=ue.autoClearSearchValue,Xe=ue.inputRef,et=ue.placeholder,St=ue.disabled,rt=ue.mode,Pt=ue.showSearch,ot=ue.autoFocus,ft=ue.autoComplete,Bt=ue.activeDescendantId,bt=ue.tabIndex,Tt=ue.removeIcon,At=ue.maxTagCount,_t=ue.maxTagTextLength,Zt=ue.maxTagPlaceholder,gn=Zt===void 0?function(pn){return"+ ".concat(pn.length," ...")}:Zt,Dt=ue.tagRender,Vt=ue.onToggleOpen,jt=ue.onRemove,pt=ue.onInputChange,zt=ue.onInputPaste,Ht=ue.onInputKeyDown,Cn=ue.onInputMouseDown,Sn=ue.onInputCompositionStart,dn=ue.onInputCompositionEnd,hn=ie.useRef(null),rn=(0,ie.useState)(0),Qt=(0,Oe.Z)(rn,2),on=Qt[0],sn=Qt[1],Vn=(0,ie.useState)(!1),Ln=(0,Oe.Z)(Vn,2),jn=Ln[0],va=Ln[1],mn="".concat(Se,"-selection"),On=Ne||rt==="multiple"&&je===!1||rt==="tags"?ze:"",kn=rt==="tags"||rt==="multiple"&&je===!1||Pt&&(Ne||jn);Zn(function(){sn(hn.current.scrollWidth)},[On]);function un(pn,fn,an,bn,Nn){return ie.createElement("span",{className:me()("".concat(mn,"-item"),(0,Te.Z)({},"".concat(mn,"-item-disabled"),an)),title:Ot(pn)},ie.createElement("span",{className:"".concat(mn,"-item-content")},fn),bn&&ie.createElement(It,{className:"".concat(mn,"-item-remove"),onMouseDown:qt,onClick:Nn,customizeIcon:Tt},"\xD7"))}function Kt(pn,fn,an,bn,Nn){var Mn=function(oa){qt(oa),Vt(!Ne)};return ie.createElement("span",{onMouseDown:Mn},Dt({label:fn,value:pn,disabled:an,closable:bn,onClose:Nn}))}function nn(pn){var fn=pn.disabled,an=pn.label,bn=pn.value,Nn=!St&&!fn,Mn=an;if(typeof _t=="number"&&(typeof an=="string"||typeof an=="number")){var Kn=String(Mn);Kn.length>_t&&(Mn="".concat(Kn.slice(0,_t),"..."))}var oa=function(ba){ba&&ba.stopPropagation(),jt(pn)};return typeof Dt=="function"?Kt(bn,Mn,fn,Nn,oa):un(pn,Mn,fn,Nn,oa)}function wn(pn){var fn=typeof gn=="function"?gn(pn):gn;return un({title:fn},fn,!1)}var yn=ie.createElement("div",{className:"".concat(mn,"-search"),style:{width:on},onFocus:function(){va(!0)},onBlur:function(){va(!1)}},ie.createElement(Oo,{ref:Xe,open:Ne,prefixCls:Se,id:fe,inputElement:null,disabled:St,autoFocus:ot,autoComplete:ft,editable:kn,activeDescendantId:Bt,value:On,onKeyDown:Ht,onMouseDown:Cn,onChange:pt,onPaste:zt,onCompositionStart:Sn,onCompositionEnd:dn,tabIndex:bt,attrs:Qe(ue,!0)}),ie.createElement("span",{ref:hn,className:"".concat(mn,"-search-mirror"),"aria-hidden":!0},On,"\xA0")),Dn=ie.createElement(ka,{prefixCls:"".concat(mn,"-overflow"),data:Ce,renderItem:nn,renderRest:wn,suffix:yn,itemKey:Bn,maxCount:At});return ie.createElement(ie.Fragment,null,Dn,!Ce.length&&!On&&ie.createElement("span",{className:"".concat(mn,"-placeholder")},et))},no=na,_a=function(ue){var fe=ue.inputElement,Se=ue.prefixCls,Ce=ue.id,Ne=ue.inputRef,ze=ue.disabled,je=ue.autoFocus,Xe=ue.autoComplete,et=ue.activeDescendantId,St=ue.mode,rt=ue.open,Pt=ue.values,ot=ue.placeholder,ft=ue.tabIndex,Bt=ue.showSearch,bt=ue.searchValue,Tt=ue.activeValue,At=ue.maxLength,_t=ue.onInputKeyDown,Zt=ue.onInputMouseDown,gn=ue.onInputChange,Dt=ue.onInputPaste,Vt=ue.onInputCompositionStart,jt=ue.onInputCompositionEnd,pt=ue.title,zt=ie.useState(!1),Ht=(0,Oe.Z)(zt,2),Cn=Ht[0],Sn=Ht[1],dn=St==="combobox",hn=dn||Bt,rn=Pt[0],Qt=bt||"";dn&&Tt&&!Cn&&(Qt=Tt),ie.useEffect(function(){dn&&Sn(!1)},[dn,Tt]);var on=St!=="combobox"&&!rt&&!Bt?!1:!!Qt,sn=pt===void 0?Ot(rn):pt,Vn=function(){if(rn)return null;var jn=on?{visibility:"hidden"}:void 0;return ie.createElement("span",{className:"".concat(Se,"-selection-placeholder"),style:jn},ot)};return ie.createElement(ie.Fragment,null,ie.createElement("span",{className:"".concat(Se,"-selection-search")},ie.createElement(Oo,{ref:Ne,prefixCls:Se,id:Ce,open:rt,inputElement:fe,disabled:ze,autoFocus:je,autoComplete:Xe,editable:hn,activeDescendantId:et,value:Qt,onKeyDown:_t,onMouseDown:Zt,onChange:function(jn){Sn(!0),gn(jn)},onPaste:Dt,onCompositionStart:Vt,onCompositionEnd:jt,tabIndex:ft,attrs:Qe(ue,!0),maxLength:dn?At:void 0})),!dn&&rn?ie.createElement("span",{className:"".concat(Se,"-selection-item"),title:sn,style:on?{visibility:"hidden"}:void 0},rn.label):null,Vn())},mt=_a;function An(ae){return![pe.ESC,pe.SHIFT,pe.BACKSPACE,pe.TAB,pe.WIN_KEY,pe.ALT,pe.META,pe.WIN_KEY_RIGHT,pe.CTRL,pe.SEMICOLON,pe.EQUALS,pe.CAPS_LOCK,pe.CONTEXT_MENU,pe.F1,pe.F2,pe.F3,pe.F4,pe.F5,pe.F6,pe.F7,pe.F8,pe.F9,pe.F10,pe.F11,pe.F12].includes(ae)}var co=function(ue,fe){var Se=(0,ie.useRef)(null),Ce=(0,ie.useRef)(!1),Ne=ue.prefixCls,ze=ue.open,je=ue.mode,Xe=ue.showSearch,et=ue.tokenWithEnter,St=ue.autoClearSearchValue,rt=ue.onSearch,Pt=ue.onSearchSubmit,ot=ue.onToggleOpen,ft=ue.onInputKeyDown,Bt=ue.domRef;ie.useImperativeHandle(fe,function(){return{focus:function(){Se.current.focus()},blur:function(){Se.current.blur()}}});var bt=Nt(0),Tt=(0,Oe.Z)(bt,2),At=Tt[0],_t=Tt[1],Zt=function(Qt){var on=Qt.which;(on===pe.UP||on===pe.DOWN)&&Qt.preventDefault(),ft&&ft(Qt),on===pe.ENTER&&je==="tags"&&!Ce.current&&!ze&&(Pt==null||Pt(Qt.target.value)),An(on)&&ot(!0)},gn=function(){_t(!0)},Dt=(0,ie.useRef)(null),Vt=function(Qt){rt(Qt,!0,Ce.current)!==!1&&ot(!0)},jt=function(){Ce.current=!0},pt=function(Qt){Ce.current=!1,je!=="combobox"&&Vt(Qt.target.value)},zt=function(Qt){var on=Qt.target.value;if(et&&Dt.current&&/[\r\n]/.test(Dt.current)){var sn=Dt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");on=on.replace(sn,Dt.current)}Dt.current=null,Vt(on)},Ht=function(Qt){var on=Qt.clipboardData,sn=on.getData("text");Dt.current=sn},Cn=function(Qt){var on=Qt.target;if(on!==Se.current){var sn=document.body.style.msTouchAction!==void 0;sn?setTimeout(function(){Se.current.focus()}):Se.current.focus()}},Sn=function(Qt){var on=At();Qt.target!==Se.current&&!on&&je!=="combobox"&&Qt.preventDefault(),(je!=="combobox"&&(!Xe||!on)||!ze)&&(ze&&St!==!1&&rt("",!0,!1),ot())},dn={inputRef:Se,onInputKeyDown:Zt,onInputMouseDown:gn,onInputChange:zt,onInputPaste:Ht,onInputCompositionStart:jt,onInputCompositionEnd:pt},hn=je==="multiple"||je==="tags"?ie.createElement(no,(0,_e.Z)({},ue,dn)):ie.createElement(mt,(0,_e.Z)({},ue,dn));return ie.createElement("div",{ref:Bt,className:"".concat(Ne,"-selector"),onClick:Cn,onMouseDown:Sn},hn)},ja=ie.forwardRef(co);ja.displayName="Selector";var Oa=ja,ca=re(62709),Ko=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Wo=function(ue){var fe=ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fe,adjustY:1},htmlRegion:"scroll"}}},Io=function(ue,fe){var Se=ue.prefixCls,Ce=ue.disabled,Ne=ue.visible,ze=ue.children,je=ue.popupElement,Xe=ue.animation,et=ue.transitionName,St=ue.dropdownStyle,rt=ue.dropdownClassName,Pt=ue.direction,ot=Pt===void 0?"ltr":Pt,ft=ue.placement,Bt=ue.builtinPlacements,bt=ue.dropdownMatchSelectWidth,Tt=ue.dropdownRender,At=ue.dropdownAlign,_t=ue.getPopupContainer,Zt=ue.empty,gn=ue.getTriggerDOMNode,Dt=ue.onPopupVisibleChange,Vt=ue.onPopupMouseEnter,jt=(0,Ee.Z)(ue,Ko),pt="".concat(Se,"-dropdown"),zt=je;Tt&&(zt=Tt(je));var Ht=ie.useMemo(function(){return Bt||Wo(bt)},[Bt,bt]),Cn=Xe?"".concat(pt,"-").concat(Xe):et,Sn=typeof bt=="number",dn=ie.useMemo(function(){return Sn?null:bt===!1?"minWidth":"width"},[bt,Sn]),hn=St;Sn&&(hn=(0,Le.Z)((0,Le.Z)({},hn),{},{width:bt}));var rn=ie.useRef(null);return ie.useImperativeHandle(fe,function(){return{getPopupElement:function(){return rn.current}}}),ie.createElement(ca.Z,(0,_e.Z)({},jt,{showAction:Dt?["click"]:[],hideAction:Dt?["click"]:[],popupPlacement:ft||(ot==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ht,prefixCls:pt,popupTransitionName:Cn,popup:ie.createElement("div",{ref:rn,onMouseEnter:Vt},zt),stretch:dn,popupAlign:At,popupVisible:Ne,getPopupContainer:_t,popupClassName:me()(rt,(0,Te.Z)({},"".concat(pt,"-empty"),Zt)),popupStyle:hn,getTriggerDOMNode:gn,onPopupVisibleChange:Dt}),ze)},Eo=ie.forwardRef(Io);Eo.displayName="SelectTrigger";var Uo=Eo,Ta=re(84506);function yo(ae,ue){var fe=ae.key,Se;return"value"in ae&&(Se=ae.value),fe!=null?fe:Se!==void 0?Se:"rc-index-key-".concat(ue)}function To(ae,ue){var fe=ae||{},Se=fe.label,Ce=fe.value,Ne=fe.options,ze=fe.groupLabel,je=Se||(ue?"children":"label");return{label:je,value:Ce||"value",options:Ne||"options",groupLabel:ze||je}}function nt(ae){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=ue.fieldNames,Se=ue.childrenAsData,Ce=[],Ne=To(fe,!1),ze=Ne.label,je=Ne.value,Xe=Ne.options,et=Ne.groupLabel;function St(rt,Pt){rt.forEach(function(ot){if(Pt||!(Xe in ot)){var ft=ot[je];Ce.push({key:yo(ot,Ce.length),groupOption:Pt,data:ot,label:ot[ze],value:ft})}else{var Bt=ot[et];Bt===void 0&&Se&&(Bt=ot.label),Ce.push({key:yo(ot,Ce.length),group:!0,data:ot,label:Bt}),St(ot[Xe],!0)}})}return St(ae,!1),Ce}function Ya(ae){var ue=(0,Le.Z)({},ae);return"props"in ue||Object.defineProperty(ue,"props",{get:function(){return Ae(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ue}}),ue}function Vo(ae,ue){if(!ue||!ue.length)return null;var fe=!1;function Se(Ne,ze){var je=(0,Ta.Z)(ze),Xe=je[0],et=je.slice(1);if(!Xe)return[Ne];var St=Ne.split(Xe);return fe=fe||St.length>1,St.reduce(function(rt,Pt){return[].concat((0,ge.Z)(rt),(0,ge.Z)(Se(Pt,et)))},[]).filter(function(rt){return rt})}var Ce=Se(ae,ue);return fe?Ce:null}var Go=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],po=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function $o(ae){return ae==="tags"||ae==="multiple"}var gt=ie.forwardRef(function(ae,ue){var fe,Se,Ce=ae.id,Ne=ae.prefixCls,ze=ae.className,je=ae.showSearch,Xe=ae.tagRender,et=ae.direction,St=ae.omitDomProps,rt=ae.displayValues,Pt=ae.onDisplayValuesChange,ot=ae.emptyOptions,ft=ae.notFoundContent,Bt=ft===void 0?"Not Found":ft,bt=ae.onClear,Tt=ae.mode,At=ae.disabled,_t=ae.loading,Zt=ae.getInputElement,gn=ae.getRawInputElement,Dt=ae.open,Vt=ae.defaultOpen,jt=ae.onDropdownVisibleChange,pt=ae.activeValue,zt=ae.onActiveValueChange,Ht=ae.activeDescendantId,Cn=ae.searchValue,Sn=ae.autoClearSearchValue,dn=ae.onSearch,hn=ae.onSearchSplit,rn=ae.tokenSeparators,Qt=ae.allowClear,on=ae.suffixIcon,sn=ae.clearIcon,Vn=ae.OptionList,Ln=ae.animation,jn=ae.transitionName,va=ae.dropdownStyle,mn=ae.dropdownClassName,On=ae.dropdownMatchSelectWidth,kn=ae.dropdownRender,un=ae.dropdownAlign,Kt=ae.placement,nn=ae.builtinPlacements,wn=ae.getPopupContainer,yn=ae.showAction,Dn=yn===void 0?[]:yn,pn=ae.onFocus,fn=ae.onBlur,an=ae.onKeyUp,bn=ae.onKeyDown,Nn=ae.onMouseDown,Mn=(0,Ee.Z)(ae,Go),Kn=$o(Tt),oa=(je!==void 0?je:Kn)||Tt==="combobox",Hn=(0,Le.Z)({},Mn);po.forEach(function(In){delete Hn[In]}),St==null||St.forEach(function(In){delete Hn[In]});var ba=ie.useState(!1),Ea=(0,Oe.Z)(ba,2),$a=Ea[0],ra=Ea[1];ie.useEffect(function(){ra(Ke())},[]);var Un=ie.useRef(null),ya=ie.useRef(null),ua=ie.useRef(null),sa=ie.useRef(null),Ca=ie.useRef(null),xa=tt(),ao=(0,Oe.Z)(xa,3),oo=ao[0],Fo=ao[1],ho=ao[2];ie.useImperativeHandle(ue,function(){var In,xn;return{focus:(In=sa.current)===null||In===void 0?void 0:In.focus,blur:(xn=sa.current)===null||xn===void 0?void 0:xn.blur,scrollTo:function(qa){var wa;return(wa=Ca.current)===null||wa===void 0?void 0:wa.scrollTo(qa)}}});var Qa=ie.useMemo(function(){var In;if(Tt!=="combobox")return Cn;var xn=(In=rt[0])===null||In===void 0?void 0:In.value;return typeof xn=="string"||typeof xn=="number"?String(xn):""},[Cn,Tt,rt]),Bo=Tt==="combobox"&&typeof Zt=="function"&&Zt()||null,Ka=typeof gn=="function"&&gn(),Do=Je(ya,Ka==null||(fe=Ka.props)===null||fe===void 0?void 0:fe.ref),xo=ie.useState(!1),Xn=(0,Oe.Z)(xo,2),zn=Xn[0],la=Xn[1];y(function(){la(!0)},[]);var Ra=ee(!1,{defaultValue:Vt,value:Dt}),La=(0,Oe.Z)(Ra,2),Ja=La[0],ln=La[1],st=zn?Ja:!1,Mt=!Bt&&ot;(At||Mt&&st&&Tt==="combobox")&&(st=!1);var kt=Mt?!1:st,en=ie.useCallback(function(In){var xn=In!==void 0?In:!st;At||(ln(xn),st!==xn&&(jt==null||jt(xn)))},[At,st,ln,jt]),Yn=ie.useMemo(function(){return(rn||[]).some(function(In){return[`
|
|
`,`\r
|
|
`].includes(In)})},[rn]),Jn=function(xn,Ua,qa){var wa=!0,ro=xn;zt==null||zt(null);var Po=qa?null:Vo(xn,rn);return Tt!=="combobox"&&Po&&(ro="",hn==null||hn(Po),en(!1),wa=!1),dn&&Qa!==ro&&dn(ro,{source:Ua?"typing":"effect"}),wa},vo=function(xn){!xn||!xn.trim()||dn(xn,{source:"submit"})};ie.useEffect(function(){!st&&!Kn&&Tt!=="combobox"&&Jn("",!1,!1)},[st]),ie.useEffect(function(){Ja&&At&&ln(!1),At&&Fo(!1)},[At]);var Wa=Nt(),ko=(0,Oe.Z)(Wa,2),za=ko[0],_o=ko[1],Fr=function(xn){var Ua=za(),qa=xn.which;if(qa===pe.ENTER&&(Tt!=="combobox"&&xn.preventDefault(),st||en(!0)),_o(!!Qa),qa===pe.BACKSPACE&&!Ua&&Kn&&!Qa&&rt.length){for(var wa=(0,ge.Z)(rt),ro=null,Po=wa.length-1;Po>=0;Po-=1){var cr=wa[Po];if(!cr.disabled){wa.splice(Po,1),ro=cr;break}}ro&&Pt(wa,{type:"remove",values:[ro]})}for(var Zo=arguments.length,rr=new Array(Zo>1?Zo-1:0),Ho=1;Ho<Zo;Ho++)rr[Ho-1]=arguments[Ho];if(st&&Ca.current){var Jr;(Jr=Ca.current).onKeyDown.apply(Jr,[xn].concat(rr))}bn==null||bn.apply(void 0,[xn].concat(rr))},Ar=function(xn){for(var Ua=arguments.length,qa=new Array(Ua>1?Ua-1:0),wa=1;wa<Ua;wa++)qa[wa-1]=arguments[wa];if(st&&Ca.current){var ro;(ro=Ca.current).onKeyUp.apply(ro,[xn].concat(qa))}an==null||an.apply(void 0,[xn].concat(qa))},Ur=function(xn){var Ua=rt.filter(function(qa){return qa!==xn});Pt(Ua,{type:"remove",values:[xn]})},qo=ie.useRef(!1),Mo=function(){Fo(!0),At||(pn&&!qo.current&&pn.apply(void 0,arguments),Dn.includes("focus")&&en(!0)),qo.current=!0},Hi=function(){Fo(!1,function(){qo.current=!1,en(!1)}),!At&&(Qa&&(Tt==="tags"?dn(Qa,{source:"submit"}):Tt==="multiple"&&dn("",{source:"blur"})),fn&&fn.apply(void 0,arguments))},or=[];ie.useEffect(function(){return function(){or.forEach(function(In){return clearTimeout(In)}),or.splice(0,or.length)}},[]);var Ki=function(xn){var Ua,qa=xn.target,wa=(Ua=ua.current)===null||Ua===void 0?void 0:Ua.getPopupElement();if(wa&&wa.contains(qa)){var ro=setTimeout(function(){var rr=or.indexOf(ro);if(rr!==-1&&or.splice(rr,1),ho(),!$a&&!wa.contains(document.activeElement)){var Ho;(Ho=sa.current)===null||Ho===void 0||Ho.focus()}});or.push(ro)}for(var Po=arguments.length,cr=new Array(Po>1?Po-1:0),Zo=1;Zo<Po;Zo++)cr[Zo-1]=arguments[Zo];Nn==null||Nn.apply(void 0,[xn].concat(cr))},Wi=ie.useState({}),Ui=(0,Oe.Z)(Wi,2),Vi=Ui[1];function ji(){Vi({})}var Vr;Ka&&(Vr=function(xn){en(xn)}),at(function(){var In;return[Un.current,(In=ua.current)===null||In===void 0?void 0:In.getPopupElement()]},kt,en,!!Ka);var Xi=ie.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},ae),{},{notFoundContent:Bt,open:st,triggerOpen:kt,id:Ce,showSearch:oa,multiple:Kn,toggleOpen:en})},[ae,Bt,kt,st,Ce,oa,Kn,en]),jr=!!on||_t,Xr;jr&&(Xr=ie.createElement(It,{className:me()("".concat(Ne,"-arrow"),(0,Te.Z)({},"".concat(Ne,"-arrow-loading"),_t)),customizeIcon:on,customizeIconProps:{loading:_t,searchValue:Qa,open:st,focused:oo,showSearch:oa}}));var Yi=function(){var xn;bt==null||bt(),(xn=sa.current)===null||xn===void 0||xn.focus(),Pt([],{type:"clear",values:rt}),Jn("",!1,!1)},Yr=Pn(Ne,Yi,rt,Qt,sn,At,Qa,Tt),Qi=Yr.allowClear,Ji=Yr.clearIcon,qi=ie.createElement(Vn,{ref:Ca}),eg=me()(Ne,ze,(Se={},(0,Te.Z)(Se,"".concat(Ne,"-focused"),oo),(0,Te.Z)(Se,"".concat(Ne,"-multiple"),Kn),(0,Te.Z)(Se,"".concat(Ne,"-single"),!Kn),(0,Te.Z)(Se,"".concat(Ne,"-allow-clear"),Qt),(0,Te.Z)(Se,"".concat(Ne,"-show-arrow"),jr),(0,Te.Z)(Se,"".concat(Ne,"-disabled"),At),(0,Te.Z)(Se,"".concat(Ne,"-loading"),_t),(0,Te.Z)(Se,"".concat(Ne,"-open"),st),(0,Te.Z)(Se,"".concat(Ne,"-customize-input"),Bo),(0,Te.Z)(Se,"".concat(Ne,"-show-search"),oa),Se)),Qr=ie.createElement(Uo,{ref:ua,disabled:At,prefixCls:Ne,visible:kt,popupElement:qi,animation:Ln,transitionName:jn,dropdownStyle:va,dropdownClassName:mn,direction:et,dropdownMatchSelectWidth:On,dropdownRender:kn,dropdownAlign:un,placement:Kt,builtinPlacements:nn,getPopupContainer:wn,empty:ot,getTriggerDOMNode:function(){return ya.current},onPopupVisibleChange:Vr,onPopupMouseEnter:ji},Ka?ie.cloneElement(Ka,{ref:Do}):ie.createElement(Oa,(0,_e.Z)({},ae,{domRef:ya,prefixCls:Ne,inputElement:Bo,ref:sa,id:Ce,showSearch:oa,autoClearSearchValue:Sn,mode:Tt,activeDescendantId:Ht,tagRender:Xe,values:rt,open:st,onToggleOpen:en,activeValue:pt,searchValue:Qa,onSearch:Jn,onSearchSubmit:vo,onRemove:Ur,tokenWithEnter:Yn}))),Ir;return Ka?Ir=Qr:Ir=ie.createElement("div",(0,_e.Z)({className:eg},Hn,{ref:Un,onMouseDown:Ki,onKeyDown:Fr,onKeyUp:Ar,onFocus:Mo,onBlur:Hi}),oo&&!st&&ie.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(rt.map(function(In){var xn=In.label,Ua=In.value;return["number","string"].includes((0,xe.Z)(xn))?xn:Ua}).join(", "))),Qr,Xr,Qi&&Ji),ie.createElement($e.Provider,{value:Xi},Ir)}),Xt=gt,Yt=function(ae,ue){var fe=ie.useRef({values:new Map,options:new Map}),Se=ie.useMemo(function(){var Ne=fe.current,ze=Ne.values,je=Ne.options,Xe=ae.map(function(rt){if(rt.label===void 0){var Pt;return(0,Le.Z)((0,Le.Z)({},rt),{},{label:(Pt=ze.get(rt.value))===null||Pt===void 0?void 0:Pt.label})}return rt}),et=new Map,St=new Map;return Xe.forEach(function(rt){et.set(rt.value,rt),St.set(rt.value,ue.get(rt.value)||je.get(rt.value))}),fe.current.values=et,fe.current.options=St,Xe},[ae,ue]),Ce=ie.useCallback(function(Ne){return ue.get(Ne)||fe.current.options.get(Ne)},[ue]);return[Se,Ce]};function Ut(ae,ue){return Ao(ae).join("").toUpperCase().includes(ue)}var fa=function(ae,ue,fe,Se,Ce){return ie.useMemo(function(){if(!fe||Se===!1)return ae;var Ne=ue.options,ze=ue.label,je=ue.value,Xe=[],et=typeof Se=="function",St=fe.toUpperCase(),rt=et?Se:function(ot,ft){return Ce?Ut(ft[Ce],St):ft[Ne]?Ut(ft[ze!=="children"?ze:"label"],St):Ut(ft[je],St)},Pt=et?function(ot){return Ya(ot)}:function(ot){return ot};return ae.forEach(function(ot){if(ot[Ne]){var ft=rt(fe,Pt(ot));if(ft)Xe.push(ot);else{var Bt=ot[Ne].filter(function(bt){return rt(fe,Pt(bt))});Bt.length&&Xe.push((0,Le.Z)((0,Le.Z)({},ot),{},(0,Te.Z)({},Ne,Bt)))}return}rt(fe,Pt(ot))&&Xe.push(ot)}),Xe},[ae,Se,Ce,fe,ue])},Sa=0,Ga=a();function Za(){var ae;return Ga?(ae=Sa,Sa+=1):ae="TEST_OR_SSR",ae}function uo(ae){var ue=ie.useState(),fe=(0,Oe.Z)(ue,2),Se=fe[0],Ce=fe[1];return ie.useEffect(function(){Ce("rc_select_".concat(Za()))},[]),ae||Se}function Co(ae){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=[];return ie.Children.forEach(ae,function(Se){Se==null&&!ue.keepEmpty||(Array.isArray(Se)?fe=fe.concat(Co(Se)):(0,he.isFragment)(Se)&&Se.props?fe=fe.concat(Co(Se.props.children,ue)):fe.push(Se))}),fe}var er=["children","value"],Br=["children"];function fr(ae){var ue=ae,fe=ue.key,Se=ue.props,Ce=Se.children,Ne=Se.value,ze=(0,Ee.Z)(Se,er);return(0,Le.Z)({key:fe,value:Ne!==void 0?Ne:fe,children:Ce},ze)}function ir(ae){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Co(ae).map(function(fe,Se){if(!ie.isValidElement(fe)||!fe.type)return null;var Ce=fe,Ne=Ce.type.isSelectOptGroup,ze=Ce.key,je=Ce.props,Xe=je.children,et=(0,Ee.Z)(je,Br);return ue||!Ne?fr(fe):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(ze===null?Se:ze,"__"),label:ze},et),{},{options:ir(Xe)})}).filter(function(fe){return fe})}function Sr(ae,ue,fe,Se,Ce){return ie.useMemo(function(){var Ne=ae,ze=!ae;ze&&(Ne=ir(ue));var je=new Map,Xe=new Map,et=function(Pt,ot,ft){ft&&typeof ft=="string"&&Pt.set(ot[ft],ot)};function St(rt){for(var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=0;ot<rt.length;ot+=1){var ft=rt[ot];!ft[fe.options]||Pt?(je.set(ft[fe.value],ft),et(Xe,ft,fe.label),et(Xe,ft,Se),et(Xe,ft,Ce)):St(ft[fe.options],!0)}}return St(Ne),{options:Ne,valueOptions:je,labelOptions:Xe}},[ae,ue,fe,Se,Ce])}function gr(ae){var ue=ie.useRef();ue.current=ae;var fe=ie.useCallback(function(){return ue.current.apply(ue,arguments)},[]);return fe}var ur=function(){return null};ur.isSelectOptGroup=!0;var Lo=ur,jo=function(){return null};jo.isSelectOption=!0;var tr=jo;function nr(ae,ue){var fe=(0,Le.Z)({},ae);return Array.isArray(ue)&&ue.forEach(function(Se){delete fe[Se]}),fe}var Dr=re(73299),hr=ie.createContext(null),vr=hr;function Pr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var fo=["disabled","title","children","style","className"];function pr(ae){return typeof ae=="string"||typeof ae=="number"}var bo=function(ue,fe){var Se=Ue(),Ce=Se.prefixCls,Ne=Se.id,ze=Se.open,je=Se.multiple,Xe=Se.mode,et=Se.searchValue,St=Se.toggleOpen,rt=Se.notFoundContent,Pt=Se.onPopupScroll,ot=ie.useContext(vr),ft=ot.flattenOptions,Bt=ot.onActiveValue,bt=ot.defaultActiveFirstOption,Tt=ot.onSelect,At=ot.menuItemSelectedIcon,_t=ot.rawValues,Zt=ot.fieldNames,gn=ot.virtual,Dt=ot.direction,Vt=ot.listHeight,jt=ot.listItemHeight,pt="".concat(Ce,"-item"),zt=Ze(function(){return ft},[ze,ft],function(un,Kt){return Kt[0]&&un[1]!==Kt[1]}),Ht=ie.useRef(null),Cn=function(Kt){Kt.preventDefault()},Sn=function(Kt){Ht.current&&Ht.current.scrollTo(typeof Kt=="number"?{index:Kt}:Kt)},dn=function(Kt){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,wn=zt.length,yn=0;yn<wn;yn+=1){var Dn=(Kt+yn*nn+wn)%wn,pn=zt[Dn],fn=pn.group,an=pn.data;if(!fn&&!an.disabled)return Dn}return-1},hn=ie.useState(function(){return dn(0)}),rn=(0,Oe.Z)(hn,2),Qt=rn[0],on=rn[1],sn=function(Kt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;on(Kt);var wn={source:nn?"keyboard":"mouse"},yn=zt[Kt];if(!yn){Bt(null,-1,wn);return}Bt(yn.value,Kt,wn)};(0,ie.useEffect)(function(){sn(bt!==!1?dn(0):-1)},[zt.length,et]);var Vn=ie.useCallback(function(un){return _t.has(un)&&Xe!=="combobox"},[Xe,(0,ge.Z)(_t).toString(),_t.size]);(0,ie.useEffect)(function(){var un=setTimeout(function(){if(!je&&ze&&_t.size===1){var nn=Array.from(_t)[0],wn=zt.findIndex(function(yn){var Dn=yn.data;return Dn.value===nn});wn!==-1&&(sn(wn),Sn(wn))}});if(ze){var Kt;(Kt=Ht.current)===null||Kt===void 0||Kt.scrollTo(void 0)}return function(){return clearTimeout(un)}},[ze,et,ft.length]);var Ln=function(Kt){Kt!==void 0&&Tt(Kt,{selected:!_t.has(Kt)}),je||St(!1)};if(ie.useImperativeHandle(fe,function(){return{onKeyDown:function(Kt){var nn=Kt.which,wn=Kt.ctrlKey;switch(nn){case pe.N:case pe.P:case pe.UP:case pe.DOWN:{var yn=0;if(nn===pe.UP?yn=-1:nn===pe.DOWN?yn=1:Pr()&&wn&&(nn===pe.N?yn=1:nn===pe.P&&(yn=-1)),yn!==0){var Dn=dn(Qt+yn,yn);Sn(Dn),sn(Dn,!0)}break}case pe.ENTER:{var pn=zt[Qt];pn&&!pn.data.disabled?Ln(pn.value):Ln(void 0),ze&&Kt.preventDefault();break}case pe.ESC:St(!1),ze&&Kt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Kt){Sn(Kt)}}}),zt.length===0)return ie.createElement("div",{role:"listbox",id:"".concat(Ne,"_list"),className:"".concat(pt,"-empty"),onMouseDown:Cn},rt);var jn=Object.keys(Zt).map(function(un){return Zt[un]}),va=function(Kt){return Kt.label};function mn(un,Kt){var nn=un.group;return{role:nn?"presentation":"option",id:"".concat(Ne,"_list_").concat(Kt)}}var On=function(Kt){var nn=zt[Kt];if(!nn)return null;var wn=nn.data||{},yn=wn.value,Dn=nn.group,pn=Qe(wn,!0),fn=va(nn);return nn?ie.createElement("div",(0,_e.Z)({"aria-label":typeof fn=="string"&&!Dn?fn:null},pn,{key:Kt},mn(nn,Kt),{"aria-selected":Vn(yn)}),yn):null},kn={role:"listbox",id:"".concat(Ne,"_list")};return ie.createElement(ie.Fragment,null,gn&&ie.createElement("div",(0,_e.Z)({},kn,{style:{height:0,width:0,overflow:"hidden"}}),On(Qt-1),On(Qt),On(Qt+1)),ie.createElement(Dr.Z,{itemKey:"key",ref:Ht,data:zt,height:Vt,itemHeight:jt,fullHeight:!1,onMouseDown:Cn,onScroll:Pt,virtual:gn,direction:Dt,innerProps:gn?null:kn},function(un,Kt){var nn,wn=un.group,yn=un.groupOption,Dn=un.data,pn=un.label,fn=un.value,an=Dn.key;if(wn){var bn,Nn=(bn=Dn.title)!==null&&bn!==void 0?bn:pr(pn)?pn.toString():void 0;return ie.createElement("div",{className:me()(pt,"".concat(pt,"-group")),title:Nn},pn!==void 0?pn:an)}var Mn=Dn.disabled,Kn=Dn.title,oa=Dn.children,Hn=Dn.style,ba=Dn.className,Ea=(0,Ee.Z)(Dn,fo),$a=nr(Ea,jn),ra=Vn(fn),Un="".concat(pt,"-option"),ya=me()(pt,Un,ba,(nn={},(0,Te.Z)(nn,"".concat(Un,"-grouped"),yn),(0,Te.Z)(nn,"".concat(Un,"-active"),Qt===Kt&&!Mn),(0,Te.Z)(nn,"".concat(Un,"-disabled"),Mn),(0,Te.Z)(nn,"".concat(Un,"-selected"),ra),nn)),ua=va(un),sa=!At||typeof At=="function"||ra,Ca=typeof ua=="number"?ua:ua||fn,xa=pr(Ca)?Ca.toString():void 0;return Kn!==void 0&&(xa=Kn),ie.createElement("div",(0,_e.Z)({},Qe($a),gn?{}:mn(un,Kt),{"aria-selected":ra,className:ya,title:xa,onMouseMove:function(){Qt===Kt||Mn||sn(Kt)},onClick:function(){Mn||Ln(fn)},style:Hn}),ie.createElement("div",{className:"".concat(Un,"-content")},Ca),ie.isValidElement(At)||ra,sa&&ie.createElement(It,{className:"".concat(pt,"-option-state"),customizeIcon:At,customizeIconProps:{isSelected:ra}},ra?"\u2713":null))}))},br=ie.forwardRef(bo);br.displayName="OptionList";var xr=br;function Tr(ae){var ue=ae.mode,fe=ae.options,Se=ae.children,Ce=ae.backfill,Ne=ae.allowClear,ze=ae.placeholder,je=ae.getInputElement,Xe=ae.showSearch,et=ae.onSearch,St=ae.defaultOpen,rt=ae.autoFocus,Pt=ae.labelInValue,ot=ae.value,ft=ae.inputValue,Bt=ae.optionLabelProp,bt=isMultiple(ue),Tt=Xe!==void 0?Xe:bt||ue==="combobox",At=fe||convertChildrenToData(Se);if(warning(ue!=="tags"||At.every(function(Dt){return!Dt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ue==="tags"||ue==="combobox"){var _t=At.some(function(Dt){return Dt.options?Dt.options.some(function(Vt){return typeof("value"in Vt?Vt.value:Vt.key)=="number"}):typeof("value"in Dt?Dt.value:Dt.key)=="number"});warning(!_t,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ue!=="combobox"||!Bt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ue==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),warning(ue==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),noteOnce(ue!=="combobox"||!je||!Ne||!ze,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),et&&!Tt&&ue!=="combobox"&&ue!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!St||rt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ot!=null){var Zt=toArray(ot);warning(!Pt||Zt.every(function(Dt){return _typeof(Dt)==="object"&&("key"in Dt||"value"in Dt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!bt||Array.isArray(ot),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var gn=null;toNodeArray(Se).some(function(Dt){if(!React.isValidElement(Dt)||!Dt.type)return!1;var Vt=Dt,jt=Vt.type;if(jt.isSelectOption)return!1;if(jt.isSelectOptGroup){var pt=toNodeArray(Dt.props.children).every(function(zt){return!React.isValidElement(zt)||!Dt.type||zt.type.isSelectOption?!0:(gn=zt.type,!1)});return!pt}return gn=jt,!0}),gn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gn.displayName||gn.name||gn,"`.")),warning(ft===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qr(ae,ue){if(ae){var fe=function Se(Ce){for(var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=0;ze<Ce.length;ze++){var je=Ce[ze];if(je[ue==null?void 0:ue.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ne&&Array.isArray(je[ue==null?void 0:ue.options])&&Se(je[ue==null?void 0:ue.options],!0))break}};fe(ae)}}var Gr=null,$r=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Rr=["inputValue"];function Xo(ae){return!ae||(0,xe.Z)(ae)!=="object"}var lr=ie.forwardRef(function(ae,ue){var fe=ae.id,Se=ae.mode,Ce=ae.prefixCls,Ne=Ce===void 0?"rc-select":Ce,ze=ae.backfill,je=ae.fieldNames,Xe=ae.inputValue,et=ae.searchValue,St=ae.onSearch,rt=ae.autoClearSearchValue,Pt=rt===void 0?!0:rt,ot=ae.onSelect,ft=ae.onDeselect,Bt=ae.dropdownMatchSelectWidth,bt=Bt===void 0?!0:Bt,Tt=ae.filterOption,At=ae.filterSort,_t=ae.optionFilterProp,Zt=ae.optionLabelProp,gn=ae.options,Dt=ae.children,Vt=ae.defaultActiveFirstOption,jt=ae.menuItemSelectedIcon,pt=ae.virtual,zt=ae.direction,Ht=ae.listHeight,Cn=Ht===void 0?200:Ht,Sn=ae.listItemHeight,dn=Sn===void 0?20:Sn,hn=ae.value,rn=ae.defaultValue,Qt=ae.labelInValue,on=ae.onChange,sn=(0,Ee.Z)(ae,$r),Vn=uo(fe),Ln=$o(Se),jn=!!(!gn&&Dt),va=ie.useMemo(function(){return Tt===void 0&&Se==="combobox"?!1:Tt},[Tt,Se]),mn=ie.useMemo(function(){return To(je,jn)},[JSON.stringify(je),jn]),On=ee("",{value:et!==void 0?et:Xe,postState:function(Mt){return Mt||""}}),kn=(0,Oe.Z)(On,2),un=kn[0],Kt=kn[1],nn=Sr(gn,Dt,mn,_t,Zt),wn=nn.valueOptions,yn=nn.labelOptions,Dn=nn.options,pn=ie.useCallback(function(st){var Mt=Ao(st);return Mt.map(function(kt){var en,Yn,Jn,vo,Wa;if(Xo(kt))en=kt;else{var ko;Jn=kt.key,Yn=kt.label,en=(ko=kt.value)!==null&&ko!==void 0?ko:Jn}var za=wn.get(en);if(za){var _o;if(Yn===void 0&&(Yn=za==null?void 0:za[Zt||mn.label]),Jn===void 0&&(Jn=(_o=za==null?void 0:za.key)!==null&&_o!==void 0?_o:en),vo=za==null?void 0:za.disabled,Wa=za==null?void 0:za.title,0)var Fr}return{label:Yn,value:en,key:Jn,disabled:vo,title:Wa}})},[mn,Zt,wn]),fn=ee(rn,{value:hn}),an=(0,Oe.Z)(fn,2),bn=an[0],Nn=an[1],Mn=ie.useMemo(function(){var st,Mt=pn(bn);return Se==="combobox"&&dt((st=Mt[0])===null||st===void 0?void 0:st.value)?[]:Mt},[bn,pn,Se]),Kn=Yt(Mn,wn),oa=(0,Oe.Z)(Kn,2),Hn=oa[0],ba=oa[1],Ea=ie.useMemo(function(){if(!Se&&Hn.length===1){var st=Hn[0];if(st.value===null&&(st.label===null||st.label===void 0))return[]}return Hn.map(function(Mt){var kt;return(0,Le.Z)((0,Le.Z)({},Mt),{},{label:(kt=Mt.label)!==null&&kt!==void 0?kt:Mt.value})})},[Se,Hn]),$a=ie.useMemo(function(){return new Set(Hn.map(function(st){return st.value}))},[Hn]);ie.useEffect(function(){if(Se==="combobox"){var st,Mt=(st=Hn[0])===null||st===void 0?void 0:st.value;Kt(De(Mt)?String(Mt):"")}},[Hn]);var ra=gr(function(st,Mt){var kt,en=Mt!=null?Mt:st;return kt={},(0,Te.Z)(kt,mn.value,st),(0,Te.Z)(kt,mn.label,en),kt}),Un=ie.useMemo(function(){if(Se!=="tags")return Dn;var st=(0,ge.Z)(Dn),Mt=function(en){return wn.has(en)};return(0,ge.Z)(Hn).sort(function(kt,en){return kt.value<en.value?-1:1}).forEach(function(kt){var en=kt.value;Mt(en)||st.push(ra(en,kt.label))}),st},[ra,Dn,wn,Hn,Se]),ya=fa(Un,mn,un,va,_t),ua=ie.useMemo(function(){return Se!=="tags"||!un||ya.some(function(st){return st[_t||"value"]===un})||ya.some(function(st){return st[mn.value]===un})?ya:[ra(un)].concat((0,ge.Z)(ya))},[ra,_t,Se,ya,un,mn]),sa=ie.useMemo(function(){return At?(0,ge.Z)(ua).sort(function(st,Mt){return At(st,Mt)}):ua},[ua,At]),Ca=ie.useMemo(function(){return nt(sa,{fieldNames:mn,childrenAsData:jn})},[sa,mn,jn]),xa=function(Mt){var kt=pn(Mt);if(Nn(kt),on&&(kt.length!==Hn.length||kt.some(function(Jn,vo){var Wa;return((Wa=Hn[vo])===null||Wa===void 0?void 0:Wa.value)!==(Jn==null?void 0:Jn.value)}))){var en=Qt?kt:kt.map(function(Jn){return Jn.value}),Yn=kt.map(function(Jn){return Ya(ba(Jn.value))});on(Ln?en:en[0],Ln?Yn:Yn[0])}},ao=ie.useState(null),oo=(0,Oe.Z)(ao,2),Fo=oo[0],ho=oo[1],Qa=ie.useState(0),Bo=(0,Oe.Z)(Qa,2),Ka=Bo[0],Do=Bo[1],xo=Vt!==void 0?Vt:Se!=="combobox",Xn=ie.useCallback(function(st,Mt){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},en=kt.source,Yn=en===void 0?"keyboard":en;Do(Mt),ze&&Se==="combobox"&&st!==null&&Yn==="keyboard"&&ho(String(st))},[ze,Se]),zn=function(Mt,kt,en){var Yn=function(){var qo,Mo=ba(Mt);return[Qt?{label:Mo==null?void 0:Mo[mn.label],value:Mt,key:(qo=Mo==null?void 0:Mo.key)!==null&&qo!==void 0?qo:Mt}:Mt,Ya(Mo)]};if(kt&&ot){var Jn=Yn(),vo=(0,Oe.Z)(Jn,2),Wa=vo[0],ko=vo[1];ot(Wa,ko)}else if(!kt&&ft&&en!=="clear"){var za=Yn(),_o=(0,Oe.Z)(za,2),Fr=_o[0],Ar=_o[1];ft(Fr,Ar)}},la=gr(function(st,Mt){var kt,en=Ln?Mt.selected:!0;en?kt=Ln?[].concat((0,ge.Z)(Hn),[st]):[st]:kt=Hn.filter(function(Yn){return Yn.value!==st}),xa(kt),zn(st,en),Se==="combobox"?ho(""):(!$o||Pt)&&(Kt(""),ho(""))}),Ra=function(Mt,kt){xa(Mt);var en=kt.type,Yn=kt.values;(en==="remove"||en==="clear")&&Yn.forEach(function(Jn){zn(Jn.value,!1,en)})},La=function(Mt,kt){if(Kt(Mt),ho(null),kt.source==="submit"){var en=(Mt||"").trim();if(en){var Yn=Array.from(new Set([].concat((0,ge.Z)($a),[en])));xa(Yn),zn(en,!0),Kt("")}return}kt.source!=="blur"&&(Se==="combobox"&&xa(Mt),St==null||St(Mt))},Ja=function(Mt){var kt=Mt;Se!=="tags"&&(kt=Mt.map(function(Yn){var Jn=yn.get(Yn);return Jn==null?void 0:Jn.value}).filter(function(Yn){return Yn!==void 0}));var en=Array.from(new Set([].concat((0,ge.Z)($a),(0,ge.Z)(kt))));xa(en),en.forEach(function(Yn){zn(Yn,!0)})},ln=ie.useMemo(function(){var st=pt!==!1&&bt!==!1;return(0,Le.Z)((0,Le.Z)({},nn),{},{flattenOptions:Ca,onActiveValue:Xn,defaultActiveFirstOption:xo,onSelect:la,menuItemSelectedIcon:jt,rawValues:$a,fieldNames:mn,virtual:st,direction:zt,listHeight:Cn,listItemHeight:dn,childrenAsData:jn})},[nn,Ca,Xn,xo,la,jt,$a,mn,pt,bt,Cn,dn,jn]);return ie.createElement(vr.Provider,{value:ln},ie.createElement(Xt,(0,_e.Z)({},sn,{id:Vn,prefixCls:Ne,ref:ue,omitDomProps:Rr,mode:Se,displayValues:Ea,onDisplayValuesChange:Ra,direction:zt,searchValue:un,onSearch:La,autoClearSearchValue:Pt,onSearchSplit:Ja,dropdownMatchSelectWidth:bt,OptionList:xr,emptyOptions:!Ca.length,activeValue:Fo,activeDescendantId:"".concat(Vn,"_list_").concat(Ka)})))}),Er=lr;Er.Option=tr,Er.OptGroup=Lo;var zr=null,Gt=null,ht=re(17341);function Ct(ae){var ue=ie.useRef(!1),fe=ie.useState(ae),Se=(0,Oe.Z)(fe,2),Ce=Se[0],Ne=Se[1];ie.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function ze(je,Xe){Xe&&ue.current||Ne(je)}return[Ce,ze]}function xt(ae){return ae!==void 0}function Rn(ae,ue){var fe=ue||{},Se=fe.defaultValue,Ce=fe.value,Ne=fe.onChange,ze=fe.postState,je=Ct(function(){return xt(Ce)?Ce:xt(Se)?typeof Se=="function"?Se():Se:typeof ae=="function"?ae():ae}),Xe=(0,Oe.Z)(je,2),et=Xe[0],St=Xe[1],rt=Ce!==void 0?Ce:et,Pt=ze?ze(rt):rt,ot=Fn(Ne),ft=Ct([rt]),Bt=(0,Oe.Z)(ft,2),bt=Bt[0],Tt=Bt[1];Ye(function(){var _t=bt[0];et!==_t&&ot(et,_t)},[bt]),Ye(function(){xt(Ce)||St(Ce)},[Ce]);var At=Fn(function(_t,Zt){St(_t,Zt),Tt([rt],Zt)});return[Pt,At]}var da=ie.createContext(null),ha=da,aa="__rc_cascader_search_mark__",Ba=function(ue,fe,Se){var Ce=Se.label;return fe.some(function(Ne){return String(Ne[Ce]).toLowerCase().includes(ue.toLowerCase())})},Da=function(ue,fe,Se,Ce){return fe.map(function(Ne){return Ne[Ce.label]}).join(" / ")},So=function(ae,ue,fe,Se,Ce,Ne){var ze=Ce.filter,je=ze===void 0?Ba:ze,Xe=Ce.render,et=Xe===void 0?Da:Xe,St=Ce.limit,rt=St===void 0?50:St,Pt=Ce.sort;return ie.useMemo(function(){var ot=[];if(!ae)return[];function ft(Bt,bt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Bt.forEach(function(At){if(!(!Pt&&rt!==!1&&rt>0&&ot.length>=rt)){var _t=[].concat((0,ge.Z)(bt),[At]),Zt=At[fe.children],gn=Tt||At.disabled;if((!Zt||Zt.length===0||Ne)&&je(ae,_t,{label:fe.label})){var Dt;ot.push((0,Le.Z)((0,Le.Z)({},At),{},(Dt={disabled:gn},(0,Te.Z)(Dt,fe.label,et(ae,_t,Se,fe)),(0,Te.Z)(Dt,aa,_t),(0,Te.Z)(Dt,fe.children,void 0),Dt)))}Zt&&ft(At[fe.children],_t,gn)}})}return ft(ue,[]),Pt&&ot.sort(function(Bt,bt){return Pt(Bt[aa],bt[aa],ae,fe)}),rt!==!1&&rt>0?ot.slice(0,rt):ot},[ae,ue,fe,Se,et,Ne,je,Pt,rt])},Aa="__RC_CASCADER_SPLIT__",Yo="SHOW_PARENT",Qo="SHOW_CHILD";function Ha(ae){return ae.join(Aa)}function Ro(ae){return ae.map(Ha)}function zo(ae){return ae.split(Aa)}function yr(ae){var ue=ae||{},fe=ue.label,Se=ue.value,Ce=ue.children,Ne=Se||"value";return{label:fe||"label",value:Ne,key:Ne,children:Ce||"children"}}function ga(ae,ue){var fe,Se;return(fe=ae.isLeaf)!==null&&fe!==void 0?fe:!((Se=ae[ue.children])!==null&&Se!==void 0&&Se.length)}function Mr(ae){var ue=ae.parentElement;if(ue){var fe=ae.offsetTop-ue.offsetTop;fe-ue.scrollTop<0?ue.scrollTo({top:fe}):fe+ae.offsetHeight-ue.scrollTop>ue.offsetHeight&&ue.scrollTo({top:fe+ae.offsetHeight-ue.offsetHeight})}}function Cr(ae,ue){return ae.map(function(fe){var Se;return(Se=fe[aa])===null||Se===void 0?void 0:Se.map(function(Ce){return Ce[ue.value]})})}function dr(ae,ue,fe){var Se=new Set(ae),Ce=ue();return ae.filter(function(Ne){var ze=Ce[Ne],je=ze?ze.parent:null,Xe=ze?ze.children:null;return ze&&ze.node.disabled?!0:fe===Qo?!(Xe&&Xe.some(function(et){return et.key&&Se.has(et.key)})):!(je&&!je.node.disabled&&Se.has(je.key))})}function Jo(ae,ue,fe){for(var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ce=ue,Ne=[],ze=function(){var et,St,rt,Pt=ae[je],ot=(et=Ce)===null||et===void 0?void 0:et.findIndex(function(Bt){var bt=Bt[fe.value];return Se?String(bt)===String(Pt):bt===Pt}),ft=ot!==-1?(St=Ce)===null||St===void 0?void 0:St[ot]:null;Ne.push({value:(rt=ft==null?void 0:ft[fe.value])!==null&&rt!==void 0?rt:Pt,index:ot,option:ft}),Ce=ft==null?void 0:ft[fe.children]},je=0;je<ae.length;je+=1)ze();return Ne}var sr=function(ae,ue,fe,Se,Ce){return ie.useMemo(function(){var Ne=Ce||function(ze){var je=Se?ze.slice(-1):ze,Xe=" / ";return je.every(function(et){return["string","number"].includes((0,xe.Z)(et))})?je.join(Xe):je.reduce(function(et,St,rt){var Pt=ie.isValidElement(St)?ie.cloneElement(St,{key:rt}):St;return rt===0?[Pt]:[].concat((0,ge.Z)(et),[Xe,Pt])},[])};return ae.map(function(ze){var je,Xe,et=Jo(ze,ue,fe),St=Ne(et.map(function(Pt){var ot,ft=Pt.option,Bt=Pt.value;return(ot=ft==null?void 0:ft[fe.label])!==null&&ot!==void 0?ot:Bt}),et.map(function(Pt){var ot=Pt.option;return ot})),rt=Ha(ze);return{label:St,value:rt,key:rt,valueCells:ze,disabled:(je=et[et.length-1])===null||je===void 0||(Xe=je.option)===null||Xe===void 0?void 0:Xe.disabled}})},[ae,ue,fe,Ce,Se])},lo=re(1089),Lr=function(ae,ue){var fe=ie.useRef({options:null,info:null}),Se=ie.useCallback(function(){return fe.current.options!==ae&&(fe.current.options=ae,fe.current.info=(0,lo.I8)(ae,{fieldNames:ue,initWrapper:function(Ne){return(0,Le.Z)((0,Le.Z)({},Ne),{},{pathKeyEntities:{}})},processEntity:function(Ne,ze){var je=Ne.nodes.map(function(Xe){return Xe[ue.value]}).join(Aa);ze.pathKeyEntities[je]=Ne,Ne.key=je}})),fe.current.info.pathKeyEntities},[ue,ae]);return Se},wr=function(ae,ue){return ie.useCallback(function(fe){var Se=[],Ce=[];return fe.forEach(function(Ne){var ze=Jo(Ne,ae,ue);ze.every(function(je){return je.option})?Ce.push(Ne):Se.push(Ne)}),[Ce,Se]},[ae,ue])},ar={},ei=[],ti=function(ue){ei.push(ue)};function ni(ae,ue){if(0)var fe}function ai(ae,ue){if(0)var fe}function oi(){ar={}}function kr(ae,ue,fe){!ue&&!ar[fe]&&(ae(!1,fe),ar[fe]=!0)}function Nr(ae,ue){kr(ni,ae,ue)}function ri(ae,ue){kr(ai,ae,ue)}Nr.preMessage=ti,Nr.resetWarned=oi,Nr.noteOnce=ri;var tg=null;function ii(ae){return ie.useMemo(function(){if(!ae)return[!1,{}];var ue={matchInputWidth:!0,limit:50};return ae&&(0,xe.Z)(ae)==="object"&&(ue=(0,Le.Z)((0,Le.Z)({},ue),ae)),ue.limit<=0&&delete ue.limit,[!0,ue]},[ae])}var gi=ie.memo(function(ae){var ue=ae.children;return ue},function(ae,ue){return!ue.open}),ui=gi;function li(ae){var ue,fe=ae.prefixCls,Se=ae.checked,Ce=ae.halfChecked,Ne=ae.disabled,ze=ae.onClick,je=ae.disableCheckbox,Xe=ie.useContext(ha),et=Xe.checkable,St=typeof et!="boolean"?et:null;return ie.createElement("span",{className:me()("".concat(fe),(ue={},(0,Te.Z)(ue,"".concat(fe,"-checked"),Se),(0,Te.Z)(ue,"".concat(fe,"-indeterminate"),!Se&&Ce),(0,Te.Z)(ue,"".concat(fe,"-disabled"),Ne||je),ue)),onClick:ze},St)}var _r="__cascader_fix_label__";function di(ae){var ue=ae.prefixCls,fe=ae.multiple,Se=ae.options,Ce=ae.activeValue,Ne=ae.prevValuePath,ze=ae.onToggleOpen,je=ae.onSelect,Xe=ae.onActive,et=ae.checkedSet,St=ae.halfCheckedSet,rt=ae.loadingKeys,Pt=ae.isSelectable,ot=ae.searchValue,ft="".concat(ue,"-menu"),Bt="".concat(ue,"-menu-item"),bt=ie.useContext(ha),Tt=bt.fieldNames,At=bt.changeOnSelect,_t=bt.expandTrigger,Zt=bt.expandIcon,gn=bt.loadingIcon,Dt=bt.dropdownMenuColumnStyle,Vt=_t==="hover",jt=ie.useMemo(function(){return Se.map(function(pt){var zt,Ht=pt.disabled,Cn=pt.disableCheckbox,Sn=pt[aa],dn=(zt=pt[_r])!==null&&zt!==void 0?zt:pt[Tt.label],hn=pt[Tt.value],rn=ga(pt,Tt),Qt=Sn?Sn.map(function(jn){return jn[Tt.value]}):[].concat((0,ge.Z)(Ne),[hn]),on=Ha(Qt),sn=rt.includes(on),Vn=et.has(on),Ln=St.has(on);return{disabled:Ht,label:dn,value:hn,isLeaf:rn,isLoading:sn,checked:Vn,halfChecked:Ln,option:pt,disableCheckbox:Cn,fullPath:Qt,fullPathKey:on}})},[Se,et,Tt,St,rt,Ne]);return ie.createElement("ul",{className:ft,role:"menu"},jt.map(function(pt){var zt,Ht=pt.disabled,Cn=pt.label,Sn=pt.value,dn=pt.isLeaf,hn=pt.isLoading,rn=pt.checked,Qt=pt.halfChecked,on=pt.option,sn=pt.fullPath,Vn=pt.fullPathKey,Ln=pt.disableCheckbox,jn=function(){if(!(Ht||ot)){var kn=(0,ge.Z)(sn);Vt&&dn&&kn.pop(),Xe(kn)}},va=function(){Pt(on)&&je(sn,dn)},mn;return typeof on.title=="string"?mn=on.title:typeof Cn=="string"&&(mn=Cn),ie.createElement("li",{key:Vn,className:me()(Bt,(zt={},(0,Te.Z)(zt,"".concat(Bt,"-expand"),!dn),(0,Te.Z)(zt,"".concat(Bt,"-active"),Ce===Sn||Ce===Vn),(0,Te.Z)(zt,"".concat(Bt,"-disabled"),Ht),(0,Te.Z)(zt,"".concat(Bt,"-loading"),hn),zt)),style:Dt,role:"menuitemcheckbox",title:mn,"aria-checked":rn,"data-path-key":Vn,onClick:function(){jn(),!Ln&&(!fe||dn)&&va()},onDoubleClick:function(){At&&ze(!1)},onMouseEnter:function(){Vt&&jn()},onMouseDown:function(kn){kn.preventDefault()}},fe&&ie.createElement(li,{prefixCls:"".concat(ue,"-checkbox"),checked:rn,halfChecked:Qt,disabled:Ht||Ln,disableCheckbox:Ln,onClick:function(kn){Ln||(kn.stopPropagation(),va())}}),ie.createElement("div",{className:"".concat(Bt,"-content")},Cn),!hn&&Zt&&!dn&&ie.createElement("div",{className:"".concat(Bt,"-expand-icon")},Zt),hn&&gn&&ie.createElement("div",{className:"".concat(Bt,"-loading-icon")},gn))}))}var si=function(){var ae=Ue(),ue=ae.multiple,fe=ae.open,Se=ie.useContext(ha),Ce=Se.values,Ne=ie.useState([]),ze=(0,Oe.Z)(Ne,2),je=ze[0],Xe=ze[1];return ie.useEffect(function(){if(fe&&!ue){var et=Ce[0];Xe(et||[])}},[fe]),[je,Xe]},cn={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(ue){var fe=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||fe>=cn.F1&&fe<=cn.F12)return!1;switch(fe){case cn.ALT:case cn.CAPS_LOCK:case cn.CONTEXT_MENU:case cn.CTRL:case cn.DOWN:case cn.END:case cn.ESC:case cn.HOME:case cn.INSERT:case cn.LEFT:case cn.MAC_FF_META:case cn.META:case cn.NUMLOCK:case cn.NUM_CENTER:case cn.PAGE_DOWN:case cn.PAGE_UP:case cn.PAUSE:case cn.PRINT_SCREEN:case cn.RIGHT:case cn.SHIFT:case cn.UP:case cn.WIN_KEY:case cn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=cn.ZERO&&ue<=cn.NINE||ue>=cn.NUM_ZERO&&ue<=cn.NUM_MULTIPLY||ue>=cn.A&&ue<=cn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case cn.SPACE:case cn.QUESTION_MARK:case cn.NUM_PLUS:case cn.NUM_MINUS:case cn.NUM_PERIOD:case cn.NUM_DIVISION:case cn.SEMICOLON:case cn.DASH:case cn.EQUALS:case cn.COMMA:case cn.PERIOD:case cn.SLASH:case cn.APOSTROPHE:case cn.SINGLE_QUOTE:case cn.OPEN_SQUARE_BRACKET:case cn.BACKSLASH:case cn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wo=cn,mi=function(ae,ue,fe,Se,Ce,Ne){var ze=Ue(),je=ze.direction,Xe=ze.searchValue,et=ze.toggleOpen,St=ze.open,rt=je==="rtl",Pt=ie.useMemo(function(){for(var Dt=-1,Vt=ue,jt=[],pt=[],zt=Se.length,Ht=Cr(ue,fe),Cn=function(on){var sn=Vt.findIndex(function(Vn,Ln){return(Ht[Ln]?Ha(Ht[Ln]):Vn[fe.value])===Se[on]});if(sn===-1)return"break";Dt=sn,jt.push(Dt),pt.push(Se[on]),Vt=Vt[Dt][fe.children]},Sn=0;Sn<zt&&Vt;Sn+=1){var dn=Cn(Sn);if(dn==="break")break}for(var hn=ue,rn=0;rn<jt.length-1;rn+=1)hn=hn[jt[rn]][fe.children];return[pt,Dt,hn,Ht]},[Se,fe,ue]),ot=(0,Oe.Z)(Pt,4),ft=ot[0],Bt=ot[1],bt=ot[2],Tt=ot[3],At=function(Vt){Ce(Vt)},_t=function(Vt){var jt=bt.length,pt=Bt;pt===-1&&Vt<0&&(pt=jt);for(var zt=0;zt<jt;zt+=1){pt=(pt+Vt+jt)%jt;var Ht=bt[pt];if(Ht&&!Ht.disabled){var Cn=ft.slice(0,-1).concat(Tt[pt]?Ha(Tt[pt]):Ht[fe.value]);At(Cn);return}}},Zt=function(){if(ft.length>1){var Vt=ft.slice(0,-1);At(Vt)}else et(!1)},gn=function(){var Vt,jt=((Vt=bt[Bt])===null||Vt===void 0?void 0:Vt[fe.children])||[],pt=jt.find(function(Ht){return!Ht.disabled});if(pt){var zt=[].concat((0,ge.Z)(ft),[pt[fe.value]]);At(zt)}};ie.useImperativeHandle(ae,function(){return{onKeyDown:function(Vt){var jt=Vt.which;switch(jt){case wo.UP:case wo.DOWN:{var pt=0;jt===wo.UP?pt=-1:jt===wo.DOWN&&(pt=1),pt!==0&&_t(pt);break}case wo.LEFT:{if(Xe)break;rt?gn():Zt();break}case wo.RIGHT:{if(Xe)break;rt?Zt():gn();break}case wo.BACKSPACE:{Xe||Zt();break}case wo.ENTER:{if(ft.length){var zt=bt[Bt],Ht=(zt==null?void 0:zt[aa])||[];Ht.length?Ne(Ht.map(function(Cn){return Cn[fe.value]}),Ht[Ht.length-1]):Ne(ft,bt[Bt])}break}case wo.ESC:et(!1),St&&Vt.stopPropagation()}},onKeyUp:function(){}}})},ci=ie.forwardRef(function(ae,ue){var fe,Se,Ce,Ne,ze=Ue(),je=ze.prefixCls,Xe=ze.multiple,et=ze.searchValue,St=ze.toggleOpen,rt=ze.notFoundContent,Pt=ze.direction,ot=ze.open,ft=ie.useRef(),Bt=Pt==="rtl",bt=ie.useContext(ha),Tt=bt.options,At=bt.values,_t=bt.halfValues,Zt=bt.fieldNames,gn=bt.changeOnSelect,Dt=bt.onSelect,Vt=bt.searchOptions,jt=bt.dropdownPrefixCls,pt=bt.loadData,zt=bt.expandTrigger,Ht=jt||je,Cn=ie.useState([]),Sn=(0,Oe.Z)(Cn,2),dn=Sn[0],hn=Sn[1],rn=function(an){if(!(!pt||et)){var bn=Jo(an,Tt,Zt),Nn=bn.map(function(oa){var Hn=oa.option;return Hn}),Mn=Nn[Nn.length-1];if(Mn&&!ga(Mn,Zt)){var Kn=Ha(an);hn(function(oa){return[].concat((0,ge.Z)(oa),[Kn])}),pt(Nn)}}};ie.useEffect(function(){dn.length&&dn.forEach(function(fn){var an=zo(fn),bn=Jo(an,Tt,Zt,!0).map(function(Mn){var Kn=Mn.option;return Kn}),Nn=bn[bn.length-1];(!Nn||Nn[Zt.children]||ga(Nn,Zt))&&hn(function(Mn){return Mn.filter(function(Kn){return Kn!==fn})})})},[Tt,dn,Zt]);var Qt=ie.useMemo(function(){return new Set(Ro(At))},[At]),on=ie.useMemo(function(){return new Set(Ro(_t))},[_t]),sn=si(),Vn=(0,Oe.Z)(sn,2),Ln=Vn[0],jn=Vn[1],va=function(an){jn(an),rn(an)},mn=function(an){var bn=an.disabled,Nn=ga(an,Zt);return!bn&&(Nn||gn||Xe)},On=function(an,bn){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Dt(an),!Xe&&(bn||gn&&(zt==="hover"||Nn))&&St(!1)},kn=ie.useMemo(function(){return et?Vt:Tt},[et,Vt,Tt]),un=ie.useMemo(function(){for(var fn=[{options:kn}],an=kn,bn=Cr(an,Zt),Nn=function(){var Hn=Ln[Mn],ba=an.find(function($a,ra){return(bn[ra]?Ha(bn[ra]):$a[Zt.value])===Hn}),Ea=ba==null?void 0:ba[Zt.children];if(!(Ea!=null&&Ea.length))return"break";an=Ea,fn.push({options:Ea})},Mn=0;Mn<Ln.length;Mn+=1){var Kn=Nn();if(Kn==="break")break}return fn},[kn,Ln,Zt]),Kt=function(an,bn){mn(bn)&&On(an,ga(bn,Zt),!0)};mi(ue,kn,Zt,Ln,va,Kt),ie.useEffect(function(){for(var fn=0;fn<Ln.length;fn+=1){var an,bn=Ln.slice(0,fn+1),Nn=Ha(bn),Mn=(an=ft.current)===null||an===void 0?void 0:an.querySelector('li[data-path-key="'.concat(Nn.replace(/\\{0,2}"/g,'\\"'),'"]'));Mn&&Mr(Mn)}},[Ln]);var nn=!((fe=un[0])!==null&&fe!==void 0&&(Se=fe.options)!==null&&Se!==void 0&&Se.length),wn=[(Ce={},(0,Te.Z)(Ce,Zt.value,"__EMPTY__"),(0,Te.Z)(Ce,_r,rt),(0,Te.Z)(Ce,"disabled",!0),Ce)],yn=(0,Le.Z)((0,Le.Z)({},ae),{},{multiple:!nn&&Xe,onSelect:On,onActive:va,onToggleOpen:St,checkedSet:Qt,halfCheckedSet:on,loadingKeys:dn,isSelectable:mn}),Dn=nn?[{options:wn}]:un,pn=Dn.map(function(fn,an){var bn=Ln.slice(0,an),Nn=Ln[an];return ie.createElement(di,(0,_e.Z)({key:an},yn,{searchValue:et,prefixCls:Ht,options:fn.options,prevValuePath:bn,activeValue:Nn}))});return ie.createElement(ui,{open:ot},ie.createElement("div",{className:me()("".concat(Ht,"-menus"),(Ne={},(0,Te.Z)(Ne,"".concat(Ht,"-menu-empty"),nn),(0,Te.Z)(Ne,"".concat(Ht,"-rtl"),Bt),Ne)),ref:ft},pn))}),fi=ci;function ng(ae){var ue=ae.onPopupVisibleChange,fe=ae.popupVisible,Se=ae.popupClassName,Ce=ae.popupPlacement;warning(!ue,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(fe===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Se===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Ce===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ag(ae,ue){if(ae){var fe=function Se(Ce){for(var Ne=0;Ne<Ce.length;Ne++){var ze=Ce[Ne];if(ze[ue==null?void 0:ue.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(ze[ue==null?void 0:ue.children])&&Se(ze[ue==null?void 0:ue.children]))return!0}};fe(ae)}}var og=null,Si=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function hi(ae){return Array.isArray(ae)&&Array.isArray(ae[0])}function Zr(ae){return ae?hi(ae)?ae:(ae.length===0?[]:[ae]).map(function(ue){return Array.isArray(ue)?ue:[ue]}):[]}var Or=ie.forwardRef(function(ae,ue){var fe=ae.id,Se=ae.prefixCls,Ce=Se===void 0?"rc-cascader":Se,Ne=ae.fieldNames,ze=ae.defaultValue,je=ae.value,Xe=ae.changeOnSelect,et=ae.onChange,St=ae.displayRender,rt=ae.checkable,Pt=ae.autoClearSearchValue,ot=Pt===void 0?!0:Pt,ft=ae.searchValue,Bt=ae.onSearch,bt=ae.showSearch,Tt=ae.expandTrigger,At=ae.options,_t=ae.dropdownPrefixCls,Zt=ae.loadData,gn=ae.popupVisible,Dt=ae.open,Vt=ae.popupClassName,jt=ae.dropdownClassName,pt=ae.dropdownMenuColumnStyle,zt=ae.popupPlacement,Ht=ae.placement,Cn=ae.onDropdownVisibleChange,Sn=ae.onPopupVisibleChange,dn=ae.expandIcon,hn=dn===void 0?">":dn,rn=ae.loadingIcon,Qt=ae.children,on=ae.dropdownMatchSelectWidth,sn=on===void 0?!1:on,Vn=ae.showCheckedStrategy,Ln=Vn===void 0?Yo:Vn,jn=(0,Ee.Z)(ae,Si),va=uo(fe),mn=!!rt,On=Rn(ze,{value:je,postState:Zr}),kn=(0,Oe.Z)(On,2),un=kn[0],Kt=kn[1],nn=ie.useMemo(function(){return yr(Ne)},[JSON.stringify(Ne)]),wn=ie.useMemo(function(){return At||[]},[At]),yn=Lr(wn,nn),Dn=ie.useCallback(function(Xn){var zn=yn();return Xn.map(function(la){var Ra=zn[la].nodes;return Ra.map(function(La){return La[nn.value]})})},[yn,nn]),pn=Rn("",{value:ft,postState:function(zn){return zn||""}}),fn=(0,Oe.Z)(pn,2),an=fn[0],bn=fn[1],Nn=function(zn,la){bn(zn),la.source!=="blur"&&Bt&&Bt(zn)},Mn=ii(bt),Kn=(0,Oe.Z)(Mn,2),oa=Kn[0],Hn=Kn[1],ba=So(an,wn,nn,_t||Ce,Hn,Xe),Ea=wr(wn,nn),$a=ie.useMemo(function(){var Xn=Ea(un),zn=(0,Oe.Z)(Xn,2),la=zn[0],Ra=zn[1];if(!mn||!un.length)return[la,[],Ra];var La=Ro(la),Ja=yn(),ln=(0,ht.S)(La,!0,Ja),st=ln.checkedKeys,Mt=ln.halfCheckedKeys;return[Dn(st),Dn(Mt),Ra]},[mn,un,yn,Dn,Ea]),ra=(0,Oe.Z)($a,3),Un=ra[0],ya=ra[1],ua=ra[2],sa=ie.useMemo(function(){var Xn=Ro(Un),zn=dr(Xn,yn,Ln);return[].concat((0,ge.Z)(ua),(0,ge.Z)(Dn(zn)))},[Un,yn,Dn,ua,Ln]),Ca=sr(sa,wn,nn,mn,St),xa=Fn(function(Xn){if(Kt(Xn),et){var zn=Zr(Xn),la=zn.map(function(Ja){return Jo(Ja,wn,nn).map(function(ln){return ln.option})}),Ra=mn?zn:zn[0],La=mn?la:la[0];et(Ra,La)}}),ao=Fn(function(Xn){if((!mn||ot)&&bn(""),!mn)xa(Xn);else{var zn=Ha(Xn),la=Ro(Un),Ra=Ro(ya),La=la.includes(zn),Ja=ua.some(function(Wa){return Ha(Wa)===zn}),ln=Un,st=ua;if(Ja&&!La)st=ua.filter(function(Wa){return Ha(Wa)!==zn});else{var Mt=La?la.filter(function(Wa){return Wa!==zn}):[].concat((0,ge.Z)(la),[zn]),kt=yn(),en;if(La){var Yn=(0,ht.S)(Mt,{checked:!1,halfCheckedKeys:Ra},kt);en=Yn.checkedKeys}else{var Jn=(0,ht.S)(Mt,!0,kt);en=Jn.checkedKeys}var vo=dr(en,yn,Ln);ln=Dn(vo)}xa([].concat((0,ge.Z)(st),(0,ge.Z)(ln)))}}),oo=function(zn,la){if(la.type==="clear"){xa([]);return}var Ra=la.values[0],La=Ra.valueCells;ao(La)},Fo=Dt!==void 0?Dt:gn,ho=jt||Vt,Qa=Ht||zt,Bo=function(zn){Cn==null||Cn(zn),Sn==null||Sn(zn)},Ka=ie.useMemo(function(){return{options:wn,fieldNames:nn,values:Un,halfValues:ya,changeOnSelect:Xe,onSelect:ao,checkable:rt,searchOptions:ba,dropdownPrefixCls:_t,loadData:Zt,expandTrigger:Tt,expandIcon:hn,loadingIcon:rn,dropdownMenuColumnStyle:pt}},[wn,nn,Un,ya,Xe,ao,rt,ba,_t,Zt,Tt,hn,rn,pt]),Do=!(an?ba:wn).length,xo=an&&Hn.matchInputWidth||Do?{}:{minWidth:"auto"};return ie.createElement(ha.Provider,{value:Ka},ie.createElement(Xt,(0,_e.Z)({},jn,{ref:ue,id:va,prefixCls:Ce,autoClearSearchValue:ot,dropdownMatchSelectWidth:sn,dropdownStyle:xo,displayValues:Ca,onDisplayValuesChange:oo,mode:mn?"multiple":void 0,searchValue:an,onSearch:Nn,showSearch:oa,OptionList:fi,emptyOptions:Do,open:Fo,dropdownClassName:ho,placement:Qa,onDropdownVisibleChange:Bo,getRawInputElement:function(){return Qt}})))});Or.SHOW_PARENT=Yo,Or.SHOW_CHILD=Qo;var vi=Or,Hr=vi,Pi=re(10366),Kr=re(33603),pi=re(8745),Wr=re(9708),bi=re(53124),Ei=re(88258),yi=re(98866),Ci=re(98675),Li=re(65223),wi=re(87244),Fi=re(13458),Bi=re(78642),Di=re(46163),xi=re(4173),Mi=re(63185),Ni=re(14747),Oi=re(80110),Ai=re(67968);const Ii=ae=>{const{prefixCls:ue,componentCls:fe,antCls:Se}=ae,Ce=`${fe}-menu-item`,Ne=`
|
|
&${Ce}-expand ${Ce}-expand-icon,
|
|
${Ce}-loading-icon
|
|
`;return[{[fe]:{width:ae.controlWidth}},{[`${fe}-dropdown`]:[(0,Mi.C2)(`${ue}-checkbox`,ae),{[`&${Se}-select-dropdown`]:{padding:0}},{[fe]:{"&-checkbox":{top:0,marginInlineEnd:ae.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${fe}-menu-empty`]:{[`${fe}-menu`]:{width:"100%",height:"auto",[Ce]:{color:ae.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:ae.controlItemWidth,height:ae.dropdownHeight,margin:0,padding:ae.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ae.lineWidth}px ${ae.lineType} ${ae.colorSplit}`},"&-item":Object.assign(Object.assign({},Ni.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:ae.optionPadding,lineHeight:ae.lineHeight,cursor:"pointer",transition:`all ${ae.motionDurationMid}`,borderRadius:ae.borderRadiusSM,"&:hover":{background:ae.controlItemBgHover},"&-disabled":{color:ae.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Ne]:{color:ae.colorTextDisabled}},[`&-active:not(${Ce}-disabled)`]:{"&, &:hover":{fontWeight:ae.optionSelectedFontWeight,backgroundColor:ae.optionSelectedBg}},"&-content":{flex:"auto"},[Ne]:{marginInlineStart:ae.paddingXXS,color:ae.colorTextDescription,fontSize:ae.fontSizeIcon},"&-keyword":{color:ae.colorHighlight}})}}}]},{[`${fe}-dropdown-rtl`]:{direction:"rtl"}},(0,Oi.c)(ae)]};var Ti=(0,Ai.Z)("Cascader",ae=>[Ii(ae)],ae=>{const ue=Math.round((ae.controlHeight-ae.fontSize*ae.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:ae.controlItemBgActive,optionSelectedFontWeight:ae.fontWeightStrong,optionPadding:`${ue}px ${ae.paddingSM}px`,menuPadding:ae.paddingXXS}}),Gi=function(ae,ue){var fe={};for(var Se in ae)Object.prototype.hasOwnProperty.call(ae,Se)&&ue.indexOf(Se)<0&&(fe[Se]=ae[Se]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Se=Object.getOwnPropertySymbols(ae);Ce<Se.length;Ce++)ue.indexOf(Se[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ae,Se[Ce])&&(fe[Se[Ce]]=ae[Se[Ce]]);return fe};const{SHOW_CHILD:$i,SHOW_PARENT:Ri}=Hr;function zi(ae,ue,fe){const Se=ae.toLowerCase().split(ue).reduce((ze,je,Xe)=>Xe===0?[je]:[].concat((0,ge.Z)(ze),[ue,je]),[]),Ce=[];let Ne=0;return Se.forEach((ze,je)=>{const Xe=Ne+ze.length;let et=ae.slice(Ne,Xe);Ne=Xe,je%2===1&&(et=ie.createElement("span",{className:`${fe}-menu-item-keyword`,key:`separator-${je}`},et)),Ce.push(et)}),Ce}const ki=(ae,ue,fe,Se)=>{const Ce=[],Ne=ae.toLowerCase();return ue.forEach((ze,je)=>{je!==0&&Ce.push(" / ");let Xe=ze[Se.label];const et=typeof Xe;(et==="string"||et==="number")&&(Xe=zi(String(Xe),Ne,fe)),Ce.push(Xe)}),Ce},mr=ie.forwardRef((ae,ue)=>{const{prefixCls:fe,size:Se,disabled:Ce,className:Ne,rootClassName:ze,multiple:je,bordered:Xe=!0,transitionName:et,choiceTransitionName:St="",popupClassName:rt,dropdownClassName:Pt,expandIcon:ot,placement:ft,showSearch:Bt,allowClear:bt=!0,notFoundContent:Tt,direction:At,getPopupContainer:_t,status:Zt,showArrow:gn,builtinPlacements:Dt,style:Vt}=ae,jt=Gi(ae,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),pt=(0,Pi.Z)(jt,["suffixIcon"]),{getPopupContainer:zt,getPrefixCls:Ht,renderEmpty:Cn,direction:Sn,popupOverflow:dn,cascader:hn}=ie.useContext(bi.E_),rn=At||Sn,Qt=rn==="rtl",{status:on,hasFeedback:sn,isFormItemInput:Vn,feedbackIcon:Ln}=ie.useContext(Li.aM),jn=(0,Wr.F)(on,Zt),va=Tt||(Cn==null?void 0:Cn("Cascader"))||ie.createElement(Ei.Z,{componentName:"Cascader"}),mn=Ht(),On=Ht("select",fe),kn=Ht("cascader",fe),[un,Kt]=(0,wi.Z)(On),[nn]=Ti(kn),{compactSize:wn,compactItemClassnames:yn}=(0,xi.ri)(On,At),Dn=me()(rt||Pt,`${kn}-dropdown`,{[`${kn}-dropdown-rtl`]:rn==="rtl"},ze,Kt),pn=ie.useMemo(()=>{if(!Bt)return Bt;let ua={render:ki};return typeof Bt=="object"&&(ua=Object.assign(Object.assign({},ua),Bt)),ua},[Bt]),fn=(0,Ci.Z)(ua=>{var sa;return(sa=Se!=null?Se:wn)!==null&&sa!==void 0?sa:ua}),an=ie.useContext(yi.Z),bn=Ce!=null?Ce:an;let Nn=ot;ot||(Nn=Qt?ie.createElement(Ve.Z,null):ie.createElement(be.Z,null));const Mn=ie.createElement("span",{className:`${On}-menu-item-loading-icon`},ie.createElement(qe.Z,{spin:!0})),Kn=ie.useMemo(()=>je?ie.createElement("span",{className:`${kn}-checkbox-inner`}):!1,[je]),oa=(0,Bi.Z)(ae.suffixIcon,gn),{suffixIcon:Hn,removeIcon:ba,clearIcon:Ea}=(0,Di.Z)(Object.assign(Object.assign({},ae),{hasFeedback:sn,feedbackIcon:Ln,showSuffixIcon:oa,multiple:je,prefixCls:On,componentName:"Cascader"})),$a=ie.useMemo(()=>ft!==void 0?ft:Qt?"bottomRight":"bottomLeft",[ft,Qt]),ra=(0,Fi.Z)(Dt,dn),Un=bt===!0?{clearIcon:Ea}:bt,ya=ie.createElement(Hr,Object.assign({prefixCls:On,className:me()(!fe&&kn,{[`${On}-lg`]:fn==="large",[`${On}-sm`]:fn==="small",[`${On}-rtl`]:Qt,[`${On}-borderless`]:!Xe,[`${On}-in-form-item`]:Vn},(0,Wr.Z)(On,jn,sn),yn,hn==null?void 0:hn.className,Ne,ze,Kt),disabled:bn,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),Vt)},pt,{builtinPlacements:ra,direction:rn,placement:$a,notFoundContent:va,allowClear:Un,showSearch:pn,expandIcon:Nn,suffixIcon:Hn,removeIcon:ba,loadingIcon:Mn,checkable:Kn,dropdownClassName:Dn,dropdownPrefixCls:fe||kn,choiceTransitionName:(0,Kr.m)(mn,"",St),transitionName:(0,Kr.m)(mn,"slide-up",et),getPopupContainer:_t||zt,ref:ue}));return nn(un(ya))}),_i=(0,pi.Z)(mr);mr.SHOW_PARENT=Ri,mr.SHOW_CHILD=$i,mr._InternalPanelDoNotUseOrYouWillBeFired=_i;var Zi=mr},63185:function(ke,it,re){"use strict";re.d(it,{C2:function(){return be}});var ge=re(14747),ie=re(45503),Ve=re(67968);const qe=Me=>{const{checkboxCls:me}=Me,_e=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(Me)),{display:"inline-flex",flexWrap:"wrap",columnGap:Me.marginXS,[`> ${Me.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ge.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ge.Wf)(Me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Me.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,ge.oN)(Me))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Me.checkboxSize,height:Me.checkboxSize,direction:"ltr",backgroundColor:Me.colorBgContainer,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,borderCollapse:"separate",transition:`all ${Me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Me.checkboxSize/14*5,height:Me.checkboxSize/14*8,border:`${Me.lineWidthBold}px solid ${Me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Me.motionDurationFast} ${Me.motionEaseInBack}, opacity ${Me.motionDurationFast}`}},"& + span":{paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS}})},{[`
|
|
${_e}:not(${_e}-disabled),
|
|
${me}:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{borderColor:Me.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:Me.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:Me.colorPrimary,borderColor:Me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Me.motionDurationMid} ${Me.motionEaseOutBack} ${Me.motionDurationFast}`}}},[`
|
|
${_e}-checked:not(${_e}-disabled),
|
|
${me}-checked:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:Me.colorBgContainer,borderColor:Me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Me.fontSizeLG/2,height:Me.fontSizeLG/2,backgroundColor:Me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,"&:after":{borderColor:Me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Me.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:Me.colorTextDisabled}}}]};function be(Me,me){const _e=(0,ie.TS)(me,{checkboxCls:`.${Me}`,checkboxSize:me.controlInteractiveSize});return[qe(_e)]}it.ZP=(0,Ve.Z)("Checkbox",(Me,me)=>{let{prefixCls:_e}=me;return[be(_e,Me)]})},96074:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Le}});var ge=re(94184),ie=re.n(ge),Ve=re(67294),qe=re(53124),be=re(14747),Me=re(67968),me=re(45503);const _e=xe=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:b,lineWidth:y,textPaddingInline:E,orientationMargin:x,verticalMarginInline:z}=xe;return{[ne]:Object.assign(Object.assign({},(0,be.Wf)(xe)),{borderBlockStart:`${y}px solid ${b}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${y}px solid ${b}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${xe.dividerHorizontalWithTextGutterMargin}px 0`,color:xe.colorTextHeading,fontWeight:500,fontSize:xe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${b}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:E},"&-dashed":{background:"none",borderColor:b,borderStyle:"dashed",borderWidth:`${y}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var Oe=(0,Me.Z)("Divider",xe=>{const ne=(0,me.TS)(xe,{dividerHorizontalWithTextGutterMargin:xe.margin,dividerHorizontalGutterMargin:xe.marginLG,sizePaddingEdgeHorizontal:0});return[_e(ne)]},xe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xe.marginXS})),Ee=function(xe,ne){var a={};for(var b in xe)Object.prototype.hasOwnProperty.call(xe,b)&&ne.indexOf(b)<0&&(a[b]=xe[b]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,b=Object.getOwnPropertySymbols(xe);y<b.length;y++)ne.indexOf(b[y])<0&&Object.prototype.propertyIsEnumerable.call(xe,b[y])&&(a[b[y]]=xe[b[y]]);return a},Le=xe=>{const{getPrefixCls:ne,direction:a,divider:b}=Ve.useContext(qe.E_),{prefixCls:y,type:E="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:le,plain:de,style:ve}=xe,Pe=Ee(xe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),se=ne("divider",y),[Ae,Ke]=Oe(se),Ge=x.length>0?`-${x}`:x,pe=!!oe,he=x==="left"&&z!=null,Ze=x==="right"&&z!=null,He=ie()(se,b==null?void 0:b.className,Ke,`${se}-${E}`,{[`${se}-with-text`]:pe,[`${se}-with-text${Ge}`]:pe,[`${se}-dashed`]:!!le,[`${se}-plain`]:!!de,[`${se}-rtl`]:a==="rtl",[`${se}-no-default-orientation-margin-left`]:he,[`${se}-no-default-orientation-margin-right`]:Ze},ee,te),We=Ve.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Je=Object.assign(Object.assign({},he&&{marginLeft:We}),Ze&&{marginRight:We});return Ae(Ve.createElement("div",Object.assign({className:He,style:Object.assign(Object.assign({},b==null?void 0:b.style),ve)},Pe,{role:"separator"}),oe&&E!=="vertical"&&Ve.createElement("span",{className:`${se}-inner-text`,style:Je},oe)))}},35874:function(ke,it,re){"use strict";re.d(it,{Z:function(){return ye}});var ge=re(67294),ie=re(91034),Ve=re(94184),qe=re.n(Ve),be=re(87462),Me=re(4942),me=re(97685),_e=re(45987),Oe=re(62709),Ee=re(71002),Te=re(12060);function Le(we,Re,Ye){var ct=React.useRef({});return(!("value"in ct.current)||Ye(ct.current.condition,Re))&&(ct.current.value=we(),ct.current.condition=Re),ct.current.value}function xe(we,Re){typeof we=="function"?we(Re):(0,Ee.Z)(we)==="object"&&we&&"current"in we&&(we.current=Re)}function ne(){for(var we=arguments.length,Re=new Array(we),Ye=0;Ye<we;Ye++)Re[Ye]=arguments[Ye];var ct=Re.filter(function(yt){return yt});return ct.length<=1?ct[0]:function(yt){Re.forEach(function(Ft){xe(Ft,yt)})}}function a(){for(var we=arguments.length,Re=new Array(we),Ye=0;Ye<we;Ye++)Re[Ye]=arguments[Ye];return useMemo(function(){return ne.apply(void 0,Re)},Re,function(ct,yt){return ct.length===yt.length&&ct.every(function(Ft,Rt){return Ft===yt[Rt]})})}function b(we){var Re,Ye,ct=(0,Te.isMemo)(we)?we.type.type:we.type;return!(typeof ct=="function"&&!((Re=ct.prototype)!==null&&Re!==void 0&&Re.render)||typeof we=="function"&&!((Ye=we.prototype)!==null&&Ye!==void 0&&Ye.render))}var y={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(Re){var Ye=Re.keyCode;if(Re.altKey&&!Re.ctrlKey||Re.metaKey||Ye>=y.F1&&Ye<=y.F12)return!1;switch(Ye){case y.ALT:case y.CAPS_LOCK:case y.CONTEXT_MENU:case y.CTRL:case y.DOWN:case y.END:case y.ESC:case y.HOME:case y.INSERT:case y.LEFT:case y.MAC_FF_META:case y.META:case y.NUMLOCK:case y.NUM_CENTER:case y.PAGE_DOWN:case y.PAGE_UP:case y.PAUSE:case y.PRINT_SCREEN:case y.RIGHT:case y.SHIFT:case y.UP:case y.WIN_KEY:case y.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Re){if(Re>=y.ZERO&&Re<=y.NINE||Re>=y.NUM_ZERO&&Re<=y.NUM_MULTIPLY||Re>=y.A&&Re<=y.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Re===0)return!0;switch(Re){case y.SPACE:case y.QUESTION_MARK:case y.NUM_PLUS:case y.NUM_MINUS:case y.NUM_PERIOD:case y.NUM_DIVISION:case y.SEMICOLON:case y.DASH:case y.EQUALS:case y.COMMA:case y.PERIOD:case y.SLASH:case y.APOSTROPHE:case y.SINGLE_QUOTE:case y.OPEN_SQUARE_BRACKET:case y.BACKSLASH:case y.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},E=y,x=function(Re){return+setTimeout(Re,16)},z=function(Re){return clearTimeout(Re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Re){return window.requestAnimationFrame(Re)},z=function(Re){return window.cancelAnimationFrame(Re)});var ee=0,te=new Map;function oe(we){te.delete(we)}var le=function(Re){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var ct=ee;function yt(Ft){if(Ft===0)oe(ct),Re();else{var Rt=x(function(){yt(Ft-1)});te.set(ct,Rt)}}return yt(Ye),ct};le.cancel=function(we){var Re=te.get(we);return oe(Re),z(Re)};var de=le,ve=E.ESC,Pe=E.TAB;function se(we){var Re=we.visible,Ye=we.triggerRef,ct=we.onVisibleChange,yt=we.autoFocus,Ft=we.overlayRef,Rt=ge.useRef(!1),Wt=function(){if(Re){var En,vn;(En=Ye.current)===null||En===void 0||(vn=En.focus)===null||vn===void 0||vn.call(En),ct==null||ct(!1)}},Jt=function(){var En;return(En=Ft.current)!==null&&En!==void 0&&En.focus?(Ft.current.focus(),Rt.current=!0,!0):!1},Fn=function(En){switch(En.keyCode){case ve:Wt();break;case Pe:{var vn=!1;Rt.current||(vn=Jt()),vn?En.preventDefault():Wt();break}}};ge.useEffect(function(){return Re?(window.addEventListener("keydown",Fn),yt&&de(Jt,3),function(){window.removeEventListener("keydown",Fn),Rt.current=!1}):function(){Rt.current=!1}},[Re])}var Ae=(0,ge.forwardRef)(function(we,Re){var Ye=we.overlay,ct=we.arrow,yt=we.prefixCls,Ft=(0,ge.useMemo)(function(){var Wt;return typeof Ye=="function"?Wt=Ye():Wt=Ye,Wt},[Ye]),Rt=ne(Re,Ft==null?void 0:Ft.ref);return ge.createElement(ge.Fragment,null,ct&&ge.createElement("div",{className:"".concat(yt,"-arrow")}),ge.cloneElement(Ft,{ref:b(Ft)?Rt:void 0}))}),Ke=Ae,Ge={adjustX:1,adjustY:1},pe=[0,0],he={topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:pe},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:pe},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:pe}},Ze=he,He=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function We(we,Re){var Ye,ct=we.arrow,yt=ct===void 0?!1:ct,Ft=we.prefixCls,Rt=Ft===void 0?"rc-dropdown":Ft,Wt=we.transitionName,Jt=we.animation,Fn=we.align,Gn=we.placement,En=Gn===void 0?"bottomLeft":Gn,vn=we.placements,_n=vn===void 0?Ze:vn,Tn=we.getPopupContainer,Qn=we.showAction,qn=we.hideAction,ma=we.overlayClassName,Wn=we.overlayStyle,ea=we.visible,ta=we.trigger,$n=ta===void 0?["hover"]:ta,ia=we.autoFocus,Pa=we.overlay,Ma=we.children,eo=we.onVisibleChange,pa=(0,_e.Z)(we,He),io=ge.useState(),so=(0,me.Z)(io,2),Ia=so[0],Xa=so[1],Fa="visible"in we?ea:Ia,to=ge.useRef(null),Va=ge.useRef(null),mo=ge.useRef(null);ge.useImperativeHandle(Re,function(){return to.current});var ka=function(wt){Xa(wt),eo==null||eo(wt)};se({visible:Fa,triggerRef:mo,onVisibleChange:ka,autoFocus:ia,overlayRef:Va});var No=function(wt){var Ot=we.onOverlayClick;Xa(!1),Ot&&Ot(wt)},Na=function(){return ge.createElement(Ke,{ref:Va,overlay:Pa,prefixCls:Rt,arrow:yt})},Oo=function(){return typeof Pa=="function"?Na:Na()},Ao=function(){var wt=we.minOverlayWidthMatchTrigger,Ot=we.alignPoint;return"minOverlayWidthMatchTrigger"in we?wt:!Ot},Fe=function(){var wt=we.openClassName;return wt!==void 0?wt:"".concat(Rt,"-open")},Be=ge.cloneElement(Ma,{className:qe()((Ye=Ma.props)===null||Ye===void 0?void 0:Ye.className,Fa&&Fe()),ref:b(Ma)?ne(mo,Ma.ref):void 0}),De=qn;return!De&&$n.indexOf("contextMenu")!==-1&&(De=["click"]),ge.createElement(Oe.Z,(0,be.Z)({builtinPlacements:_n},pa,{prefixCls:Rt,ref:to,popupClassName:qe()(ma,(0,Me.Z)({},"".concat(Rt,"-show-arrow"),yt)),popupStyle:Wn,action:$n,showAction:Qn,hideAction:De,popupPlacement:En,popupAlign:Fn,popupTransitionName:Wt,popupAnimation:Jt,popupVisible:Fa,stretch:Ao()?"minWidth":"",popup:Oo(),onPopupVisibleChange:ka,onPopupClick:No,getPopupContainer:Tn}),Be)}var Je=ge.forwardRef(We),Lt=Je,vt=re(60276),It=re(5663),Pn=re(10366),$e=re(80636),Ue=re(8745),tt=re(96159),Nt=re(53124),at=re(68508),Et=re(76529),ce=re(46605),ut=re(66748);const $t=null,tn=we=>{const{menu:Re,arrow:Ye,prefixCls:ct,children:yt,trigger:Ft,disabled:Rt,dropdownRender:Wt,getPopupContainer:Jt,overlayClassName:Fn,rootClassName:Gn,open:En,onOpenChange:vn,visible:_n,onVisibleChange:Tn,mouseEnterDelay:Qn=.15,mouseLeaveDelay:qn=.1,autoAdjustOverflow:ma=!0,placement:Wn="",overlay:ea,transitionName:ta}=we,{getPopupContainer:$n,getPrefixCls:ia,direction:Pa}=ge.useContext(Nt.E_),Ma=ge.useMemo(()=>{const Be=ia();return ta!==void 0?ta:Wn.includes("top")?`${Be}-slide-down`:`${Be}-slide-up`},[ia,Wn,ta]),eo=ge.useMemo(()=>Wn?Wn.includes("Center")?Wn.slice(0,Wn.indexOf("Center")):Wn:Pa==="rtl"?"bottomRight":"bottomLeft",[Wn,Pa]),pa=ia("dropdown",ct),[io,so]=(0,ut.Z)(pa),[,Ia]=(0,ce.Z)(),Xa=ge.Children.only(yt),Fa=(0,tt.Tm)(Xa,{className:qe()(`${pa}-trigger`,{[`${pa}-rtl`]:Pa==="rtl"},Xa.props.className),disabled:Rt}),to=Rt?[]:Ft;let Va;to&&to.includes("contextMenu")&&(Va=!0);const[mo,ka]=(0,It.Z)(!1,{value:En!=null?En:_n}),No=(0,vt.useEvent)(Be=>{vn==null||vn(Be),Tn==null||Tn(Be),ka(Be)}),Na=qe()(Fn,Gn,so,{[`${pa}-rtl`]:Pa==="rtl"}),Oo=(0,$e.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ma,offset:Ia.marginXXS,arrowWidth:Ye?Ia.sizePopupArrow:0,borderRadius:Ia.borderRadius}),Ao=ge.useCallback(()=>{ka(!1)},[]),Fe=()=>{let Be;return Re!=null&&Re.items?Be=ge.createElement(at.default,Object.assign({},Re)):typeof ea=="function"?Be=ea():Be=ea,Wt&&(Be=Wt(Be)),Be=ge.Children.only(typeof Be=="string"?ge.createElement("span",null,Be):Be),ge.createElement(Et.J,{prefixCls:`${pa}-menu`,expandIcon:ge.createElement("span",{className:`${pa}-menu-submenu-arrow`},ge.createElement(ie.Z,{className:`${pa}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ao,validator:De=>{let{mode:dt}=De}},Be)};return io(ge.createElement(Lt,Object.assign({alignPoint:Va},(0,Pn.Z)(we,["rootClassName"]),{mouseEnterDelay:Qn,mouseLeaveDelay:qn,visible:mo,builtinPlacements:Oo,arrow:!!Ye,overlayClassName:Na,prefixCls:pa,getPopupContainer:Jt||$n,transitionName:Ma,trigger:to,overlay:Fe,placement:eo,onVisibleChange:No}),Fa))};function lt(we){return Object.assign(Object.assign({},we),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Qe=(0,Ue.Z)(tn,"dropdown",we=>we,lt),Ie=we=>ge.createElement(Qe,Object.assign({},we),ge.createElement("span",null));tn._InternalPanelDoNotUseOrYouWillBeFired=Ie;var ye=tn},66748:function(ke,it,re){"use strict";re.d(it,{Z:function(){return Te}});var ge=re(14747),ie=re(67771),Ve=re(33297),qe=re(50438),be=re(97414),Me=re(67968),me=re(45503),Oe=Le=>{const{componentCls:xe,menuCls:ne,colorError:a,colorTextLightSolid:b}=Le,y=`${ne}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${ne} ${y}`]:{[`&${y}-danger:not(${y}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const Ee=Le=>{const{componentCls:xe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:b,sizePopupArrow:y,antCls:E,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:le,fontSizeIcon:de,controlPaddingHorizontal:ve,colorBgElevated:Pe}=Le;return[{[xe]:Object.assign(Object.assign({},(0,ge.Wf)(Le)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-b+y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${x}-down, & > ${E}-btn-icon > ${x}-down`]:{fontSize:de}},[`${xe}-wrap`]:{position:"relative",[`${E}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${xe}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${xe}-placement-bottomLeft,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
&${E}-slide-down-enter${E}-slide-down-enter-active${xe}-placement-bottom,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${xe}-placement-bottom,
|
|
&${E}-slide-down-enter${E}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
&${E}-slide-down-appear${E}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:ie.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${xe}-placement-topLeft,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${xe}-placement-topLeft,
|
|
&${E}-slide-up-enter${E}-slide-up-enter-active${xe}-placement-top,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${xe}-placement-top,
|
|
&${E}-slide-up-enter${E}-slide-up-enter-active${xe}-placement-topRight,
|
|
&${E}-slide-up-appear${E}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:ie.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
&${E}-slide-down-leave${E}-slide-down-leave-active${xe}-placement-bottom,
|
|
&${E}-slide-down-leave${E}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:ie.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${xe}-placement-topLeft,
|
|
&${E}-slide-up-leave${E}-slide-up-leave-active${xe}-placement-top,
|
|
&${E}-slide-up-leave${E}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:ie.ly}})},(0,be.ZP)(Le,{colorBg:Pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${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}},[`${xe}, ${xe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:Pe,backgroundClip:"padding-box",borderRadius:Le.borderRadiusLG,outline:"none",boxShadow:Le.boxShadowSecondary},(0,ge.Qy)(Le)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${ve}px`,color:Le.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Le.marginXS,fontSize:Le.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 ${ve}px`,color:Le.colorText,fontWeight:"normal",fontSize:te,lineHeight:Le.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Le.borderRadiusSM,"&:hover, &-active":{backgroundColor:Le.controlItemBgHover}},(0,ge.Qy)(Le)),{"&-selected":{color:Le.colorPrimary,backgroundColor:Le.controlItemBgActive,"&:hover, &-active":{backgroundColor:Le.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Le.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Le.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Le.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Le.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Le.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:ve+Le.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Pe,cursor:"not-allowed"}},[`${ne}-submenu-selected ${xe}-menu-submenu-title`]:{color:Le.colorPrimary}})}},[(0,ie.oN)(Le,"slide-up"),(0,ie.oN)(Le,"slide-down"),(0,Ve.Fm)(Le,"move-up"),(0,Ve.Fm)(Le,"move-down"),(0,qe._y)(Le,"zoom-big")]]};var Te=(0,Me.Z)("Dropdown",(Le,xe)=>{let{rootPrefixCls:ne}=xe;const{marginXXS:a,sizePopupArrow:b,controlHeight:y,fontSize:E,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Le,oe=(y-E*x)/2,{dropdownArrowOffset:le}=(0,be.fS)({contentRadius:te}),de=(0,me.TS)(Le,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:b/2+a,dropdownArrowOffset:le,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ee(de),Oe(de)]},Le=>({zIndexPopup:Le.zIndexPopupBase+50}))},71322:function(ke,it,re){"use strict";re.d(it,{D:function(){return x},Z:function(){return te}});var ge=re(87462),ie=re(67294),Ve={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"},qe=Ve,be=re(74643),Me=function(le,de){return ie.createElement(be.Z,(0,ge.Z)({},le,{ref:de,icon:qe}))},me=ie.forwardRef(Me),_e=re(22751),Oe=re(91034),Ee=re(94184),Te=re.n(Ee),Le=re(10366),ne=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),b=re(84321),y=function(oe,le){var de={};for(var ve in oe)Object.prototype.hasOwnProperty.call(oe,ve)&&le.indexOf(ve)<0&&(de[ve]=oe[ve]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(oe);Pe<ve.length;Pe++)le.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(oe,ve[Pe])&&(de[ve[Pe]]=oe[ve[Pe]]);return de};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ie.createContext({}),z=(()=>{let oe=0;return function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${le}${oe}`}})();var te=ie.forwardRef((oe,le)=>{const{prefixCls:de,className:ve,trigger:Pe,children:se,defaultCollapsed:Ae=!1,theme:Ke="dark",style:Ge={},collapsible:pe=!1,reverseArrow:he=!1,width:Ze=200,collapsedWidth:He=80,zeroWidthTriggerStyle:We,breakpoint:Je,onCollapse:Lt,onBreakpoint:vt}=oe,It=y(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Pn}=(0,ie.useContext)(b.Gs),[$e,Ue]=(0,ie.useState)("collapsed"in oe?oe.collapsed:Ae),[tt,Nt]=(0,ie.useState)(!1);(0,ie.useEffect)(()=>{"collapsed"in oe&&Ue(oe.collapsed)},[oe.collapsed]);const at=(lt,Qe)=>{"collapsed"in oe||Ue(lt),Lt==null||Lt(lt,Qe)},Et=(0,ie.useRef)();Et.current=lt=>{Nt(lt.matches),vt==null||vt(lt.matches),$e!==lt.matches&&at(lt.matches,"responsive")},(0,ie.useEffect)(()=>{function lt(Ie){return Et.current(Ie)}let Qe;if(typeof window!="undefined"){const{matchMedia:Ie}=window;if(Ie&&Je&&Je in E){Qe=Ie(`(max-width: ${E[Je]})`);try{Qe.addEventListener("change",lt)}catch(ye){Qe.addListener(lt)}lt(Qe)}}return()=>{try{Qe==null||Qe.removeEventListener("change",lt)}catch(Ie){Qe==null||Qe.removeListener(lt)}}},[Je]),(0,ie.useEffect)(()=>{const lt=z("ant-sider-");return Pn.addSider(lt),()=>Pn.removeSider(lt)},[]);const ce=()=>{at(!$e,"clickTrigger")},{getPrefixCls:ut}=(0,ie.useContext)(a.E_),$t=()=>{const lt=ut("layout-sider",de),Qe=(0,Le.Z)(It,["collapsed"]),Ie=$e?He:Ze,ye=ne(Ie)?`${Ie}px`:String(Ie),we=parseFloat(String(He||0))===0?ie.createElement("span",{onClick:ce,className:Te()(`${lt}-zero-width-trigger`,`${lt}-zero-width-trigger-${he?"right":"left"}`),style:We},Pe||ie.createElement(me,null)):null,ct={expanded:he?ie.createElement(Oe.Z,null):ie.createElement(_e.Z,null),collapsed:he?ie.createElement(_e.Z,null):ie.createElement(Oe.Z,null)}[$e?"collapsed":"expanded"],yt=Pe!==null?we||ie.createElement("div",{className:`${lt}-trigger`,onClick:ce,style:{width:ye}},Pe||ct):null,Ft=Object.assign(Object.assign({},Ge),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),Rt=Te()(lt,`${lt}-${Ke}`,{[`${lt}-collapsed`]:!!$e,[`${lt}-has-trigger`]:pe&&Pe!==null&&!we,[`${lt}-below`]:!!tt,[`${lt}-zero-width`]:parseFloat(ye)===0},ve);return ie.createElement("aside",Object.assign({className:Rt},Qe,{style:Ft,ref:le}),ie.createElement("div",{className:`${lt}-children`},se),pe||tt&&we?yt:null)},tn=ie.useMemo(()=>({siderCollapsed:$e}),[$e]);return ie.createElement(x.Provider,{value:tn},$t())})},97183:function(ke,it,re){"use strict";var ge=re(84321),ie=re(71322);const Ve=ge.ZP;Ve.Header=ge.h4,Ve.Footer=ge.$_,Ve.Content=ge.VY,Ve.Sider=ie.Z,it.default=Ve},84321:function(ke,it,re){"use strict";re.d(it,{VY:function(){return z},$_:function(){return x},h4:function(){return E},Gs:function(){return xe},ZP:function(){return ee}});var ge=re(74902),ie=re(94184),Ve=re.n(ie),qe=re(10366),be=re(67294),Me=re(53124),me=re(67968),Oe=te=>{const{componentCls:oe,bodyBg:le,lightSiderBg:de,lightTriggerBg:ve,lightTriggerColor:Pe}=te;return{[`${oe}-sider-light`]:{background:de,[`${oe}-sider-trigger`]:{color:Pe,background:ve},[`${oe}-sider-zero-width-trigger`]:{color:Pe,background:ve,border:`1px solid ${le}`,borderInlineStart:0}}}};const Ee=te=>{const{antCls:oe,componentCls:le,colorText:de,triggerColor:ve,footerBg:Pe,triggerBg:se,headerHeight:Ae,headerPadding:Ke,headerColor:Ge,footerPadding:pe,triggerHeight:he,zeroTriggerHeight:Ze,zeroTriggerWidth:He,motionDurationMid:We,motionDurationSlow:Je,fontSize:Lt,borderRadius:vt,bodyBg:It,headerBg:Pn,siderBg:$e}=te;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:It,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${We}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:he},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:he,color:ve,lineHeight:`${he}px`,textAlign:"center",background:se,cursor:"pointer",transition:`all ${We}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-He,zIndex:1,width:He,height:Ze,color:ve,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:vt,borderEndEndRadius:vt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:vt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:vt}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:Ae,padding:Ke,color:Ge,lineHeight:`${Ae}px`,background:Pn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:pe,color:de,fontSize:Lt,background:Pe},[`${le}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,me.Z)("Layout",te=>[Ee(te)],te=>{const{colorBgLayout:oe,controlHeight:le,controlHeightLG:de,colorText:ve,controlHeightSM:Pe,marginXXS:se,colorTextLightSolid:Ae,colorBgContainer:Ke}=te,Ge=de*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${Ge}px`,headerColor:ve,footerPadding:`${Pe}px ${Ge}px`,footerBg:oe,siderBg:"#001529",triggerHeight:de+se*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Le=function(te,oe){var le={};for(var de in te)Object.prototype.hasOwnProperty.call(te,de)&&oe.indexOf(de)<0&&(le[de]=te[de]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,de=Object.getOwnPropertySymbols(te);ve<de.length;ve++)oe.indexOf(de[ve])<0&&Object.prototype.propertyIsEnumerable.call(te,de[ve])&&(le[de[ve]]=te[de[ve]]);return le};const xe=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:le,displayName:de}=te;return ve=>be.forwardRef((se,Ae)=>be.createElement(ve,Object.assign({ref:Ae,suffixCls:oe,tagName:le},se)))}const a=be.forwardRef((te,oe)=>{const{prefixCls:le,suffixCls:de,className:ve,tagName:Pe}=te,se=Le(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=be.useContext(Me.E_),Ke=Ae("layout",le),[Ge,pe]=Te(Ke),he=de?`${Ke}-${de}`:Ke;return Ge(be.createElement(Pe,Object.assign({className:Ve()(le||he,ve,pe),ref:oe},se)))}),b=be.forwardRef((te,oe)=>{const{direction:le}=be.useContext(Me.E_),[de,ve]=be.useState([]),{prefixCls:Pe,className:se,rootClassName:Ae,children:Ke,hasSider:Ge,tagName:pe,style:he}=te,Ze=Le(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,qe.Z)(Ze,["suffixCls"]),{getPrefixCls:We,layout:Je}=be.useContext(Me.E_),Lt=We("layout",Pe),[vt,It]=Te(Lt),Pn=Ve()(Lt,{[`${Lt}-has-sider`]:typeof Ge=="boolean"?Ge:de.length>0,[`${Lt}-rtl`]:le==="rtl"},Je==null?void 0:Je.className,se,Ae,It),$e=be.useMemo(()=>({siderHook:{addSider:Ue=>{ve(tt=>[].concat((0,ge.Z)(tt),[Ue]))},removeSider:Ue=>{ve(tt=>tt.filter(Nt=>Nt!==Ue))}}}),[]);return vt(be.createElement(xe.Provider,{value:$e},be.createElement(pe,Object.assign({ref:oe,className:Pn,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),he)},He),Ke)))}),y=ne({tagName:"div",displayName:"Layout"})(b),E=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=y},76529:function(ke,it,re){"use strict";re.d(it,{J:function(){return Me}});var ge=re(67294),ie=re(4173),Ve=re(60276),qe=function(me,_e){var Oe={};for(var Ee in me)Object.prototype.hasOwnProperty.call(me,Ee)&&_e.indexOf(Ee)<0&&(Oe[Ee]=me[Ee]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ee=Object.getOwnPropertySymbols(me);Te<Ee.length;Te++)_e.indexOf(Ee[Te])<0&&Object.prototype.propertyIsEnumerable.call(me,Ee[Te])&&(Oe[Ee[Te]]=me[Ee[Te]]);return Oe};const be=ge.createContext(null),Me=ge.forwardRef((me,_e)=>{const{children:Oe}=me,Ee=qe(me,["children"]),Te=ge.useContext(be),Le=ge.useMemo(()=>Object.assign(Object.assign({},Te),Ee),[Te,Ee.prefixCls,Ee.mode,Ee.selectable]);return ge.createElement(be.Provider,{value:Le},ge.createElement(ie.BR,null,(0,Ve.supportNodeRef)(Oe)?ge.cloneElement(Oe,{ref:_e}):Oe))});it.Z=be},68508:function(ke,it,re){"use strict";re.d(it,{default:function(){return lt}});var ge=re(78595),ie=re(67294),Ve=re(71322),qe=re(94184),be=re.n(qe),Me=re(53124),me=function(Qe,Ie){var ye={};for(var we in Qe)Object.prototype.hasOwnProperty.call(Qe,we)&&Ie.indexOf(we)<0&&(ye[we]=Qe[we]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,we=Object.getOwnPropertySymbols(Qe);Re<we.length;Re++)Ie.indexOf(we[Re])<0&&Object.prototype.propertyIsEnumerable.call(Qe,we[Re])&&(ye[we[Re]]=Qe[we[Re]]);return ye},Oe=Qe=>{const{prefixCls:Ie,className:ye,dashed:we}=Qe,Re=me(Qe,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=ie.useContext(Me.E_),ct=Ye("menu",Ie),yt=be()({[`${ct}-item-divider-dashed`]:!!we},ye);return ie.createElement(ge.iz,Object.assign({className:yt},Re))},Ee=re(37419),Te=re(10366),Le=re(83062),xe=re(96159),a=(0,ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),y=Qe=>{var Ie;const{className:ye,children:we,icon:Re,title:Ye,danger:ct}=Qe,{prefixCls:yt,firstLevel:Ft,direction:Rt,disableMenuItemTitleTooltip:Wt,inlineCollapsed:Jt}=ie.useContext(a),Fn=Qn=>{const qn=ie.createElement("span",{className:`${yt}-title-content`},we);return(!Re||(0,xe.l$)(we)&&we.type==="span")&&we&&Qn&&Ft&&typeof we=="string"?ie.createElement("div",{className:`${yt}-inline-collapsed-noicon`},we.charAt(0)):qn},{siderCollapsed:Gn}=ie.useContext(Ve.D);let En=Ye;typeof Ye=="undefined"?En=Ft?we:"":Ye===!1&&(En="");const vn={title:En};!Gn&&!Jt&&(vn.title=null,vn.open=!1);const _n=(0,Ee.Z)(we).length;let Tn=ie.createElement(ge.ck,Object.assign({},(0,Te.Z)(Qe,["title","icon","danger"]),{className:be()({[`${yt}-item-danger`]:ct,[`${yt}-item-only-child`]:(Re?_n+1:_n)===1},ye),title:typeof Ye=="string"?Ye:void 0}),(0,xe.Tm)(Re,{className:be()((0,xe.l$)(Re)?(Ie=Re.props)===null||Ie===void 0?void 0:Ie.className:"",`${yt}-item-icon`)}),Fn(Jt));return Wt||(Tn=ie.createElement(Le.Z,Object.assign({},vn,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),Tn)),Tn},x=Qe=>{var Ie;const{popupClassName:ye,icon:we,title:Re,theme:Ye}=Qe,ct=ie.useContext(a),{prefixCls:yt,inlineCollapsed:Ft,theme:Rt}=ct,Wt=(0,ge.Xl)();let Jt;if(!we)Jt=Ft&&!Wt.length&&Re&&typeof Re=="string"?ie.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Re.charAt(0)):ie.createElement("span",{className:`${yt}-title-content`},Re);else{const Gn=(0,xe.l$)(Re)&&Re.type==="span";Jt=ie.createElement(ie.Fragment,null,(0,xe.Tm)(we,{className:be()((0,xe.l$)(we)?(Ie=we.props)===null||Ie===void 0?void 0:Ie.className:"",`${yt}-item-icon`)}),Gn?Re:ie.createElement("span",{className:`${yt}-title-content`},Re))}const Fn=ie.useMemo(()=>Object.assign(Object.assign({},ct),{firstLevel:!1}),[ct]);return ie.createElement(a.Provider,{value:Fn},ie.createElement(ge.Wd,Object.assign({},(0,Te.Z)(Qe,["icon"]),{title:Jt,popupClassName:be()(yt,ye,`${yt}-${Ye||Rt}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),le=function(Qe,Ie){var ye={};for(var we in Qe)Object.prototype.hasOwnProperty.call(Qe,we)&&Ie.indexOf(we)<0&&(ye[we]=Qe[we]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,we=Object.getOwnPropertySymbols(Qe);Re<we.length;Re++)Ie.indexOf(we[Re])<0&&Object.prototype.propertyIsEnumerable.call(Qe,we[Re])&&(ye[we[Re]]=Qe[we[Re]]);return ye};function de(Qe){return(Qe||[]).map((Ie,ye)=>{if(Ie&&typeof Ie=="object"){const we=Ie,{label:Re,children:Ye,key:ct,type:yt}=we,Ft=le(we,["label","children","key","type"]),Rt=ct!=null?ct:`tmp-${ye}`;return Ye||yt==="group"?yt==="group"?ie.createElement(ge.BW,Object.assign({key:Rt},Ft,{title:Re}),de(Ye)):ie.createElement(x,Object.assign({key:Rt},Ft,{title:Re}),de(Ye)):yt==="divider"?ie.createElement(Oe,Object.assign({key:Rt},Ft)):ie.createElement(y,Object.assign({key:Rt},Ft),Re)}return null}).filter(Ie=>Ie)}function ve(Qe){return ie.useMemo(()=>Qe&&de(Qe),[Qe])}var Pe=re(84780),se=re(14747),Ae=re(33507),Ke=re(67771),Ge=re(50438),pe=re(67968),he=re(45503),He=Qe=>{const{componentCls:Ie,motionDurationSlow:ye,horizontalLineHeight:we,colorSplit:Re,lineWidth:Ye,lineType:ct,itemPaddingInline:yt}=Qe;return{[`${Ie}-horizontal`]:{lineHeight:we,border:0,borderBottom:`${Ye}px ${ct} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ie}-item, ${Ie}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${Ie}-item:hover,
|
|
> ${Ie}-item-active,
|
|
> ${Ie}-submenu ${Ie}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ie}-item, ${Ie}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Ie}-submenu-arrow`]:{display:"none"}}}},Je=Qe=>{let{componentCls:Ie,menuArrowOffset:ye}=Qe;return{[`${Ie}-rtl`]:{direction:"rtl"},[`${Ie}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ie}-rtl${Ie}-vertical,
|
|
${Ie}-submenu-rtl ${Ie}-vertical`]:{[`${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const Lt=Qe=>Object.assign({},(0,se.oN)(Qe));var It=(Qe,Ie)=>{const{componentCls:ye,itemColor:we,itemSelectedColor:Re,groupTitleColor:Ye,itemBg:ct,subMenuItemBg:yt,itemSelectedBg:Ft,activeBarHeight:Rt,activeBarWidth:Wt,activeBarBorderWidth:Jt,motionDurationSlow:Fn,motionEaseInOut:Gn,motionEaseOut:En,itemPaddingInline:vn,motionDurationMid:_n,itemHoverColor:Tn,lineType:Qn,colorSplit:qn,itemDisabledColor:ma,dangerItemColor:Wn,dangerItemHoverColor:ea,dangerItemSelectedColor:ta,dangerItemActiveBg:$n,dangerItemSelectedBg:ia,itemHoverBg:Pa,itemActiveBg:Ma,menuSubMenuBg:eo,horizontalItemSelectedColor:pa,horizontalItemSelectedBg:io,horizontalItemBorderRadius:so,horizontalItemHoverBg:Ia,popupBg:Xa}=Qe;return{[`${ye}-${Ie}, ${ye}-${Ie} > ${ye}`]:{color:we,background:ct,[`&${ye}-root:focus-visible`]:Object.assign({},Lt(Qe)),[`${ye}-item-group-title`]:{color:Ye},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:Re}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${ma} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Tn}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Pa},"&:active":{backgroundColor:Ma}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Pa},"&:active":{backgroundColor:Ma}}},[`${ye}-item-danger`]:{color:Wn,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:ea}},[`&${ye}-item:active`]:{background:$n}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:Re,[`&${ye}-item-danger`]:{color:ta},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:Ft,[`&${ye}-item-danger`]:{backgroundColor:ia}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},Lt(Qe))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:eo},[`&${ye}-popup > ${ye}`]:{backgroundColor:Xa},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Ie==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Jt,marginTop:-Jt,marginBottom:0,borderRadius:so,"&::after":{position:"absolute",insetInline:vn,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${Fn} ${Gn}`,content:'""'},"&:hover, &-active, &-open":{background:Ia,"&::after":{borderBottomWidth:Rt,borderBottomColor:pa}},"&-selected":{color:pa,backgroundColor:io,"&:hover":{backgroundColor:io},"&::after":{borderBottomWidth:Rt,borderBottomColor:pa}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${Jt}px ${Qn} ${qn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:yt},[`${ye}-item, ${ye}-submenu-title`]:Jt&&Wt?{width:`calc(100% + ${Jt}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Wt}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_n} ${En}`,`opacity ${_n} ${En}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:ta}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_n} ${Gn}`,`opacity ${_n} ${Gn}`].join(",")}}}}}};const Pn=Qe=>{const{componentCls:Ie,itemHeight:ye,itemMarginInline:we,padding:Re,menuArrowSize:Ye,marginXS:ct,itemMarginBlock:yt}=Qe,Ft=Re+Ye+ct;return{[`${Ie}-item`]:{position:"relative",overflow:"hidden"},[`${Ie}-item, ${Ie}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:we,marginBlock:yt,width:`calc(100% - ${we*2}px)`},[`> ${Ie}-item,
|
|
> ${Ie}-submenu > ${Ie}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${Ie}-item-group-list ${Ie}-submenu-title,
|
|
${Ie}-submenu-title`]:{paddingInlineEnd:Ft}}};var Ue=Qe=>{const{componentCls:Ie,iconCls:ye,itemHeight:we,colorTextLightSolid:Re,dropdownWidth:Ye,controlHeightLG:ct,motionDurationMid:yt,motionEaseOut:Ft,paddingXL:Rt,itemMarginInline:Wt,fontSizeLG:Jt,motionDurationSlow:Fn,paddingXS:Gn,boxShadowSecondary:En,collapsedWidth:vn,collapsedIconSize:_n}=Qe,Tn={height:we,lineHeight:`${we}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ie]:{"&-inline, &-vertical":Object.assign({[`&${Ie}-root`]:{boxShadow:"none"}},Pn(Qe))},[`${Ie}-submenu-popup`]:{[`${Ie}-vertical`]:Object.assign(Object.assign({},Pn(Qe)),{boxShadow:En})}},{[`${Ie}-submenu-popup ${Ie}-vertical${Ie}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${ct*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ie}-inline`]:{width:"100%",[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Fn}`,`background ${Fn}`,`padding ${yt} ${Ft}`].join(","),[`> ${Ie}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ie}-sub${Ie}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ie}-submenu > ${Ie}-submenu-title`]:Tn,[`& ${Ie}-item-group-title`]:{paddingInlineStart:Rt}},[`${Ie}-item`]:Tn}},{[`${Ie}-inline-collapsed`]:{width:vn,[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu ${Ie}-submenu-title`]:{[`> ${Ie}-inline-collapsed-noicon`]:{fontSize:Jt,textAlign:"center"}}},[`> ${Ie}-item,
|
|
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-item,
|
|
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-submenu > ${Ie}-submenu-title,
|
|
> ${Ie}-submenu > ${Ie}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Jt/2}px - ${Wt}px)`,textOverflow:"clip",[`
|
|
${Ie}-submenu-arrow,
|
|
${Ie}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ie}-item-icon, ${ye}`]:{margin:0,fontSize:_n,lineHeight:`${we}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ie}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ie}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:Re}},[`${Ie}-item-group-title`]:Object.assign(Object.assign({},se.vS),{paddingInline:Gn})}}]};const tt=Qe=>{const{componentCls:Ie,motionDurationSlow:ye,motionDurationMid:we,motionEaseInOut:Re,motionEaseOut:Ye,iconCls:ct,iconSize:yt,iconMarginInlineEnd:Ft}=Qe;return{[`${Ie}-item, ${Ie}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${Re}`].join(","),[`${Ie}-item-icon, ${ct}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${we} ${Ye}`,`margin ${ye} ${Re}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:Ft,opacity:1,transition:[`opacity ${ye} ${Re}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Ie}-item-icon`]:Object.assign({},(0,se.Ro)()),[`&${Ie}-item-only-child`]:{[`> ${ct}, > ${Ie}-item-icon`]:{marginInlineEnd:0}}},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ie}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Nt=Qe=>{const{componentCls:Ie,motionDurationSlow:ye,motionEaseInOut:we,borderRadius:Re,menuArrowSize:Ye,menuArrowOffset:ct}=Qe;return{[`${Ie}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Qe.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${we}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${ye} ${we}`,`transform ${ye} ${we}`,`top ${ye} ${we}`,`color ${ye} ${we}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ct})`},"&::after":{transform:`rotate(-45deg) translateY(${ct})`}}}}},at=Qe=>{const{antCls:Ie,componentCls:ye,fontSize:we,motionDurationSlow:Re,motionDurationMid:Ye,motionEaseInOut:ct,paddingXS:yt,padding:Ft,colorSplit:Rt,lineWidth:Wt,zIndexPopup:Jt,borderRadiusLG:Fn,subMenuItemBorderRadius:Gn,menuArrowSize:En,menuArrowOffset:vn,lineType:_n,menuPanelMaskInset:Tn,groupTitleLineHeight:Qn,groupTitleFontSize:qn}=Qe;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,se.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,se.Wf)(Qe)),(0,se.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:we,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} 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:Qe.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${yt}px ${Ft}px`,fontSize:qn,lineHeight:Qn,transition:`all ${Re}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${Re} ${ct}`,`background ${Re} ${ct}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${Re} ${ct}`,`background ${Re} ${ct}`,`padding ${Ye} ${ct}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${Re} ${ct}`,`padding ${Re} ${ct}`].join(",")},[`${ye}-title-content`]:{transition:`color ${Re}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Rt,borderStyle:_n,borderWidth:0,borderTopWidth:Wt,marginBlock:Wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tt(Qe)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${we*2}px ${Ft}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Jt,borderRadius:Fn,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Tn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Tn},"\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:Qe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Qe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Qe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Qe.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:Fn},tt(Qe)),Nt(Qe)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Gn},[`${ye}-submenu-title::after`]:{transition:`transform ${Re} ${ct}`}})}}),Nt(Qe)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${vn})`},"&::after":{transform:`rotate(45deg) translateX(-${vn})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${En*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${vn})`},"&::before":{transform:`rotate(45deg) translateX(${vn})`}}})},{[`${Ie}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var Et=(Qe,Ie)=>(0,pe.Z)("Menu",we=>{if(Ie===!1)return[];const{colorBgElevated:Re,colorPrimary:Ye,colorTextLightSolid:ct,controlHeightLG:yt,fontSize:Ft,darkItemColor:Rt,darkDangerItemColor:Wt,darkItemBg:Jt,darkSubMenuItemBg:Fn,darkItemSelectedColor:Gn,darkItemSelectedBg:En,darkDangerItemSelectedBg:vn,darkItemHoverBg:_n,darkGroupTitleColor:Tn,darkItemHoverColor:Qn,darkItemDisabledColor:qn,darkDangerItemHoverColor:ma,darkDangerItemSelectedColor:Wn,darkDangerItemActiveBg:ea}=we,ta=Ft/7*5,$n=(0,he.TS)(we,{menuArrowSize:ta,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${ta*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),ia=(0,he.TS)($n,{itemColor:Rt,itemHoverColor:Qn,groupTitleColor:Tn,itemSelectedColor:Gn,itemBg:Jt,popupBg:Jt,subMenuItemBg:Fn,itemActiveBg:"transparent",itemSelectedBg:En,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:_n,itemDisabledColor:qn,dangerItemColor:Wt,dangerItemHoverColor:ma,dangerItemSelectedColor:Wn,dangerItemActiveBg:ea,dangerItemSelectedBg:vn,menuSubMenuBg:Fn,horizontalItemSelectedColor:ct,horizontalItemSelectedBg:Ye});return[at($n),He($n),Ue($n),It($n,"light"),It(ia,"dark"),Je($n),(0,Ae.Z)($n),(0,Ke.oN)($n,"slide-up"),(0,Ke.oN)($n,"slide-down"),(0,Ge._y)($n,"zoom-big")]},we=>{const{colorPrimary:Re,colorError:Ye,colorTextDisabled:ct,colorErrorBg:yt,colorText:Ft,colorTextDescription:Rt,colorBgContainer:Wt,colorFillAlter:Jt,colorFillContent:Fn,lineWidth:Gn,lineWidthBold:En,controlItemBgActive:vn,colorBgTextHover:_n,controlHeightLG:Tn,lineHeight:Qn,colorBgElevated:qn,marginXXS:ma,padding:Wn,fontSize:ea,controlHeightSM:ta,fontSizeLG:$n,colorTextLightSolid:ia,colorErrorHover:Pa}=we,Ma=new Pe.C(ia).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:Ft,itemColor:Ft,colorItemTextHover:Ft,itemHoverColor:Ft,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Wt,itemBg:Wt,colorItemBgHover:_n,itemHoverBg:_n,colorItemBgActive:Fn,itemActiveBg:vn,colorSubItemBg:Jt,subMenuItemBg:Jt,colorItemBgSelected:vn,itemSelectedBg:vn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:En,activeBarHeight:En,colorActiveBarBorderSize:Gn,activeBarBorderWidth:Gn,colorItemTextDisabled:ct,itemDisabledColor:ct,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:we.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Tn,groupTitleLineHeight:Qn,collapsedWidth:Tn*2,popupBg:qn,itemMarginBlock:ma,itemPaddingInline:Wn,horizontalLineHeight:`${Tn*1.15}px`,iconSize:ea,iconMarginInlineEnd:ta-ea,collapsedIconSize:$n,groupTitleFontSize:ea,darkItemDisabledColor:new Pe.C(ia).setAlpha(.25).toRgbString(),darkItemColor:Ma,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ia,darkItemSelectedBg:Re,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:Ma,darkItemHoverColor:ia,darkDangerItemHoverColor:Pa,darkDangerItemSelectedColor:ia,darkDangerItemActiveBg:Ye}},{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"]]})(Qe),ce=function(Qe,Ie){var ye={};for(var we in Qe)Object.prototype.hasOwnProperty.call(Qe,we)&&Ie.indexOf(we)<0&&(ye[we]=Qe[we]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,we=Object.getOwnPropertySymbols(Qe);Re<we.length;Re++)Ie.indexOf(we[Re])<0&&Object.prototype.propertyIsEnumerable.call(Qe,we[Re])&&(ye[we[Re]]=Qe[we[Re]]);return ye},$t=(0,ie.forwardRef)((Qe,Ie)=>{var ye,we;const Re=ie.useContext(oe.Z),Ye=Re||{},{getPrefixCls:ct,getPopupContainer:yt,direction:Ft,menu:Rt}=ie.useContext(Me.E_),Wt=ct(),{prefixCls:Jt,className:Fn,style:Gn,theme:En="light",expandIcon:vn,_internalDisableMenuItemTitleTooltip:_n,inlineCollapsed:Tn,siderCollapsed:Qn,items:qn,children:ma,rootClassName:Wn,mode:ea,selectable:ta,onClick:$n,overflowedIndicatorPopupClassName:ia}=Qe,Pa=ce(Qe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ma=(0,Te.Z)(Pa,["collapsedWidth"]),eo=ve(qn)||ma;(ye=Ye.validator)===null||ye===void 0||ye.call(Ye,{mode:ea});const pa=(0,ee.useEvent)(function(){var Na;$n==null||$n.apply(void 0,arguments),(Na=Ye.onClick)===null||Na===void 0||Na.call(Ye)}),io=Ye.mode||ea,so=ta!=null?ta:Ye.selectable,Ia=ie.useMemo(()=>Qn!==void 0?Qn:Tn,[Tn,Qn]),Xa={horizontal:{motionName:`${Wt}-slide-up`},inline:(0,te.Z)(Wt),other:{motionName:`${Wt}-zoom-big`}},Fa=ct("menu",Jt||Ye.prefixCls),[to,Va]=Et(Fa,!Re),mo=be()(`${Fa}-${En}`,Rt==null?void 0:Rt.className,Fn);let ka;if(typeof vn=="function")ka=vn;else if(vn===null||vn===!1)ka=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)ka=null;else{const Na=vn!=null?vn:Ye.expandIcon;ka=(0,xe.Tm)(Na,{className:be()(`${Fa}-submenu-expand-icon`,(0,xe.l$)(Na)?(we=Na.props)===null||we===void 0?void 0:we.className:"")})}const No=ie.useMemo(()=>({prefixCls:Fa,inlineCollapsed:Ia||!1,direction:Ft,firstLevel:!0,theme:En,mode:io,disableMenuItemTitleTooltip:_n}),[Fa,Ia,Ft,_n,En]);return to(ie.createElement(oe.Z.Provider,{value:null},ie.createElement(a.Provider,{value:No},ie.createElement(ge.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:ie.createElement(z.Z,null),overflowedIndicatorPopupClassName:be()(Fa,`${Fa}-${En}`,ia),mode:io,selectable:so,onClick:pa},Ma,{inlineCollapsed:Ia,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Gn),className:mo,prefixCls:Fa,direction:Ft,defaultMotions:Xa,expandIcon:ka,ref:Ie,rootClassName:be()(Wn,Va)}),eo))))});const tn=(0,ie.forwardRef)((Qe,Ie)=>{const ye=(0,ie.useRef)(null),we=ie.useContext(Ve.D);return(0,ie.useImperativeHandle)(Ie,()=>({menu:ye.current,focus:Re=>{var Ye;(Ye=ye.current)===null||Ye===void 0||Ye.focus(Re)}})),ie.createElement($t,Object.assign({ref:ye},Qe,we))});tn.Item=y,tn.SubMenu=x,tn.Divider=Oe,tn.ItemGroup=ge.BW;var lt=tn},72665:function(ke,it){"use strict";var re;var ge=typeof Symbol=="function"&&Symbol.for,ie=ge?Symbol.for("react.element"):60103,Ve=ge?Symbol.for("react.portal"):60106,qe=ge?Symbol.for("react.fragment"):60107,be=ge?Symbol.for("react.strict_mode"):60108,Me=ge?Symbol.for("react.profiler"):60114,me=ge?Symbol.for("react.provider"):60109,_e=ge?Symbol.for("react.context"):60110,Oe=ge?Symbol.for("react.async_mode"):60111,Ee=ge?Symbol.for("react.concurrent_mode"):60111,Te=ge?Symbol.for("react.forward_ref"):60112,Le=ge?Symbol.for("react.suspense"):60113,xe=ge?Symbol.for("react.suspense_list"):60120,ne=ge?Symbol.for("react.memo"):60115,a=ge?Symbol.for("react.lazy"):60116,b=ge?Symbol.for("react.block"):60121,y=ge?Symbol.for("react.fundamental"):60117,E=ge?Symbol.for("react.responder"):60118,x=ge?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case ie:switch(te=te.type,te){case Oe:case Ee:case qe:case Me:case be:case Le:return te;default:switch(te=te&&te.$$typeof,te){case _e:case Te:case a:case ne:case me:return te;default:return oe}}case Ve:return oe}}}function ee(te){return z(te)===Ee}re=Oe,re=Ee,re=_e,re=me,re=ie,re=Te,re=qe,re=a,re=ne,re=Ve,re=Me,re=be,re=Le,re=function(te){return ee(te)||z(te)===Oe},re=ee,re=function(te){return z(te)===_e},re=function(te){return z(te)===me},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ie},re=function(te){return z(te)===Te},re=function(te){return z(te)===qe},re=function(te){return z(te)===a},it.isMemo=function(te){return z(te)===ne},re=function(te){return z(te)===Ve},re=function(te){return z(te)===Me},re=function(te){return z(te)===be},re=function(te){return z(te)===Le},re=function(te){return typeof te=="string"||typeof te=="function"||te===qe||te===Ee||te===Me||te===be||te===Le||te===xe||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===_e||te.$$typeof===Te||te.$$typeof===y||te.$$typeof===E||te.$$typeof===x||te.$$typeof===b)},re=z},12060:function(ke,it,re){"use strict";ke.exports=re(72665)},42767:function(ke,it){"use strict";var re;var ge=typeof Symbol=="function"&&Symbol.for,ie=ge?Symbol.for("react.element"):60103,Ve=ge?Symbol.for("react.portal"):60106,qe=ge?Symbol.for("react.fragment"):60107,be=ge?Symbol.for("react.strict_mode"):60108,Me=ge?Symbol.for("react.profiler"):60114,me=ge?Symbol.for("react.provider"):60109,_e=ge?Symbol.for("react.context"):60110,Oe=ge?Symbol.for("react.async_mode"):60111,Ee=ge?Symbol.for("react.concurrent_mode"):60111,Te=ge?Symbol.for("react.forward_ref"):60112,Le=ge?Symbol.for("react.suspense"):60113,xe=ge?Symbol.for("react.suspense_list"):60120,ne=ge?Symbol.for("react.memo"):60115,a=ge?Symbol.for("react.lazy"):60116,b=ge?Symbol.for("react.block"):60121,y=ge?Symbol.for("react.fundamental"):60117,E=ge?Symbol.for("react.responder"):60118,x=ge?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case ie:switch(te=te.type,te){case Oe:case Ee:case qe:case Me:case be:case Le:return te;default:switch(te=te&&te.$$typeof,te){case _e:case Te:case a:case ne:case me:return te;default:return oe}}case Ve:return oe}}}function ee(te){return z(te)===Ee}re=Oe,re=Ee,re=_e,re=me,re=ie,re=Te,re=qe,re=a,re=ne,re=Ve,re=Me,re=be,re=Le,re=function(te){return ee(te)||z(te)===Oe},re=ee,re=function(te){return z(te)===_e},re=function(te){return z(te)===me},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ie},re=function(te){return z(te)===Te},it.isFragment=function(te){return z(te)===qe},re=function(te){return z(te)===a},re=function(te){return z(te)===ne},re=function(te){return z(te)===Ve},re=function(te){return z(te)===Me},re=function(te){return z(te)===be},re=function(te){return z(te)===Le},re=function(te){return typeof te=="string"||typeof te=="function"||te===qe||te===Ee||te===Me||te===be||te===Le||te===xe||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===_e||te.$$typeof===Te||te.$$typeof===y||te.$$typeof===E||te.$$typeof===x||te.$$typeof===b)},re=z},16357:function(ke,it,re){"use strict";ke.exports=re(42767)},86128:function(ke,it,re){"use strict";re.d(it,{Z:function(){return le}});var ge=re(87462),ie=re(4942),Ve=re(45987),qe=re(1413),be=re(15671),Me=re(43144),me=re(97326),_e=re(60136),Oe=re(51630),Ee=re(67294),Te=re(94184),Le=re.n(Te),xe=re(64217),ne=re(27822),a=function(ve){for(var Pe=ve.prefixCls,se=ve.level,Ae=ve.isStart,Ke=ve.isEnd,Ge="".concat(Pe,"-indent-unit"),pe=[],he=0;he<se;he+=1){var Ze;pe.push(Ee.createElement("span",{key:he,className:Le()(Ge,(Ze={},(0,ie.Z)(Ze,"".concat(Ge,"-start"),Ae[he]),(0,ie.Z)(Ze,"".concat(Ge,"-end"),Ke[he]),Ze))}))}return Ee.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},pe)},b=Ee.memo(a),y=re(1089),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],x="open",z="close",ee="---",te=function(de){(0,_e.Z)(Pe,de);var ve=(0,Oe.Z)(Pe);function Pe(){var se;(0,be.Z)(this,Pe);for(var Ae=arguments.length,Ke=new Array(Ae),Ge=0;Ge<Ae;Ge++)Ke[Ge]=arguments[Ge];return se=ve.call.apply(ve,[this].concat(Ke)),se.state={dragNodeHighlight:!1},se.selectHandle=void 0,se.onSelectorClick=function(pe){var he=se.props.context.onNodeClick;he(pe,(0,y.F)(se.props)),se.isSelectable()?se.onSelect(pe):se.onCheck(pe)},se.onSelectorDoubleClick=function(pe){var he=se.props.context.onNodeDoubleClick;he(pe,(0,y.F)(se.props))},se.onSelect=function(pe){if(!se.isDisabled()){var he=se.props.context.onNodeSelect;pe.preventDefault(),he(pe,(0,y.F)(se.props))}},se.onCheck=function(pe){if(!se.isDisabled()){var he=se.props,Ze=he.disableCheckbox,He=he.checked,We=se.props.context.onNodeCheck;if(!(!se.isCheckable()||Ze)){pe.preventDefault();var Je=!He;We(pe,(0,y.F)(se.props),Je)}}},se.onMouseEnter=function(pe){var he=se.props.context.onNodeMouseEnter;he(pe,(0,y.F)(se.props))},se.onMouseLeave=function(pe){var he=se.props.context.onNodeMouseLeave;he(pe,(0,y.F)(se.props))},se.onContextMenu=function(pe){var he=se.props.context.onNodeContextMenu;he(pe,(0,y.F)(se.props))},se.onDragStart=function(pe){var he=se.props.context.onNodeDragStart;pe.stopPropagation(),se.setState({dragNodeHighlight:!0}),he(pe,(0,me.Z)(se));try{pe.dataTransfer.setData("text/plain","")}catch(Ze){}},se.onDragEnter=function(pe){var he=se.props.context.onNodeDragEnter;pe.preventDefault(),pe.stopPropagation(),he(pe,(0,me.Z)(se))},se.onDragOver=function(pe){var he=se.props.context.onNodeDragOver;pe.preventDefault(),pe.stopPropagation(),he(pe,(0,me.Z)(se))},se.onDragLeave=function(pe){var he=se.props.context.onNodeDragLeave;pe.stopPropagation(),he(pe,(0,me.Z)(se))},se.onDragEnd=function(pe){var he=se.props.context.onNodeDragEnd;pe.stopPropagation(),se.setState({dragNodeHighlight:!1}),he(pe,(0,me.Z)(se))},se.onDrop=function(pe){var he=se.props.context.onNodeDrop;pe.preventDefault(),pe.stopPropagation(),se.setState({dragNodeHighlight:!1}),he(pe,(0,me.Z)(se))},se.onExpand=function(pe){var he=se.props,Ze=he.loading,He=he.context.onNodeExpand;Ze||He(pe,(0,y.F)(se.props))},se.setSelectHandle=function(pe){se.selectHandle=pe},se.getNodeState=function(){var pe=se.props.expanded;return se.isLeaf()?null:pe?x:z},se.hasChildren=function(){var pe=se.props.eventKey,he=se.props.context.keyEntities,Ze=he[pe]||{},He=Ze.children;return!!(He||[]).length},se.isLeaf=function(){var pe=se.props,he=pe.isLeaf,Ze=pe.loaded,He=se.props.context.loadData,We=se.hasChildren();return he===!1?!1:he||!He&&!We||He&&Ze&&!We},se.isDisabled=function(){var pe=se.props.disabled,he=se.props.context.disabled;return!!(he||pe)},se.isCheckable=function(){var pe=se.props.checkable,he=se.props.context.checkable;return!he||pe===!1?!1:he},se.syncLoadData=function(pe){var he=pe.expanded,Ze=pe.loading,He=pe.loaded,We=se.props.context,Je=We.loadData,Lt=We.onNodeLoad;Ze||Je&&he&&!se.isLeaf()&&!se.hasChildren()&&!He&&Lt((0,y.F)(se.props))},se.isDraggable=function(){var pe=se.props,he=pe.data,Ze=pe.context.draggable;return!!(Ze&&(!Ze.nodeDraggable||Ze.nodeDraggable(he)))},se.renderDragHandler=function(){var pe=se.props.context,he=pe.draggable,Ze=pe.prefixCls;return he!=null&&he.icon?Ee.createElement("span",{className:"".concat(Ze,"-draggable-icon")},he.icon):null},se.renderSwitcherIconDom=function(pe){var he=se.props.switcherIcon,Ze=se.props.context.switcherIcon,He=he||Ze;return typeof He=="function"?He((0,qe.Z)((0,qe.Z)({},se.props),{},{isLeaf:pe})):He},se.renderSwitcher=function(){var pe=se.props.expanded,he=se.props.context.prefixCls;if(se.isLeaf()){var Ze=se.renderSwitcherIconDom(!0);return Ze!==!1?Ee.createElement("span",{className:Le()("".concat(he,"-switcher"),"".concat(he,"-switcher-noop"))},Ze):null}var He=Le()("".concat(he,"-switcher"),"".concat(he,"-switcher_").concat(pe?x:z)),We=se.renderSwitcherIconDom(!1);return We!==!1?Ee.createElement("span",{onClick:se.onExpand,className:He},We):null},se.renderCheckbox=function(){var pe=se.props,he=pe.checked,Ze=pe.halfChecked,He=pe.disableCheckbox,We=se.props.context.prefixCls,Je=se.isDisabled(),Lt=se.isCheckable();if(!Lt)return null;var vt=typeof Lt!="boolean"?Lt:null;return Ee.createElement("span",{className:Le()("".concat(We,"-checkbox"),he&&"".concat(We,"-checkbox-checked"),!he&&Ze&&"".concat(We,"-checkbox-indeterminate"),(Je||He)&&"".concat(We,"-checkbox-disabled")),onClick:se.onCheck},vt)},se.renderIcon=function(){var pe=se.props.loading,he=se.props.context.prefixCls;return Ee.createElement("span",{className:Le()("".concat(he,"-iconEle"),"".concat(he,"-icon__").concat(se.getNodeState()||"docu"),pe&&"".concat(he,"-icon_loading"))})},se.renderSelector=function(){var pe=se.state.dragNodeHighlight,he=se.props,Ze=he.title,He=Ze===void 0?ee:Ze,We=he.selected,Je=he.icon,Lt=he.loading,vt=he.data,It=se.props.context,Pn=It.prefixCls,$e=It.showIcon,Ue=It.icon,tt=It.loadData,Nt=It.titleRender,at=se.isDisabled(),Et="".concat(Pn,"-node-content-wrapper"),ce;if($e){var ut=Je||Ue;ce=ut?Ee.createElement("span",{className:Le()("".concat(Pn,"-iconEle"),"".concat(Pn,"-icon__customize"))},typeof ut=="function"?ut(se.props):ut):se.renderIcon()}else tt&&Lt&&(ce=se.renderIcon());var $t;typeof He=="function"?$t=He(vt):Nt?$t=Nt(vt):$t=He;var tn=Ee.createElement("span",{className:"".concat(Pn,"-title")},$t);return Ee.createElement("span",{ref:se.setSelectHandle,title:typeof He=="string"?He:"",className:Le()("".concat(Et),"".concat(Et,"-").concat(se.getNodeState()||"normal"),!at&&(We||pe)&&"".concat(Pn,"-node-selected")),onMouseEnter:se.onMouseEnter,onMouseLeave:se.onMouseLeave,onContextMenu:se.onContextMenu,onClick:se.onSelectorClick,onDoubleClick:se.onSelectorDoubleClick},ce,tn,se.renderDropIndicator())},se.renderDropIndicator=function(){var pe=se.props,he=pe.disabled,Ze=pe.eventKey,He=se.props.context,We=He.draggable,Je=He.dropLevelOffset,Lt=He.dropPosition,vt=He.prefixCls,It=He.indent,Pn=He.dropIndicatorRender,$e=He.dragOverNodeKey,Ue=He.direction,tt=!!We,Nt=!he&&tt&&$e===Ze;return Nt?Pn({dropPosition:Lt,dropLevelOffset:Je,indent:It,prefixCls:vt,direction:Ue}):null},se}return(0,Me.Z)(Pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ae=this.props.selectable,Ke=this.props.context.selectable;return typeof Ae=="boolean"?Ae:Ke}},{key:"render",value:function(){var Ae,Ke=this.props,Ge=Ke.eventKey,pe=Ke.className,he=Ke.style,Ze=Ke.dragOver,He=Ke.dragOverGapTop,We=Ke.dragOverGapBottom,Je=Ke.isLeaf,Lt=Ke.isStart,vt=Ke.isEnd,It=Ke.expanded,Pn=Ke.selected,$e=Ke.checked,Ue=Ke.halfChecked,tt=Ke.loading,Nt=Ke.domRef,at=Ke.active,Et=Ke.data,ce=Ke.onMouseMove,ut=Ke.selectable,$t=(0,Ve.Z)(Ke,E),tn=this.props.context,lt=tn.prefixCls,Qe=tn.filterTreeNode,Ie=tn.keyEntities,ye=tn.dropContainerKey,we=tn.dropTargetKey,Re=tn.draggingNodeKey,Ye=this.isDisabled(),ct=(0,xe.Z)($t,{aria:!0,data:!0}),yt=Ie[Ge]||{},Ft=yt.level,Rt=vt[vt.length-1],Wt=this.isDraggable(),Jt=!Ye&&Wt,Fn=Re===Ge,Gn=ut!==void 0?{"aria-selected":!!ut}:void 0;return Ee.createElement("div",(0,ge.Z)({ref:Nt,className:Le()(pe,"".concat(lt,"-treenode"),(Ae={},(0,ie.Z)(Ae,"".concat(lt,"-treenode-disabled"),Ye),(0,ie.Z)(Ae,"".concat(lt,"-treenode-switcher-").concat(It?"open":"close"),!Je),(0,ie.Z)(Ae,"".concat(lt,"-treenode-checkbox-checked"),$e),(0,ie.Z)(Ae,"".concat(lt,"-treenode-checkbox-indeterminate"),Ue),(0,ie.Z)(Ae,"".concat(lt,"-treenode-selected"),Pn),(0,ie.Z)(Ae,"".concat(lt,"-treenode-loading"),tt),(0,ie.Z)(Ae,"".concat(lt,"-treenode-active"),at),(0,ie.Z)(Ae,"".concat(lt,"-treenode-leaf-last"),Rt),(0,ie.Z)(Ae,"".concat(lt,"-treenode-draggable"),Wt),(0,ie.Z)(Ae,"dragging",Fn),(0,ie.Z)(Ae,"drop-target",we===Ge),(0,ie.Z)(Ae,"drop-container",ye===Ge),(0,ie.Z)(Ae,"drag-over",!Ye&&Ze),(0,ie.Z)(Ae,"drag-over-gap-top",!Ye&&He),(0,ie.Z)(Ae,"drag-over-gap-bottom",!Ye&&We),(0,ie.Z)(Ae,"filter-node",Qe&&Qe((0,y.F)(this.props))),Ae)),style:he,draggable:Jt,"aria-grabbed":Fn,onDragStart:Jt?this.onDragStart:void 0,onDragEnter:Wt?this.onDragEnter:void 0,onDragOver:Wt?this.onDragOver:void 0,onDragLeave:Wt?this.onDragLeave:void 0,onDrop:Wt?this.onDrop:void 0,onDragEnd:Wt?this.onDragEnd:void 0,onMouseMove:ce},Gn,ct),Ee.createElement(b,{prefixCls:lt,level:Ft,isStart:Lt,isEnd:vt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}(Ee.Component),oe=function(ve){return Ee.createElement(ne.k.Consumer,null,function(Pe){return Ee.createElement(te,(0,ge.Z)({},ve,{context:Pe}))})};oe.displayName="TreeNode",oe.isTreeNode=1;var le=oe},27822:function(ke,it,re){"use strict";re.d(it,{k:function(){return ie}});var ge=re(67294),ie=ge.createContext(null)},10225:function(ke,it,re){"use strict";re.d(it,{BT:function(){return b},Ds:function(){return Te},E6:function(){return x},L0:function(){return _e},OM:function(){return a},_5:function(){return me},bt:function(){return Ee},r7:function(){return z},wA:function(){return Le},yx:function(){return Oe}});var ge=re(74902),ie=re(71002),Ve=re(67294),qe=re(80334),be=re(86128),Me=null;function me(ee,te){if(!ee)return[];var oe=ee.slice(),le=oe.indexOf(te);return le>=0&&oe.splice(le,1),oe}function _e(ee,te){var oe=(ee||[]).slice();return oe.indexOf(te)===-1&&oe.push(te),oe}function Oe(ee){return ee.split("-")}function Ee(ee,te){return"".concat(ee,"-").concat(te)}function Te(ee){return ee&&ee.type&&ee.type.isTreeNode}function Le(ee,te){var oe=[],le=te[ee];function de(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ve.forEach(function(Pe){var se=Pe.key,Ae=Pe.children;oe.push(se),de(Ae)})}return de(le.children),oe}function xe(ee){if(ee.parent){var te=Oe(ee.pos);return Number(te[te.length-1])===ee.parent.children.length-1}return!1}function ne(ee){var te=Oe(ee.pos);return Number(te[te.length-1])===0}function a(ee,te,oe,le,de,ve,Pe,se,Ae,Ke){var Ge,pe=ee.clientX,he=ee.clientY,Ze=ee.target.getBoundingClientRect(),He=Ze.top,We=Ze.height,Je=(Ke==="rtl"?-1:1)*(((de==null?void 0:de.x)||0)-pe),Lt=(Je-12)/le,vt=se[oe.props.eventKey];if(he<He+We/2){var It=Pe.findIndex(function(lt){return lt.key===vt.key}),Pn=It<=0?0:It-1,$e=Pe[Pn].key;vt=se[$e]}var Ue=vt.key,tt=vt,Nt=vt.key,at=0,Et=0;if(!Ae.includes(Ue))for(var ce=0;ce<Lt&&xe(vt);ce+=1)vt=vt.parent,Et+=1;var ut=te.props.data,$t=vt.node,tn=!0;return ne(vt)&&vt.level===0&&he<He+We/2&&ve({dragNode:ut,dropNode:$t,dropPosition:-1})&&vt.key===oe.props.eventKey?at=-1:(tt.children||[]).length&&Ae.includes(Nt)?ve({dragNode:ut,dropNode:$t,dropPosition:0})?at=0:tn=!1:Et===0?Lt>-1.5?ve({dragNode:ut,dropNode:$t,dropPosition:1})?at=1:tn=!1:ve({dragNode:ut,dropNode:$t,dropPosition:0})?at=0:ve({dragNode:ut,dropNode:$t,dropPosition:1})?at=1:tn=!1:ve({dragNode:ut,dropNode:$t,dropPosition:1})?at=1:tn=!1,{dropPosition:at,dropLevelOffset:Et,dropTargetKey:vt.key,dropTargetPos:vt.pos,dragOverNodeKey:Nt,dropContainerKey:at===0?null:((Ge=vt.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:tn}}function b(ee,te){if(ee){var oe=te.multiple;return oe?ee.slice():ee.length?[ee[0]]:ee}}var y=function(te){return te};function E(ee,te){if(!ee)return[];var oe=te||{},le=oe.processProps,de=le===void 0?y:le,ve=Array.isArray(ee)?ee:[ee];return ve.map(function(Pe){var se=Pe.children,Ae=_objectWithoutProperties(Pe,Me),Ke=E(se,te);return React.createElement(TreeNode,_extends({key:Ae.key},de(Ae)),Ke)})}function x(ee){if(!ee)return null;var te;if(Array.isArray(ee))te={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,ie.Z)(ee)==="object")te={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,qe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return te}function z(ee,te){var oe=new Set;function le(de){if(!oe.has(de)){var ve=te[de];if(ve){oe.add(de);var Pe=ve.parent,se=ve.node;se.disabled||Pe&&le(Pe.key)}}}return(ee||[]).forEach(function(de){le(de)}),(0,ge.Z)(oe)}},17341:function(ke,it,re){"use strict";re.d(it,{S:function(){return Me}});var ge=re(80334);function ie(me,_e){var Oe=new Set;return me.forEach(function(Ee){_e.has(Ee)||Oe.add(Ee)}),Oe}function Ve(me){var _e=me||{},Oe=_e.disabled,Ee=_e.disableCheckbox,Te=_e.checkable;return!!(Oe||Ee)||Te===!1}function qe(me,_e,Oe,Ee){for(var Te=new Set(me),Le=new Set,xe=0;xe<=Oe;xe+=1){var ne=_e.get(xe)||new Set;ne.forEach(function(E){var x=E.key,z=E.node,ee=E.children,te=ee===void 0?[]:ee;Te.has(x)&&!Ee(z)&&te.filter(function(oe){return!Ee(oe.node)}).forEach(function(oe){Te.add(oe.key)})})}for(var a=new Set,b=Oe;b>=0;b-=1){var y=_e.get(b)||new Set;y.forEach(function(E){var x=E.parent,z=E.node;if(!(Ee(z)||!E.parent||a.has(E.parent.key))){if(Ee(E.parent.node)){a.add(x.key);return}var ee=!0,te=!1;(x.children||[]).filter(function(oe){return!Ee(oe.node)}).forEach(function(oe){var le=oe.key,de=Te.has(le);ee&&!de&&(ee=!1),!te&&(de||Le.has(le))&&(te=!0)}),ee&&Te.add(x.key),te&&Le.add(x.key),a.add(x.key)}})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(ie(Le,Te))}}function be(me,_e,Oe,Ee,Te){for(var Le=new Set(me),xe=new Set(_e),ne=0;ne<=Ee;ne+=1){var a=Oe.get(ne)||new Set;a.forEach(function(x){var z=x.key,ee=x.node,te=x.children,oe=te===void 0?[]:te;!Le.has(z)&&!xe.has(z)&&!Te(ee)&&oe.filter(function(le){return!Te(le.node)}).forEach(function(le){Le.delete(le.key)})})}xe=new Set;for(var b=new Set,y=Ee;y>=0;y-=1){var E=Oe.get(y)||new Set;E.forEach(function(x){var z=x.parent,ee=x.node;if(!(Te(ee)||!x.parent||b.has(x.parent.key))){if(Te(x.parent.node)){b.add(z.key);return}var te=!0,oe=!1;(z.children||[]).filter(function(le){return!Te(le.node)}).forEach(function(le){var de=le.key,ve=Le.has(de);te&&!ve&&(te=!1),!oe&&(ve||xe.has(de))&&(oe=!0)}),te||Le.delete(z.key),oe&&xe.add(z.key),b.add(z.key)}})}return{checkedKeys:Array.from(Le),halfCheckedKeys:Array.from(ie(xe,Le))}}function Me(me,_e,Oe,Ee){var Te=[],Le;Ee?Le=Ee:Le=Ve;var xe=new Set(me.filter(function(y){var E=!!Oe[y];return E||Te.push(y),E})),ne=new Map,a=0;Object.keys(Oe).forEach(function(y){var E=Oe[y],x=E.level,z=ne.get(x);z||(z=new Set,ne.set(x,z)),z.add(E),a=Math.max(a,x)}),(0,ge.ZP)(!Te.length,"Tree missing follow keys: ".concat(Te.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var b;return _e===!0?b=qe(xe,ne,a,Le):b=be(xe,_e.halfCheckedKeys,ne,a,Le),b}},1089:function(ke,it,re){"use strict";re.d(it,{F:function(){return E},H8:function(){return y},I8:function(){return b},km:function(){return Ee},oH:function(){return ne},w$:function(){return Te},zn:function(){return xe}});var ge=re(71002),ie=re(74902),Ve=re(1413),qe=re(45987),be=re(98423),Me=re(50344),me=re(80334),_e=re(10225),Oe=["children"];function Ee(x,z){return x!=null?x:z}function Te(x){var z=x||{},ee=z.title,te=z._title,oe=z.key,le=z.children,de=ee||"title";return{title:de,_title:te||[de],key:oe||"key",children:le||"children"}}function Le(x,z){var ee=new Map;function te(oe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(oe||[]).forEach(function(de){var ve=de[z.key],Pe=de[z.children];warning(ve!=null,"Tree node must have a certain key: [".concat(le).concat(ve,"]"));var se=String(ve);warning(!ee.has(se)||ve===null||ve===void 0,"Same 'key' exist in the Tree: ".concat(se)),ee.set(se,!0),te(Pe,"".concat(le).concat(se," > "))})}te(x)}function xe(x){function z(ee){var te=(0,Me.Z)(ee);return te.map(function(oe){if(!(0,_e.Ds)(oe))return(0,me.ZP)(!oe,"Tree/TreeNode can only accept TreeNode as children."),null;var le=oe.key,de=oe.props,ve=de.children,Pe=(0,qe.Z)(de,Oe),se=(0,Ve.Z)({key:le},Pe),Ae=z(ve);return Ae.length&&(se.children=Ae),se}).filter(function(oe){return oe})}return z(x)}function ne(x,z,ee){var te=Te(ee),oe=te._title,le=te.key,de=te.children,ve=new Set(z===!0?[]:z),Pe=[];function se(Ae){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ge,pe){for(var he=(0,_e.bt)(Ke?Ke.pos:"0",pe),Ze=Ee(Ge[le],he),He,We=0;We<oe.length;We+=1){var Je=oe[We];if(Ge[Je]!==void 0){He=Ge[Je];break}}var Lt=(0,Ve.Z)((0,Ve.Z)({},(0,be.Z)(Ge,[].concat((0,ie.Z)(oe),[le,de]))),{},{title:He,key:Ze,parent:Ke,pos:he,children:null,data:Ge,isStart:[].concat((0,ie.Z)(Ke?Ke.isStart:[]),[pe===0]),isEnd:[].concat((0,ie.Z)(Ke?Ke.isEnd:[]),[pe===Ae.length-1])});return Pe.push(Lt),z===!0||ve.has(Ze)?Lt.children=se(Ge[de]||[],Lt):Lt.children=[],Lt})}return se(x),Pe}function a(x,z,ee){var te={};(0,ge.Z)(ee)==="object"?te=ee:te={externalGetKey:ee},te=te||{};var oe=te,le=oe.childrenPropName,de=oe.externalGetKey,ve=oe.fieldNames,Pe=Te(ve),se=Pe.key,Ae=Pe.children,Ke=le||Ae,Ge;de?typeof de=="string"?Ge=function(Ze){return Ze[de]}:typeof de=="function"&&(Ge=function(Ze){return de(Ze)}):Ge=function(Ze,He){return Ee(Ze[se],He)};function pe(he,Ze,He,We){var Je=he?he[Ke]:x,Lt=he?(0,_e.bt)(He.pos,Ze):"0",vt=he?[].concat((0,ie.Z)(We),[he]):[];if(he){var It=Ge(he,Lt),Pn={node:he,index:Ze,pos:Lt,key:It,parentPos:He.node?He.pos:null,level:He.level+1,nodes:vt};z(Pn)}Je&&Je.forEach(function($e,Ue){pe($e,Ue,{node:he,pos:Lt,level:He?He.level+1:-1},vt)})}pe(null)}function b(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=z.initWrapper,te=z.processEntity,oe=z.onProcessFinished,le=z.externalGetKey,de=z.childrenPropName,ve=z.fieldNames,Pe=arguments.length>2?arguments[2]:void 0,se=le||Pe,Ae={},Ke={},Ge={posEntities:Ae,keyEntities:Ke};return ee&&(Ge=ee(Ge)||Ge),a(x,function(pe){var he=pe.node,Ze=pe.index,He=pe.pos,We=pe.key,Je=pe.parentPos,Lt=pe.level,vt=pe.nodes,It={node:he,nodes:vt,index:Ze,key:We,pos:He,level:Lt},Pn=Ee(We,He);Ae[He]=It,Ke[Pn]=It,It.parent=Ae[Je],It.parent&&(It.parent.children=It.parent.children||[],It.parent.children.push(It)),te&&te(It,Ge)},{externalGetKey:se,childrenPropName:de,fieldNames:ve}),oe&&oe(Ge),Ge}function y(x,z){var ee=z.expandedKeys,te=z.selectedKeys,oe=z.loadedKeys,le=z.loadingKeys,de=z.checkedKeys,ve=z.halfCheckedKeys,Pe=z.dragOverNodeKey,se=z.dropPosition,Ae=z.keyEntities,Ke=Ae[x],Ge={eventKey:x,expanded:ee.indexOf(x)!==-1,selected:te.indexOf(x)!==-1,loaded:oe.indexOf(x)!==-1,loading:le.indexOf(x)!==-1,checked:de.indexOf(x)!==-1,halfChecked:ve.indexOf(x)!==-1,pos:String(Ke?Ke.pos:""),dragOver:Pe===x&&se===0,dragOverGapTop:Pe===x&&se===-1,dragOverGapBottom:Pe===x&&se===1};return Ge}function E(x){var z=x.data,ee=x.expanded,te=x.selected,oe=x.checked,le=x.loaded,de=x.loading,ve=x.halfChecked,Pe=x.dragOver,se=x.dragOverGapTop,Ae=x.dragOverGapBottom,Ke=x.pos,Ge=x.active,pe=x.eventKey,he=(0,Ve.Z)((0,Ve.Z)({},z),{},{expanded:ee,selected:te,checked:oe,loaded:le,loading:de,halfChecked:ve,dragOver:Pe,dragOverGapTop:se,dragOverGapBottom:Ae,pos:Ke,active:Ge,key:pe});return"props"in he||Object.defineProperty(he,"props",{get:function(){return(0,me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),x}}),he}},64217:function(ke,it,re){"use strict";re.d(it,{Z:function(){return _e}});var ge=re(1413),ie=`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`,Ve=`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`,qe="".concat(ie," ").concat(Ve).split(/[\s\n]+/),be="aria-",Me="data-";function me(Oe,Ee){return Oe.indexOf(Ee)===0}function _e(Oe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te;Ee===!1?Te={aria:!0,data:!0,attr:!0}:Ee===!0?Te={aria:!0}:Te=(0,ge.Z)({},Ee);var Le={};return Object.keys(Oe).forEach(function(xe){(Te.aria&&(xe==="role"||me(xe,be))||Te.data&&me(xe,Me)||Te.attr&&qe.includes(xe))&&(Le[xe]=Oe[xe])}),Le}}}]);
|