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

139 lines
399 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[3317],{33853:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ie}});var re=ge(14809),de=ge(59301),Me={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=Me,fe=ge(7657),ye=function(Ge,Ae){return de.createElement(fe.Z,(0,re.Z)({},Ge,{ref:Ae,icon:qe}))},me=de.forwardRef(ye),Ie=me},38819:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ie}});var re=ge(14809),de=ge(59301),Me={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=Me,fe=ge(7657),ye=function(Ge,Ae){return de.createElement(fe.Z,(0,re.Z)({},Ge,{ref:Ae,icon:qe}))},me=de.forwardRef(ye),Ie=me},99587:function(we,tt){"use strict";tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function we(ne,a,b,E){b===void 0&&(b=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=b,this._maximum=E}Object.defineProperty(we.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(we.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(we.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(we.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 we))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 E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=b};var tt=[];function ge(ne,a){var b=tt.pop();return b===void 0?new go.Point(ne,a):(b.x=ne,b.y=a,b)}function re(){var ne=tt.pop();return ne===void 0?new go.Point:ne}function de(ne){tt.push(ne)}function Me(ne,a,b,E,y,x,z,ee,te){te||(te=new go.Point);var ae=ne-b,oe=y-z,ie=NaN,Se=NaN;if(ae===0)if(oe===0)ne===b&&(ie=ne,Se=a);else{var le=(x-ee)/oe,Le=x-le*y;ie=ne,Se=le*ie+Le}else if(oe===0){var De=(a-E)/ae,Qe=a-De*ne;ie=y,Se=De*ie+Qe}else{var De=(a-E)/ae,le=(x-ee)/oe,Qe=a-De*ne,Le=x-le*y;ie=(Le-Qe)/(De-le),Se=De*ie+Qe}return te.x=ie,te.y=Se,te}function qe(ne,a,b,E,y,x,z,ee,te,ae,oe,ie,Se,le){var Le=1-te,De=te,Qe=ne*Le+b*De,ot=a*Le+E*De,it=b*Le+y*De,he=E*Le+x*De,ze=y*Le+z*De,ke=x*Le+ee*De,Ne=Qe*Le+it*De,Ke=ot*Le+he*De,wt=it*Le+ze*De,Ct=he*Le+ke*De,Et=Ne*Le+wt*De,Ht=Ke*Le+Ct*De;ae.x=Qe,ae.y=ot,oe.x=Ne,oe.y=Ke,ie.x=Et,ie.y=Ht,Se.x=wt,Se.y=Ct,le.x=ze,le.y=ke}var fe=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new we("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,b/3);var y=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,b-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,b-y,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,E,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,y,b,0,b-y)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,y,y,0).close()));return y>1&&(x.spot1=new go.Spot(0,0,y,y),x.spot2=new go.Spot(1,1,-y,-y)),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 E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=b/2,E.endX=a,E.endY=b/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=b,E}),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 E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*b,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*b)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*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 E=a/2,y=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return y.spot1=fe,y.spot2=ye,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=b,E}),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 we("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var y=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,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-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var y=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,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-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new we("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var y=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,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-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new we("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var y=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,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-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var y=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())):x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}});var Ie=[];function Fe(){var ne=Ie.pop();return ne===void 0?[]:ne}function Ge(ne){ne.length=0,Ie.push(ne)}function Ae(ne){for(var a=Fe(),b=.5,E=.5,y=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+y,a[z]=new go.Point(E+b*Math.cos(x),E+b*Math.sin(x));return a.push(a[0]),a}function Be(ne){var a=be(ne),b=Fe();b[0]=a[0];for(var E=1,y=1;E<a.length;E+=2,y+=3)b[y]=a[E],b[y+1]=a[E],b[y+2]=a[E+1];return Ge(a),b}function be(ne){for(var a=Ae(ne),b=Fe(),E=Math.floor(a.length/2),y=a.length-1,x=ne%2===0?2:1,z=0;z<y;z++){var ee=a[z],te=a[z+1],ae=a[(E+z-1)%y],oe=a[(E+z+x)%y];b[z*2]=ee,b[z*2+1]=Me(ee.x,ee.y,ae.x,ae.y,te.x,te.y,oe.x,oe.y,new go.Point)}return b[b.length]=b[0],Ge(a),b}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,b){var E=Ae(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,b){var E=Ae(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,b){var E=Ae(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,b){var E=Ae(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,b){var E=Ae(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,b){var E=Ae(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,b){var E=Ae(12),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,b){var E=be(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,b){var E=be(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,b){var E=be(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,b){var E=be(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,b){var E=be(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,b){var E=be(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),Ge(E),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,b){var E=Be(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,b){var E=Be(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,b){var E=Be(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,b){var E=Be(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,b){var E=Be(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,b){var E=Be(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),Ge(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new we("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new we("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,b){var E=ne?ne.parameter1:NaN,y=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(y)&&(y=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()),E<a/2&&y<b/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y).close())),x.setSpots(0,0,1,1,E,y,-E,-y),x}),go.Shape.setFigureParameter("Ring",0,new we("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var y=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,y,y,y,y).close());var ee=Math.max(y-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,ee,ee).close())),x.spot1=fe,x.spot2=ye,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 E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*b)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)).add(new go.PathSegment(go.PathSegment.Line,E*a,b)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*b)).add(new go.PathSegment(go.PathSegment.Line,0,E*b).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new we("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new we("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,b){var E=ne?ne.parameter1:NaN,y=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(y)&&(y=315);var x=E%360;x<0&&(x+=360);var z=y%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 E=me/Math.SQRT2*.5,y=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,y*a,x*b,a,(1-E)*b,(y+E)*a,(x+E)*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()))}),go.Shape.setFigureParameter("ThickCross",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var y=Math.min(E,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=Math.min(E,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,b){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||b===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=b,y}else{var x=a/2,z=b/2,ee=Math.atan2(b,a),te=E-Math.min(Math.cos(ee)*E/2,x),ae=E-Math.min(Math.sin(ee)*E/2,z),y=new go.Geometry,oe=new go.PathFigure(te,0,!0);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,.2*b)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,a,b-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,.8*b)),oe.add(new go.PathSegment(go.PathSegment.Line,te,b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return y.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()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new we("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var y=new go.Geometry,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,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*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-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*b).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new we("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var y=new go.Geometry,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.Bezier,a,b,Math.abs(1-E)*a,.25*b,Math.abs(1-E)*a,.75*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*b,E*a,.25*b).close()),y}),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 E=new go.Geometry,y=new go.PathFigure(.4*a,.6*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,b,.5*a,.75*b,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.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 y.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)),y.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)),y.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)),y.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,y.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)),y.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)),y.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)),y.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,y.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)),y.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)),y.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)),y.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()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.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 y.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*b)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,b*ee,x*a,x*a).close()),y=new go.PathFigure(a*.5,0,!1),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,y=new go.PathFigure((z+x)*a,ee*b,!0),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,b*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,b){var E=.8535533905932737,y=.5*a,x=.5*b;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,x,y,x)).add(new go.PathSegment(go.PathSegment.Line,y,b)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*b)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*b)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*b);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),x=.4,y=me*.4;var ae=re(),oe=re(),ie=re(),Se=re();qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.42,ae,oe,ie,Se,Se);var le=re(),Le=re(),De=re();qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.58,Se,Se,De,le,Le);var Qe=re(),ot=re(),it=re();qe(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.42,Qe,ot,it,Se,Se);var he=re(),ze=re(),ke=re();return qe(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.58,Se,Se,ke,he,ze),te.add(new go.PathSegment(go.PathSegment.Move,ke.x*a,ke.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-y)*b,(z-y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*b,ae.x*a,ae.y*b,oe.x*a,oe.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*b).close()),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,le.x*a,le.y*b,Le.x*a,Le.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,it.x*a,it.y*b,Qe.x*a,Qe.y*b,ot.x*a,ot.y*b).close()),de(ae),de(oe),de(ie),de(Se),de(le),de(Le),de(De),de(Qe),de(ot),de(it),de(he),de(ze),de(ke),E.defaultStretch=go.GraphObject.Uniform,E}),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 we("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var y=(a-E)/2,x=y+E;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,y,.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 E=new go.Geometry,y=me*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ie=re(),Se=new go.PathFigure((z-x)*a,ee*b,!1);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.44,oe,ie,ae,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*b,oe.x*a,oe.y*b,ie.x*a,ie.y*b));var le=ge(ae.x,ae.y);qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.56,te,te,ae,oe,ie);var Le=ge(ae.x,ae.y);Se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),Se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*b)),Se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,oe.x*a,oe.y*b,ie.x*a,ie.y*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),x=.35,y=me*.35;var De=new go.PathFigure(z*a,(ee-x)*b,!1);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b));var Qe=new go.PathFigure((z-x)*a,ee*b,!1);return E.add(Qe),de(te),de(ae),de(oe),de(ie),de(le),de(Le),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,b){var E=new go.Geometry,y=.375,x=0,z=-.125,ee=y*me,te=new go.PathFigure((.525+x)*a,(.5+y+z)*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5+y+z)*b,(.5+y+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*b,(1-.5+y+x)*a,(.5-ee+z)*b,(.5+ee+x)*a,(.5-y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+y+z)*b,(.5-y+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,(.5+y+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()),y=.325,x=0,z=-.125,ee=y*me;var te=new go.PathFigure((1-.5+y+x)*a,(.5+z)*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+y+z)*b,(.5+y+x)*a,(.5+ee+z)*b,(.5+ee+x)*a,(.5+y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5+y+z)*b,(.5-y+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b,(.5-ee+x)*a,(.5-y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5-y+z)*b,(1-.5+y+x)*a,(.5-ee+z)*b));var te=new go.PathFigure((.525+x)*a,(.5+y+z)*b,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,b){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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 E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,E*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 E=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 E.defaultStretch=go.GraphObject.Uniform,E}),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 E=.5;return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*b)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*b,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,b){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*b)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*b,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new we("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new we("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=.3);var x=(1-E)*a,z=(.5-y/2)*b,ee=(.5+y/2)*b,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),ae.add(new go.PathSegment(go.PathSegment.Line,x,b)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/b);var oe=Me(0,ee/b,1,ee/b,x/a,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),de(oe),te}),go.Shape.setFigureParameter("Arrow2",0,new we("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new we("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,b/2);var x=a-E,z=(b-y)/2,ee=z+y,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),ae.add(new go.PathSegment(go.PathSegment.Line,x,b)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/b);var oe=Me(0,ee/b,1,ee/b,x/a,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),de(oe),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*b).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new we("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*b,x=(.5+E/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,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Me(0,.5,.3,0,0,y/b,.1,y/b,re());return z.spot1=new go.Spot(te.x,te.y),te=Me(.7,1,1,.5,0,x/b,1,x/b,te),z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new we("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new we("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=100);var x=(b-E)/2,z=x+E,ee=(b-y)/2,te=ee+y;(E>b||y>b)&&(y>E?(E=E*b/y,x=(b-E)/2,z=x+E,ee=0,te=b):(x=0,z=b,ee=0,te=b));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*b,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Me(0,.5,.3,ee/b,0,x/b,1,x/b,re());return ae.spot1=new go.Spot(ie.x,ie.y),ie=Me(.7,te/b,1,.5,0,z/b,1,z/b,ie),ae.spot2=new go.Spot(ie.x,ie.y),de(ie),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new we("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*b,x=(.5+E/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,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,y/b);var te=Me(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new we("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new we("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=100);var x=(b-E)/2,z=x+E,ee=(b-y)/2,te=ee+y;(E>b||y>b)&&(y>E?(E=E*b/y,x=(b-E)/2,z=x+E,ee=0,te=b):(x=0,z=b,ee=0,te=b));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*b,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,x/b);var ie=Me(.7,te/b,1,.5,0,z/b,1,z/b,re());return ae.spot2=new go.Spot(ie.x,ie.y),de(ie),ae}),go.Shape.setFigureParameter("Pointer",0,new we("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(E,.35);var z=Me(.2,.65,1,.65,0,1,1,.5,re());return y.spot2=new go.Spot(z.x,z.y),de(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new we("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*b,E*a,.25*b).close()),y.spot1=new go.Spot(E,.35);var z=Me(0,.65,1,.65,0,1,1,.5,re());return y.spot2=new go.Spot(z.x,z.y),de(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new we("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var y=(.5-E/2)*b,x=(.5+E/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,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Me(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new we("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var y=(b-E)/2,x=y+E;E>b&&(y=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,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,y/b);var te=Me(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new we("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*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,E*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(E,1),y}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=me*.1,z=new go.PathFigure(0,.9*b,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+x)*b).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.9*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,b,.85/.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*b).close());var x=new go.PathFigure(0,.9*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,.8*b,.85/.9*a,.8*b)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var x=new go.PathFigure(.5*a,b,!1);return E.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)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.3*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*b,!1);return E.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)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/3);var y=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*b,1*a,b-me*E,(.5+x)*a,1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,(.5-x)*a,1*b,0,b-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),y.spot1=new go.Spot(0,0,0,2*E),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/3);var y=new go.Geometry,x=me*.5,z=new go.PathFigure(0,b-E,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,b-me*E,(.5+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,(.5-x)*a,b,0,b-me*E));var ee=new go.PathFigure(0,b-E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b-2*E,0,b-E-me*E,(.5-x)*a,b-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b-E,(.5+x)*a,b-2*E,a,b-E-me*E)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*E),y}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var y=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-me*E,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,(.5+x)*b,a-me*E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,me*E,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*b,me*E,0));var ee=new go.PathFigure(E,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*b,E+me*E,0,2*E,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,b,2*E,(.5+x)*b,E+me*E,b)),y.spot1=new go.Spot(0,0,2*E,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var y=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-me*E,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,(.5+x)*b,a-me*E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,me*E,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*b,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*b,a-E-me*E,0,a-2*E,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a-2*E,(.5+x)*b,a-E-me*E,b)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*E,0),y}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,.25*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(.25*a,.25*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.25*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,b,!1);return E.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)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*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)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,b){var E=new go.Geometry,y=.2,x=.1,z=me*y,ee=me*x,te=.5,ae=.1,oe=new go.PathFigure(te*a,(ae+x)*b,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*a,ae*b,(te-z)*a,(ae+x)*b,(te-y)*a,(ae+ee)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-x)*b,(te-y)*a,(ae-ee)*b,(te-z)*a,(ae-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*a,ae*b,(te+z)*a,(ae-x)*b,(te+y)*a,(ae-ee)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+x)*b,(te+y)*a,(ae+ee)*b,(te+z)*a,(ae+x)*b));var ie=.05,Se=me*ie;te=.05,ae=.25;var le=new go.PathFigure(.5*a,.2*b,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*b)),te=.95,ae=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,ae*b,(te+Se)*a,(ae-ie)*b,(te+ie)*a,(ae-Se)*b)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*b)),ie=.025,Se=me*ie,te=.825,ae=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ie)*b,(te+ie)*a,(ae-Se)*b,(te+Se)*a,(ae-ie)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,ae*b,(te-Se)*a,(ae-ie)*b,(te-ie)*a,(ae-Se)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b)),ie=.05,Se=me*ie,te=.5,ae=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ie)*b,(te+ie)*a,(ae-Se)*b,(te+Se)*a,(ae-ie)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,ae*b,(te-Se)*a,(ae-ie)*b,(te-ie)*a,(ae-Se)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*b)),ie=.025,Se=me*ie,te=.175,ae=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ie)*b,(te+ie)*a,(ae-Se)*b,(te+Se)*a,(ae-ie)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,ae*b,(te-Se)*a,(ae-ie)*b,(te-ie)*a,(ae-Se)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),ie=.05,Se=me*ie,te=.05,ae=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ie)*b,(te-ie)*a,(ae-Se)*b,(te-Se)*a,(ae-ie)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new we("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var y=new go.Geometry,x=new go.PathFigure(a,0,!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,0,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),y.spot1=new go.Spot(0,E),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b));var x=new go.PathFigure(.5*a,.5*b,!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,.5*a,.5*b)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=me*.1,z=new go.PathFigure(a,.1*b,!0);E.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+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*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-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*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+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*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+y)*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,(.5-y)*a,.4*b,0,(.3+x)*b)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*b,.25*a,.1*b).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=me*.1,z=new go.PathFigure(a,.1*b,!0);E.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+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*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-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*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+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*a,.3*b,0,(.2+x)*b)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var x=me*.2,z=new go.PathFigure(0,.2*b,!0);E.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,y*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(.1*a,.4*b,!1);return E.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)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b));var x=new go.PathFigure(a,.5*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b));var z=new go.PathFigure(a,.5*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var ee=new go.PathFigure(y*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,b){var E=new go.Geometry,y=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*b,!0);E.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 ae=new go.PathFigure((x+y)*a,(x+y)*b,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x*a,x*b)),ae.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Line,(x+y)*a,x*b)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.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 E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*b)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=.5,z=new go.PathFigure(.5*a,b,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*b,a,(x+y)*b,(x+y)*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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,y*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*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-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*b,.96*a,.47*b,.93*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*b,.86*a,.57*b,.83*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.4*a,.4*b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*b,!1);return E.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)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,.1*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close());var x=new go.PathFigure(.2*a,.1*b,!1);return E.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)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=1-y,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close());var ee=new go.PathFigure(.5*y*a,y*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*b)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=.5,z=new go.PathFigure(a,x*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+y)*b,(x+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b));var ee=new go.PathFigure(a,.5*b,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.5*a,.6*b,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure((1-y)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(0,.5*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(y*a,0,!0);E.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(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),E.spot1=new go.Spot(y,0),E.spot2=new go.Spot(1-y,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*b).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(.5+y)*a,0,a,(.5-y)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.5+y)*b,(.5+y)*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=.5,z=new go.PathFigure(a,x*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+y)*b,(x+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b));var ee=new go.PathFigure(a,x*b,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b));var te=new go.PathFigure(.8*a,.75*b,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,b){var E=new go.Geometry,y=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);E.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 ae=new go.PathFigure((z+x)*a,ee*b,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee-x)*b,(z+x)*a,(ee-y)*b)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,ae=.5,oe=new go.PathFigure(.8*a,.5*b,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,.8*a,(.5+x)*b,(.4+y)*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(.4+y)*a,0,.8*a,(.5-x)*b));var ie=new go.PathFigure((te+ee)*a,ae*b,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*b,(te+ee)*a,(ae+z)*b,(te+z)*a,(ae+ee)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*b,(te-z)*a,(ae+ee)*b,(te-ee)*a,(ae+z)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*b,(te-ee)*a,(ae-z)*b,(te-z)*a,(ae-ee)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*b,(te+z)*a,(ae-ee)*b,(te+ee)*a,(ae-z)*b)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*y,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.7*a,(ee+x)*b,(z+x)*a,(ee+y)*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-y)*b,.7*a,(ee-x)*b)),y=.1,x=me*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-y)*a,ee*b,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*y,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x+x)*a,(ee-y)*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+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*y,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var ae=new go.PathFigure(.8*a,.5*b,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.7*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+x)*a,(ee-y)*b,.7*a,(ee-x)*b)),y=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-y)*a,ee*b,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*y,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var ae=new go.PathFigure(.2*a,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x)*a,(ee-y)*b,.9*a,(ee-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.9*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,b){var E=new go.Geometry,y=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-y*.5)*a,b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*a,b,(z+x)*a,0,(z+y)*a,b)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,b){var E=new go.Geometry,y=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee-x)*b,(z+x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*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)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,b){var E=new go.Geometry,y=a,x=b;a=a*.38,b=b*.6;var z=me*.8,ee=.8,te=0,ae=.5,oe=(y-a)/2,ie=(x-b)/2,Se=new go.PathFigure(te*a+oe,(ae+ee)*b+ie,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*b+ie,(te-z)*a+oe,(ae+ee)*b+ie,(te-ee)*a+oe,(ae+z)*b+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*b+ie,(te-ee)*a+oe,(ae-z)*b+ie,(te-z)*a+oe,(ae-ee)*b+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*b+ie,te*a+oe,(ae-ee)*b+ie,(te-ee+z*.5)*a+oe,(ae-z)*b+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*b+ie,(te-ee+z*.5)*a+oe,(ae+z)*b+ie,te*a+oe,(ae+ee)*b+ie).close()),z=me*.4,ee=.4,te=.2,ae=.5;var le=new go.PathFigure(te*a+oe,(ae+ee)*b+ie,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*b+ie,(te-z)*a+oe,(ae+ee)*b+ie,(te-ee)*a+oe,(ae+z)*b+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*b+ie,(te-ee)*a+oe,(ae-z)*b+ie,(te-z)*a+oe,(ae-ee)*b+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*b+ie,te*a+oe,(ae-ee)*b+ie,(te-ee+z*.5)*a+oe,(ae-z)*b+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*b+ie,(te-ee+z*.5)*a+oe,(ae+z)*b+ie,te*a+oe,(ae+ee)*b+ie).close()),z=me*.2,ee=.2,te=.5,ae=.5;var Le=new go.PathFigure((te-ee)*a+oe,ae*b+ie,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*b+ie,(te-ee)*a+oe,(ae-z)*b+ie,(te-z)*a+oe,(ae-ee)*b+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*b+ie,(te+z)*a+oe,(ae-ee)*b+ie,(te+ee)*a+oe,(ae-z)*b+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*b+ie,(te+ee)*a+oe,(ae+z)*b+ie,(te+z)*a+oe,(ae+ee)*b+ie)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*b+ie,(te-z)*a+oe,(ae+ee)*b+ie,(te-ee)*a+oe,(ae+z)*b+ie)),z=me*.4,ee=.4,te=.8,ae=.5;var De=new go.PathFigure(te*a+oe,(ae-ee)*b+ie,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*b+ie,(te+z)*a+oe,(ae-ee)*b+ie,(te+ee)*a+oe,(ae-z)*b+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*b+ie,(te+ee)*a+oe,(ae+z)*b+ie,(te+z)*a+oe,(ae+ee)*b+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*b+ie,te*a+oe,(ae+ee)*b+ie,(te+ee-z*.5)*a+oe,(ae+z)*b+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*b+ie,(te+ee-z*.5)*a+oe,(ae-z)*b+ie,te*a+oe,(ae-ee)*b+ie).close()),z=me*.8,ee=.8,te=1,ae=.5;var Qe=new go.PathFigure(te*a+oe,(ae-ee)*b+ie,!0);return E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*b+ie,(te+z)*a+oe,(ae-ee)*b+ie,(te+ee)*a+oe,(ae-z)*b+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*b+ie,(te+ee)*a+oe,(ae+z)*b+ie,(te+z)*a+oe,(ae+ee)*b+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*b+ie,te*a+oe,(ae+ee)*b+ie,(te+ee-z*.5)*a+oe,(ae+z)*b+ie)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*b+ie,(te+ee-z*.5)*a+oe,(ae-z)*b+ie,te*a+oe,(ae-ee)*b+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*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)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,b,!0,!0);E.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);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,b){var E=new go.Geometry,y=me*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ie=re();qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,ae,oe,ie);var Se=ge(ae.x,ae.y),le=new go.PathFigure(ae.x*a,ae.y*b,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,oe.x*a,oe.y*b,ie.x*a,ie.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),qe(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,oe,ie,ae,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*b,oe.x*a,oe.y*b,ie.x*a,ie.y*b)),y=me*.3,x=.3,qe(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,oe,ie,ae,te,te),le.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,ie.x*a,ie.y*b,oe.x*a,oe.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,ae,oe,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*b,ie.x*a,ie.y*b,oe.x*a,oe.y*b).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),de(te),de(ae),de(oe),de(ie),de(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b/2,!0);E.add(y),y.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(y,0,0),x(y,.4,0),x(y,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*b)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*b)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*b).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*b,.45*a,.44*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*b,.48*a,.17*b,.54*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*b,.59*a,.29*b,.58*a,.28*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*b,.8*a,.34*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*b,.87*a,.48*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,1.17*a,.76*b,.82*a,.8*b).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,b){var E=new go.Geometry,y=.5,x=0,z=0,ee=y*me,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,ie=.5,Se=.5,le=0,Le=new go.PathFigure(te*a,(1-ae)*b,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,ie*b,oe*a,.7*b,oe*a,ie*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*a,(le+x)*b,(.5+y+x)*a,(.5-ee+x)*b,(.5+ee+x)*a,(.5-y+x)*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*b,(.5-y+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,.9*b)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*b)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*b)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*b)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(a,b,!1);E.add(x);var z=new go.PathFigure(0,.5*b,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b).close());var y=new go.PathFigure(0,.2*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.7*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(.335*a,(1-.555)*b,!0);E.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,ae=Math.PI/4,oe=4*(1-Math.cos(ae))/(3*Math.sin(ae)),ie=oe*.5,Se=z,le=z,Le=oe*Se,De=oe*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,te*b,(ee-(Le+Se)/2)*a,(te+(le+De)/2)*b,(ee-Se)*a,(te+De)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*b,(ee-Se)*a,(te-De)*b,(ee-Le)*a,(te-le)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,te*b,(ee+Le)*a,(te-le)*b,(ee+Se)*a,(te-De)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*b,(ee+Se)*a,(te+De)*b,(ee+(Le+Se)/2)*a,(te+(le+De)/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 Qe=new go.PathFigure(.2*a,b,!1);E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*b));var ot=new go.PathFigure(.8*a,b,!1);return E.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var x=new go.PathFigure(.2*a,.2*b,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(a,b,!1);E.add(x);var z=new go.PathFigure(.1*a,b,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.05*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*b,0,b,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*b,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,a,b,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,b));var x=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*b)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*b,x*a,x*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*b,.575*a,.725*b,.625*a,.375*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*b,.375*a,.375*b,.425*a,.725*b)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.45*a,.95*b,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*b,.17*a,.95*b,.15*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*b,0,.675*b,0,.7*b)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*b)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*b));var x=new go.PathFigure(.475*a,.2*b,!1);E.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*.5,z=new go.PathFigure(a,y*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,b,a,(y+x)*b,(y+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*b,(y-x)*a,b,0,(y+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-x)*b,(y-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y*b,(y+x)*a,0,a,(y-x)*b));var ee=new go.PathFigure(y*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*b)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.15*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,.15*b,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*b).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(0,.5*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close());var x=new go.PathFigure(0,.2*b,!0);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.15*a,.6*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b));var x=new go.PathFigure(.15*a,.6*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*b,!0);E.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,ae=.9,oe=new go.PathFigure((te-z)*a,ae*b,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*b,(te-z)*a,(ae-ee)*b,(te-ee)*a,(ae-z)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*b,(te+ee)*a,(ae-z)*b,(te+z)*a,(ae-ee)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*b,(te+z)*a,(ae+ee)*b,(te+ee)*a,(ae+z)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*b,(te-ee)*a,(ae+z)*b,(te-z)*a,(ae+ee)*b).close()),z=.1,ee=me*.1,te=.8,ae=.9;var ie=new go.PathFigure((te-z)*a,ae*b,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*b,(te-z)*a,(ae-ee)*b,(te-ee)*a,(ae-z)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*b,(te+ee)*a,(ae-z)*b,(te+z)*a,(ae-ee)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*b,(te+z)*a,(ae+ee)*b,(te+ee)*a,(ae+z)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*b,(te-ee)*a,(ae+z)*b,(te-z)*a,(ae+ee)*b).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*b,!0);E.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);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*b));var te=.1,ae=me*.1,oe=.1,ie=.9,Se=new go.PathFigure((oe-te)*a,ie*b,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-te)*b,(oe-te)*a,(ie-ae)*b,(oe-ae)*a,(ie-te)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,ie*b,(oe+ae)*a,(ie-te)*b,(oe+te)*a,(ie-ae)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie+te)*b,(oe+te)*a,(ie+ae)*b,(oe+ae)*a,(ie+te)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,ie*b,(oe-ae)*a,(ie+te)*b,(oe-te)*a,(ie+ae)*b)),te=.1,ae=me*.1,oe=.4,ie=.9;var le=new go.PathFigure((oe-te)*a,ie*b,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-te)*b,(oe-te)*a,(ie-ae)*b,(oe-ae)*a,(ie-te)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,ie*b,(oe+ae)*a,(ie-te)*b,(oe+te)*a,(ie-ae)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie+te)*b,(oe+te)*a,(ie+ae)*b,(oe+ae)*a,(ie+te)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,ie*b,(oe-ae)*a,(ie+te)*b,(oe-te)*a,(ie+ae)*b)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,.4*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*b).close());var x=new go.PathFigure(.45*a,.7*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b));var z=new go.PathFigure(.55*a,.4*b,!0);E.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 oe=.05,ie=me*.05,Se=.175,le=.95,ee=new go.PathFigure((Se-oe)*a,le*b,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-oe)*b,(Se-oe)*a,(le-ie)*b,(Se-ie)*a,(le-oe)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,le*b,(Se+ie)*a,(le-oe)*b,(Se+oe)*a,(le-ie)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+oe)*b,(Se+oe)*a,(le+ie)*b,(Se+ie)*a,(le+oe)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,le*b,(Se-ie)*a,(le+oe)*b,(Se-oe)*a,(le+ie)*b));var oe=.05,ie=me*.05,Se=.375,le=.95,te=new go.PathFigure((Se-oe)*a,le*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-oe)*b,(Se-oe)*a,(le-ie)*b,(Se-ie)*a,(le-oe)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,le*b,(Se+ie)*a,(le-oe)*b,(Se+oe)*a,(le-ie)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+oe)*b,(Se+oe)*a,(le+ie)*b,(Se+ie)*a,(le+oe)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,le*b,(Se-ie)*a,(le+oe)*b,(Se-oe)*a,(le+ie)*b));var oe=.05,ie=me*.05,Se=.625,le=.95,ae=new go.PathFigure((Se-oe)*a,le*b,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-oe)*b,(Se-oe)*a,(le-ie)*b,(Se-ie)*a,(le-oe)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,le*b,(Se+ie)*a,(le-oe)*b,(Se+oe)*a,(le-ie)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+oe)*b,(Se+oe)*a,(le+ie)*b,(Se+ie)*a,(le+oe)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,le*b,(Se-ie)*a,(le+oe)*b,(Se-oe)*a,(le+ie)*b));var oe=.05,ie=me*.05,Se=.825,le=.95,Le=new go.PathFigure((Se-oe)*a,le*b,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-oe)*b,(Se-oe)*a,(le-ie)*b,(Se-ie)*a,(le-oe)*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,le*b,(Se+ie)*a,(le-oe)*b,(Se+oe)*a,(le-ie)*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+oe)*b,(Se+oe)*a,(le+ie)*b,(Se+ie)*a,(le+oe)*b)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,le*b,(Se-ie)*a,(le+oe)*b,(Se-oe)*a,(le+ie)*b).close());var De=new go.PathFigure(0,b,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(.15*a,b,!0);E.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,ae=.35,oe=.775,ie=new go.PathFigure((ae-ee)*a,oe*b,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ee)*b,(ae-ee)*a,(oe-te)*b,(ae-te)*a,(oe-ee)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,oe*b,(ae+te)*a,(oe-ee)*b,(ae+ee)*a,(oe-te)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+ee)*b,(ae+ee)*a,(oe+te)*b,(ae+te)*a,(oe+ee)*b)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,oe*b,(ae-te)*a,(oe+ee)*b,(ae-ee)*a,(oe+te)*b).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.75*a,0,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.75*b,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.25*a,b,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*b,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,.15*a,.25*b,.15*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*b,.85*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*b,.35*a,.3*b,.65*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*b,.35*a,.7*b,.65*a,.7*b)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.25*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*b,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*b,.425*a,.5*b,.575*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*b,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*b,.1*a,.5*b,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*b,.425*a,b,.575*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*b,.8*a,.5*b,.9*a,.5*b)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,b){var E=new go.Geometry,y=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-y)*a,ee*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b));var ae=new go.PathFigure(0,.7*b,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*b,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.65*a,.3*b,.65*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*b,.35*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.3*a,.6*b,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.2*a,b,.35*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,b,.7*a,.6*b,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.8*a,b,.65*a,.95*b)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,0,.075*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,0,b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*b,.8*a,b,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*b));var x=new go.PathFigure(0,.6*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*a,ee*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b));var ae=new go.PathFigure(.15*a,.5*b,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*b)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.1*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*b,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,.65*a,.2*b,.85*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.85*a,.6*b,.65*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.35*a,.4*b,.15*a,.4*b).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,b){var E=new go.Geometry,y=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*a,ee*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b).close()),y=.05,x=me*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-y)*a,ee*b,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,.75*a,.475*b,.75*a,.225*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*b,.4*a,.2*b,.3*a,.25*b)),E}),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 E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return E.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)),E}),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 E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*b,0,.375*b,.05*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*b,.3*a,.225*b,.4*a,.175*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*b,.46*a,.05*b,.525*a,.05*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*b,.525*a,.275*b,.475*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*b,a,.4*b,a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*b,.675*a,.55*b,.675*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*b,.65*a,.7*b,.65*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,b,.61*a,.85*b,.61*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,.435*a,b,0,b).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.7).close());var x=new go.PathFigure(0,b*.6,!0);return E.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()),E}),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 E=new go.Geometry,y=new go.PathFigure(a*1,b*1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.85).close());var x=new go.PathFigure(.126*a,.85*b,!1);E.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);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b*1,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b*1,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*(1-.184)).close());var x=new go.PathFigure(a*.204,b,!0);E.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);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*b,!0);E.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);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.55*a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*b,0,.4*b,.225*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*b,.975*a,0,a,.08*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,b).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*1,b*.5,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*b)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*b,.075*a,.075*b).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1));var x=new go.PathFigure(0,0,!1);E.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);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,b){var E=new go.Geometry,y=8,x=y*me,z=new go.PathFigure(y,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,x,b,0,b-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,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);E.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 ae=new go.PathFigure(a*.78,b*.05,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.78,b*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,b/3);var y=E*me,x=b*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-y,0,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-y,a-y,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,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,y,x,0,x-y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,y,y,0).close()),y>1?(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,.8,-y,-y)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*.45,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.45).close());var x=new go.PathFigure(a*1,b*.55,!0);return E.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()),E}),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 E=new go.Geometry,y=new go.PathFigure(a*0,b*.1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.9).close());var x=new go.PathFigure(a*.1,b*.2,!0);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,b){var E=new go.Geometry,y=15,x=y*me,z=new go.PathFigure(a*.62,b*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,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?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.4,b*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.5,b*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close());var x=new go.PathFigure(a*.235,b*.28,!0);return E.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()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.5,b*0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001: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 we={},tt="5.0",ge={},re=null,de=!1,Me=!1,qe=null,fe=!1,ye=null,me=null,Ie=0;Ie<arguments.length;Ie++){var Fe=arguments[Ie];if(Fe!==null)switch(typeof Fe){case"number":tt=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=Fe:qe=Fe;break;case"object":typeof Fe.is3D!="undefined"?re=Fe:ge=Fe;break;case"boolean":de=Fe,Me=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Me&&(de=!0)),qe!==null&&ge.id===void 0&&(ge.id=qe);var Ge="",Ae="",Be=!1,be=null,ne=null,a=null,b=!1,E=null,y=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};we.setHTML5Codebase=function(Ee,Oe){me=Ee,Ct(Ee,Oe)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(Ee,Oe){var Ze=parseFloat(Ee);if(Ze!==NaN&&Ze<5){console.log("The GeoGebra HTML5 codebase version "+Ze+" is deprecated. Using version latest instead.");return}ye=Ee,wt(Ee,Oe)},we.getHTML5CodebaseVersion=function(){return ne},we.getParameters=function(){return ge},we.setFontsCSSURL=function(Ee){z=Ee},we.setGiacJSURL=function(Ee){},we.setJNLPFile=function(Ee){Ge=Ee},we.setJNLPBaseDir=function(Ee){},we.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Ze=ge.id,Pt,Ve=!1,pt=0;pt<arguments.length;pt++){var ue=arguments[pt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Oe=ue:Ze=arguments[pt]):typeof ue=="boolean"?Ve=ue:ue instanceof HTMLElement&&(Pt=ue)}Je();function Je(){if(!fe){setTimeout(Je,200);return}Oe=Ne(Oe);var xt=Pt||document.getElementById(Ze);if(!xt){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(xt,!1),ge.width===void 0&&xt.clientWidth&&(ge.width=xt.clientWidth),ge.height===void 0&&xt.clientHeight&&(ge.height=xt.clientHeight),!(ge.width&&ge.height)&&Oe==="html5"&&(delete ge.width,delete ge.height),be=Oe,Oe==="screenshot")ot(xt,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!ae()||Ee())&&oe()),_t?(be="screenshot",he(xt,ge,Ve,Oe)):Qe(xt,ge,Ve)}}};function ae(){try{return window.self!==window.top}catch(Ee){return!0}}function oe(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return re},we.isJavaInstalled=function(){return!1};var ie=function(Ee){var Oe=function(pt){var ue=JSON.parse(pt),Je=function(ct){return ct.type=="G"||ct.type=="E"},xt=ue.elements?ue.elements.filter(Je)[0]:ue;if(!xt||!xt.url){Ze();return}ge.fileName=xt.url,Se(xt.settings||{}),re.is3D=!0;var _t="https://www.geogebra.org/images/";we.setPreviewImage(E||xt.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),Ee()},Ze=function(){ge.onError&&ge.onError(),Et("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Pt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+ge.material_id+"?scope=basic";le("https://"+Pt+"/api/proxy.php?path="+encodeURIComponent(Ve),Oe,Ze)};function Se(Ee){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ze){Ee[Ze]=!!Ee[Ze]}),Oe.forEach(function(Ze){ge[Ze]===void 0&&Ee[Ze]!==void 0&&(ge[Ze]=Ee[Ze])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function le(Ee,Oe,Ze){var Pt=new XMLHttpRequest;Pt.open("GET",Ee),Pt.onload=function(){Oe(Pt.responseText)},Pt.onerror=Ze,Pt.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return be},we.setPreviewImage=function(Ee,Oe,Ze){E=Ee,y=Oe,x=Ze},we.removeExistingApplet=function(Ee,Oe){var Ze;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),be=null;var Pt=null;for(Ze=0;Ze<Ee.childNodes.length;Ze++){var Ve=Ee.childNodes[Ze],pt=Ve.className;pt==="applet_screenshot"?Oe?(Ve.style.display="block",be="screenshot"):Ve.style.display="none":pt!=="applet_scaler prerender"&&(Ee.removeChild(Ve),Pt=pt&&pt.indexOf("appletParameters")!=-1?Ve.id:null,Ze--)}var ue=ge.id!==void 0?ge.id:Pt,Je=window[ue];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[ue]=null)},we.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=we.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},we.startAnimation=function(){var Ee=we.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},we.stopAnimation=function(){var Ee=we.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},we.getAppletObject=function(){var Ee=ge.id!==void 0?ge.id:"ggbApplet";return window[Ee]},we.resize=function(){};var Le=function(Ee,Oe,Ze){var Pt=document.createElement("param");Pt.setAttribute("name",Oe),Pt.setAttribute("value",Ze),Ee.appendChild(Pt)},De=function(Ee){return Ee&&Ee!=="false"},Qe=function(Ee,Oe,Ze){te(ne)<=4.2&&(Ze=!0);var Pt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!b)&&(Pt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var pt=Oe.width,ue=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(te(ne)<=4.4)De(Oe.showToolBar)&&(Oe.height-=7),De(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&De(Oe.showToolBar)&&(Oe.width=605,pt=605);else{var Je=100;(De(Oe.showToolBar)||De(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),Je=De(Oe.showMenuBar)?245:155),pt<Je&&(Oe.width=Je,pt=Je)}Ve.style.border="none",Ve.style.display="inline-block";for(var xt in Oe)Oe.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&Ve.setAttribute("data-param-"+xt,Oe[xt]);z&&Ve.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(Ee,Oe)},window.addEventListener("resize",function(ht){we.resize()});var _t=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!Ze&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var ct=Ee.querySelector(".applet_scaler.prerender"),xe=ct!==null;if(xe)var Ce=ct.querySelector(".ggb_preview");else{var Ce=ke(pt,ue,Oe.borderColor,!1);ct=document.createElement("div"),ct.className="applet_scaler",ct.style.position="relative",ct.style.display="block",ct.style.width=pt+"px",ct.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ct,"66%"),te(ne)>=5?(Oe.appletOnLoad=function(ht){var $t=Ee.querySelector(".ggb_preview");$t&&$t.parentNode.removeChild($t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ct),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(ht)},xe||ct.appendChild(Ce)):Ve.appendChild(Ce),ct.appendChild(Ve),xe||Ee.appendChild(ct),setTimeout(function(){we.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ve),Ee.appendChild(pe),Oe.appletOnLoad=function(ht){we.resize(),_t(ht)}}function _e(ht,$t){$t&&typeof $t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,$t.appletOnLoad):renderGGBElement(ht),Et("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$t)}function je(ht,$t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:$t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qt){_e(Qt.article,Qt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ht.className+=" geogebraweb")):_e(ht,$t)}if(Pt){scriptLoadStarted=!0;for(var ut=0;ut<Ve.childNodes.length;ut++){var vt=Ve.childNodes[ut].tagName;vt==="TABLE"&&(Ve.removeChild(Ve.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Bt!=null&&Bt.parentNode.removeChild(Bt)}var At=document.createElement("script"),Nt=function(){je(Ve,Oe)};At.src=Ae+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=At.src,Et("GeoGebra HTML5 codebase loaded: '"+Ae+"'.",Oe),!me&&(!ye||ye=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Nt()):Ae.requirejs?__webpack_require__.e(7963).then(function(){var ht=[__webpack_require__(87963)];Nt.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(At.onload=Nt,Ee.appendChild(At))}else je(Ve,Oe);Oe.height=ue,Oe.width=pt},ot=function(Ee,Oe,Ze){var Pt=ke(Oe.width,Oe.height,Oe.borderColor,Ze),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=Oe.width+"px",Ve.style.height=Oe.height+"px",Ve.className="applet_screenshot applet_scaler"+(Ze?" applet_screenshot_play":""),Ve.appendChild(Pt);var pt=GGBAppletUtils.getScale(Oe,Ee,Ze);Ze?(Ee.appendChild(ze()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),Ee.appendChild(Ve),pt!==1&&!isNaN(pt)&&(GGBAppletUtils.scaleElement(Ve,pt),Ve.style.width=Oe.width+"px",Ve.style.height=Oe.height+"px",Ve.parentNode.style.width=Oe.width*pt+"px",Ve.parentNode.style.height=Oe.height*pt+"px"),we.resize=function(){it(Ee,Pt,Ve,Ze)},window.addEventListener("resize",function(ue){we.resize()}),we.resize()};function it(Ee,Oe,Ze,Pt){if(Ee.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var Ve=GGBAppletUtils.getScale(ge,Ee,Pt);Ze.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(Ze,Ve),Ze.parentNode.style.width=ge.width*Ve+"px",Ze.parentNode.style.height=ge.height*Ve+"px"):(GGBAppletUtils.scaleElement(Ze,1),Ze.parentNode.style.width=ge.width+"px",Ze.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(Ee,Oe){Oe.appendChild(Ee)};var he=function(Ee,Oe,Ze,Pt){ot(Ee,Oe,!0);for(var Ve=function(){var Je=[];for(ue=0;ue<Ee.childNodes.length;ue++)Je.push(Ee.childNodes[ue]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(Ee,Oe.id),_t=document.getElementById("fullscreencontainer"),ct=jQuery(Ee).find(".fullscreencontent");ct.length>0?(xt.remove(),ct.attr("id","fullscreencontent").show(),jQuery(_t).append(ct),window.dispatchEvent(new Event("resize"))):Qe(xt,Oe,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else be=Pt,Qe(Ee,Oe,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<Je.length;ue++)Ee.removeChild(Je[ue])},pt=Ee.getElementsByClassName("ggb_preview_play"),ue=0;ue<pt.length;ue++)pt[ue].addEventListener("click",Ve,!1),pt[ue].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ze=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Oe='.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");}',Ze=document.createElement("style");Ze.styleSheet?Ze.styleSheet.cssText=Oe:Ze.appendChild(document.createTextNode(Oe)),document.getElementsByTagName("head")[0].appendChild(Ze)}return Ee},ke=function(Ee,Oe,Ze,Pt){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=Ee-2+"px",Ve.style.height=Oe-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var pt="lightgrey";Ze!==void 0&&(Ze==="none"?pt="transparent":pt=Ze),Ve.style.border="1px solid "+pt;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,y!==null){var Je,xt,_t;if(!Pt){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,ue.style.opacity=.3,xt=360,xt>Ee/4*3&&(xt=Ee/4*3),_t=xt/5.8,Je.setAttribute("src",y),Je.setAttribute("width",xt),Je.setAttribute("height",_t);var ct=(Ee-xt)/2,xe=(Oe-_t)/2;Je.style.left=ct+"px",Je.style.top=xe+"px",Ve.appendChild(Je)}}return Ve.appendChild(ue),Ve},Ne=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],wt=function(Ee,Oe){if(ne=Ee,Oe){Ct(ne,!0);return}var Ze=!de;if(Ze){var Pt=te(ne);!isNaN(Pt)&&Pt<4.4&&(Ze=!1)}var Ve,pt;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var ue=ne.indexOf("//");ue>0?pt=ne:ue===0?pt=Ve+ne:pt="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in Ke)if(ne.slice(Ke[Je].length*-1)===Ke[Je]||ne.slice((Ke[Je].length+1)*-1)===Ke[Je]+"/"){Ct(pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ze&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!De(ge.showToolBar)&&!De(ge.showMenuBar)&&!De(ge.showAlgebraInput)&&!De(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?pt+="webSimple/":pt+="web3d/",Ct(pt,!1)},Ct=function(Ee,Oe){if(Ee.requirejs){Ae=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Ae=Ee,Oe===null&&(Oe=Ee.indexOf("http")===-1),Be=Oe,a="web.nocache.js",b=!1;var Ze=Ae.split("/");Ze.length>1&&(!Oe&&Ze[Ze.length-2]==="webSimple"?(a="webSimple.nocache.js",b=!0):Ke.indexOf(Ze[Ze.length-2])>=0&&(a=Ze[Ze.length-2]+".nocache.js")),Ze=Ee.split("/"),ne=Ze[Ze.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 Pt=parseFloat(ne);Pt!==NaN&&Pt<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Pt+" is deprecated. Using version latest instead."),wt("5.0",Oe))},Et=function(Ee,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Ee)};ge.material_id!==void 0?ie(Ht):Ht();function Ht(){var Ee=tt;ye!==null?Ee=ye:parseFloat(Ee)<5&&(Ee="5.0"),wt(Ee,!1),me!==null&&Ct(me,Be),fe=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function tt(fe,ye){ye!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+ye+","+ye+")",fe.style.webkitTransform="scale("+ye+","+ye+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ge(fe,ye,me,Ie,Fe,Ge){var Ae=null;if(Ge!=null&&Ge!="")for(var Be=fe.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+Ge+" ")>-1){Ae=Be;break}else Be=Be.parentNode;var be=0,ne=0,a=0,b=0,E=0,y=0,x=0;if(Ae)be=Ae.offsetWidth,ne=Math.max(Ie?Ae.offsetWidth:0,Ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(be=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=be):(be=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=be&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(E=be-z.width-z.left,y=a<=480?10:30):(y=z.left,E=a<=480?10:30),b=y+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(b=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(b=0,x=40)}}return fe&&((me===void 0||!me)&&ye>0&&ye+b<be?be=ye:be-=b,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:be,height:ne}}function re(fe,ye,me,Ie,Fe){if(fe.isScreenshoGenerator)return 1;var Ge=Ie!==void 0&&Ie,Ae=fe.noScaleMargin!=null&&fe.noScaleMargin,Be=function(ee){return ee&&ee!=="false"},be=Be(fe.autoHeight),ne=ge(ye,fe.width,me,be,Ge&&window.GGBT_wsf_view||Ae,Fe),a=parseInt(ne.width),b=fe.width,E=fe.height;if(b===void 0){var y=ye.querySelector(".appletParameters");y&&(b=y.offsetWidth,E=y.offsetHeight)}var x=a/b,z=Ge?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function de(fe,ye,me){var Ie=1,Fe,Ge=!1;if(fe.hasOwnProperty("allowUpscale")&&(Ge=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Ie=parseFloat(fe.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(Ge=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Fe=re(fe,ye,Ge,me,fe.scaleContainerClass);else return Ie;return Ge&&(!fe.hasOwnProperty("scale")||Ie===1)?Fe:Math.min(Ie,Fe)}function Me(fe){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=fe.getBoundingClientRect(),Fe=(ye-Ie.width)/2,Ge=(me-Ie.height)/2;Ge<0&&(Ge=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?fe.style.left="40px":fe.style.left=Fe+"px",fe.style.top=Ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge<40?fe.style.top="40px":fe.style.top=Ge+"px",fe.style.left=Fe+"px")}function qe(fe,ye){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ie=de(ye,fe);we()&&me.setAttribute("data-param-scale",Ie);for(var Fe=null,Ge=0;Ge<fe.childNodes.length;Ge++)if(fe.childNodes[Ge].className!==void 0&&fe.childNodes[Ge].className.match(/^applet_scaler/)){Fe=fe.childNodes[Ge];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var Ae=ye.id!==void 0?ye.id:"ggbApplet",Be=window[Ae];(Be==null||!Be.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Fe.parentNode.style.width=ye.width*Ie+"px",Fe.parentNode.style.height=ye.height*Ie+"px",tt(Fe,Ie)):(tt(Fe,1),Fe.parentNode.style.width=ye.width+"px",Fe.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Me(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:we,positionCenter:Me,getScale:de,scaleElement:tt}}();__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 we=n.location.search;return we.indexOf(J)!=-1||we.indexOf(K)!=-1}function q(we,tt){}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(we){var tt=s[L].bindings;s[L].bindings=function(){for(var ge=tt?tt():{},re=we[webModule.__softPermutationId],de=O;de<re.length;de++){var Me=re[de];ge[Me[O]]=Me[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var we=o.createElement(Q);if(we.id=L,we.style.cssText=R+S,we.tabIndex=-1,o.body.appendChild(we),t=we.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(we){function tt(re){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Me=de();if(Me){re();return}function qe(){if(!Me){if(!de())return;Me=!0,re(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var fe=setInterval(function(){qe()},$)}function ge(re){var de=u(),Me=de.body,qe=de.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=re,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),Me.appendChild(qe)}tt(function(){ge(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var tt=u(),ge=tt.body,re=tt.createElement(_);re.language=ab,re.text=we,ge.appendChild(re),ge.removeChild(re)};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(we){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(we){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(we){var tt=c[we];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function we(fe){var ye=fe.lastIndexOf(rb);ye==-1&&(ye=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Ie=fe.lastIndexOf(tb,Math.min(me,ye));return Ie>=O?fe.substring(O,Ie+P):W}function tt(fe){if(!fe.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=fe+vb,fe=we(ye.src)}return fe}function ge(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function re(){for(var fe=o.getElementsByTagName(_),ye=O;ye<fe.length;++ye)if(fe[ye].src.indexOf(xb)!=-1)return we(fe[ye].src);return W}function de(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Me(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var qe=ge();return qe==W&&(qe=re()),qe==W&&(qe=de()),qe==W&&Me()&&(qe=we(o.location.href)),qe=tt(qe),qe}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],tt=O,ge=[],re=[];function de(fe){var ye=re[fe](),me=ge[fe];if(ye in me)return ye;var Ie=[];for(var Fe in me)Ie[me[Fe]]=Fe;throw r&&r(fe,Ie,ye),null}if(__gwt_isKnownPropertyValue=function(fe,ye){return ye in ge[fe]},webModule.__getPropMap=function(){var fe={};for(var ye in ge)ge.hasOwnProperty(ye)&&(fe[ye]=de(ye));return fe},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var qe=Me.indexOf(Db);qe!=-1&&(tt=parseInt(Me.substring(qe+P),$),Me=Me.substring(O,qe))}catch(fe){}return webModule.__softPermutationId=tt,C(Me+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})()},46699:function(we,tt,ge){"use strict";ge.d(tt,{Ax:function(){return qe},Ds:function(){return fe},KI:function(){return me},SI:function(){return Me},f1:function(){return de}});var re=ge(346);function de(Ie){let Fe=!0;if(Ie.length>0){for(let Ge=0;Ge<Ie.length;Ge++)if(Ie[Ge].compile_success==0||!Ie[Ge].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function Me(Ie,Fe=""){let Ge=[];for(let Ae=0;Ae<Ie.length;Ae++){let Be=Ie[Ae],be=Fe?`${Fe}/${Be.name}`:`${Be.name}`;Ge.push({title:Be.name,type:Be.type,isLeaf:Be.type!=="tree",key:be})}return Ge}function qe(Ie,Fe,Ge){for(let Ae=0;Ae<Ie.length;Ae++){let Be=Ie[Ae];if(Be.key===Fe){Be.children=Ge;break}Be.children&&qe(Be.children,Fe,Ge)}return Ie}function fe(Ie,Fe,Ge){let Ae;return function(){let Be=this,be=arguments,ne=function(){Ae=null,Ge||Ie.apply(Be,be)},a=Ge&&!Ae;clearTimeout(Ae),Ae=setTimeout(ne,Fe),a&&Ie.apply(Be,be)}}const ye=!0,me=re.Z.API_SERVER},9507:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ae}});var re=ge(59301),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=ge(92310),qe=ge.n(Me),fe=ge(71418),ye=ge(2859),me=ge(38986),Ie=ge(51257),Fe=(Be,be,ne)=>new Promise((a,b)=>{var E=z=>{try{x(ne.next(z))}catch(ee){b(ee)}},y=z=>{try{x(ne.throw(z))}catch(ee){b(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,y);x((ne=ne.apply(Be,be)).next())}),Ae=({data:Be,className:be,fullWidth:ne,style:a={},onClose:b,onOk:E,showFullTools:y,noAssociationId:x})=>{const z=(0,re.useRef)(null),ee=(0,re.useRef)(null),te=(0,re.useRef)(null),ae=(0,re.useRef)(null),[oe,ie]=(0,re.useState)(!1),[Se,le]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&Le()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Be==null?void 0:Be.visible]);const Le=()=>Fe(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,Ie.ZJ)(Be==null?void 0:Be.src);z.current.src="",z.current.src=he,z.current.onload=function(){it()},ie(!1),le("")}),De=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",b()},Qe=he=>Fe(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ze=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:he.dataUrl}});ze!=null&&ze.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:ze==null?void 0:ze.id,settings:JSON.stringify(he.state)}})).status===0&&E():ze!=null&&ze.id&&E(ze),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),ot=()=>{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:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ke=>{const Ne=document.querySelector(ke.name);Ne&&Ne.setAttribute("title",ke.title)})},it=()=>{ee.current=new ye.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Qe),ee.current.addEventListener("beforeclose",De),y&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Be!=null&&Be.snapshotData&&ee.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ot()},300)};return re.createElement(re.Fragment,null,(Be==null?void 0:Be.visible)&&re.createElement(fe.Z,{spinning:oe,tip:Se,style:{position:"absolute"}},re.createElement("div",{ref:ae,className:qe()(de.imageDimensions,be,ne?de.fullWidth:""),style:a},re.createElement("img",{className:de.img,ref:z}))))}},76562:function(we,tt,ge){"use strict";var re=ge(59301),de=ge(95237),Me=ge(43604),qe=ge(99313),fe=ge(3113),ye=ge(91842),me=ge(99587),Ie=ge(48136),Fe=ge(59301);const Ge=(0,re.forwardRef)(({callback:Ae,showSaveButton:Be,value:be=""},ne)=>{const a=(0,re.useRef)(),b=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],y=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Fe.createElement(de.Z,{className:me.Z.lists,gutter:[10,10]},b.map((ee,te)=>Fe.createElement(Me.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(ye.Z,{value:`$$${ee.value}$$`}),ee.name),Fe.createElement("div",{className:me.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},Fe.createElement("h1",null,ae.name),Fe.createElement(de.Z,{gutter:[10,10]},ae.data.map((ie,Se)=>Fe.createElement(Me.Z,{key:Se,onClick:()=>y(ie),className:me.Z.diamond},Fe.createElement(ye.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(de.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Fe.createElement(Me.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(ye.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Fe.createElement("div",{className:me.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},ae.name&&Fe.createElement("h1",null,ae.name),Fe.createElement(de.Z,{gutter:[10,10]},ae.data.map((ie,Se)=>Fe.createElement(Me.Z,{key:Se,onClick:()=>y(ie),className:me.Z.diamond},Fe.createElement(ye.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ae&&Ae(te),te};return(0,re.useImperativeHandle)(ne,()=>({getData:z})),Fe.createElement("div",{className:me.Z.mathWrap},Fe.createElement(qe.default,{defaultActiveKey:"1",items:x}),Fe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},be||""),Be&&Fe.createElement("div",{className:me.Z.button},Fe.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=Ge},69720:function(we,tt,ge){"use strict";ge.d(tt,{h:function(){return ee}});var re=ge(59301),de=ge(57809),Me=ge(78241),qe=ge(3113),fe=ge(89780),ye=ge.n(fe),me=ge(8336),Ie=ge(12469),Fe=Object.defineProperty,Ge=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,oe)=>ae in te?Fe(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ae]=oe,b=(te,ae)=>{for(var oe in ae||(ae={}))be.call(ae,oe)&&a(te,oe,ae[oe]);if(Be)for(var oe of Be(ae))ne.call(ae,oe)&&a(te,oe,ae[oe]);return te},E=(te,ae)=>Ge(te,Ae(ae));const y=de.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};tt.Z=({callback:te,onCancel:ae})=>{const[oe,ie]=(0,re.useState)("python");function Se(Le){ie(z[Le][1])}function le(Le){te(Le)}return re.createElement(Me.default,E(b({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),re.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(de.default,{getPopupContainer:Le=>Le.parentNode,onChange:Se},Object.keys(z).map(Le=>re.createElement(y,{key:Le,value:Le},z[Le][0])))),re.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(ee,{mode:oe})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(qe.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:oe,options:ie={}}){const Se=(0,re.useRef)(),[le,Le]=(0,re.useState)();return(0,re.useEffect)(()=>{if(le){let De=function(Qe){const ot=Qe.getValue();ae&&ae(ot)};return le.on("change",De),()=>{le.off("change",De)}}},[le,ae]),(0,re.useEffect)(()=>{le&&le.setOption("mode",oe)},[le,oe]),(0,re.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,re.useEffect)(()=>{if(Se.current&&!le){const De=ye().fromTextArea(Se.current,b({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Le(De)}},[Se.current,le]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Se}))}},39793:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ft}});var re=ge(59301),de=ge(89780),Me=ge.n(de),qe=ge(76374),fe=ge(8336),ye=ge(6313),me=ge(25717),Ie=ge(99498),Fe=ge(25419),Ge=ge(67549),Ae=ge(91842),Be=({value:se="",className:Pe,showTextOnly:ce,showLines:Re,style:et={}})=>{const nt=(0,re.useMemo)(()=>"",[se]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:nt}}))},be=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(se,Pe,ce)=>Pe in se?ne(se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):se[Pe]=ce,ee=(se,Pe)=>{for(var ce in Pe||(Pe={}))y.call(Pe,ce)&&z(se,ce,Pe[ce]);if(E)for(var ce of E(Pe))x.call(Pe,ce)&&z(se,ce,Pe[ce]);return se},te=(se,Pe)=>a(se,b(Pe));let ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function oe({onActionCallback:se,title:Pe,icon:ce,actionName:Re,className:et="",children:nt}){function bt(){se(Re)}return be.createElement("a",{title:Pe,className:et,onClick:bt},be.createElement("i",{className:`${ce}`}),nt)}var ie=({watch:se,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Re,fullScreen:et,insertTemp:nt,hidetoolBar:bt,extraUse:dt})=>{const st=[...ae,{title:`${se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return be.createElement("ul",{className:"markdown-toolbar-container"},!bt&&st.map((Lt,Kt)=>be.createElement("li",{key:Kt},Lt.actionName?be.createElement(oe,te(ee({},Lt),{onActionCallback:Re})):be.createElement("span",{className:"v-line"}))),Pe?be.createElement("li",null,be.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Re},be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?be.createElement(be.Fragment,null,be.createElement("li",null,be.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Re},be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),be.createElement("li",null,be.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Re},be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,nt&&be.createElement("li",null,be.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${nt}`,onActionCallback:Re},be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),dt&&be.createElement("li",null,dt),be.createElement("li",{className:"btn-full-screen"},be.createElement(oe,{icon:`${et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Re})))},Se=ge(91558),le=ge(78241),Le=ge(92832),De=ge(3113),Qe=Object.defineProperty,ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ne=(se,Pe,ce)=>Pe in se?Qe(se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):se[Pe]=ce,Ke=(se,Pe)=>{for(var ce in Pe||(Pe={}))ze.call(Pe,ce)&&Ne(se,ce,Pe[ce]);if(he)for(var ce of he(Pe))ke.call(Pe,ce)&&Ne(se,ce,Pe[ce]);return se},wt=(se,Pe)=>ot(se,it(Pe));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var Et=({callback:se,onCancel:Pe})=>{function ce(Re){se(Re)}return re.createElement(le.default,wt(Ke({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),re.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(Le.default,null)),re.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(Le.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(De.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ht=ge(69720),Ee=ge(17077),Oe=ge(43418),Ze=ge(95237),Pt=ge(9507),Ve=ge(59301),pt=({callback:se,onCancel:Pe})=>{const ce=document.createElement("canvas"),Re=ce.getContext("2d");ce.width=1e3,ce.height=800,Re.fillStyle="#ffffff",Re.fillRect(0,0,ce.width,ce.height);const et=ce.toDataURL("image/png");return Ve.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(Ze.Z,{style:{height:"100vh"}},Ve.createElement(Pt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:et,visible:!0,title:String(Date.now())},onOk:nt=>{se({src:nt.url})},onClose:Pe})))},ue=ge(12378);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<2)},Je.prototype.alignLeft=function(){var se=this.diagram;se.startTransaction("aligning left");var Pe=1/0;se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),se.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var se=this.diagram;se.startTransaction("aligning right");var Pe=-1/0;se.selection.each(function(ce){if(!(ce instanceof go.Link)){var Re=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Re,Pe)}}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),se.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var se=this.diagram;se.startTransaction("alignTop");var Pe=1/0;se.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),se.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var se=this.diagram;se.startTransaction("aligning bottom");var Pe=-1/0;se.selection.each(function(ce){if(!(ce instanceof go.Link)){var Re=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Re,Pe)}}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),se.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var se=this.diagram,Pe=se.selection.first();if(Pe){se.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;se.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(ce-Re.actualBounds.width/2,Re.actualBounds.y))}),se.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var se=this.diagram,Pe=se.selection.first();if(Pe){se.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;se.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.actualBounds.x,ce-Re.actualBounds.height/2))}),se.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(se){var Pe=this.diagram;Pe.startTransaction("align Column"),se===void 0&&(se=0),se=parseFloat(se);var ce=new Array;Pe.selection.each(function(dt){dt instanceof go.Link||ce.push(dt)});for(var Re=0;Re<ce.length-1;Re++){var et=ce[Re],nt=et.actualBounds.y+et.actualBounds.height+se,bt=ce[Re+1];bt.move(new go.Point(et.actualBounds.x,nt))}Pe.commitTransaction("align Column")},Je.prototype.alignRow=function(se){se===void 0&&(se=0),se=parseFloat(se);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(dt){dt instanceof go.Link||ce.push(dt)});for(var Re=0;Re<ce.length-1;Re++){var et=ce[Re],nt=et.actualBounds.x+et.actualBounds.width+se,bt=ce[Re+1];bt.move(new go.Point(nt,et.actualBounds.y))}Pe.commitTransaction("align Row")},Je.prototype.canRotate=function(se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Je.prototype.rotate=function(se){se===void 0&&(se=90);var Pe=this.diagram;Pe.startTransaction("rotate "+se.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=se)}),Pe.commitTransaction("rotate "+se.toString())},Je.prototype.pullToFront=function(){var se=this.diagram;se.startTransaction("pullToFront");var Pe=new go.Map;se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Re=0;ce.parts.each(function(et){if(!et.isSelected){var nt=et.zOrder;isNaN(nt)?et.zOrder=0:Re=Math.max(Re,nt)}}),Pe.set(ce,Re)}),se.selection.each(function(ce){Je._assignZOrder(ce,Pe.get(ce.layer)+1)}),se.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var se=this.diagram;se.startTransaction("pushToBack");var Pe=new go.Map;se.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Re=0;ce.parts.each(function(et){if(!et.isSelected){var nt=et.zOrder;isNaN(nt)?et.zOrder=0:Re=Math.min(Re,nt)}}),Pe.set(ce,Re)}),se.selection.each(function(ce){Je._assignZOrder(ce,Pe.get(ce.layer)-1-Je._findGroupDepth(ce))}),se.commitTransaction("pushToBack")},Je._assignZOrder=function(se,Pe,ce){ce===void 0&&(ce=se),se.layer===ce.layer&&(se.zOrder=Pe),se instanceof go.Group&&se.memberParts.each(function(Re){Je._assignZOrder(Re,Pe+1,ce)})},Je._findGroupDepth=function(se){if(se instanceof go.Group){var Pe=0;return se.memberParts.each(function(ce){Pe=Math.max(Pe,Je._findGroupDepth(ce))}),Pe+1}else return 0},Je.prototype.doKeyDown=function(){var se=this.diagram;if(se!==null){var Pe=se.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var se=new Array;return this.diagram.nodes.each(function(Pe){se.push(Pe)}),this.diagram.parts.each(function(Pe){se.push(Pe)}),se},Je.prototype._arrowKeyMove=function(){var se=this.diagram,Pe=se.lastInput,ce=0,Re=0;if(Pe.control||Pe.meta)ce=1,Re=1;else if(se.grid!==null){var et=se.grid.gridCellSize;Re=et.width,ce=et.height}se.startTransaction("arrowKeyMove"),se.selection.each(function(nt){Pe.key==="Up"?nt.move(new go.Point(nt.actualBounds.x,nt.actualBounds.y-ce)):Pe.key==="Down"?nt.move(new go.Point(nt.actualBounds.x,nt.actualBounds.y+ce)):Pe.key==="Left"?nt.move(new go.Point(nt.actualBounds.x-Re,nt.actualBounds.y)):Pe.key==="Right"&&nt.move(new go.Point(nt.actualBounds.x+Re,nt.actualBounds.y))}),se.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var se=this.diagram,Pe=se.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:se.select(ce))},Je.prototype._findNearestPartTowards=function(se){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Re=this._getAllParts(),et=1/0,nt=Pe,bt=0;bt<Re.length;bt++){var dt=Re[bt];if(dt!==Pe&&dt.canSelect()){var st=dt.actualBounds.center,Lt=ce.directionPoint(st),Kt=this._angleCloseness(Lt,se);if(Kt<=45){var Te=ce.distanceSquaredPoint(st);Te*=1+Math.sin(Kt*Math.PI/180),Te<et&&(et=Te,nt=dt)}}}return nt},Je.prototype._angleCloseness=function(se,Pe){return Math.min(Math.abs(Pe-se),Math.min(Math.abs(Pe+360-se),Math.abs(Pe-360-se)))},Je.prototype._arrowKeyTree=function(){var se=this.diagram,Pe=se.selection.first();if(Pe instanceof go.Node){var ce=se.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)se.commandHandler.canExpandTree(Pe)&&se.commandHandler.expandTree(Pe);else{var Re=this._sortTreeChildrenByY(Pe).first();Re!==null&&se.select(Re)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)se.commandHandler.canCollapseTree(Pe)&&se.commandHandler.collapseTree(Pe);else{var et=Pe.findTreeParentNode();et!==null&&se.select(et)}else if(ce.key==="Up"){var et=Pe.findTreeParentNode();if(et!==null){var nt=this._sortTreeChildrenByY(et),bt=nt.indexOf(Pe);if(bt>0){for(var dt=nt.elt(bt-1);dt!==null&&dt.isTreeExpanded&&!dt.isTreeLeaf;){var st=this._sortTreeChildrenByY(dt);dt=st.last()}dt!==null&&se.select(dt)}else se.select(et)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Re=this._sortTreeChildrenByY(Pe).first();Re!==null&&se.select(Re)}else for(;Pe!==null;){var et=Pe.findTreeParentNode();if(et===null)break;var nt=this._sortTreeChildrenByY(et),bt=nt.indexOf(Pe);if(bt<nt.length-1){se.select(nt.elt(bt+1));break}else Pe=et}var Lt=se.selection.first();Lt!==null&&se.scrollToRect(Lt.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(se){var Pe=new go.List().addAll(se.findTreeChildrenNodes());return Pe.sort(function(ce,Re){var et=ce.location,nt=Re.location;return et.y<nt.y?-1:et.y>nt.y?1:et.x<nt.x?-1:et.x>nt.x?1:0}),Pe},Je.prototype.copyToClipboard=function(se){go.CommandHandler.prototype.copyToClipboard.call(this,se),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),se},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(se){if(se!=="move"&&se!=="select"&&se!=="scroll"&&se!=="tree"&&se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+se);this._arrowKeyBehavior=se}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(se){if(!(se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+se);this._pasteOffset.set(se)}});var xt=Je,_t=ge(63720),ct=ge(43604),xe=ge(38986),Ce={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),_e=(se,Pe,ce)=>new Promise((Re,et)=>{var nt=st=>{try{dt(ce.next(st))}catch(Lt){et(Lt)}},bt=st=>{try{dt(ce.throw(st))}catch(Lt){et(Lt)}},dt=st=>st.done?Re(st.value):Promise.resolve(st.value).then(nt,bt);dt((ce=ce.apply(se,Pe)).next())});function je({onCancel:se,callback:Pe}){let ce=(0,re.useRef)(),Re=(0,re.useRef)(),et=(0,re.useRef)(),nt=(0,re.useRef)(!1);const bt=(0,re.useRef)(!1),[dt,st]=(0,re.useState)(0);function Lt(){const Te=ue.bx.make,Gt={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"};ce.current=new ue.S0(Re.current,{padding:20,grid:Te(ue.s_,"Grid",Te(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Te(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var mt=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);mt||We.diagram.currentTool.doCancel()},commandHandler:Te(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var mt=We.subject;mt.location=mt.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var mt=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var mt=We.parameter.part;mt.invalidateConnectedLinks();var yt=We.subject;We.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Te(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),Te(ue.bn,{name:"SHAPE",fill:Gt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Te(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Te(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Te("ToolTip",Te(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},Te(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),Te(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Mt(We,mt){var yt=(at,zt)=>{at.handled=!0,at.diagram.model.commit(Yt=>{var Sn=zt.part.adornedPart,Jt=new ue.E9().setRectSpot(Sn.actualBounds,We);Jt.subtract(Sn.location),Jt.scale(2,2),Jt.x+=Math.sign(Jt.x)*130,Jt.y+=Math.sign(Jt.y)*130,Jt.add(Sn.location),Jt.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var sn=Yt.copyNodeData(Sn.data);Yt.setGroupKeyForNodeData(sn,Yt.getGroupKeyForNodeData(Sn.data)),Yt.addNodeData(sn);var Mn={from:Sn.key,to:Yt.getKeyForNodeData(sn)};Yt.addLinkData(Mn);var zn=at.diagram.findNodeForData(sn);zn.location=Jt,at.diagram.select(zn),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return Te(ue.bn,{figure:mt,alignment:We,alignmentFocus:We.opposite(),width:We.equals(ue.z6.Top)||We.equals(ue.z6.Bottom)?25:18,height:We.equals(ue.z6.Top)||We.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:Gt.white,strokeWidth:4,mouseEnter:(at,zt)=>zt.fill="dodgerblue",mouseLeave:(at,zt)=>zt.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function un(We){return Te(ue.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:(mt,yt)=>yt.fill="dodgerblue",mouseLeave:(mt,yt)=>yt.fill="orange",click:(mt,yt)=>{mt.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},We||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Te(ue.uz,"Spot",Te(ue.Vm,{padding:10}),Mt(ue.z6.Top,"TriangleUp"),Mt(ue.z6.Left,"TriangleLeft"),Mt(ue.z6.Right,"TriangleRight"),Mt(ue.z6.Bottom,"TriangleDown"),un({alignment:new ue.z6(.75,0)}));function Tt(We,mt){return(yt,at)=>{yt.handled=!0,yt.diagram.model.commit(zt=>{zt.set(at.part.adornedPart.data,We,mt)})}}function Ot(We,mt){return mt||(mt="color"),Te(ue.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.stroke="dodgerblue",mouseLeave:(yt,at)=>at.stroke="lightgray",click:Tt(mt,We),contextClick:Tt(mt,We)})}function qt(){return[Te("ContextMenuButton",Te(ue.s_,"Horizontal",Ot(Gt.white,"fill"),Ot(Gt.beige,"fill"),Ot(Gt.extralightblue,"fill"),Ot(Gt.extralightred,"fill"))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Ot(Gt.lightgray,"fill"),Ot(Gt.lightgreen,"fill"),Ot(Gt.lightblue,"fill"),Ot(Gt.lightred,"fill")))]}function Dt(){return[Te("ContextMenuButton",Te(ue.s_,"Horizontal",Ot(Gt.black),Ot(Gt.green),Ot(Gt.blue),Ot(Gt.red))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Ot(Gt.white),Ot(Gt.magenta),Ot(Gt.purple),Ot(Gt.orange)))]}function Wt(We,mt){return mt||(mt="thickness"),Te(ue.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:Tt(mt,We),contextClick:Tt(mt,We)})}function kt(We,mt){return mt||(mt="dash"),Te(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:Tt(mt,We),contextClick:Tt(mt,We)})}function en(){return[Te("ContextMenuButton",Te(ue.s_,"Horizontal",Wt(1),Wt(2),Wt(3),Wt(4))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",kt(null),kt([2,4]),kt([4,4])))]}function Xt(We,mt){return mt||(mt="figure"),Te(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(yt,at)=>at.fill="dodgerblue",mouseLeave:(yt,at)=>at.fill="lightgray",click:Tt(mt,We),contextClick:Tt(mt,We)})}ce.current.nodeTemplate.contextMenu=Te("ContextMenu",Te("ContextMenuButton",Te(ue.s_,"Horizontal",Xt("Rectangle"),Xt("RoundedRectangle"),Xt("Ellipse"),Xt("Diamond"))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Xt("Parallelogram2"),Xt("ManualOperation"),Xt("Procedure"),Xt("Cylinder1"))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Xt("Terminator"),Xt("CreateRequest"),Xt("Document"),Xt("TriangleDown"))),qt(),Dt(),en()),ce.current.groupTemplate=Te(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,mt)=>{var yt=mt.addMembers(mt.diagram.selection,!0);yt||mt.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),Te(ue.s_,"Auto",{name:"BODY"},Te(ue.bn,{parameter1:10,fill:Gt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Te(ue.Vm,{background:"transparent",margin:20})),Te(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=Te(ue.uz,"Spot",Te(ue.s_,"Auto",Te(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Te(ue.Vm,{margin:1.5})),un({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Te("ContextMenu",qt(),Dt(),en()),ce.current.linkTemplate=Te(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",We=>We>=1?10:0),new ue.KX("toShortLength","dir",We=>We>=1?10:0),new ue.KX("points").makeTwoWay(),Te(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Te(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We===1)),Te(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We>=1),new ue.KX("width","thickness",We=>7+3*We),new ue.KX("height","thickness",We=>7+3*We),new ue.KX("segmentOffset","thickness",We=>new ue.E9(-15,4+1.5*We))),Te(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We===2),new ue.KX("width","thickness",We=>7+3*We),new ue.KX("height","thickness",We=>7+3*We),new ue.KX("segmentOffset","thickness",We=>new ue.E9(-15,4+1.5*We))),Te(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Te(ue.uz,Te(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ln(2)},new ue.KX("pathPattern","thickness",ln)),un({alignmentFocus:new ue.z6(0,0,-6,-4)}));function ln(We){return Te(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function Ut(We){var mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?mt="M0 0 M16 16 M0 8 L16 8":We===2&&(mt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Te(ue.bn,{geometryString:mt,margin:2,background:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:Tt("dir",We),contextClick:Tt("dir",We)})}function hn(We){var mt=(yt,at)=>{yt.handled=!0,yt.diagram.model.commit(zt=>{var Yt=at.part.adornedPart;zt.set(Yt.data,We?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(We?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return Te(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,at)=>at.background="dodgerblue",mouseLeave:(yt,at)=>at.background="transparent",click:mt,contextClick:mt})}function $e(We,mt){var yt=0,at=ue.z6.RightSide;We.equals(ue.z6.Top)?(yt=270,at=ue.z6.TopSide):We.equals(ue.z6.Left)?(yt=180,at=ue.z6.LeftSide):We.equals(ue.z6.Bottom)&&(yt=90,at=ue.z6.BottomSide),mt||(yt-=180);var zt=(Yt,Sn)=>{Yt.handled=!0,Yt.diagram.model.commit(Jt=>{var sn=Sn.part.adornedPart;Jt.set(sn.data,mt?"toSpot":"fromSpot",ue.z6.stringify(at)),(mt?sn.toNode:sn.fromNode).invalidateConnectedLinks()})};return Te(ue.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(Yt,Sn)=>Sn.background="dodgerblue",mouseLeave:(Yt,Sn)=>Sn.background="transparent",click:zt,contextClick:zt})}ce.current.linkTemplate.contextMenu=Te("ContextMenu",Dt(),en(),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Ut(0),Ut(1),Ut(2))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Te(ue.s_,"Spot",hn(!1),$e(ue.z6.Top,!1),$e(ue.z6.Left,!1),$e(ue.z6.Right,!1),$e(ue.z6.Bottom,!1)),Te(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},hn(!0),$e(ue.z6.Top,!0),$e(ue.z6.Left,!0),$e(ue.z6.Right,!0),$e(ue.z6.Bottom,!0)))));const Ln=`{ "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 yn=["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 En(We){return console.log("shapeName:",We),yn.indexOf(We)>=0}var jt=new ue.YI(et.current,{maxSelectionCount:1,linkTemplate:Te(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:Te(ue.uz,"Link",{locationSpot:ue.z6.Center},Te(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Te(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),Te(ue.bn,{isPanelMain:!0,strokeWidth:2}),Te(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(We){var mt;const yt=We.subject.part;var at=(mt=document.activeElement)==null?void 0:mt.value;typeof at=="string"&&at.trim()===""&&ce.current.model.commit(function(zt){zt.set(yt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),jt.nodeTemplate=Te(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),Te(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),Te(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=Te(ue.s_,"Grid",Te(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Te(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Kt=()=>_e(this,null,function*(){var Te=ce.current.makeImage();const Gt=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Te.src}});Pe({src:Gt.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{Lt()},500),st(dt+1),()=>{ce.current=null}),[]),pe.createElement("div",{ref:bt,className:nt.current?`${Ce.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!dt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ze.Z,null,pe.createElement(ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(ct.Z,{onClick:()=>{var Te,Gt,Mt=ce.current.selection.first();if(nt.current=!nt.current,document.activeElement&&Mt){let un=(Gt=(Te=document.activeElement)==null?void 0:Te.value)==null?void 0:Gt.trim();typeof un=="string"&&ce.current.model.commit(function(Tt){Tt.set(Mt.data,"text",un||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}st(dt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:se},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ce.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ce.myPaletteDiv,ref:et})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:Re,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(De.ZP,{size:"large",onClick:Kt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ut=je,vt=ge(5112),Bt=ge(5871);const At=vt.ZP.Group,Nt={margin:"0 8px"};var ht=({callback:se,onCancel:Pe})=>{function ce(Re){se(Re)}return re.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Nt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Nt},"\u884C\u6570"),re.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(Bt.Z,null)),re.createElement("span",{style:Nt},"\u5217\u6570"),re.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(Bt.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Nt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(le.default.Item,{name:"align"},re.createElement(At,null,re.createElement(vt.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(vt.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(vt.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(vt.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(De.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},$t=ge(78673),Qt=ge(43001),mn=ge.n(Qt),Vt=(0,re.forwardRef)(({use3d:se,width:Pe,height:ce,callback:Re,showSaveButton:et},nt)=>{const bt=(0,re.useRef)(),dt=(0,re.useRef)(),[st,Lt]=(0,re.useState)(!1),Kt=(0,re.useRef)({id:bt,appName:"graphing",width:Pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{dt.current=new(mn())(Kt.current,!0),window.onload=function(){dt.current.inject("applet_container")}},[]);const Te=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return Re&&Re(Gt),Gt};return(0,re.useEffect)(()=>{Kt.current.appName=st?"3D":"graphing",dt.current.inject("applet_container")},[st]),(0,re.useEffect)(()=>{Lt(se)},[se]),(0,re.useImperativeHandle)(nt,()=>({getImgData:Te})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bt}),re.createElement(Ze.Z,{align:"middle"},re.createElement(ct.Z,{flex:1},re.createElement($t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:st,onChange:Gt=>Lt(Gt)})),re.createElement(ct.Z,null,re.createElement(De.ZP,{size:"large",onClick:Te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=ge(76562),nn=ge(1012),Pn=ge(8591);const bn="link",wn="upload-image",Dn="add-flowchart",Fn="draw-image",Nn="add-flowchart",on="code-block",xn="add-table",kn="------------",jn={default:kn,left:`:${kn}`,center:`:${kn}:`,right:`${kn}:`};var Qn=ge(37808),Un=(se,Pe,ce)=>new Promise((Re,et)=>{var nt=st=>{try{dt(ce.next(st))}catch(Lt){et(Lt)}},bt=st=>{try{dt(ce.throw(st))}catch(Lt){et(Lt)}},dt=st=>st.done?Re(st.value):Promise.resolve(st.value).then(nt,bt);dt((ce=ce.apply(se,Pe)).next())});function Yn(){}let oa=0;const Zn=1e4,qn="\u2581",On="@\u2581\u2581@",ra="@\u2581@",da=`
**\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`,ve=["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 He(se){return/^\d+$/.test(se)?`${se}px`:se}const rt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",lt={[rt+"-B"]:"bold",[rt+"-I"]:"italic"},ft={[bn]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wn]:"\u6DFB\u52A0\u56FE\u7247",[Fn]:"\u6DFB\u52A0\u753B\u56FE",[Dn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[xn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ft=({defaultValue:se="",onChange:Pe,width:ce="100%",height:Re=400,miniToolbar:et=!1,isFocus:nt=!1,watch:bt,insertTemp:dt,mode:st="markdown",id:Lt="markdown-editor-id",showResizeBar:Kt=!1,noStorage:Te=!1,showNullButton:Gt=!1,showNullProgramButton:Mt=!1,hidetoolBar:un=!1,fullScreen:Tt=!1,onBlur:Ot,onCMBeforeChange:qt,onFullScreen:Dt,className:Wt="",disablePaste:kt=!1,disabled:en=!1,disabledFill:Xt=!1,placeholder:ln="",values:Ut="",extraUse:hn})=>{const[$e,Ln]=(0,re.useState)(null),[yn,En]=(0,re.useState)(se),[jt,We]=(0,re.useState)(bt),[mt,yt]=(0,re.useState)(Tt),[at,zt]=(0,re.useState)(""),[Yt,Sn]=(0,re.useState)(0),[Jt,sn]=(0,re.useState)(Re),[Mn,zn]=(0,re.useState)(!1),ea=(0,re.useRef)((0,nn.Z)()),cn=(0,re.useRef)(!1),Rt=(0,re.useRef)(),[rn,dn]=(0,re.useState)(0),[Bn,Tn]=(0,re.useState)(0),$n=(0,re.useRef)(),Rn=(0,re.useRef)(),_n=(0,re.useRef)(),In=(0,re.useRef)(),ta=()=>Un(void 0,null,function*(){var St;const Ue=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ea.current}});(St=Ue==null?void 0:Ue.attachments)!=null&&St.length&&(console.log("cm:",$e,$n),Ue.attachments.map(Xe=>{Xe.content_type.indexOf("image")>-1?$e.replaceSelection(`![,](/api/attachments/${Xe.id}?type=${Xe.content_type})`):Xe.content_type.indexOf("video")>-1?$e.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Xe.content_type.indexOf("pdf")>-1?$e.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Xe.id}?type=${Xe.content_type}&disposition=inline" target="_blank">${Xe.name}</a>`):$e.replaceSelection(`[${Xe.name}](${ENV.API_SERVER}/api/attachments/${Xe.id}?type=${Xe.content_type})`)}))});(0,re.useEffect)(()=>{const St=window.scrollY||window.pageYOffset;En(Ut),$e==null||$e.setValue(Ut),window.scrollTo(0,St)},[Ut]),(0,re.useEffect)(()=>{Dt==null||Dt(mt)},[mt]),(0,re.useEffect)(()=>{if($n.current){let St=function(Xe,gt){var It;if(kt){gt.preventDefault();return}const Zt=gt.clipboardData;if(Zt){const fn=Zt.types.toString(),an=Zt.items;if(fn==="Files"||Zt.types.indexOf("Files")>-1){if(gt.preventDefault(),st=="stex")return;try{let vn=an[1];((It=an[0])==null?void 0:It.kind)==="file"&&(vn=an[0]);const pn=vn.getAsFile(),Hn=pn.name.split(".").pop();(0,Ee.I)(pn,Gn=>{var ga,ia,ua;Gn.id?((ga=pn==null?void 0:pn.type)==null?void 0:ga.indexOf("image"))>-1?Ue.replaceSelection(`<img width="100%" src="/api/attachments/${Gn.id}?type=${Gn.content_type})" alt="" />`):((ia=pn==null?void 0:pn.type)==null?void 0:ia.indexOf("video"))>-1?Ue.replaceSelection(`<video width="100%" controls src="/api/attachments/${Gn.id}"></video>`):((ua=pn==null?void 0:pn.type)==null?void 0:ua.indexOf("pdf"))>-1?Ue.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=${pn.type}&disposition=inline" target="_blank">${pn.name}</a>`):ve.includes(Hn)?Ue.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=office&disposition=inline" target="_blank">${pn.name}</a>`):Ue.replaceSelection(`[${pn.name}](/api/attachments/${Gn.id}?type=${Gn.content_type})`):(Gn==null?void 0:Gn.status)===401&&(Pn.ZP.warning((Gn==null?void 0:Gn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(vn){Pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ue=Me().fromTextArea($n.current,{mode:st,lineNumbers:!et,lineWrapping:!0,value:se,autoCloseTags:!Mt,autoCloseBrackets:!0});return Ue.on("keyup",function(Xe,gt){gt.keyCode===8&&(Xe.getValue()==""?Ue.setOption("placeholder",ln):Ue.setOption("placeholder",null))}),Ue.on("keydown",function(Xe,gt){if(gt.keyCode===8){var It=Kn(Xe);It&&gt.preventDefault()}}),nt&&Ue.focus(),Ue.on("paste",St),Ue.on("dragleave",function(Xe,gt){Rn.current.classList.remove("mouse-hover-md")}),en&&Ue.on("beforeChange",function(Xe,gt){(gt.origin==="paste"||gt.origin==="+input")&&gt.cancel()}),Ln(Ue),()=>{Ue.off("paste",St)}}},[]);const Wn=(0,re.useCallback)(()=>{if(Rn.current)try{}catch(St){console.log(St,"---- to set md editor body height")}},[Jt,Rn,mt]);(0,re.useEffect)(()=>{function St(){let Ue=new qe.Z(Xe=>{for(let gt of Xe)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&(Wn(),$e.setSize("100%","100%"),$e.refresh())});return Ue.observe($n.current.parentElement),Ue}if($e){const Ue=St();return()=>{var Xe,gt;(Xe=$n.current)!=null&&Xe.parentElement&&Ue.unobserve((gt=$n.current)==null?void 0:gt.parentElement)}}},[$e,Wn]),(0,re.useEffect)(()=>{if($e){let St=[];for(const[Ue,Xe]of Object.entries(lt)){let gt={[Ue]:()=>{Jn(Xe)}};St.push(gt),$e.addKeyMap(gt)}return Rt.current=setInterval(()=>{cn.current&&ta()},4e3),()=>{clearInterval(Rt.current);for(let Ue of St)$e.removeKeyMap(Ue)}}},[$e]),(0,re.useEffect)(()=>{Tt!==mt&&yt(Tt)},[Tt]),(0,Qn.Z)(()=>{if(!Te&&Yt>0){let St=new Date().getTime(),Ue=window.sessionStorage.getItem(Lt);St>=Yt+Zn&&(!Ue||Ue!==yn)&&(window.sessionStorage.setItem(Lt,yn),zn(!0))}},Zn),(0,re.useEffect)(()=>{We(bt)},[$e,bt]),(0,re.useEffect)(()=>{$e&&nt&&$e.focus()},[$e,nt]),(0,re.useEffect)(()=>{if(jt&&$e){let St=function(Xe){let gt=Xe.target;if(In.current){let It=gt.scrollTop/gt.scrollHeight;In.current.scrollTop=In.current.scrollHeight*It}};const Ue=$e.getScrollerElement();return Ue.addEventListener("scroll",St),()=>{Ue.removeEventListener("scroll",St)}}},[$e,jt]),(0,re.useEffect)(()=>{if($e&&qt){let St=function(Ue,Xe){qt(Ue,Xe)};return $e.on("beforeChange",St),()=>{$e.off("beforeChange",St)}}},[$e,qt]),(0,re.useEffect)(()=>{if($e&&Ot){let St=function(){Ot($e.getValue())};return $e.on("blur",St),()=>{$e.off("blur",St)}}},[$e,Ot]);function Kn(St,Ue){var Xe=St.getDoc(),gt=Xe.getCursor(),It=Xe.getLine(gt.line),Zt=It.charAt(gt.ch-1),fn=It.lastIndexOf("@\u2581@",gt.ch),an=It.lastIndexOf("@\u2581\u2581@",gt.ch),vn=fn>an?fn:an,pn=fn>an?3:4;if(On.indexOf(Zt)===-1)return null;if(console.log("change1:",Ue,St,It,gt,vn,fn,an,Zt),vn>=0&&gt.ch-vn<5){var Hn=vn+pn;return Xe.replaceRange("",{line:gt.line,ch:vn},{line:gt.line,ch:Hn}),{line:gt.line,ch:Hn}}return null}(0,re.useEffect)(()=>{if($e){let St=function(Ue,Xe){const gt=Ue.getValue();En(gt),Sn(new Date().getTime()),Ue.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Mt?Pe(gt,Pa(gt)):Pe(gt))};return $e.on("change",St),()=>{$e.off("change",St)}}},[$e,Pe]),(0,re.useEffect)(()=>{if($e)if(se==null)$e.setValue(""),En("");else{const St=window.scrollY||window.pageYOffset;se!==$e.getValue()&&($e.setValue(se),En(se),$e.setCursor(en?1:$e.lineCount(),0),window.scrollTo(0,St))}},[$e,se]);const Jn=(0,re.useCallback)(St=>{const Ue=$e.getCursor(),Xe=$e.getSelection();let gt=Xe.split(`
`);switch(St){case"bold":return $e.replaceSelection("**"+Xe+"**"),Xe===""&&$e.setCursor(Ue.line,Ue.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+Xe+"*"),Xe===""&&$e.setCursor(Ue.line,Ue.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+Xe+"`"),Xe===""&&$e.setCursor(Ue.line,Ue.ch+1),$e.focus();case"inline-latex":return zt("inline-latex"),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+Xe+"\n```"),$e.setCursor(Ue.line+1,Xe.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
`),$e.focus();case"list-ul":return Xe===""?$e.replaceSelection("- "+Xe):$e.replaceSelection(gt.map(It=>It===""?"":`- ${It}`).join(`
`)),$e.focus();case"list-ol":return Xe===""?$e.replaceSelection("1. "+Xe):$e.replaceSelection(gt.map((It,Zt)=>It===""?"":`${Zt+1}. ${It}`).join(`
`)),$e.focus();case"add-null-ch":return Xe===""&&$e.setCursor(Ue.line,Ue.ch),$e.replaceSelection(qn),$e.focus();case"add-signal":return Xe===""&&$e.setCursor(Ue.line,Ue.ch),$e.replaceSelection(ra),$e.focus();case"add-multiple":return Xe===""&&$e.setCursor(Ue.line,Ue.ch),$e.replaceSelection(On),$e.focus();case"inster-template-1":return Xe===""&&$e.setCursor(Ue.line,Ue.ch),$e.replaceSelection(da),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return We(!jt),$e.focus();case"trigger-full-screen":return yt(!mt),$e.focus();case bn:zt(bn);return;case on:zt(on);return;case wn:zt(wn);return;case Fn:zt(Fn);return;case"maths-latex":zt("maths-latex");return;case Dn:zt(Dn);return;case xn:zt(xn);return;default:throw new Error}},[$e,jt,mt]),Cn=(0,re.useCallback)((St,Ue)=>{var Xe,gt,It,Zt,fn,an;switch(zt(""),at){case bn:const{title:ga,link:ia}=St;return $e.replaceSelection(`[${ga}](${ia})`),$e.focus();case on:const{language:ua,content:aa}=St;return $e.replaceSelection(["```"+ua,aa,"```"].join(`
`)),$e.focus();case"maths-latex":for(var vn=atob(St),pn=new Uint8Array(vn.length),Hn=0;Hn<vn.length;Hn++)pn[Hn]=vn.charCodeAt(Hn);var Gn=new Blob([pn],{type:"image/png"});(0,Ee.I)(Gn,Xn=>{Xn.id?$e.replaceSelection(`![,](/api/attachments/${Xn.id}?type=${Xn.content_type})`):(Xn==null?void 0:Xn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$e.replaceSelection("`$$"+St+"$$`");break;case wn:case Fn:case Nn:const{src:la,alt:La}=St,An=Ue,Ba=(It=(gt=(Xe=An==null?void 0:An.name)==null?void 0:Xe.split("."))==null?void 0:gt.pop)==null?void 0:It.call(gt);return((Zt=An==null?void 0:An.type)==null?void 0:Zt.indexOf("image"))>-1||!(An!=null&&An.type)?An.align||An.width?$e.replaceSelection(`<p style="text-align:${An.align||"initial"}"><img width="${An.width?An.width+"%":"initial"}" src="${la}" alt="${La||""}" /></p>`):$e.replaceSelection(`<img width="100%" src="${la}" alt="${La||""}" />`):((fn=An==null?void 0:An.type)==null?void 0:fn.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="${la}"></video>`):((an=An==null?void 0:An.type)==null?void 0:an.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="${la}?type=${An.type}&disposition=inline" target="_blank">${An.name}</a>`):ve.includes(Ba)?$e.replaceSelection(`<a href="${la}?type=office&disposition=inline" target="_blank">${An.name}</a>`):$e.replaceSelection(`[${An.name}](${la})`),$e.focus();case xn:const{row:wa,col:ya,align:Da}=St;let fa=`
`;for(let Xn=0;Xn<wa;Xn++){let Ea=[],Ca=[];for(let Fa=0;Fa<ya;Fa++)Xn===1&&Ca.push(jn[Da]),Ea.push(" ");Xn===1&&(fa+=`| ${Ca.join(" | ")} |
`),fa+=`| ${Ea.join(ya===1?"":" | ")} |
`}return $e.replaceSelection(fa+`
`),$e.focus();default:throw new Error}},[$e,at]),na=(0,re.useMemo)(()=>{switch(at){case bn:return re.createElement(Et,{callback:Cn,onCancel:Vn});case on:return re.createElement(Ht.Z,{callback:Cn,onCancel:Vn});case wn:return re.createElement(Ee.Z,{callback:Cn,onCancel:Vn});case Dn:return re.createElement(ut,{callback:Cn,onCancel:Vn});case xn:return re.createElement(ht,{callback:Cn,onCancel:Vn});case"maths-latex":return re.createElement(Vt,{showSaveButton:!0,callback:Cn});case"inline-latex":return re.createElement(tn.Z,{showSaveButton:!0,callback:Cn});default:return null}},[at]);function Vn(){zt("")}(0,re.useEffect)(()=>{if(_n.current){let St=function(fn){It=!0,Zt=fn.pageY},Ue=function(){It=!1},Xe=function(fn){if(It){let an=fn.pageY-Zt;an<0&&(an=0),an>300&&(an=300);let vn=Re+an+"px";sn(vn)}},gt=_n.current,It=!1,Zt=0;return gt.addEventListener("mousedown",St),document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",Ue),()=>{gt.removeEventListener("mousedown",St),document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",Ue)}}},[$e,_n]),(0,re.useEffect)(()=>{sn(Re)},[Re]);const ma=He(ce),sa=He(Jt),Sa={width:ma,height:sa},va=(0,re.useMemo)(()=>{if(Yt){let St=new Date(Yt),Ue=St.getHours(),Xe=St.getMinutes(),gt=St.getSeconds();return Ue=Ue<10?"0"+Ue:Ue,Xe=Xe<10?"0"+Xe:Xe,gt=gt<10?"0"+gt:gt,`${Ue}:${Xe}:${gt}`}return 0},[Yt]),Pa=St=>{const Ue=[];if(Mt){let Xe=-1;St=St.replace(/(@▁▁@|@▁@)/g,function(gt,It,Zt){Ue.push({multiLine:gt!==ra})})}return Ue};function pa(){window.sessionStorage.removeItem(Lt),zn(!1),Sn(0)}function ba(){zn(!1),Sn(0),$e.setValue(window.sessionStorage.getItem(Lt))}(0,re.useEffect)(()=>{ft[at]&&at!==Fn&&at!==Dn&&setTimeout(()=>{const St=document.getElementsByClassName("markdown-popup-form")[0],Ue=window.innerWidth/2-St.offsetWidth/2,Xe=window.innerHeight/2-St.offsetHeight/2;dn(Ue),Tn(Xe)},0)},[at]);const ha=St=>{St.preventDefault();const Ue=St.clientX-rn,Xe=St.clientY-Bn;document.body.onmousemove=gt=>{let It=gt.clientX-Ue,Zt=gt.clientY-Xe;const fn=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth-fn.offsetWidth,vn=window.innerHeight-fn.offsetHeight;It=Math.max(0,Math.min(It,an)),Zt=Math.max(0,Math.min(Zt,vn)),ca(gt.clientX,gt.clientY,Ue,Xe)&&(dn(It),Tn(Zt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ca=(St,Ue,Xe,gt)=>{const It=document.body.clientHeight,Zt=document.body.clientWidth;return St<20&&Xe>St||St>Zt-20&&Xe<St||Ue<20&&gt>Ue||Ue>It-20&&gt<Ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Rn},re.createElement("div",{className:`markdown-editor-container ${Wt} ${jt?"on-preview":""} ${et?"mini":""} ${mt?"full-screen":""}`,style:Sa},re.createElement(ie,{insertTemp:dt,watch:jt,fullScreen:mt,showNullButton:Gt,showNullProgramButton:Mt,onActionCallback:Jn,hidetoolBar:un,extraUse:hn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:$n,placeholder:ln})),jt?re.createElement("div",{ref:In,className:"preview-container"},st==="stex"&&re.createElement(Be,{value:yn}),st!=="stex"&&re.createElement(Ae.Z,{disabledFill:Xt,showProgramFill:Mt,value:yn})):null))),Kt?re.createElement("a",{ref:_n,className:"editor-resize"}):null,at===Fn&&re.createElement(pt,{callback:Cn,onCancel:Vn}),at===Dn&&re.createElement(ut,{callback:Cn,onCancel:Vn}),re.createElement(Se.Z,null,ft[at]&&at!==Fn&&at!==Dn?re.createElement(Oe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:rn,top:Bn},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:ha},ft[at]),open:!0,onCancel:Vn,footer:null,destroyOnClose:!0,width:at===Dn?"1200px":null,height:at===Dn?"80vh":null,className:"markdown-popup-form"},na):null))}},17077:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return oe},I:function(){return Se}});var re=ge(78241),de=ge(8591),Me=ge(92832),qe=ge(81327),fe=ge(5871),ye=ge(5112),me=ge(3113),Ie=ge(46699),Fe=ge(59301),Ge=ge(48790),Ae=ge(59301),Be=Object.defineProperty,be=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(le,Le,De)=>Le in le?Be(le,Le,{enumerable:!0,configurable:!0,writable:!0,value:De}):le[Le]=De,x=(le,Le)=>{for(var De in Le||(Le={}))b.call(Le,De)&&y(le,De,Le[De]);if(a)for(var De of a(Le))E.call(Le,De)&&y(le,De,Le[De]);return le},z=(le,Le)=>be(le,ne(Le));const{useForm:ee}=re.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:le,onCancel:Le})=>{const[De]=ee();let Qe=(0,Fe.useRef)();function ot(ze){Qe.current.width=De.getFieldValue("width"),Qe.current.align=De.getFieldValue("align"),le(ze,Qe.current)}function it(ze,ke){if(ze.status===-1){de.ZP.error(ze.message);return}De.setFieldsValue({src:`/api/attachments/${ze.id}`,type:ke.type})}function he(ze){let ke=ze.target.files[0];Qe.current=ke,Se(ke,it)}return Ae.createElement(re.default,z(x({form:De},ae),{className:"upload-image-panel",onFinish:ot,style:{width:470,overflow:"hidden"}}),Ae.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ae.createElement("div",{className:"flex-container"},Ae.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ae.createElement(Me.default,{style:te})),Ae.createElement(ie,{onFileChange:he}))),Ae.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ae.createElement(Me.default,{style:{width:264}})),Ae.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ae.createElement(qe.Z,null,Ae.createElement(re.default.Item,{name:"width",style:{margin:0}},Ae.createElement(fe.Z,{style:{width:264}})),Ae.createElement("span",{className:"ml8"},"%"))),Ae.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ae.createElement(ye.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ae.createElement("aside",null,Ae.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ae.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ae.createElement(me.ZP,{type:"default",onClick:Le},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return Ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ae.createElement("input",{type:"file",onChange:le}))}function Se(le,Le){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ge.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let De=new FormData;De.append("editormd-image-file",le),De.append("file_param_name","editormd-image-file"),De.append("byxhr","true");var Qe=new window.XMLHttpRequest;Qe.withCredentials=!0,Qe.addEventListener("load",function(ot){Le(JSON.parse(ot.target.responseText),le)},!1),Qe.addEventListener("error",function(ot){console.error(ot)},!1),Qe.open("POST",`${Ie.KI}/api/attachments.json`),Qe.send(De)}},91558:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Me}});var re=ge(59301),de=ge(4676);class Me extends re.Component{constructor(fe){super(fe);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,de.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return de}});var re=ge(59301);function de(Me,qe){const fe=(0,re.useRef)();(0,re.useEffect)(()=>{fe.current=Me}),(0,re.useEffect)(()=>{function ye(){fe.current()}if(qe!==null){let me=setInterval(ye,qe);return()=>clearInterval(me)}},[qe])}},83485:function(we,tt,ge){"use strict";ge.r(tt),ge.d(tt,{default:function(){return Qe}});var re=ge(59301),de=ge(39793),Me=ge(25690),qe=ge(20834),fe=ge(44e3),ye=ge(78241),me=ge(8591),Ie=ge(66104),Fe=ge(95237),Ge=ge(43604),Ae=ge(57809),Be=ge(92832),be=ge(28103),ne=ge(19842),a=ge(3113),b=ge(98846),E={flex_box_center:"flex_box_center___JefHi",flex_space_between:"flex_space_between___N1h0l",flex_box_vertical_center:"flex_box_vertical_center___Mtb4t",flex_box_center_end:"flex_box_center_end___F6G6K",flex_box_column:"flex_box_column___JldFX",bg:"bg___Hgook",title:"title____XaYs",titleLeft:"titleLeft___xe0PB",titleRight:"titleRight___wML5g",btns:"btns___l22_n"},y=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(ot,it,he)=>it in ot?y(ot,it,{enumerable:!0,configurable:!0,writable:!0,value:he}):ot[it]=he,ae=(ot,it)=>{for(var he in it||(it={}))z.call(it,he)&&te(ot,he,it[he]);if(x)for(var he of x(it))ee.call(it,he)&&te(ot,he,it[he]);return ot},oe=(ot,it)=>{var he={};for(var ze in ot)z.call(ot,ze)&&it.indexOf(ze)<0&&(he[ze]=ot[ze]);if(ot!=null&&x)for(var ze of x(ot))it.indexOf(ze)<0&&ee.call(ot,ze)&&(he[ze]=ot[ze]);return he},ie=(ot,it,he)=>new Promise((ze,ke)=>{var Ne=Ct=>{try{wt(he.next(Ct))}catch(Et){ke(Et)}},Ke=Ct=>{try{wt(he.throw(Ct))}catch(Et){ke(Et)}},wt=Ct=>Ct.done?ze(Ct.value):Promise.resolve(Ct.value).then(Ne,Ke);wt((he=he.apply(ot,it)).next())});const{SubMenu:Se}=qe.default,{Content:le,Sider:Le}=fe.default,De=ot=>{var it=ot,{graduation:he,globalSetting:ze,loading:ke,user:Ne,dispatch:Ke}=it,wt=oe(it,["graduation","globalSetting","loading","user","dispatch"]),Ct,Et,Ht,Ee,Oe,Ze,Pt;const Ve=(0,Me.useParams)(),pt=(0,Me.useLocation)(),{userInfo:ue}=Ne,[Je]=ye.default.useForm(),{addTopicData:xt}=he,_t=()=>ie(void 0,null,function*(){const ct=Je.getFieldsValue(),xe=ae({},ct);xe.city&&(xe.province=xe.city[0],xe.city=xe.city[1]);const Ce=yield Ke({type:"graduation/addTopic",payload:{coursesId:Ve.coursesId,attachment_ids:[],graduation_topic:xe}});Ce.status?me.ZP.error(Ce.message):Me.history.push(`/classrooms/${Ve.coursesId}/graduation_topics/${Ve.categoryId}`)});return(0,re.useEffect)(()=>{Ke({type:"graduation/addTopicDefaultData",payload:ae({},Ve)})},[Ve.coursesId]),re.createElement("section",{className:"edu-container"},re.createElement("section",{className:"animated fadeIn"},re.createElement("aside",{className:"mt10"},ue&&re.createElement(Ie.Z,{separator:">"},re.createElement(Ie.Z.Item,null,re.createElement(Me.Link,{to:`${ue.first_category_url}`},(Ct=ue==null?void 0:ue.course)==null?void 0:Ct.course_name)),re.createElement(Ie.Z.Item,null,re.createElement(Me.Link,{to:`/classrooms/${Ve.coursesId}/graduation_topics/${Ve.categoryId}`},"\u6BD5\u8BBE\u9009\u9898")),re.createElement(Ie.Z.Item,null,"\u65B0\u5EFA"))),re.createElement("aside",{className:[E.title,"mt20"].join(" ")},re.createElement(Fe.Z,{style:{width:"100%"}},re.createElement(Ge.Z,{flex:"1"},re.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u9009\u9898")),re.createElement(Ge.Z,null,re.createElement(Me.Link,{className:"font16 c-light-black",to:`/classrooms/${Ve.coursesId}/exercise`},"\u8FD4\u56DE"))))),re.createElement("section",{className:[E.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},re.createElement(ye.default,{layout:"vertical",form:Je,scrollToFirstError:!0,onFinish:ct=>ie(void 0,null,function*(){_t()})},re.createElement(ye.default.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(Et=xt.teacher_list)==null?void 0:Et.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)}))),re.createElement(ye.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},re.createElement(Be.default,{maxLength:60,size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),re.createElement(be.Z,null),re.createElement(ye.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},re.createElement(de.Z,{watch:!0,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),re.createElement(Fe.Z,{gutter:[20,0]},re.createElement(Ge.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_type"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(Ht=xt.topic_type)==null?void 0:Ht.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_source"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Ee=xt.topic_source)==null?void 0:Ee.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_first"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Oe=xt.topic_property_first)==null?void 0:Oe.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_second"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ze=xt.topic_property_second)==null?void 0:Ze.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)})))),re.createElement(Ge.Z,{flex:"150px"})),re.createElement(be.Z,null),re.createElement(ye.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},re.createElement(Be.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),re.createElement(ye.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(Pt=xt.topic_repeat)==null?void 0:Pt.map(function(ct,xe){return re.createElement(Ae.default.Option,{value:ct.id,key:xe},ct.name)}))),re.createElement(ye.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},re.createElement(ne.Z,{size:"middle",style:{width:200},options:b.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),re.createElement("aside",{className:E.btns},re.createElement(a.ZP,{type:"primary",onClick:()=>{Je.submit()}},"\u4FDD\u5B58"),re.createElement(Me.Link,{to:`/classrooms/${Ve.coursesId}/graduation_topics/${Ve.categoryId}`},"\u53D6\u6D88")))};var Qe=(0,Me.connect)(({graduation:ot,loading:it,user:he,globalSetting:ze})=>({graduation:ot,globalSetting:ze,user:he,loading:it.effects}))(De)},98846:function(we,tt,ge){"use strict";ge.d(tt,{P:function(){return re}});const re=[{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"}]}]},66104:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return it}});var re=ge(92310),de=ge.n(re),Me=ge(11592),qe=ge(26112),fe=ge(59301),ye=ge(92343),me=ge(36355),Ie=ge(84105),Fe=ge(91857);const Ge=he=>{let{children:ze}=he;const{getPrefixCls:ke}=fe.useContext(me.E_),Ne=ke("breadcrumb");return fe.createElement("li",{className:`${Ne}-separator`,"aria-hidden":"true"},ze===""?ze:ze||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Ae=Ge,Be=function(he,ze){var ke={};for(var Ne in he)Object.prototype.hasOwnProperty.call(he,Ne)&&ze.indexOf(Ne)<0&&(ke[Ne]=he[Ne]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ne=Object.getOwnPropertySymbols(he);Ke<Ne.length;Ke++)ze.indexOf(Ne[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Ne[Ke])&&(ke[Ne[Ke]]=he[Ne[Ke]]);return ke};function be(he,ze){if(he.title===void 0||he.title===null)return null;const ke=Object.keys(ze).join("|");return typeof he.title=="object"?he.title:String(he.title).replace(new RegExp(`:(${ke})`,"g"),(Ne,Ke)=>ze[Ke]||Ne)}function ne(he,ze,ke,Ne){if(ke==null)return null;const{className:Ke,onClick:wt}=ze,Ct=Be(ze,["className","onClick"]),Et=Object.assign(Object.assign({},(0,qe.Z)(Ct,{data:!0,aria:!0})),{onClick:wt});return Ne!==void 0?fe.createElement("a",Object.assign({},Et,{className:de()(`${he}-link`,Ke),href:Ne}),ke):fe.createElement("span",Object.assign({},Et,{className:de()(`${he}-link`,Ke)}),ke)}function a(he,ze){return(Ne,Ke,wt,Ct,Et)=>{if(ze)return ze(Ne,Ke,wt,Ct);const Ht=be(Ne,Ke);return ne(he,Ne,Ht,Et)}}var b=function(he,ze){var ke={};for(var Ne in he)Object.prototype.hasOwnProperty.call(he,Ne)&&ze.indexOf(Ne)<0&&(ke[Ne]=he[Ne]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ne=Object.getOwnPropertySymbols(he);Ke<Ne.length;Ke++)ze.indexOf(Ne[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Ne[Ke])&&(ke[Ne[Ke]]=he[Ne[Ke]]);return ke};const E=he=>{const{prefixCls:ze,separator:ke="/",children:Ne,menu:Ke,overlay:wt,dropdownProps:Ct,href:Et}=he,Ee=(Oe=>{if(Ke||wt){const Ze=Object.assign({},Ct);if(Ke){const Pt=Ke||{},{items:Ve}=Pt,pt=b(Pt,["items"]);Ze.menu=Object.assign(Object.assign({},pt),{items:Ve==null?void 0:Ve.map((ue,Je)=>{var{key:xt,title:_t,label:ct,path:xe}=ue,Ce=b(ue,["key","title","label","path"]);let pe=ct!=null?ct:_t;return xe&&(pe=fe.createElement("a",{href:`${Et}${xe}`},pe)),Object.assign(Object.assign({},Ce),{key:xt!=null?xt:Je,label:pe})})})}else wt&&(Ze.overlay=wt);return fe.createElement(Fe.Z,Object.assign({placement:"bottom"},Ze),fe.createElement("span",{className:`${ze}-overlay-link`},Oe,fe.createElement(Ie.Z,null)))}return Oe})(Ne);return Ee!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,Ee),ke&&fe.createElement(Ae,null,ke)):null},y=he=>{const{prefixCls:ze,children:ke,href:Ne}=he,Ke=b(he,["prefixCls","children","href"]),{getPrefixCls:wt}=fe.useContext(me.E_),Ct=wt("breadcrumb",ze);return fe.createElement(E,Object.assign({},Ke,{prefixCls:Ct}),ne(Ct,Ke,ke,Ne))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,z=ge(17313),ee=ge(83116),te=ge(37613);const ae=he=>{const{componentCls:ze,iconCls:ke}=he;return{[ze]:Object.assign(Object.assign({},(0,z.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[ke]:{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`]:{[`
> ${ke} + span,
> ${ke} + 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,[`> ${ke}`]:{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 oe=(0,ee.Z)("Breadcrumb",he=>{const ze=(0,te.TS)(he,{});return[ae(ze)]},he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS})),ie=function(he,ze){var ke={};for(var Ne in he)Object.prototype.hasOwnProperty.call(he,Ne)&&ze.indexOf(Ne)<0&&(ke[Ne]=he[Ne]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ne=Object.getOwnPropertySymbols(he);Ke<Ne.length;Ke++)ze.indexOf(Ne[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Ne[Ke])&&(ke[Ne[Ke]]=he[Ne[Ke]]);return ke};function Se(he){const{breadcrumbName:ze,children:ke}=he,Ne=ie(he,["breadcrumbName","children"]),Ke=Object.assign({title:ze},Ne);return ke&&(Ke.menu={items:ke.map(wt=>{var{breadcrumbName:Ct}=wt,Et=ie(wt,["breadcrumbName"]);return Object.assign(Object.assign({},Et),{title:Ct})})}),Ke}function le(he,ze){return(0,fe.useMemo)(()=>he||(ze?ze.map(Se):null),[he,ze])}var Le=function(he,ze){var ke={};for(var Ne in he)Object.prototype.hasOwnProperty.call(he,Ne)&&ze.indexOf(Ne)<0&&(ke[Ne]=he[Ne]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ne=Object.getOwnPropertySymbols(he);Ke<Ne.length;Ke++)ze.indexOf(Ne[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Ne[Ke])&&(ke[Ne[Ke]]=he[Ne[Ke]]);return ke};const De=(he,ze)=>{if(ze===void 0)return ze;let ke=(ze||"").replace(/^\//,"");return Object.keys(he).forEach(Ne=>{ke=ke.replace(`:${Ne}`,he[Ne])}),ke},Qe=he=>{const{prefixCls:ze,separator:ke="/",style:Ne,className:Ke,rootClassName:wt,routes:Ct,items:Et,children:Ht,itemRender:Ee,params:Oe={}}=he,Ze=Le(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Pt,direction:Ve,breadcrumb:pt}=fe.useContext(me.E_);let ue;const Je=Pt("breadcrumb",ze),[xt,_t]=oe(Je),ct=le(Et,Ct),xe=a(Je,Ee);if(ct&&ct.length>0){const _e=[],je=Et||Ct;ue=ct.map((ut,vt)=>{const{path:Bt,key:At,type:Nt,menu:ht,overlay:$t,onClick:Qt,className:mn,separator:gn,dropdownProps:Vt}=ut,tn=De(Oe,Bt);tn!==void 0&&_e.push(tn);const nn=At!=null?At:vt;if(Nt==="separator")return fe.createElement(Ae,{key:nn},gn);const Pn={},bn=vt===ct.length-1;ht?Pn.menu=ht:$t&&(Pn.overlay=$t);let{href:wn}=ut;return _e.length&&tn!==void 0&&(wn=`#/${_e.join("/")}`),fe.createElement(E,Object.assign({key:nn},Pn,(0,qe.Z)(ut,{data:!0,aria:!0}),{className:mn,dropdownProps:Vt,href:wn,separator:bn?"":ke,onClick:Qt,prefixCls:Je}),xe(ut,Oe,je,_e,wn))})}else if(Ht){const _e=(0,Me.Z)(Ht).length;ue=(0,Me.Z)(Ht).map((je,ut)=>{if(!je)return je;const vt=ut===_e-1;return(0,ye.Tm)(je,{separator:vt?"":ke,key:ut})})}const Ce=de()(Je,pt==null?void 0:pt.className,{[`${Je}-rtl`]:Ve==="rtl"},Ke,wt,_t),pe=Object.assign(Object.assign({},pt==null?void 0:pt.style),Ne);return xt(fe.createElement("nav",Object.assign({className:Ce,style:pe},Ze),fe.createElement("ol",null,ue)))};Qe.Item=x,Qe.Separator=Ae;var ot=Qe,it=ot},19842:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return da}});var re=ge(95190),de=ge(59301),Me=ge(33853),qe=ge(58617),fe=ge(38819),ye=ge(92310),me=ge.n(ye),Ie=ge(14809),Fe=ge(50298),Ge=ge(62646),Ae=ge(77861),Be=ge(17115),be=ge(90782),ne=ge(6089),a=ge(18929),b=de.createContext(null),E=b,y=ge(93664),x=ge(4635),z=ge(20439),ee="__rc_cascader_search_mark__",te=function(He,Ye,rt){var lt=rt.label;return Ye.some(function(ft){return String(ft[lt]).toLowerCase().includes(He.toLowerCase())})},ae=function(He,Ye,rt,lt){return Ye.map(function(ft){return ft[lt.label]}).join(" / ")},oe=function(ve,He,Ye,rt,lt,ft){var Ft=lt.filter,se=Ft===void 0?te:Ft,Pe=lt.render,ce=Pe===void 0?ae:Pe,Re=lt.limit,et=Re===void 0?50:Re,nt=lt.sort;return de.useMemo(function(){var bt=[];if(!ve)return[];function dt(st,Lt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;st.forEach(function(Te){if(!(!nt&&et!==!1&&et>0&&bt.length>=et)){var Gt=[].concat((0,re.Z)(Lt),[Te]),Mt=Te[Ye.children],un=Kt||Te.disabled;if((!Mt||Mt.length===0||ft)&&se(ve,Gt,{label:Ye.label})){var Tt;bt.push((0,z.Z)((0,z.Z)({},Te),{},(Tt={disabled:un},(0,x.Z)(Tt,Ye.label,ce(ve,Gt,rt,Ye)),(0,x.Z)(Tt,ee,Gt),(0,x.Z)(Tt,Ye.children,void 0),Tt)))}Mt&&dt(Te[Ye.children],Gt,un)}})}return dt(He,[]),nt&&bt.sort(function(st,Lt){return nt(st[ee],Lt[ee],ve,Ye)}),et!==!1&&et>0?bt.slice(0,et):bt},[ve,He,Ye,rt,ce,ft,se,nt,et])},ie="__RC_CASCADER_SPLIT__",Se="SHOW_PARENT",le="SHOW_CHILD";function Le(ve){return ve.join(ie)}function De(ve){return ve.map(Le)}function Qe(ve){return ve.split(ie)}function ot(ve){var He=ve||{},Ye=He.label,rt=He.value,lt=He.children,ft=rt||"value";return{label:Ye||"label",value:ft,key:ft,children:lt||"children"}}function it(ve,He){var Ye,rt;return(Ye=ve.isLeaf)!==null&&Ye!==void 0?Ye:!((rt=ve[He.children])!==null&&rt!==void 0&&rt.length)}function he(ve){var He=ve.parentElement;if(He){var Ye=ve.offsetTop-He.offsetTop;Ye-He.scrollTop<0?He.scrollTo({top:Ye}):Ye+ve.offsetHeight-He.scrollTop>He.offsetHeight&&He.scrollTo({top:Ye+ve.offsetHeight-He.offsetHeight})}}function ze(ve,He){return ve.map(function(Ye){var rt;return(rt=Ye[ee])===null||rt===void 0?void 0:rt.map(function(lt){return lt[He.value]})})}function ke(ve,He,Ye){var rt=new Set(ve),lt=He();return ve.filter(function(ft){var Ft=lt[ft],se=Ft?Ft.parent:null,Pe=Ft?Ft.children:null;return Ft&&Ft.node.disabled?!0:Ye===le?!(Pe&&Pe.some(function(ce){return ce.key&&rt.has(ce.key)})):!(se&&!se.node.disabled&&rt.has(se.key))})}function Ne(ve,He,Ye){for(var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,lt=He,ft=[],Ft=function(){var ce,Re,et,nt=ve[se],bt=(ce=lt)===null||ce===void 0?void 0:ce.findIndex(function(st){var Lt=st[Ye.value];return rt?String(Lt)===String(nt):Lt===nt}),dt=bt!==-1?(Re=lt)===null||Re===void 0?void 0:Re[bt]:null;ft.push({value:(et=dt==null?void 0:dt[Ye.value])!==null&&et!==void 0?et:nt,index:bt,option:dt}),lt=dt==null?void 0:dt[Ye.children]},se=0;se<ve.length;se+=1)Ft();return ft}var Ke=function(ve,He,Ye,rt,lt){return de.useMemo(function(){var ft=lt||function(Ft){var se=rt?Ft.slice(-1):Ft,Pe=" / ";return se.every(function(ce){return["string","number"].includes((0,y.Z)(ce))})?se.join(Pe):se.reduce(function(ce,Re,et){var nt=de.isValidElement(Re)?de.cloneElement(Re,{key:et}):Re;return et===0?[nt]:[].concat((0,re.Z)(ce),[Pe,nt])},[])};return ve.map(function(Ft){var se,Pe,ce=Ne(Ft,He,Ye),Re=ft(ce.map(function(nt){var bt,dt=nt.option,st=nt.value;return(bt=dt==null?void 0:dt[Ye.label])!==null&&bt!==void 0?bt:st}),ce.map(function(nt){var bt=nt.option;return bt})),et=Le(Ft);return{label:Re,value:et,key:et,valueCells:Ft,disabled:(se=ce[ce.length-1])===null||se===void 0||(Pe=se.option)===null||Pe===void 0?void 0:Pe.disabled}})},[ve,He,Ye,lt,rt])},wt=ge(71430),Ct=function(ve,He){var Ye=de.useRef({options:null,info:null}),rt=de.useCallback(function(){return Ye.current.options!==ve&&(Ye.current.options=ve,Ye.current.info=(0,wt.I8)(ve,{fieldNames:He,initWrapper:function(ft){return(0,z.Z)((0,z.Z)({},ft),{},{pathKeyEntities:{}})},processEntity:function(ft,Ft){var se=ft.nodes.map(function(Pe){return Pe[He.value]}).join(ie);Ft.pathKeyEntities[se]=ft,ft.key=se}})),Ye.current.info.pathKeyEntities},[He,ve]);return rt},Et=function(ve,He){return de.useCallback(function(Ye){var rt=[],lt=[];return Ye.forEach(function(ft){var Ft=Ne(ft,ve,He);Ft.every(function(se){return se.option})?lt.push(ft):rt.push(ft)}),[lt,rt]},[ve,He])},Ht=ge(48736);function Ee(ve){return de.useMemo(function(){if(!ve)return[!1,{}];var He={matchInputWidth:!0,limit:50};return ve&&(0,y.Z)(ve)==="object"&&(He=(0,z.Z)((0,z.Z)({},He),ve)),He.limit<=0&&delete He.limit,[!0,He]},[ve])}var Oe=de.memo(function(ve){var He=ve.children;return He},function(ve,He){return!He.open}),Ze=Oe;function Pt(ve){var He,Ye=ve.prefixCls,rt=ve.checked,lt=ve.halfChecked,ft=ve.disabled,Ft=ve.onClick,se=ve.disableCheckbox,Pe=de.useContext(E),ce=Pe.checkable,Re=typeof ce!="boolean"?ce:null;return de.createElement("span",{className:me()("".concat(Ye),(He={},(0,x.Z)(He,"".concat(Ye,"-checked"),rt),(0,x.Z)(He,"".concat(Ye,"-indeterminate"),!rt&&lt),(0,x.Z)(He,"".concat(Ye,"-disabled"),ft||se),He)),onClick:Ft},Re)}var Ve="__cascader_fix_label__";function pt(ve){var He=ve.prefixCls,Ye=ve.multiple,rt=ve.options,lt=ve.activeValue,ft=ve.prevValuePath,Ft=ve.onToggleOpen,se=ve.onSelect,Pe=ve.onActive,ce=ve.checkedSet,Re=ve.halfCheckedSet,et=ve.loadingKeys,nt=ve.isSelectable,bt=ve.searchValue,dt="".concat(He,"-menu"),st="".concat(He,"-menu-item"),Lt=de.useContext(E),Kt=Lt.fieldNames,Te=Lt.changeOnSelect,Gt=Lt.expandTrigger,Mt=Lt.expandIcon,un=Lt.loadingIcon,Tt=Lt.dropdownMenuColumnStyle,Ot=Gt==="hover",qt=de.useMemo(function(){return rt.map(function(Dt){var Wt,kt=Dt.disabled,en=Dt.disableCheckbox,Xt=Dt[ee],ln=(Wt=Dt[Ve])!==null&&Wt!==void 0?Wt:Dt[Kt.label],Ut=Dt[Kt.value],hn=it(Dt,Kt),$e=Xt?Xt.map(function(We){return We[Kt.value]}):[].concat((0,re.Z)(ft),[Ut]),Ln=Le($e),yn=et.includes(Ln),En=ce.has(Ln),jt=Re.has(Ln);return{disabled:kt,label:ln,value:Ut,isLeaf:hn,isLoading:yn,checked:En,halfChecked:jt,option:Dt,disableCheckbox:en,fullPath:$e,fullPathKey:Ln}})},[rt,ce,Kt,Re,et,ft]);return de.createElement("ul",{className:dt,role:"menu"},qt.map(function(Dt){var Wt,kt=Dt.disabled,en=Dt.label,Xt=Dt.value,ln=Dt.isLeaf,Ut=Dt.isLoading,hn=Dt.checked,$e=Dt.halfChecked,Ln=Dt.option,yn=Dt.fullPath,En=Dt.fullPathKey,jt=Dt.disableCheckbox,We=function(){if(!(kt||bt)){var zt=(0,re.Z)(yn);Ot&&ln&&zt.pop(),Pe(zt)}},mt=function(){nt(Ln)&&se(yn,ln)},yt;return typeof Ln.title=="string"?yt=Ln.title:typeof en=="string"&&(yt=en),de.createElement("li",{key:En,className:me()(st,(Wt={},(0,x.Z)(Wt,"".concat(st,"-expand"),!ln),(0,x.Z)(Wt,"".concat(st,"-active"),lt===Xt||lt===En),(0,x.Z)(Wt,"".concat(st,"-disabled"),kt),(0,x.Z)(Wt,"".concat(st,"-loading"),Ut),Wt)),style:Tt,role:"menuitemcheckbox",title:yt,"aria-checked":hn,"data-path-key":En,onClick:function(){We(),!jt&&(!Ye||ln)&&mt()},onDoubleClick:function(){Te&&Ft(!1)},onMouseEnter:function(){Ot&&We()},onMouseDown:function(zt){zt.preventDefault()}},Ye&&de.createElement(Pt,{prefixCls:"".concat(He,"-checkbox"),checked:hn,halfChecked:$e,disabled:kt||jt,disableCheckbox:jt,onClick:function(zt){jt||(zt.stopPropagation(),mt())}}),de.createElement("div",{className:"".concat(st,"-content")},en),!Ut&&Mt&&!ln&&de.createElement("div",{className:"".concat(st,"-expand-icon")},Mt),Ut&&un&&de.createElement("div",{className:"".concat(st,"-loading-icon")},un))}))}var ue=function(){var ve=(0,Ae.lk)(),He=ve.multiple,Ye=ve.open,rt=de.useContext(E),lt=rt.values,ft=de.useState([]),Ft=(0,Fe.Z)(ft,2),se=Ft[0],Pe=Ft[1];return de.useEffect(function(){if(Ye&&!He){var ce=lt[0];Pe(ce||[])}},[Ye]),[se,Pe]},Je=ge(10228),xt=function(ve,He,Ye,rt,lt,ft){var Ft=(0,Ae.lk)(),se=Ft.direction,Pe=Ft.searchValue,ce=Ft.toggleOpen,Re=Ft.open,et=se==="rtl",nt=de.useMemo(function(){for(var Tt=-1,Ot=He,qt=[],Dt=[],Wt=rt.length,kt=ze(He,Ye),en=function(Ln){var yn=Ot.findIndex(function(En,jt){return(kt[jt]?Le(kt[jt]):En[Ye.value])===rt[Ln]});if(yn===-1)return"break";Tt=yn,qt.push(Tt),Dt.push(rt[Ln]),Ot=Ot[Tt][Ye.children]},Xt=0;Xt<Wt&&Ot;Xt+=1){var ln=en(Xt);if(ln==="break")break}for(var Ut=He,hn=0;hn<qt.length-1;hn+=1)Ut=Ut[qt[hn]][Ye.children];return[Dt,Tt,Ut,kt]},[rt,Ye,He]),bt=(0,Fe.Z)(nt,4),dt=bt[0],st=bt[1],Lt=bt[2],Kt=bt[3],Te=function(Ot){lt(Ot)},Gt=function(Ot){var qt=Lt.length,Dt=st;Dt===-1&&Ot<0&&(Dt=qt);for(var Wt=0;Wt<qt;Wt+=1){Dt=(Dt+Ot+qt)%qt;var kt=Lt[Dt];if(kt&&!kt.disabled){var en=dt.slice(0,-1).concat(Kt[Dt]?Le(Kt[Dt]):kt[Ye.value]);Te(en);return}}},Mt=function(){if(dt.length>1){var Ot=dt.slice(0,-1);Te(Ot)}else ce(!1)},un=function(){var Ot,qt=((Ot=Lt[st])===null||Ot===void 0?void 0:Ot[Ye.children])||[],Dt=qt.find(function(kt){return!kt.disabled});if(Dt){var Wt=[].concat((0,re.Z)(dt),[Dt[Ye.value]]);Te(Wt)}};de.useImperativeHandle(ve,function(){return{onKeyDown:function(Ot){var qt=Ot.which;switch(qt){case Je.Z.UP:case Je.Z.DOWN:{var Dt=0;qt===Je.Z.UP?Dt=-1:qt===Je.Z.DOWN&&(Dt=1),Dt!==0&&Gt(Dt);break}case Je.Z.LEFT:{if(Pe)break;et?un():Mt();break}case Je.Z.RIGHT:{if(Pe)break;et?Mt():un();break}case Je.Z.BACKSPACE:{Pe||Mt();break}case Je.Z.ENTER:{if(dt.length){var Wt=Lt[st],kt=(Wt==null?void 0:Wt[ee])||[];kt.length?ft(kt.map(function(en){return en[Ye.value]}),kt[kt.length-1]):ft(dt,Lt[st])}break}case Je.Z.ESC:ce(!1),Re&&Ot.stopPropagation()}},onKeyUp:function(){}}})},_t=de.forwardRef(function(ve,He){var Ye,rt,lt,ft,Ft=(0,Ae.lk)(),se=Ft.prefixCls,Pe=Ft.multiple,ce=Ft.searchValue,Re=Ft.toggleOpen,et=Ft.notFoundContent,nt=Ft.direction,bt=Ft.open,dt=de.useRef(),st=nt==="rtl",Lt=de.useContext(E),Kt=Lt.options,Te=Lt.values,Gt=Lt.halfValues,Mt=Lt.fieldNames,un=Lt.changeOnSelect,Tt=Lt.onSelect,Ot=Lt.searchOptions,qt=Lt.dropdownPrefixCls,Dt=Lt.loadData,Wt=Lt.expandTrigger,kt=qt||se,en=de.useState([]),Xt=(0,Fe.Z)(en,2),ln=Xt[0],Ut=Xt[1],hn=function(Rt){if(!(!Dt||ce)){var rn=Ne(Rt,Kt,Mt),dn=rn.map(function($n){var Rn=$n.option;return Rn}),Bn=dn[dn.length-1];if(Bn&&!it(Bn,Mt)){var Tn=Le(Rt);Ut(function($n){return[].concat((0,re.Z)($n),[Tn])}),Dt(dn)}}};de.useEffect(function(){ln.length&&ln.forEach(function(cn){var Rt=Qe(cn),rn=Ne(Rt,Kt,Mt,!0).map(function(Bn){var Tn=Bn.option;return Tn}),dn=rn[rn.length-1];(!dn||dn[Mt.children]||it(dn,Mt))&&Ut(function(Bn){return Bn.filter(function(Tn){return Tn!==cn})})})},[Kt,ln,Mt]);var $e=de.useMemo(function(){return new Set(De(Te))},[Te]),Ln=de.useMemo(function(){return new Set(De(Gt))},[Gt]),yn=ue(),En=(0,Fe.Z)(yn,2),jt=En[0],We=En[1],mt=function(Rt){We(Rt),hn(Rt)},yt=function(Rt){var rn=Rt.disabled,dn=it(Rt,Mt);return!rn&&(dn||un||Pe)},at=function(Rt,rn){var dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Tt(Rt),!Pe&&(rn||un&&(Wt==="hover"||dn))&&Re(!1)},zt=de.useMemo(function(){return ce?Ot:Kt},[ce,Ot,Kt]),Yt=de.useMemo(function(){for(var cn=[{options:zt}],Rt=zt,rn=ze(Rt,Mt),dn=function(){var Rn=jt[Bn],_n=Rt.find(function(ta,Wn){return(rn[Wn]?Le(rn[Wn]):ta[Mt.value])===Rn}),In=_n==null?void 0:_n[Mt.children];if(!(In!=null&&In.length))return"break";Rt=In,cn.push({options:In})},Bn=0;Bn<jt.length;Bn+=1){var Tn=dn();if(Tn==="break")break}return cn},[zt,jt,Mt]),Sn=function(Rt,rn){yt(rn)&&at(Rt,it(rn,Mt),!0)};xt(He,zt,Mt,jt,mt,Sn),de.useEffect(function(){for(var cn=0;cn<jt.length;cn+=1){var Rt,rn=jt.slice(0,cn+1),dn=Le(rn),Bn=(Rt=dt.current)===null||Rt===void 0?void 0:Rt.querySelector('li[data-path-key="'.concat(dn.replace(/\\{0,2}"/g,'\\"'),'"]'));Bn&&he(Bn)}},[jt]);var Jt=!((Ye=Yt[0])!==null&&Ye!==void 0&&(rt=Ye.options)!==null&&rt!==void 0&&rt.length),sn=[(lt={},(0,x.Z)(lt,Mt.value,"__EMPTY__"),(0,x.Z)(lt,Ve,et),(0,x.Z)(lt,"disabled",!0),lt)],Mn=(0,z.Z)((0,z.Z)({},ve),{},{multiple:!Jt&&Pe,onSelect:at,onActive:mt,onToggleOpen:Re,checkedSet:$e,halfCheckedSet:Ln,loadingKeys:ln,isSelectable:yt}),zn=Jt?[{options:sn}]:Yt,ea=zn.map(function(cn,Rt){var rn=jt.slice(0,Rt),dn=jt[Rt];return de.createElement(pt,(0,Ie.Z)({key:Rt},Mn,{searchValue:ce,prefixCls:kt,options:cn.options,prevValuePath:rn,activeValue:dn}))});return de.createElement(Ze,{open:bt},de.createElement("div",{className:me()("".concat(kt,"-menus"),(ft={},(0,x.Z)(ft,"".concat(kt,"-menu-empty"),Jt),(0,x.Z)(ft,"".concat(kt,"-rtl"),st),ft)),ref:dt},ea))}),ct=_t;function xe(ve){var He=ve.onPopupVisibleChange,Ye=ve.popupVisible,rt=ve.popupClassName,lt=ve.popupPlacement;warning(!He,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ye===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(rt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(lt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ce(ve,He){if(ve){var Ye=function rt(lt){for(var ft=0;ft<lt.length;ft++){var Ft=lt[ft];if(Ft[He==null?void 0:He.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ft[He==null?void 0:He.children])&&rt(Ft[He==null?void 0:He.children]))return!0}};Ye(ve)}}var pe=null,_e=["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 je(ve){return Array.isArray(ve)&&Array.isArray(ve[0])}function ut(ve){return ve?je(ve)?ve:(ve.length===0?[]:[ve]).map(function(He){return Array.isArray(He)?He:[He]}):[]}var vt=de.forwardRef(function(ve,He){var Ye=ve.id,rt=ve.prefixCls,lt=rt===void 0?"rc-cascader":rt,ft=ve.fieldNames,Ft=ve.defaultValue,se=ve.value,Pe=ve.changeOnSelect,ce=ve.onChange,Re=ve.displayRender,et=ve.checkable,nt=ve.autoClearSearchValue,bt=nt===void 0?!0:nt,dt=ve.searchValue,st=ve.onSearch,Lt=ve.showSearch,Kt=ve.expandTrigger,Te=ve.options,Gt=ve.dropdownPrefixCls,Mt=ve.loadData,un=ve.popupVisible,Tt=ve.open,Ot=ve.popupClassName,qt=ve.dropdownClassName,Dt=ve.dropdownMenuColumnStyle,Wt=ve.popupPlacement,kt=ve.placement,en=ve.onDropdownVisibleChange,Xt=ve.onPopupVisibleChange,ln=ve.expandIcon,Ut=ln===void 0?">":ln,hn=ve.loadingIcon,$e=ve.children,Ln=ve.dropdownMatchSelectWidth,yn=Ln===void 0?!1:Ln,En=ve.showCheckedStrategy,jt=En===void 0?Se:En,We=(0,Ge.Z)(ve,_e),mt=(0,Be.ZP)(Ye),yt=!!et,at=(0,a.Z)(Ft,{value:se,postState:ut}),zt=(0,Fe.Z)(at,2),Yt=zt[0],Sn=zt[1],Jt=de.useMemo(function(){return ot(ft)},[JSON.stringify(ft)]),sn=de.useMemo(function(){return Te||[]},[Te]),Mn=Ct(sn,Jt),zn=de.useCallback(function(Ue){var Xe=Mn();return Ue.map(function(gt){var It=Xe[gt].nodes;return It.map(function(Zt){return Zt[Jt.value]})})},[Mn,Jt]),ea=(0,a.Z)("",{value:dt,postState:function(Xe){return Xe||""}}),cn=(0,Fe.Z)(ea,2),Rt=cn[0],rn=cn[1],dn=function(Xe,gt){rn(Xe),gt.source!=="blur"&&st&&st(Xe)},Bn=Ee(Lt),Tn=(0,Fe.Z)(Bn,2),$n=Tn[0],Rn=Tn[1],_n=oe(Rt,sn,Jt,Gt||lt,Rn,Pe),In=Et(sn,Jt),ta=de.useMemo(function(){var Ue=In(Yt),Xe=(0,Fe.Z)(Ue,2),gt=Xe[0],It=Xe[1];if(!yt||!Yt.length)return[gt,[],It];var Zt=De(gt),fn=Mn(),an=(0,be.S)(Zt,!0,fn),vn=an.checkedKeys,pn=an.halfCheckedKeys;return[zn(vn),zn(pn),It]},[yt,Yt,Mn,zn,In]),Wn=(0,Fe.Z)(ta,3),Kn=Wn[0],Jn=Wn[1],Cn=Wn[2],na=de.useMemo(function(){var Ue=De(Kn),Xe=ke(Ue,Mn,jt);return[].concat((0,re.Z)(Cn),(0,re.Z)(zn(Xe)))},[Kn,Mn,zn,Cn,jt]),Vn=Ke(na,sn,Jt,yt,Re),ma=(0,ne.Z)(function(Ue){if(Sn(Ue),ce){var Xe=ut(Ue),gt=Xe.map(function(fn){return Ne(fn,sn,Jt).map(function(an){return an.option})}),It=yt?Xe:Xe[0],Zt=yt?gt:gt[0];ce(It,Zt)}}),sa=(0,ne.Z)(function(Ue){if((!yt||bt)&&rn(""),!yt)ma(Ue);else{var Xe=Le(Ue),gt=De(Kn),It=De(Jn),Zt=gt.includes(Xe),fn=Cn.some(function(aa){return Le(aa)===Xe}),an=Kn,vn=Cn;if(fn&&!Zt)vn=Cn.filter(function(aa){return Le(aa)!==Xe});else{var pn=Zt?gt.filter(function(aa){return aa!==Xe}):[].concat((0,re.Z)(gt),[Xe]),Hn=Mn(),Gn;if(Zt){var ga=(0,be.S)(pn,{checked:!1,halfCheckedKeys:It},Hn);Gn=ga.checkedKeys}else{var ia=(0,be.S)(pn,!0,Hn);Gn=ia.checkedKeys}var ua=ke(Gn,Mn,jt);an=zn(ua)}ma([].concat((0,re.Z)(vn),(0,re.Z)(an)))}}),Sa=function(Xe,gt){if(gt.type==="clear"){ma([]);return}var It=gt.values[0],Zt=It.valueCells;sa(Zt)},va=Tt!==void 0?Tt:un,Pa=qt||Ot,pa=kt||Wt,ba=function(Xe){en==null||en(Xe),Xt==null||Xt(Xe)},ha=de.useMemo(function(){return{options:sn,fieldNames:Jt,values:Kn,halfValues:Jn,changeOnSelect:Pe,onSelect:sa,checkable:et,searchOptions:_n,dropdownPrefixCls:Gt,loadData:Mt,expandTrigger:Kt,expandIcon:Ut,loadingIcon:hn,dropdownMenuColumnStyle:Dt}},[sn,Jt,Kn,Jn,Pe,sa,et,_n,Gt,Mt,Kt,Ut,hn,Dt]),ca=!(Rt?_n:sn).length,St=Rt&&Rn.matchInputWidth||ca?{}:{minWidth:"auto"};return de.createElement(E.Provider,{value:ha},de.createElement(Ae.Ac,(0,Ie.Z)({},We,{ref:He,id:mt,prefixCls:lt,autoClearSearchValue:bt,dropdownMatchSelectWidth:yn,dropdownStyle:St,displayValues:Vn,onDisplayValuesChange:Sa,mode:yt?"multiple":void 0,searchValue:Rt,onSearch:dn,showSearch:$n,OptionList:ct,emptyOptions:ca,open:va,dropdownClassName:Pa,placement:pa,onDropdownVisibleChange:ba,getRawInputElement:function(){return $e}})))});vt.SHOW_PARENT=Se,vt.SHOW_CHILD=le;var Bt=vt,At=Bt,Nt=ge(2738),ht=ge(62892),$t=ge(53487),Qt=ge(19080),mn=ge(36355),gn=ge(93891),Vt=ge(1684),tn=ge(19716),nn=ge(32441),Pn=ge(14154),bn=ge(58582),wn=ge(84443),Dn=ge(66339),Fn=ge(33234),Nn=ge(98447),on=ge(17313),xn=ge(74207),kn=ge(83116);const jn=ve=>{const{prefixCls:He,componentCls:Ye,antCls:rt}=ve,lt=`${Ye}-menu-item`,ft=`
&${lt}-expand ${lt}-expand-icon,
${lt}-loading-icon
`;return[{[Ye]:{width:ve.controlWidth}},{[`${Ye}-dropdown`]:[(0,Nn.C2)(`${He}-checkbox`,ve),{[`&${rt}-select-dropdown`]:{padding:0}},{[Ye]:{"&-checkbox":{top:0,marginInlineEnd:ve.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ye}-menu-empty`]:{[`${Ye}-menu`]:{width:"100%",height:"auto",[lt]:{color:ve.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:ve.controlItemWidth,height:ve.dropdownHeight,margin:0,padding:ve.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ve.lineWidth}px ${ve.lineType} ${ve.colorSplit}`},"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:ve.optionPadding,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,borderRadius:ve.borderRadiusSM,"&:hover":{background:ve.controlItemBgHover},"&-disabled":{color:ve.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ft]:{color:ve.colorTextDisabled}},[`&-active:not(${lt}-disabled)`]:{"&, &:hover":{fontWeight:ve.optionSelectedFontWeight,backgroundColor:ve.optionSelectedBg}},"&-content":{flex:"auto"},[ft]:{marginInlineStart:ve.paddingXXS,color:ve.colorTextDescription,fontSize:ve.fontSizeIcon},"&-keyword":{color:ve.colorHighlight}})}}}]},{[`${Ye}-dropdown-rtl`]:{direction:"rtl"}},(0,xn.c)(ve)]};var Qn=(0,kn.Z)("Cascader",ve=>[jn(ve)],ve=>{const He=Math.round((ve.controlHeight-ve.fontSize*ve.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:ve.controlItemBgActive,optionSelectedFontWeight:ve.fontWeightStrong,optionPadding:`${He}px ${ve.paddingSM}px`,menuPadding:ve.paddingXXS}}),Un=function(ve,He){var Ye={};for(var rt in ve)Object.prototype.hasOwnProperty.call(ve,rt)&&He.indexOf(rt)<0&&(Ye[rt]=ve[rt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,rt=Object.getOwnPropertySymbols(ve);lt<rt.length;lt++)He.indexOf(rt[lt])<0&&Object.prototype.propertyIsEnumerable.call(ve,rt[lt])&&(Ye[rt[lt]]=ve[rt[lt]]);return Ye};const{SHOW_CHILD:Yn,SHOW_PARENT:oa}=At;function Zn(ve,He,Ye){const rt=ve.toLowerCase().split(He).reduce((Ft,se,Pe)=>Pe===0?[se]:[].concat((0,re.Z)(Ft),[He,se]),[]),lt=[];let ft=0;return rt.forEach((Ft,se)=>{const Pe=ft+Ft.length;let ce=ve.slice(ft,Pe);ft=Pe,se%2===1&&(ce=de.createElement("span",{className:`${Ye}-menu-item-keyword`,key:`separator-${se}`},ce)),lt.push(ce)}),lt}const qn=(ve,He,Ye,rt)=>{const lt=[],ft=ve.toLowerCase();return He.forEach((Ft,se)=>{se!==0&&lt.push(" / ");let Pe=Ft[rt.label];const ce=typeof Pe;(ce==="string"||ce==="number")&&(Pe=Zn(String(Pe),ft,Ye)),lt.push(Pe)}),lt},On=de.forwardRef((ve,He)=>{const{prefixCls:Ye,size:rt,disabled:lt,className:ft,rootClassName:Ft,multiple:se,bordered:Pe=!0,transitionName:ce,choiceTransitionName:Re="",popupClassName:et,dropdownClassName:nt,expandIcon:bt,placement:dt,showSearch:st,allowClear:Lt=!0,notFoundContent:Kt,direction:Te,getPopupContainer:Gt,status:Mt,showArrow:un,builtinPlacements:Tt,style:Ot}=ve,qt=Un(ve,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Dt=(0,Nt.Z)(qt,["suffixIcon"]),{getPopupContainer:Wt,getPrefixCls:kt,renderEmpty:en,direction:Xt,popupOverflow:ln,cascader:Ut}=de.useContext(mn.E_),hn=Te||Xt,$e=hn==="rtl",{status:Ln,hasFeedback:yn,isFormItemInput:En,feedbackIcon:jt}=de.useContext(nn.aM),We=(0,Qt.F)(Ln,Mt),mt=Kt||(en==null?void 0:en("Cascader"))||de.createElement(gn.Z,{componentName:"Cascader"}),yt=kt(),at=kt("select",Ye),zt=kt("cascader",Ye),[Yt,Sn]=(0,Pn.Z)(at),[Jt]=Qn(zt),{compactSize:sn,compactItemClassnames:Mn}=(0,Fn.ri)(at,Te),zn=me()(et||nt,`${zt}-dropdown`,{[`${zt}-dropdown-rtl`]:hn==="rtl"},Ft,Sn),ea=de.useMemo(()=>{if(!st)return st;let Cn={render:qn};return typeof st=="object"&&(Cn=Object.assign(Object.assign({},Cn),st)),Cn},[st]),cn=(0,tn.Z)(Cn=>{var na;return(na=rt!=null?rt:sn)!==null&&na!==void 0?na:Cn}),Rt=de.useContext(Vt.Z),rn=lt!=null?lt:Rt;let dn=bt;bt||(dn=$e?de.createElement(Me.Z,null):de.createElement(fe.Z,null));const Bn=de.createElement("span",{className:`${at}-menu-item-loading-icon`},de.createElement(qe.Z,{spin:!0})),Tn=de.useMemo(()=>se?de.createElement("span",{className:`${zt}-checkbox-inner`}):!1,[se]),$n=(0,wn.Z)(ve.suffixIcon,un),{suffixIcon:Rn,removeIcon:_n,clearIcon:In}=(0,Dn.Z)(Object.assign(Object.assign({},ve),{hasFeedback:yn,feedbackIcon:jt,showSuffixIcon:$n,multiple:se,prefixCls:at,componentName:"Cascader"})),ta=de.useMemo(()=>dt!==void 0?dt:$e?"bottomRight":"bottomLeft",[dt,$e]),Wn=(0,bn.Z)(Tt,ln),Kn=Lt===!0?{clearIcon:In}:Lt,Jn=de.createElement(At,Object.assign({prefixCls:at,className:me()(!Ye&&zt,{[`${at}-lg`]:cn==="large",[`${at}-sm`]:cn==="small",[`${at}-rtl`]:$e,[`${at}-borderless`]:!Pe,[`${at}-in-form-item`]:En},(0,Qt.Z)(at,We,yn),Mn,Ut==null?void 0:Ut.className,ft,Ft,Sn),disabled:rn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Ot)},Dt,{builtinPlacements:Wn,direction:hn,placement:ta,notFoundContent:mt,allowClear:Kn,showSearch:ea,expandIcon:dn,suffixIcon:Rn,removeIcon:_n,loadingIcon:Bn,checkable:Tn,dropdownClassName:zn,dropdownPrefixCls:Ye||zt,choiceTransitionName:(0,ht.m)(yt,"",Re),transitionName:(0,ht.m)(yt,"slide-up",ce),getPopupContainer:Gt||Wt,ref:He}));return Jt(Yt(Jn))}),ra=(0,$t.Z)(On);On.SHOW_PARENT=oa,On.SHOW_CHILD=Yn,On._InternalPanelDoNotUseOrYouWillBeFired=ra;var da=On},98447:function(we,tt,ge){"use strict";ge.d(tt,{C2:function(){return fe}});var re=ge(17313),de=ge(37613),Me=ge(83116);const qe=ye=>{const{checkboxCls:me}=ye,Ie=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,re.oN)(ye))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${me}:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{borderColor:ye.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${me}-checked:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:ye.colorTextDisabled}}}]};function fe(ye,me){const Ie=(0,de.TS)(me,{checkboxCls:`.${ye}`,checkboxSize:me.controlInteractiveSize});return[qe(Ie)]}tt.ZP=(0,Me.Z)("Checkbox",(ye,me)=>{let{prefixCls:Ie}=me;return[fe(Ie,ye)]})},28103:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Be}});var re=ge(92310),de=ge.n(re),Me=ge(59301),qe=ge(36355),fe=ge(17313),ye=ge(83116),me=ge(37613);const Ie=be=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:b,lineWidth:E,textPaddingInline:y,orientationMargin:x,verticalMarginInline:z}=be;return{[ne]:Object.assign(Object.assign({},(0,fe.Wf)(be)),{borderBlockStart:`${E}px solid ${b}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${b}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${be.dividerHorizontalWithTextGutterMargin}px 0`,color:be.colorTextHeading,fontWeight:500,fontSize:be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${b}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}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:y},"&-dashed":{background:"none",borderColor:b,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:be.colorText,fontWeight:"normal",fontSize:be.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 Fe=(0,ye.Z)("Divider",be=>{const ne=(0,me.TS)(be,{dividerHorizontalWithTextGutterMargin:be.margin,dividerHorizontalGutterMargin:be.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(ne)]},be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:be.marginXS})),Ge=function(be,ne){var a={};for(var b in be)Object.prototype.hasOwnProperty.call(be,b)&&ne.indexOf(b)<0&&(a[b]=be[b]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,b=Object.getOwnPropertySymbols(be);E<b.length;E++)ne.indexOf(b[E])<0&&Object.prototype.propertyIsEnumerable.call(be,b[E])&&(a[b[E]]=be[b[E]]);return a},Be=be=>{const{getPrefixCls:ne,direction:a,divider:b}=Me.useContext(qe.E_),{prefixCls:E,type:y="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:ae,dashed:oe,plain:ie,style:Se}=be,le=Ge(be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=ne("divider",E),[De,Qe]=Fe(Le),ot=x.length>0?`-${x}`:x,it=!!ae,he=x==="left"&&z!=null,ze=x==="right"&&z!=null,ke=de()(Le,b==null?void 0:b.className,Qe,`${Le}-${y}`,{[`${Le}-with-text`]:it,[`${Le}-with-text${ot}`]:it,[`${Le}-dashed`]:!!oe,[`${Le}-plain`]:!!ie,[`${Le}-rtl`]:a==="rtl",[`${Le}-no-default-orientation-margin-left`]:he,[`${Le}-no-default-orientation-margin-right`]:ze},ee,te),Ne=Me.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Ke=Object.assign(Object.assign({},he&&{marginLeft:Ne}),ze&&{marginRight:Ne});return De(Me.createElement("div",Object.assign({className:ke,style:Object.assign(Object.assign({},b==null?void 0:b.style),Se)},le,{role:"separator"}),ae&&y!=="vertical"&&Me.createElement("span",{className:`${Le}-inner-text`,style:Ke},ae)))}},91857:function(we,tt,ge){"use strict";var re=ge(59301),de=ge(38819),Me=ge(92310),qe=ge.n(Me),fe=ge(31561),ye=ge(70425),me=ge(18929),Ie=ge(2738),Fe=ge(79676),Ge=ge(53487),Ae=ge(92343),Be=ge(36355),be=ge(20834),ne=ge(40875),a=ge(88088),b=ge(47211);const E=null,y=te=>{const{menu:ae,arrow:oe,prefixCls:ie,children:Se,trigger:le,disabled:Le,dropdownRender:De,getPopupContainer:Qe,overlayClassName:ot,rootClassName:it,open:he,onOpenChange:ze,visible:ke,onVisibleChange:Ne,mouseEnterDelay:Ke=.15,mouseLeaveDelay:wt=.1,autoAdjustOverflow:Ct=!0,placement:Et="",overlay:Ht,transitionName:Ee}=te,{getPopupContainer:Oe,getPrefixCls:Ze,direction:Pt}=re.useContext(Be.E_),Ve=re.useMemo(()=>{const ht=Ze();return Ee!==void 0?Ee:Et.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Ze,Et,Ee]),pt=re.useMemo(()=>Et?Et.includes("Center")?Et.slice(0,Et.indexOf("Center")):Et:Pt==="rtl"?"bottomRight":"bottomLeft",[Et,Pt]),ue=Ze("dropdown",ie),[Je,xt]=(0,b.Z)(ue),[,_t]=(0,a.Z)(),ct=re.Children.only(Se),xe=(0,Ae.Tm)(ct,{className:qe()(`${ue}-trigger`,{[`${ue}-rtl`]:Pt==="rtl"},ct.props.className),disabled:Le}),Ce=Le?[]:le;let pe;Ce&&Ce.includes("contextMenu")&&(pe=!0);const[_e,je]=(0,me.Z)(!1,{value:he!=null?he:ke}),ut=(0,ye.useEvent)(ht=>{ze==null||ze(ht),Ne==null||Ne(ht),je(ht)}),vt=qe()(ot,it,xt,{[`${ue}-rtl`]:Pt==="rtl"}),Bt=(0,Fe.Z)({arrowPointAtCenter:typeof oe=="object"&&oe.pointAtCenter,autoAdjustOverflow:Ct,offset:_t.marginXXS,arrowWidth:oe?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),At=re.useCallback(()=>{je(!1)},[]),Nt=()=>{let ht;return ae!=null&&ae.items?ht=re.createElement(be.default,Object.assign({},ae)):typeof Ht=="function"?ht=Ht():ht=Ht,De&&(ht=De(ht)),ht=re.Children.only(typeof ht=="string"?re.createElement("span",null,ht):ht),re.createElement(ne.J,{prefixCls:`${ue}-menu`,expandIcon:re.createElement("span",{className:`${ue}-menu-submenu-arrow`},re.createElement(de.Z,{className:`${ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:$t=>{let{mode:Qt}=$t}},ht)};return Je(re.createElement(fe.Z,Object.assign({alignPoint:pe},(0,Ie.Z)(te,["rootClassName"]),{mouseEnterDelay:Ke,mouseLeaveDelay:wt,visible:_e,builtinPlacements:Bt,arrow:!!oe,overlayClassName:vt,prefixCls:ue,getPopupContainer:Qe||Oe,transitionName:Ve,trigger:Ce,overlay:Nt,placement:pt,onVisibleChange:ut}),xe))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ge.Z)(y,"dropdown",te=>te,x),ee=te=>re.createElement(z,Object.assign({},te),re.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=ee,tt.Z=y},47211:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ae}});var re=ge(17313),de=ge(13826),Me=ge(92899),qe=ge(29878),fe=ge(19447),ye=ge(83116),me=ge(37613),Fe=Be=>{const{componentCls:be,menuCls:ne,colorError:a,colorTextLightSolid:b}=Be,E=`${ne}-item`;return{[`${be}, ${be}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const Ge=Be=>{const{componentCls:be,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:b,sizePopupArrow:E,antCls:y,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ae,colorTextDisabled:oe,fontSizeIcon:ie,controlPaddingHorizontal:Se,colorBgElevated:le}=Be;return[{[be]:Object.assign(Object.assign({},(0,re.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-b+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${x}-down, & > ${y}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${be}-wrap`]:{position:"relative",[`${y}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${be}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottomLeft,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottomLeft,
&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottom,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottom,
&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottomRight,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottomRight`]:{animationName:de.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-topLeft,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-topLeft,
&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-top,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-top,
&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-topRight,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-topRight`]:{animationName:de.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottomLeft,
&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottom,
&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottomRight`]:{animationName:de.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-topLeft,
&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-top,
&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-topRight`]:{animationName:de.ly}})},(0,fe.ZP)(Be,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${be} ${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}},[`${be}, ${be}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,re.Qy)(Be)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Be.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Be.colorText,fontWeight:"normal",fontSize:te,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,re.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Se+Be.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${be}-menu-submenu-title`]:{[`&, ${be}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${be}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,de.oN)(Be,"slide-up"),(0,de.oN)(Be,"slide-down"),(0,Me.Fm)(Be,"move-up"),(0,Me.Fm)(Be,"move-down"),(0,qe._y)(Be,"zoom-big")]]};var Ae=(0,ye.Z)("Dropdown",(Be,be)=>{let{rootPrefixCls:ne}=be;const{marginXXS:a,sizePopupArrow:b,controlHeight:E,fontSize:y,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Be,ae=(E-y*x)/2,{dropdownArrowOffset:oe}=(0,fe.fS)({contentRadius:te}),ie=(0,me.TS)(Be,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:b/2+a,dropdownArrowOffset:oe,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:z});return[Ge(ie),Fe(ie)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},45818:function(we,tt,ge){"use strict";ge.d(tt,{D:function(){return z},Z:function(){return ae}});var re=ge(14809),de=ge(59301),Me={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=Me,fe=ge(7657),ye=function(ie,Se){return de.createElement(fe.Z,(0,re.Z)({},ie,{ref:Se,icon:qe}))},me=de.forwardRef(ye),Ie=me,Fe=ge(33853),Ge=ge(38819),Ae=ge(92310),Be=ge.n(Ae),be=ge(2738),a=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),b=ge(36355),E=ge(84966),y=function(oe,ie){var Se={};for(var le in oe)Object.prototype.hasOwnProperty.call(oe,le)&&ie.indexOf(le)<0&&(Se[le]=oe[le]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,le=Object.getOwnPropertySymbols(oe);Le<le.length;Le++)ie.indexOf(le[Le])<0&&Object.prototype.propertyIsEnumerable.call(oe,le[Le])&&(Se[le[Le]]=oe[le[Le]]);return Se};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=de.createContext({}),ee=(()=>{let oe=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ie}${oe}`}})();var ae=de.forwardRef((oe,ie)=>{const{prefixCls:Se,className:le,trigger:Le,children:De,defaultCollapsed:Qe=!1,theme:ot="dark",style:it={},collapsible:he=!1,reverseArrow:ze=!1,width:ke=200,collapsedWidth:Ne=80,zeroWidthTriggerStyle:Ke,breakpoint:wt,onCollapse:Ct,onBreakpoint:Et}=oe,Ht=y(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,de.useContext)(E.Gs),[Oe,Ze]=(0,de.useState)("collapsed"in oe?oe.collapsed:Qe),[Pt,Ve]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in oe&&Ze(oe.collapsed)},[oe.collapsed]);const pt=(xe,Ce)=>{"collapsed"in oe||Ze(xe),Ct==null||Ct(xe,Ce)},ue=(0,de.useRef)();ue.current=xe=>{Ve(xe.matches),Et==null||Et(xe.matches),Oe!==xe.matches&&pt(xe.matches,"responsive")},(0,de.useEffect)(()=>{function xe(pe){return ue.current(pe)}let Ce;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&wt&&wt in x){Ce=pe(`(max-width: ${x[wt]})`);try{Ce.addEventListener("change",xe)}catch(_e){Ce.addListener(xe)}xe(Ce)}}return()=>{try{Ce==null||Ce.removeEventListener("change",xe)}catch(pe){Ce==null||Ce.removeListener(xe)}}},[wt]),(0,de.useEffect)(()=>{const xe=ee("ant-sider-");return Ee.addSider(xe),()=>Ee.removeSider(xe)},[]);const Je=()=>{pt(!Oe,"clickTrigger")},{getPrefixCls:xt}=(0,de.useContext)(b.E_),_t=()=>{const xe=xt("layout-sider",Se),Ce=(0,be.Z)(Ht,["collapsed"]),pe=Oe?Ne:ke,_e=a(pe)?`${pe}px`:String(pe),je=parseFloat(String(Ne||0))===0?de.createElement("span",{onClick:Je,className:Be()(`${xe}-zero-width-trigger`,`${xe}-zero-width-trigger-${ze?"right":"left"}`),style:Ke},Le||de.createElement(Ie,null)):null,Bt={expanded:ze?de.createElement(Ge.Z,null):de.createElement(Fe.Z,null),collapsed:ze?de.createElement(Fe.Z,null):de.createElement(Ge.Z,null)}[Oe?"collapsed":"expanded"],At=Le!==null?je||de.createElement("div",{className:`${xe}-trigger`,onClick:Je,style:{width:_e}},Le||Bt):null,Nt=Object.assign(Object.assign({},it),{flex:`0 0 ${_e}`,maxWidth:_e,minWidth:_e,width:_e}),ht=Be()(xe,`${xe}-${ot}`,{[`${xe}-collapsed`]:!!Oe,[`${xe}-has-trigger`]:he&&Le!==null&&!je,[`${xe}-below`]:!!Pt,[`${xe}-zero-width`]:parseFloat(_e)===0},le);return de.createElement("aside",Object.assign({className:ht},Ce,{style:Nt,ref:ie}),de.createElement("div",{className:`${xe}-children`},De),he||Pt&&je?At:null)},ct=de.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return de.createElement(z.Provider,{value:ct},_t())})},44e3:function(we,tt,ge){"use strict";var re=ge(84966),de=ge(45818);const Me=re.ZP;Me.Header=re.h4,Me.Footer=re.$_,Me.Content=re.VY,Me.Sider=de.Z,tt.default=Me},84966:function(we,tt,ge){"use strict";ge.d(tt,{VY:function(){return z},$_:function(){return x},h4:function(){return y},Gs:function(){return be},ZP:function(){return ee}});var re=ge(95190),de=ge(92310),Me=ge.n(de),qe=ge(2738),fe=ge(59301),ye=ge(36355),me=ge(83116),Fe=te=>{const{componentCls:ae,bodyBg:oe,lightSiderBg:ie,lightTriggerBg:Se,lightTriggerColor:le}=te;return{[`${ae}-sider-light`]:{background:ie,[`${ae}-sider-trigger`]:{color:le,background:Se},[`${ae}-sider-zero-width-trigger`]:{color:le,background:Se,border:`1px solid ${oe}`,borderInlineStart:0}}}};const Ge=te=>{const{antCls:ae,componentCls:oe,colorText:ie,triggerColor:Se,footerBg:le,triggerBg:Le,headerHeight:De,headerPadding:Qe,headerColor:ot,footerPadding:it,triggerHeight:he,zeroTriggerHeight:ze,zeroTriggerWidth:ke,motionDurationMid:Ne,motionDurationSlow:Ke,fontSize:wt,borderRadius:Ct,bodyBg:Et,headerBg:Ht,siderBg:Ee}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Et,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},[`${oe}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Ne}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:he},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:he,color:Se,lineHeight:`${he}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${Ne}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-ke,zIndex:1,width:ke,height:ze,color:Se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ke,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},Fe(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:De,padding:Qe,color:ot,lineHeight:`${De}px`,background:Ht,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:it,color:ie,fontSize:wt,background:le},[`${oe}-content`]:{flex:"auto",minHeight:0}}};var Ae=(0,me.Z)("Layout",te=>[Ge(te)],te=>{const{colorBgLayout:ae,controlHeight:oe,controlHeightLG:ie,colorText:Se,controlHeightSM:le,marginXXS:Le,colorTextLightSolid:De,colorBgContainer:Qe}=te,ot=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${ot}px`,headerColor:Se,footerPadding:`${le}px ${ot}px`,footerBg:ae,siderBg:"#001529",triggerHeight:ie+Le*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(te,ae){var oe={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&ae.indexOf(ie)<0&&(oe[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ie=Object.getOwnPropertySymbols(te);Se<ie.length;Se++)ae.indexOf(ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[Se])&&(oe[ie[Se]]=te[ie[Se]]);return oe};const be=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:ae,tagName:oe,displayName:ie}=te;return Se=>fe.forwardRef((Le,De)=>fe.createElement(Se,Object.assign({ref:De,suffixCls:ae,tagName:oe},Le)))}const a=fe.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:ie,className:Se,tagName:le}=te,Le=Be(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=fe.useContext(ye.E_),Qe=De("layout",oe),[ot,it]=Ae(Qe),he=ie?`${Qe}-${ie}`:Qe;return ot(fe.createElement(le,Object.assign({className:Me()(oe||he,Se,it),ref:ae},Le)))}),b=fe.forwardRef((te,ae)=>{const{direction:oe}=fe.useContext(ye.E_),[ie,Se]=fe.useState([]),{prefixCls:le,className:Le,rootClassName:De,children:Qe,hasSider:ot,tagName:it,style:he}=te,ze=Be(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ke=(0,qe.Z)(ze,["suffixCls"]),{getPrefixCls:Ne,layout:Ke}=fe.useContext(ye.E_),wt=Ne("layout",le),[Ct,Et]=Ae(wt),Ht=Me()(wt,{[`${wt}-has-sider`]:typeof ot=="boolean"?ot:ie.length>0,[`${wt}-rtl`]:oe==="rtl"},Ke==null?void 0:Ke.className,Le,De,Et),Ee=fe.useMemo(()=>({siderHook:{addSider:Oe=>{Se(Ze=>[].concat((0,re.Z)(Ze),[Oe]))},removeSider:Oe=>{Se(Ze=>Ze.filter(Pt=>Pt!==Oe))}}}),[]);return Ct(fe.createElement(be.Provider,{value:Ee},fe.createElement(it,Object.assign({ref:ae,className:Ht,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),he)},ke),Qe)))}),E=ne({tagName:"div",displayName:"Layout"})(b),y=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(we,tt,ge){"use strict";ge.d(tt,{J:function(){return ye}});var re=ge(59301),de=ge(33234),Me=ge(70425),qe=function(me,Ie){var Fe={};for(var Ge in me)Object.prototype.hasOwnProperty.call(me,Ge)&&Ie.indexOf(Ge)<0&&(Fe[Ge]=me[Ge]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ge=Object.getOwnPropertySymbols(me);Ae<Ge.length;Ae++)Ie.indexOf(Ge[Ae])<0&&Object.prototype.propertyIsEnumerable.call(me,Ge[Ae])&&(Fe[Ge[Ae]]=me[Ge[Ae]]);return Fe};const fe=re.createContext(null),ye=re.forwardRef((me,Ie)=>{const{children:Fe}=me,Ge=qe(me,["children"]),Ae=re.useContext(fe),Be=re.useMemo(()=>Object.assign(Object.assign({},Ae),Ge),[Ae,Ge.prefixCls,Ge.mode,Ge.selectable]);return re.createElement(fe.Provider,{value:Be},re.createElement(de.BR,null,(0,Me.supportNodeRef)(Fe)?re.cloneElement(Fe,{ref:Ie}):Fe))});tt.Z=fe},20834:function(we,tt,ge){"use strict";ge.d(tt,{default:function(){return ct}});var re=ge(15285),de=ge(59301),Me=ge(45818),qe=ge(92310),fe=ge.n(qe),ye=ge(36355),me=function(xe,Ce){var pe={};for(var _e in xe)Object.prototype.hasOwnProperty.call(xe,_e)&&Ce.indexOf(_e)<0&&(pe[_e]=xe[_e]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(xe);je<_e.length;je++)Ce.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(xe,_e[je])&&(pe[_e[je]]=xe[_e[je]]);return pe},Fe=xe=>{const{prefixCls:Ce,className:pe,dashed:_e}=xe,je=me(xe,["prefixCls","className","dashed"]),{getPrefixCls:ut}=de.useContext(ye.E_),vt=ut("menu",Ce),Bt=fe()({[`${vt}-item-divider-dashed`]:!!_e},pe);return de.createElement(re.iz,Object.assign({className:Bt},je))},Ge=ge(11592),Ae=ge(2738),Be=ge(6848),be=ge(92343),a=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=xe=>{var Ce;const{className:pe,children:_e,icon:je,title:ut,danger:vt}=xe,{prefixCls:Bt,firstLevel:At,direction:Nt,disableMenuItemTitleTooltip:ht,inlineCollapsed:$t}=de.useContext(a),Qt=Pn=>{const bn=de.createElement("span",{className:`${Bt}-title-content`},_e);return(!je||(0,be.l$)(_e)&&_e.type==="span")&&_e&&Pn&&At&&typeof _e=="string"?de.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},_e.charAt(0)):bn},{siderCollapsed:mn}=de.useContext(Me.D);let gn=ut;typeof ut=="undefined"?gn=At?_e:"":ut===!1&&(gn="");const Vt={title:gn};!mn&&!$t&&(Vt.title=null,Vt.open=!1);const tn=(0,Ge.Z)(_e).length;let nn=de.createElement(re.ck,Object.assign({},(0,Ae.Z)(xe,["title","icon","danger"]),{className:fe()({[`${Bt}-item-danger`]:vt,[`${Bt}-item-only-child`]:(je?tn+1:tn)===1},pe),title:typeof ut=="string"?ut:void 0}),(0,be.Tm)(je,{className:fe()((0,be.l$)(je)?(Ce=je.props)===null||Ce===void 0?void 0:Ce.className:"",`${Bt}-item-icon`)}),Qt($t));return ht||(nn=de.createElement(Be.Z,Object.assign({},Vt,{placement:Nt==="rtl"?"left":"right",overlayClassName:`${Bt}-inline-collapsed-tooltip`}),nn)),nn},x=xe=>{var Ce;const{popupClassName:pe,icon:_e,title:je,theme:ut}=xe,vt=de.useContext(a),{prefixCls:Bt,inlineCollapsed:At,theme:Nt}=vt,ht=(0,re.Xl)();let $t;if(!_e)$t=At&&!ht.length&&je&&typeof je=="string"?de.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},je.charAt(0)):de.createElement("span",{className:`${Bt}-title-content`},je);else{const mn=(0,be.l$)(je)&&je.type==="span";$t=de.createElement(de.Fragment,null,(0,be.Tm)(_e,{className:fe()((0,be.l$)(_e)?(Ce=_e.props)===null||Ce===void 0?void 0:Ce.className:"",`${Bt}-item-icon`)}),mn?je:de.createElement("span",{className:`${Bt}-title-content`},je))}const Qt=de.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return de.createElement(a.Provider,{value:Qt},de.createElement(re.Wd,Object.assign({},(0,Ae.Z)(xe,["icon"]),{title:$t,popupClassName:fe()(Bt,pe,`${Bt}-${ut||Nt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),ae=ge(40875),oe=function(xe,Ce){var pe={};for(var _e in xe)Object.prototype.hasOwnProperty.call(xe,_e)&&Ce.indexOf(_e)<0&&(pe[_e]=xe[_e]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(xe);je<_e.length;je++)Ce.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(xe,_e[je])&&(pe[_e[je]]=xe[_e[je]]);return pe};function ie(xe){return(xe||[]).map((Ce,pe)=>{if(Ce&&typeof Ce=="object"){const _e=Ce,{label:je,children:ut,key:vt,type:Bt}=_e,At=oe(_e,["label","children","key","type"]),Nt=vt!=null?vt:`tmp-${pe}`;return ut||Bt==="group"?Bt==="group"?de.createElement(re.BW,Object.assign({key:Nt},At,{title:je}),ie(ut)):de.createElement(x,Object.assign({key:Nt},At,{title:je}),ie(ut)):Bt==="divider"?de.createElement(Fe,Object.assign({key:Nt},At)):de.createElement(E,Object.assign({key:Nt},At),je)}return null}).filter(Ce=>Ce)}function Se(xe){return de.useMemo(()=>xe&&ie(xe),[xe])}var le=ge(64993),Le=ge(17313),De=ge(8378),Qe=ge(13826),ot=ge(29878),it=ge(83116),he=ge(37613),ke=xe=>{const{componentCls:Ce,motionDurationSlow:pe,horizontalLineHeight:_e,colorSplit:je,lineWidth:ut,lineType:vt,itemPaddingInline:Bt}=xe;return{[`${Ce}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${ut}px ${vt} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ce}-item, ${Ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${Ce}-item:hover,
> ${Ce}-item-active,
> ${Ce}-submenu ${Ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ce}-item, ${Ce}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${Ce}-submenu-arrow`]:{display:"none"}}}},Ke=xe=>{let{componentCls:Ce,menuArrowOffset:pe}=xe;return{[`${Ce}-rtl`]:{direction:"rtl"},[`${Ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ce}-rtl${Ce}-vertical,
${Ce}-submenu-rtl ${Ce}-vertical`]:{[`${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const wt=xe=>Object.assign({},(0,Le.oN)(xe));var Et=(xe,Ce)=>{const{componentCls:pe,itemColor:_e,itemSelectedColor:je,groupTitleColor:ut,itemBg:vt,subMenuItemBg:Bt,itemSelectedBg:At,activeBarHeight:Nt,activeBarWidth:ht,activeBarBorderWidth:$t,motionDurationSlow:Qt,motionEaseInOut:mn,motionEaseOut:gn,itemPaddingInline:Vt,motionDurationMid:tn,itemHoverColor:nn,lineType:Pn,colorSplit:bn,itemDisabledColor:wn,dangerItemColor:Dn,dangerItemHoverColor:Fn,dangerItemSelectedColor:Nn,dangerItemActiveBg:on,dangerItemSelectedBg:xn,itemHoverBg:kn,itemActiveBg:jn,menuSubMenuBg:Qn,horizontalItemSelectedColor:Un,horizontalItemSelectedBg:Yn,horizontalItemBorderRadius:oa,horizontalItemHoverBg:Zn,popupBg:qn}=xe;return{[`${pe}-${Ce}, ${pe}-${Ce} > ${pe}`]:{color:_e,background:vt,[`&${pe}-root:focus-visible`]:Object.assign({},wt(xe)),[`${pe}-item-group-title`]:{color:ut},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:je}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${wn} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:nn}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}}},[`${pe}-item-danger`]:{color:Dn,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Fn}},[`&${pe}-item:active`]:{background:on}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:je,[`&${pe}-item-danger`]:{color:Nn},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:At,[`&${pe}-item-danger`]:{backgroundColor:xn}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},wt(xe))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Qn},[`&${pe}-popup > ${pe}`]:{backgroundColor:qn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},Ce==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:$t,marginTop:-$t,marginBottom:0,borderRadius:oa,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${Nt}px solid transparent`,transition:`border-color ${Qt} ${mn}`,content:'""'},"&:hover, &-active, &-open":{background:Zn,"&::after":{borderBottomWidth:Nt,borderBottomColor:Un}},"&-selected":{color:Un,backgroundColor:Yn,"&:hover":{backgroundColor:Yn},"&::after":{borderBottomWidth:Nt,borderBottomColor:Un}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${$t}px ${Pn} ${bn}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Bt},[`${pe}-item, ${pe}-submenu-title`]:$t&&ht?{width:`calc(100% + ${$t}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${gn}`,`opacity ${tn} ${gn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Nn}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${mn}`,`opacity ${tn} ${mn}`].join(",")}}}}}};const Ht=xe=>{const{componentCls:Ce,itemHeight:pe,itemMarginInline:_e,padding:je,menuArrowSize:ut,marginXS:vt,itemMarginBlock:Bt}=xe,At=je+ut+vt;return{[`${Ce}-item`]:{position:"relative",overflow:"hidden"},[`${Ce}-item, ${Ce}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:Bt,width:`calc(100% - ${_e*2}px)`},[`> ${Ce}-item,
> ${Ce}-submenu > ${Ce}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${Ce}-item-group-list ${Ce}-submenu-title,
${Ce}-submenu-title`]:{paddingInlineEnd:At}}};var Oe=xe=>{const{componentCls:Ce,iconCls:pe,itemHeight:_e,colorTextLightSolid:je,dropdownWidth:ut,controlHeightLG:vt,motionDurationMid:Bt,motionEaseOut:At,paddingXL:Nt,itemMarginInline:ht,fontSizeLG:$t,motionDurationSlow:Qt,paddingXS:mn,boxShadowSecondary:gn,collapsedWidth:Vt,collapsedIconSize:tn}=xe,nn={height:_e,lineHeight:`${_e}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ce]:{"&-inline, &-vertical":Object.assign({[`&${Ce}-root`]:{boxShadow:"none"}},Ht(xe))},[`${Ce}-submenu-popup`]:{[`${Ce}-vertical`]:Object.assign(Object.assign({},Ht(xe)),{boxShadow:gn})}},{[`${Ce}-submenu-popup ${Ce}-vertical${Ce}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ce}-inline`]:{width:"100%",[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qt}`,`background ${Qt}`,`padding ${Bt} ${At}`].join(","),[`> ${Ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ce}-sub${Ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ce}-submenu > ${Ce}-submenu-title`]:nn,[`& ${Ce}-item-group-title`]:{paddingInlineStart:Nt}},[`${Ce}-item`]:nn}},{[`${Ce}-inline-collapsed`]:{width:Vt,[`&${Ce}-root`]:{[`${Ce}-item, ${Ce}-submenu ${Ce}-submenu-title`]:{[`> ${Ce}-inline-collapsed-noicon`]:{fontSize:$t,textAlign:"center"}}},[`> ${Ce}-item,
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-item,
> ${Ce}-item-group > ${Ce}-item-group-list > ${Ce}-submenu > ${Ce}-submenu-title,
> ${Ce}-submenu > ${Ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$t/2}px - ${ht}px)`,textOverflow:"clip",[`
${Ce}-submenu-arrow,
${Ce}-submenu-expand-icon
`]:{opacity:0},[`${Ce}-item-icon, ${pe}`]:{margin:0,fontSize:tn,lineHeight:`${_e}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ce}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ce}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:je}},[`${Ce}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:mn})}}]};const Ze=xe=>{const{componentCls:Ce,motionDurationSlow:pe,motionDurationMid:_e,motionEaseInOut:je,motionEaseOut:ut,iconCls:vt,iconSize:Bt,iconMarginInlineEnd:At}=xe;return{[`${Ce}-item, ${Ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${je}`].join(","),[`${Ce}-item-icon, ${vt}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${_e} ${ut}`,`margin ${pe} ${je}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${pe} ${je}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${Ce}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${Ce}-item-only-child`]:{[`> ${vt}, > ${Ce}-item-icon`]:{marginInlineEnd:0}}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pt=xe=>{const{componentCls:Ce,motionDurationSlow:pe,motionEaseInOut:_e,borderRadius:je,menuArrowSize:ut,menuArrowOffset:vt}=xe;return{[`${Ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${_e}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${pe} ${_e}`,`transform ${pe} ${_e}`,`top ${pe} ${_e}`,`color ${pe} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},Ve=xe=>{const{antCls:Ce,componentCls:pe,fontSize:_e,motionDurationSlow:je,motionDurationMid:ut,motionEaseInOut:vt,paddingXS:Bt,padding:At,colorSplit:Nt,lineWidth:ht,zIndexPopup:$t,borderRadiusLG:Qt,subMenuItemBorderRadius:mn,menuArrowSize:gn,menuArrowOffset:Vt,lineType:tn,menuPanelMaskInset:nn,groupTitleLineHeight:Pn,groupTitleFontSize:bn}=xe;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(xe)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Bt}px ${At}px`,fontSize:bn,lineHeight:Pn,transition:`all ${je}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`,`padding ${ut} ${vt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${je} ${vt}`,`padding ${je} ${vt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${je}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Nt,borderStyle:tn,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ze(xe)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${_e*2}px ${At}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:Qt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${nn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:nn},"\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:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qt},Ze(xe)),Pt(xe)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:mn},[`${pe}-submenu-title::after`]:{transition:`transform ${je} ${vt}`}})}}),Pt(xe)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${gn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${Ce}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var pt=(xe,Ce)=>(0,it.Z)("Menu",_e=>{if(Ce===!1)return[];const{colorBgElevated:je,colorPrimary:ut,colorTextLightSolid:vt,controlHeightLG:Bt,fontSize:At,darkItemColor:Nt,darkDangerItemColor:ht,darkItemBg:$t,darkSubMenuItemBg:Qt,darkItemSelectedColor:mn,darkItemSelectedBg:gn,darkDangerItemSelectedBg:Vt,darkItemHoverBg:tn,darkGroupTitleColor:nn,darkItemHoverColor:Pn,darkItemDisabledColor:bn,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:Dn,darkDangerItemActiveBg:Fn}=_e,Nn=At/7*5,on=(0,he.TS)(_e,{menuArrowSize:Nn,menuHorizontalHeight:Bt*1.15,menuArrowOffset:`${Nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:je}),xn=(0,he.TS)(on,{itemColor:Nt,itemHoverColor:Pn,groupTitleColor:nn,itemSelectedColor:mn,itemBg:$t,popupBg:$t,subMenuItemBg:Qt,itemActiveBg:"transparent",itemSelectedBg:gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:bn,dangerItemColor:ht,dangerItemHoverColor:wn,dangerItemSelectedColor:Dn,dangerItemActiveBg:Fn,dangerItemSelectedBg:Vt,menuSubMenuBg:Qt,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:ut});return[Ve(on),ke(on),Oe(on),Et(on,"light"),Et(xn,"dark"),Ke(on),(0,De.Z)(on),(0,Qe.oN)(on,"slide-up"),(0,Qe.oN)(on,"slide-down"),(0,ot._y)(on,"zoom-big")]},_e=>{const{colorPrimary:je,colorError:ut,colorTextDisabled:vt,colorErrorBg:Bt,colorText:At,colorTextDescription:Nt,colorBgContainer:ht,colorFillAlter:$t,colorFillContent:Qt,lineWidth:mn,lineWidthBold:gn,controlItemBgActive:Vt,colorBgTextHover:tn,controlHeightLG:nn,lineHeight:Pn,colorBgElevated:bn,marginXXS:wn,padding:Dn,fontSize:Fn,controlHeightSM:Nn,fontSizeLG:on,colorTextLightSolid:xn,colorErrorHover:kn}=_e,jn=new le.C(xn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:je,horizontalItemHoverColor:je,colorGroupTitle:Nt,groupTitleColor:Nt,colorItemTextSelected:je,itemSelectedColor:je,colorItemTextSelectedHorizontal:je,horizontalItemSelectedColor:je,colorItemBg:ht,itemBg:ht,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:Qt,itemActiveBg:Vt,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:Vt,itemSelectedBg:Vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:gn,activeBarHeight:gn,colorActiveBarBorderSize:mn,activeBarBorderWidth:mn,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:_e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:nn,groupTitleLineHeight:Pn,collapsedWidth:nn*2,popupBg:bn,itemMarginBlock:wn,itemPaddingInline:Dn,horizontalLineHeight:`${nn*1.15}px`,iconSize:Fn,iconMarginInlineEnd:Nn-Fn,collapsedIconSize:on,groupTitleFontSize:Fn,darkItemDisabledColor:new le.C(xn).setAlpha(.25).toRgbString(),darkItemColor:jn,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xn,darkItemSelectedBg:je,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:jn,darkItemHoverColor:xn,darkDangerItemHoverColor:kn,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:ut}},{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"]]})(xe),ue=function(xe,Ce){var pe={};for(var _e in xe)Object.prototype.hasOwnProperty.call(xe,_e)&&Ce.indexOf(_e)<0&&(pe[_e]=xe[_e]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(xe);je<_e.length;je++)Ce.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(xe,_e[je])&&(pe[_e[je]]=xe[_e[je]]);return pe},xt=(0,de.forwardRef)((xe,Ce)=>{var pe,_e;const je=de.useContext(ae.Z),ut=je||{},{getPrefixCls:vt,getPopupContainer:Bt,direction:At,menu:Nt}=de.useContext(ye.E_),ht=vt(),{prefixCls:$t,className:Qt,style:mn,theme:gn="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:nn,siderCollapsed:Pn,items:bn,children:wn,rootClassName:Dn,mode:Fn,selectable:Nn,onClick:on,overflowedIndicatorPopupClassName:xn}=xe,kn=ue(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jn=(0,Ae.Z)(kn,["collapsedWidth"]),Qn=Se(bn)||wn;(pe=ut.validator)===null||pe===void 0||pe.call(ut,{mode:Fn});const Un=(0,ee.useEvent)(function(){var rt;on==null||on.apply(void 0,arguments),(rt=ut.onClick)===null||rt===void 0||rt.call(ut)}),Yn=ut.mode||Fn,oa=Nn!=null?Nn:ut.selectable,Zn=de.useMemo(()=>Pn!==void 0?Pn:nn,[nn,Pn]),qn={horizontal:{motionName:`${ht}-slide-up`},inline:(0,te.Z)(ht),other:{motionName:`${ht}-zoom-big`}},On=vt("menu",$t||ut.prefixCls),[ra,da]=pt(On,!je),ve=fe()(`${On}-${gn}`,Nt==null?void 0:Nt.className,Qt);let He;if(typeof Vt=="function")He=Vt;else if(Vt===null||Vt===!1)He=null;else if(ut.expandIcon===null||ut.expandIcon===!1)He=null;else{const rt=Vt!=null?Vt:ut.expandIcon;He=(0,be.Tm)(rt,{className:fe()(`${On}-submenu-expand-icon`,(0,be.l$)(rt)?(_e=rt.props)===null||_e===void 0?void 0:_e.className:"")})}const Ye=de.useMemo(()=>({prefixCls:On,inlineCollapsed:Zn||!1,direction:At,firstLevel:!0,theme:gn,mode:Yn,disableMenuItemTitleTooltip:tn}),[On,Zn,At,tn,gn]);return ra(de.createElement(ae.Z.Provider,{value:null},de.createElement(a.Provider,{value:Ye},de.createElement(re.ZP,Object.assign({getPopupContainer:Bt,overflowedIndicator:de.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(On,`${On}-${gn}`,xn),mode:Yn,selectable:oa,onClick:Un},jn,{inlineCollapsed:Zn,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),mn),className:ve,prefixCls:On,direction:At,defaultMotions:qn,expandIcon:He,ref:Ce,rootClassName:fe()(Dn,da)}),Qn))))});const _t=(0,de.forwardRef)((xe,Ce)=>{const pe=(0,de.useRef)(null),_e=de.useContext(Me.D);return(0,de.useImperativeHandle)(Ce,()=>({menu:pe.current,focus:je=>{var ut;(ut=pe.current)===null||ut===void 0||ut.focus(je)}})),de.createElement(xt,Object.assign({ref:pe},xe,_e))});_t.Item=E,_t.SubMenu=x,_t.Divider=Fe,_t.ItemGroup=re.BW;var ct=_t},90782:function(we,tt,ge){"use strict";ge.d(tt,{S:function(){return me}});var re=ge(48736),de=ge(67841);function Me(Ie,Fe){var Ge=new Set;return Ie.forEach(function(Ae){Fe.has(Ae)||Ge.add(Ae)}),Ge}function qe(Ie){var Fe=Ie||{},Ge=Fe.disabled,Ae=Fe.disableCheckbox,Be=Fe.checkable;return!!(Ge||Ae)||Be===!1}function fe(Ie,Fe,Ge,Ae){for(var Be=new Set(Ie),be=new Set,ne=0;ne<=Ge;ne+=1){var a=Fe.get(ne)||new Set;a.forEach(function(x){var z=x.key,ee=x.node,te=x.children,ae=te===void 0?[]:te;Be.has(z)&&!Ae(ee)&&ae.filter(function(oe){return!Ae(oe.node)}).forEach(function(oe){Be.add(oe.key)})})}for(var b=new Set,E=Ge;E>=0;E-=1){var y=Fe.get(E)||new Set;y.forEach(function(x){var z=x.parent,ee=x.node;if(!(Ae(ee)||!x.parent||b.has(x.parent.key))){if(Ae(x.parent.node)){b.add(z.key);return}var te=!0,ae=!1;(z.children||[]).filter(function(oe){return!Ae(oe.node)}).forEach(function(oe){var ie=oe.key,Se=Be.has(ie);te&&!Se&&(te=!1),!ae&&(Se||be.has(ie))&&(ae=!0)}),te&&Be.add(z.key),ae&&be.add(z.key),b.add(z.key)}})}return{checkedKeys:Array.from(Be),halfCheckedKeys:Array.from(Me(be,Be))}}function ye(Ie,Fe,Ge,Ae,Be){for(var be=new Set(Ie),ne=new Set(Fe),a=0;a<=Ae;a+=1){var b=Ge.get(a)||new Set;b.forEach(function(z){var ee=z.key,te=z.node,ae=z.children,oe=ae===void 0?[]:ae;!be.has(ee)&&!ne.has(ee)&&!Be(te)&&oe.filter(function(ie){return!Be(ie.node)}).forEach(function(ie){be.delete(ie.key)})})}ne=new Set;for(var E=new Set,y=Ae;y>=0;y-=1){var x=Ge.get(y)||new Set;x.forEach(function(z){var ee=z.parent,te=z.node;if(!(Be(te)||!z.parent||E.has(z.parent.key))){if(Be(z.parent.node)){E.add(ee.key);return}var ae=!0,oe=!1;(ee.children||[]).filter(function(ie){return!Be(ie.node)}).forEach(function(ie){var Se=ie.key,le=be.has(Se);ae&&!le&&(ae=!1),!oe&&(le||ne.has(Se))&&(oe=!0)}),ae||be.delete(ee.key),oe&&ne.add(ee.key),E.add(ee.key)}})}return{checkedKeys:Array.from(be),halfCheckedKeys:Array.from(Me(ne,be))}}function me(Ie,Fe,Ge,Ae){var Be=[],be;Ae?be=Ae:be=qe;var ne=new Set(Ie.filter(function(y){var x=!!(0,de.Z)(Ge,y);return x||Be.push(y),x})),a=new Map,b=0;Object.keys(Ge).forEach(function(y){var x=Ge[y],z=x.level,ee=a.get(z);ee||(ee=new Set,a.set(z,ee)),ee.add(x),b=Math.max(b,z)}),(0,re.ZP)(!Be.length,"Tree missing follow keys: ".concat(Be.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var E;return Fe===!0?E=fe(ne,a,b,be):E=ye(ne,Fe.halfCheckedKeys,a,b,be),E}},67841:function(we,tt,ge){"use strict";ge.d(tt,{Z:function(){return re}});function re(de,Me){return de[Me]}},71430:function(we,tt,ge){"use strict";ge.d(tt,{F:function(){return z},H8:function(){return x},I8:function(){return y},km:function(){return Be},oH:function(){return b},w$:function(){return be},zn:function(){return a}});var re=ge(93664),de=ge(95190),Me=ge(20439),qe=ge(62646),fe=ge(11592),ye=ge(2738),me=ge(48736),Ie=ge(67841),Fe=["children"];function Ge(ee,te){return"".concat(ee,"-").concat(te)}function Ae(ee){return ee&&ee.type&&ee.type.isTreeNode}function Be(ee,te){return ee!=null?ee:te}function be(ee){var te=ee||{},ae=te.title,oe=te._title,ie=te.key,Se=te.children,le=ae||"title";return{title:le,_title:oe||[le],key:ie||"key",children:Se||"children"}}function ne(ee,te){var ae=new Map;function oe(ie){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ie||[]).forEach(function(le){var Le=le[te.key],De=le[te.children];warning(Le!=null,"Tree node must have a certain key: [".concat(Se).concat(Le,"]"));var Qe=String(Le);warning(!ae.has(Qe)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(Qe)),ae.set(Qe,!0),oe(De,"".concat(Se).concat(Qe," > "))})}oe(ee)}function a(ee){function te(ae){var oe=(0,fe.Z)(ae);return oe.map(function(ie){if(!Ae(ie))return(0,me.ZP)(!ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=ie.key,le=ie.props,Le=le.children,De=(0,qe.Z)(le,Fe),Qe=(0,Me.Z)({key:Se},De),ot=te(Le);return ot.length&&(Qe.children=ot),Qe}).filter(function(ie){return ie})}return te(ee)}function b(ee,te,ae){var oe=be(ae),ie=oe._title,Se=oe.key,le=oe.children,Le=new Set(te===!0?[]:te),De=[];function Qe(ot){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ot.map(function(he,ze){for(var ke=Ge(it?it.pos:"0",ze),Ne=Be(he[Se],ke),Ke,wt=0;wt<ie.length;wt+=1){var Ct=ie[wt];if(he[Ct]!==void 0){Ke=he[Ct];break}}var Et=(0,Me.Z)((0,Me.Z)({},(0,ye.Z)(he,[].concat((0,de.Z)(ie),[Se,le]))),{},{title:Ke,key:Ne,parent:it,pos:ke,children:null,data:he,isStart:[].concat((0,de.Z)(it?it.isStart:[]),[ze===0]),isEnd:[].concat((0,de.Z)(it?it.isEnd:[]),[ze===ot.length-1])});return De.push(Et),te===!0||Le.has(Ne)?Et.children=Qe(he[le]||[],Et):Et.children=[],Et})}return Qe(ee),De}function E(ee,te,ae){var oe={};(0,re.Z)(ae)==="object"?oe=ae:oe={externalGetKey:ae},oe=oe||{};var ie=oe,Se=ie.childrenPropName,le=ie.externalGetKey,Le=ie.fieldNames,De=be(Le),Qe=De.key,ot=De.children,it=Se||ot,he;le?typeof le=="string"?he=function(Ne){return Ne[le]}:typeof le=="function"&&(he=function(Ne){return le(Ne)}):he=function(Ne,Ke){return Be(Ne[Qe],Ke)};function ze(ke,Ne,Ke,wt){var Ct=ke?ke[it]:ee,Et=ke?Ge(Ke.pos,Ne):"0",Ht=ke?[].concat((0,de.Z)(wt),[ke]):[];if(ke){var Ee=he(ke,Et),Oe={node:ke,index:Ne,pos:Et,key:Ee,parentPos:Ke.node?Ke.pos:null,level:Ke.level+1,nodes:Ht};te(Oe)}Ct&&Ct.forEach(function(Ze,Pt){ze(Ze,Pt,{node:ke,pos:Et,level:Ke?Ke.level+1:-1},Ht)})}ze(null)}function y(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=te.initWrapper,oe=te.processEntity,ie=te.onProcessFinished,Se=te.externalGetKey,le=te.childrenPropName,Le=te.fieldNames,De=arguments.length>2?arguments[2]:void 0,Qe=Se||De,ot={},it={},he={posEntities:ot,keyEntities:it};return ae&&(he=ae(he)||he),E(ee,function(ze){var ke=ze.node,Ne=ze.index,Ke=ze.pos,wt=ze.key,Ct=ze.parentPos,Et=ze.level,Ht=ze.nodes,Ee={node:ke,nodes:Ht,index:Ne,key:wt,pos:Ke,level:Et},Oe=Be(wt,Ke);ot[Ke]=Ee,it[Oe]=Ee,Ee.parent=ot[Ct],Ee.parent&&(Ee.parent.children=Ee.parent.children||[],Ee.parent.children.push(Ee)),oe&&oe(Ee,he)},{externalGetKey:Qe,childrenPropName:le,fieldNames:Le}),ie&&ie(he),he}function x(ee,te){var ae=te.expandedKeys,oe=te.selectedKeys,ie=te.loadedKeys,Se=te.loadingKeys,le=te.checkedKeys,Le=te.halfCheckedKeys,De=te.dragOverNodeKey,Qe=te.dropPosition,ot=te.keyEntities,it=(0,Ie.Z)(ot,ee),he={eventKey:ee,expanded:ae.indexOf(ee)!==-1,selected:oe.indexOf(ee)!==-1,loaded:ie.indexOf(ee)!==-1,loading:Se.indexOf(ee)!==-1,checked:le.indexOf(ee)!==-1,halfChecked:Le.indexOf(ee)!==-1,pos:String(it?it.pos:""),dragOver:De===ee&&Qe===0,dragOverGapTop:De===ee&&Qe===-1,dragOverGapBottom:De===ee&&Qe===1};return he}function z(ee){var te=ee.data,ae=ee.expanded,oe=ee.selected,ie=ee.checked,Se=ee.loaded,le=ee.loading,Le=ee.halfChecked,De=ee.dragOver,Qe=ee.dragOverGapTop,ot=ee.dragOverGapBottom,it=ee.pos,he=ee.active,ze=ee.eventKey,ke=(0,Me.Z)((0,Me.Z)({},te),{},{expanded:ae,selected:oe,checked:ie,loaded:Se,loading:le,halfChecked:Le,dragOver:De,dragOverGapTop:Qe,dragOverGapBottom:ot,pos:it,active:he,key:ze});return"props"in ke||Object.defineProperty(ke,"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`."),ee}}),ke}}}]);