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(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ie}});var re=ge(54476),de=ge(59301),Ne={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=Ne,fe=ge(7657),Ee=function(Ge,Ae){return de.createElement(fe.Z,(0,re.Z)({},Ge,{ref:Ae,icon:Qe}))},me=de.forwardRef(Ee),Ie=me},38819:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ie}});var re=ge(54476),de=ge(59301),Ne={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=Ne,fe=ge(7657),Ee=function(Ge,Ae){return de.createElement(fe.Z,(0,re.Z)({},Ge,{ref:Ae,icon:Qe}))},me=de.forwardRef(Ee),Ie=me},27431:function(De,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"}},87851:function(){"use strict";function De(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(De.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(De.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(De.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(De.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 De))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 Ne(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,ye=x-le*y;ie=ne,Se=le*ie+ye}else if(oe===0){var xe=(a-E)/ae,Je=a-xe*ne;ie=y,Se=xe*ie+Je}else{var xe=(a-E)/ae,le=(x-ee)/oe,Je=a-xe*ne,ye=x-le*y;ie=(ye-Je)/(xe-le),Se=xe*ie+Je}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 ye=1-te,xe=te,Je=ne*ye+b*xe,ot=a*ye+E*xe,it=b*ye+y*xe,he=E*ye+x*xe,ze=y*ye+z*xe,ke=x*ye+ee*xe,Me=Je*ye+it*xe,Ke=ot*ye+he*xe,Bt=it*ye+ze*xe,Et=he*ye+ke*xe,yt=Me*ye+Bt*xe,Ht=Ke*ye+Et*xe;ae.x=Je,ae.y=ot,oe.x=Me,oe.y=Ke,ie.x=yt,ie.y=Ht,Se.x=Bt,Se.y=Et,le.x=ze,le.y=ke}var fe=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new De("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=Ee,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 De("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 De("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 De("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 De("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 De("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 we(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]=Ne(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=we(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=we(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=we(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=we(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=we(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=we(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 De("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new De("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 De("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=Ee,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 De("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new De("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 De("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 De("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 De("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 De("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 De("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 De("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(),ye=re(),xe=re();Qe(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.58,Se,Se,xe,le,ye);var Je=re(),ot=re(),it=re();Qe(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.42,Je,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,xe.x*a,xe.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,le.x*a,le.y*b,ye.x*a,ye.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,Je.x*a,Je.y*b,ot.x*a,ot.y*b).close()),de(ae),de(oe),de(ie),de(Se),de(le),de(ye),de(xe),de(Je),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 De("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 ye=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,(ye.x*.1+.9)*a,.15*b)),Se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.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 xe=new go.PathFigure(z*a,(ee-x)*b,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),xe.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 Je=new go.PathFigure((z-x)*a,ee*b,!1);return E.add(Je),de(te),de(ae),de(oe),de(ie),de(le),de(ye),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 De("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new De("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=Ne(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 De("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new De("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=Ne(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 De("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=Ne(0,.5,.3,0,0,y/b,.1,y/b,re());return z.spot1=new go.Spot(te.x,te.y),te=Ne(.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 De("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new De("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=Ne(0,.5,.3,ee/b,0,x/b,1,x/b,re());return ae.spot1=new go.Spot(ie.x,ie.y),ie=Ne(.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 De("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=Ne(.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 De("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new De("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=Ne(.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 De("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=Ne(.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 De("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=Ne(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 De("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=Ne(.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 De("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=Ne(.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 De("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 De("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 ye=new go.PathFigure((te-ee)*a+oe,ae*b+ie,!0);E.add(ye),ye.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)),ye.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)),ye.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)),ye.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 xe=new go.PathFigure(te*a+oe,(ae-ee)*b+ie,!0);E.add(xe),xe.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)),xe.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)),xe.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)),xe.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 Je=new go.PathFigure(te*a+oe,(ae-ee)*b+ie,!0);return E.add(Je),Je.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)),Je.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)),Je.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)),Je.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,ye=new go.PathFigure(te*a,(1-ae)*b,!1);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,ie*b,oe*a,.7*b,oe*a,ie*b)),ye.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)),ye.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)),ye.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)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*b)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*b)),ye.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,ye=oe*Se,xe=oe*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,te*b,(ee-(ye+Se)/2)*a,(te+(le+xe)/2)*b,(ee-Se)*a,(te+xe)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*b,(ee-Se)*a,(te-xe)*b,(ee-ye)*a,(te-le)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,te*b,(ee+ye)*a,(te-le)*b,(ee+Se)*a,(te-xe)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*b,(ee+Se)*a,(te+xe)*b,(ee+(ye+Se)/2)*a,(te+(le+xe)/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 Je=new go.PathFigure(.2*a,b,!1);E.add(Je),Je.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,ye=new go.PathFigure((Se-oe)*a,le*b,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-oe)*b,(Se-oe)*a,(le-ie)*b,(Se-ie)*a,(le-oe)*b)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,le*b,(Se+ie)*a,(le-oe)*b,(Se+oe)*a,(le-ie)*b)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+oe)*b,(Se+oe)*a,(le+ie)*b,(Se+ie)*a,(le+oe)*b)),ye.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 xe=new go.PathFigure(0,b,!1);return E.add(xe),xe.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")},63089: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 De={},tt="5.0",ge={},re=null,de=!1,Ne=!1,Qe=null,fe=!1,Ee=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,Ne=!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&&!Ne&&(de=!0)),Qe!==null&&ge.id===void 0&&(ge.id=Qe);var Ge="",Ae="",we=!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(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};De.setHTML5Codebase=function(Ce,Oe){me=Ce,Et(Ce,Oe)},De.setJavaCodebase=De.setJavaCodebaseVersion=De.isCompiledInstalled=De.setPreCompiledScriptPath=De.setPreCompiledResourcePath=function(){},De.setHTML5CodebaseVersion=function(Ce,Oe){var Ze=parseFloat(Ce);if(Ze!==NaN&&Ze<5){console.log("The GeoGebra HTML5 codebase version "+Ze+" is deprecated. Using version latest instead.");return}Ee=Ce,Bt(Ce,Oe)},De.getHTML5CodebaseVersion=function(){return ne},De.getParameters=function(){return ge},De.setFontsCSSURL=function(Ce){z=Ce},De.setGiacJSURL=function(Ce){},De.setJNLPFile=function(Ce){Ge=Ce},De.setJNLPBaseDir=function(Ce){},De.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Ze=ge.id,Pt,qe=!1,st=0;st<arguments.length;st++){var ue=arguments[st];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Oe=ue:Ze=arguments[st]):typeof ue=="boolean"?qe=ue:ue instanceof HTMLElement&&(Pt=ue)}Ue();function Ue(){if(!fe){setTimeout(Ue,200);return}Oe=Me(Oe);var Dt=Pt||document.getElementById(Ze);if(!Dt){console.log("possibly bug on ajax loading? ");return}if(De.removeExistingApplet(Dt,!1),ge.width===void 0&&Dt.clientWidth&&(ge.width=Dt.clientWidth),ge.height===void 0&&Dt.clientHeight&&(ge.height=Dt.clientHeight),!(ge.width&&ge.height)&&Oe==="html5"&&(delete ge.width,delete ge.height),be=Oe,Oe==="screenshot")ot(Dt,ge);else{var It=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?It=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(It=(!ae()||Ce())&&oe()),It?(be="screenshot",he(Dt,ge,qe,Oe)):Je(Dt,ge,qe)}}};function ae(){try{return window.self!==window.top}catch(Ce){return!0}}function oe(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}De.getViews=function(){return re},De.isJavaInstalled=function(){return!1};var ie=function(Ce){var Oe=function(st){var ue=JSON.parse(st),Ue=function(Ot){return Ot.type=="G"||Ot.type=="E"},Dt=ue.elements?ue.elements.filter(Ue)[0]:ue;if(!Dt||!Dt.url){Ze();return}ge.fileName=Dt.url,Se(Dt.settings||{}),re.is3D=!0;var It="https://www.geogebra.org/images/";De.setPreviewImage(E||Dt.previewUrl,It+"GeoGebra_loading.png",It+"applet_play.png"),Ce()},Ze=function(){ge.onError&&ge.onError(),yt("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",qe="/materials/"+ge.material_id+"?scope=basic";le("https://"+Pt+"/api/proxy.php?path="+encodeURIComponent(qe),Oe,Ze)};function Se(Ce){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ze){Ce[Ze]=!!Ce[Ze]}),Oe.forEach(function(Ze){ge[Ze]===void 0&&Ce[Ze]!==void 0&&(ge[Ze]=Ce[Ze])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function le(Ce,Oe,Ze){var Pt=new XMLHttpRequest;Pt.open("GET",Ce),Pt.onload=function(){Oe(Pt.responseText)},Pt.onerror=Ze,Pt.send()}De.isHTML5Installed=function(){return!0},De.getLoadedAppletType=function(){return be},De.setPreviewImage=function(Ce,Oe,Ze){E=Ce,y=Oe,x=Ze},De.removeExistingApplet=function(Ce,Oe){var Ze;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),be=null;var Pt=null;for(Ze=0;Ze<Ce.childNodes.length;Ze++){var qe=Ce.childNodes[Ze],st=qe.className;st==="applet_screenshot"?Oe?(qe.style.display="block",be="screenshot"):qe.style.display="none":st!=="applet_scaler prerender"&&(Ce.removeChild(qe),Pt=st&&st.indexOf("appletParameters")!=-1?qe.id:null,Ze--)}var ue=ge.id!==void 0?ge.id:Pt,Ue=window[ue];Ue&&typeof Ue.getBase64=="function"&&(Ue.remove(),window[ue]=null)},De.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=De.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},De.startAnimation=function(){var Ce=De.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},De.stopAnimation=function(){var Ce=De.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},De.getAppletObject=function(){var Ce=ge.id!==void 0?ge.id:"ggbApplet";return window[Ce]},De.resize=function(){};var ye=function(Ce,Oe,Ze){var Pt=document.createElement("param");Pt.setAttribute("name",Oe),Pt.setAttribute("value",Ze),Ce.appendChild(Pt)},xe=function(Ce){return Ce&&Ce!=="false"},Je=function(Ce,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 qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var st=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)xe(Oe.showToolBar)&&(Oe.height-=7),xe(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&xe(Oe.showToolBar)&&(Oe.width=605,st=605);else{var Ue=100;(xe(Oe.showToolBar)||xe(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),Ue=xe(Oe.showMenuBar)?245:155),st<Ue&&(Oe.width=Ue,st=Ue)}qe.style.border="none",qe.style.display="inline-block";for(var Dt in Oe)Oe.hasOwnProperty(Dt)&&Dt!=="appletOnLoad"&&qe.setAttribute("data-param-"+Dt,Oe[Dt]);z&&qe.setAttribute("data-param-fontscssurl",z),De.resize=function(){GGBAppletUtils.responsiveResize(Ce,Oe)},window.addEventListener("resize",function(ht){De.resize()});var It=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!Ze&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var Ot=Ce.querySelector(".applet_scaler.prerender"),Be=Ot!==null;if(Be)var Le=Ot.querySelector(".ggb_preview");else{var Le=ke(st,ue,Oe.borderColor,!1);Ot=document.createElement("div"),Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.style.width=st+"px",Ot.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ot,"66%"),te(ne)>=5?(Oe.appletOnLoad=function(ht){var $t=Ce.querySelector(".ggb_preview");$t&&$t.parentNode.removeChild($t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ot),window.GGBT_wsf_view&&$(window).trigger("resize"),It(ht)},Be||Ot.appendChild(Le)):qe.appendChild(Le),Ot.appendChild(qe),Be||Ce.appendChild(Ot),setTimeout(function(){De.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(qe),Ce.appendChild(ve),Oe.appletOnLoad=function(ht){De.resize(),It(ht)}}function _e(ht,$t){$t&&typeof $t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,$t.appletOnLoad):renderGGBElement(ht),yt("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<qe.childNodes.length;ut++){var vt=qe.childNodes[ut].tagName;vt==="TABLE"&&(qe.removeChild(qe.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ft!=null&&Ft.parentNode.removeChild(Ft)}var xt=document.createElement("script"),Nt=function(){je(qe,Oe)};xt.src=Ae+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=xt.src,yt("GeoGebra HTML5 codebase loaded: '"+Ae+"'.",Oe),!me&&(!Ee||Ee=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Nt()):Ae.requirejs?__webpack_require__.e(6954).then(function(){var ht=[__webpack_require__(76954)];Nt.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(xt.onload=Nt,Ce.appendChild(xt))}else je(qe,Oe);Oe.height=ue,Oe.width=st},ot=function(Ce,Oe,Ze){var Pt=ke(Oe.width,Oe.height,Oe.borderColor,Ze),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Oe.width+"px",qe.style.height=Oe.height+"px",qe.className="applet_screenshot applet_scaler"+(Ze?" applet_screenshot_play":""),qe.appendChild(Pt);var st=GGBAppletUtils.getScale(Oe,Ce,Ze);Ze?(Ce.appendChild(ze()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),Ce.appendChild(qe),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(qe,st),qe.style.width=Oe.width+"px",qe.style.height=Oe.height+"px",qe.parentNode.style.width=Oe.width*st+"px",qe.parentNode.style.height=Oe.height*st+"px"),De.resize=function(){it(Ce,Pt,qe,Ze)},window.addEventListener("resize",function(ue){De.resize()}),De.resize()};function it(Ce,Oe,Ze,Pt){if(Ce.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var qe=GGBAppletUtils.getScale(ge,Ce,Pt);Ze.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(Ze,qe),Ze.parentNode.style.width=ge.width*qe+"px",Ze.parentNode.style.height=ge.height*qe+"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(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}De.onExitFullscreen=function(Ce,Oe){Oe.appendChild(Ce)};var he=function(Ce,Oe,Ze,Pt){ot(Ce,Oe,!0);for(var qe=function(){var Ue=[];for(ue=0;ue<Ce.childNodes.length;ue++)Ue.push(Ce.childNodes[ue]);if(window.GGBT_wsf_view){var Dt=window.GGBT_wsf_view.renderFullScreen(Ce,Oe.id),It=document.getElementById("fullscreencontainer"),Ot=jQuery(Ce).find(".fullscreencontent");Ot.length>0?(Dt.remove(),Ot.attr("id","fullscreencontent").show(),jQuery(It).append(Ot),window.dispatchEvent(new Event("resize"))):Je(Dt,Oe,!1),window.GGBT_wsf_view.launchFullScreen(It)}else be=Pt,Je(Ce,Oe,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<Ue.length;ue++)Ce.removeChild(Ue[ue])},st=Ce.getElementsByClassName("ggb_preview_play"),ue=0;ue<st.length;ue++)st[ue].addEventListener("click",qe,!1),st[ue].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ze=function(){var Ce=document.createElement("div");if(Ce.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 Ce},ke=function(Ce,Oe,Ze,Pt){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=Ce-2+"px",qe.style.height=Oe-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var st="lightgrey";Ze!==void 0&&(Ze==="none"?st="transparent":st=Ze),qe.style.border="1px solid "+st;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 Ue,Dt,It;if(!Pt){Ue=document.createElement("img"),Ue.style.position="absolute",Ue.style.zIndex="1001",Ue.style.opacity=1,ue.style.opacity=.3,Dt=360,Dt>Ce/4*3&&(Dt=Ce/4*3),It=Dt/5.8,Ue.setAttribute("src",y),Ue.setAttribute("width",Dt),Ue.setAttribute("height",It);var Ot=(Ce-Dt)/2,Be=(Oe-It)/2;Ue.style.left=Ot+"px",Ue.style.top=Be+"px",qe.appendChild(Ue)}}return qe.appendChild(ue),qe},Me=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],Bt=function(Ce,Oe){if(ne=Ce,Oe){Et(ne,!0);return}var Ze=!de;if(Ze){var Pt=te(ne);!isNaN(Pt)&&Pt<4.4&&(Ze=!1)}var qe,st;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var ue=ne.indexOf("//");ue>0?st=ne:ue===0?st=qe+ne:st="https://www.geogebra.org/apps/5.2.814.0/";for(var Ue in Ke)if(ne.slice(Ke[Ue].length*-1)===Ke[Ue]||ne.slice((Ke[Ue].length+1)*-1)===Ke[Ue]+"/"){Et(st,!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&&!xe(ge.showToolBar)&&!xe(ge.showMenuBar)&&!xe(ge.showAlgebraInput)&&!xe(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?st+="webSimple/":st+="web3d/",Et(st,!1)},Et=function(Ce,Oe){if(Ce.requirejs){Ae=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),Ae=Ce,Oe===null&&(Oe=Ce.indexOf("http")===-1),we=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=Ce.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&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Pt+" is deprecated. Using version latest instead."),Bt("5.0",Oe))},yt=function(Ce,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Ce)};ge.material_id!==void 0?ie(Ht):Ht();function Ht(){var Ce=tt;Ee!==null?Ce=Ee:parseFloat(Ce)<5&&(Ce="5.0"),Bt(Ce,!1),me!==null&&Et(me,we),fe=!0}return De},GGBAppletUtils=function(){"use strict";function De(){return window.GGBT_wsf_edit!==void 0}function tt(fe,Ee){Ee!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Ee+","+Ee+")",fe.style.webkitTransform="scale("+Ee+","+Ee+")",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,Ee,me,Ie,Fe,Ge){var Ae=null;if(Ge!=null&&Ge!="")for(var we=fe.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+Ge+" ")>-1){Ae=we;break}else we=we.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)&&Ee>0&&Ee+b<be?be=Ee: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,Ee,me,Ie,Fe){if(fe.isScreenshoGenerator)return 1;var Ge=Ie!==void 0&&Ie,Ae=fe.noScaleMargin!=null&&fe.noScaleMargin,we=function(ee){return ee&&ee!=="false"},be=we(fe.autoHeight),ne=ge(Ee,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=Ee.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,Ee,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)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Fe=re(fe,Ee,Ge,me,fe.scaleContainerClass);else return Ie;return Ge&&(!fe.hasOwnProperty("scale")||Ie===1)?Fe:Math.min(Ie,Fe)}function Ne(fe){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=fe.getBoundingClientRect(),Fe=(Ee-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,Ee){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.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(Ee,fe);De()&&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=Ee.id!==void 0?Ee.id:"ggbApplet",we=window[Ae];(we==null||!we.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Fe.parentNode.style.width=Ee.width*Ie+"px",Fe.parentNode.style.height=Ee.height*Ie+"px",tt(Fe,Ie)):(tt(Fe,1),Fe.parentNode.style.width=Ee.width+"px",Fe.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ne(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Qe,isFlexibleWorksheetEditor:De,positionCenter:Ne,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 De=n.location.search;return De.indexOf(J)!=-1||De.indexOf(K)!=-1}function q(De,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(De){var tt=s[L].bindings;s[L].bindings=function(){for(var ge=tt?tt():{},re=De[webModule.__softPermutationId],de=O;de<re.length;de++){var Ne=re[de];ge[Ne[O]]=Ne[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var De=o.createElement(Q);if(De.id=L,De.style.cssText=R+S,De.tabIndex=-1,o.body.appendChild(De),t=De.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(De){function tt(re){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ne=de();if(Ne){re();return}function Qe(){if(!Ne){if(!de())return;Ne=!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(),Ne=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))}),Ne.appendChild(Qe)}tt(function(){ge(De)})}webModule.__startLoadingFragment=function(De){return C(De)},webModule.__installRunAsyncCode=function(De){var tt=u(),ge=tt.body,re=tt.createElement(_);re.language=ab,re.text=De,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(De){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(De){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(De){var tt=c[De];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function De(fe){var Ee=fe.lastIndexOf(rb);Ee==-1&&(Ee=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Ie=fe.lastIndexOf(tb,Math.min(me,Ee));return Ie>=O?fe.substring(O,Ie+P):W}function tt(fe){if(!fe.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=fe+vb,fe=De(Ee.src)}return fe}function ge(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function re(){for(var fe=o.getElementsByTagName(_),Ee=O;Ee<fe.length;++Ee)if(fe[Ee].src.indexOf(xb)!=-1)return De(fe[Ee].src);return W}function de(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Ne(){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&&Ne()&&(Qe=De(o.location.href)),Qe=tt(Qe),Qe}function C(De){return De.match(/^\//)||De.match(/^[a-zA-Z]+:\/\//)?De:webModule.__moduleBase+De}function D(){var De=[],tt=O,ge=[],re=[];function de(fe){var Ee=re[fe](),me=ge[fe];if(Ee in me)return Ee;var Ie=[];for(var Fe in me)Ie[me[Fe]]=Fe;throw r&&r(fe,Ie,Ee),null}if(__gwt_isKnownPropertyValue=function(fe,Ee){return Ee in ge[fe]},webModule.__getPropMap=function(){var fe={};for(var Ee in ge)ge.hasOwnProperty(Ee)&&(fe[Ee]=de(Ee));return fe},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ne;try{Ne=Cb;var Qe=Ne.indexOf(Db);Qe!=-1&&(tt=parseInt(Ne.substring(Qe+P),$),Ne=Ne.substring(O,Qe))}catch(fe){}return webModule.__softPermutationId=tt,C(Ne+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})()},88457:function(De,tt,ge){"use strict";ge.d(tt,{Ax:function(){return Qe},Ds:function(){return fe},KI:function(){return me},SI:function(){return Ne},f1:function(){return de}});var re=ge(78323);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 Ne(Ie,Fe=""){let Ge=[];for(let Ae=0;Ae<Ie.length;Ae++){let we=Ie[Ae],be=Fe?`${Fe}/${we.name}`:`${we.name}`;Ge.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:be})}return Ge}function Qe(Ie,Fe,Ge){for(let Ae=0;Ae<Ie.length;Ae++){let we=Ie[Ae];if(we.key===Fe){we.children=Ge;break}we.children&&Qe(we.children,Fe,Ge)}return Ie}function fe(Ie,Fe,Ge){let Ae;return function(){let we=this,be=arguments,ne=function(){Ae=null,Ge||Ie.apply(we,be)},a=Ge&&!Ae;clearTimeout(Ae),Ae=setTimeout(ne,Fe),a&&Ie.apply(we,be)}}const Ee=!0,me=re.Z.API_SERVER},86197:function(De,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"},Ne=ge(92310),Qe=ge.n(Ne),fe=ge(71418),Ee=ge(2859),me=ge(57193),Ie=ge(63949),Fe=(we,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(we,be)).next())}),Ae=({data:we,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)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&ye()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[we==null?void 0:we.visible]);const ye=()=>Fe(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,Ie.ZJ)(we==null?void 0:we.src);z.current.src="",z.current.src=he,z.current.onload=function(){it()},ie(!1),le("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",b()},Je=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:we.title,file:he.dataUrl}});ze!=null&&ze.id&&!x?(yield(0,me.ZP)(`/api/attachments/${we.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 Me=document.querySelector(ke.name);Me&&Me.setAttribute("title",ke.title)})},it=()=>{ee.current=new Ee.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Je),ee.current.addEventListener("beforeclose",xe),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(),we!=null&&we.snapshotData&&ee.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ot()},300)};return re.createElement(re.Fragment,null,(we==null?void 0:we.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}))))}},24638:function(De,tt,ge){"use strict";var re=ge(59301),de=ge(95237),Ne=ge(43604),Qe=ge(99313),fe=ge(3113),Ee=ge(76818),me=ge(27431),Ie=ge(48136),Fe=ge(59301);const Ge=(0,re.forwardRef)(({callback:Ae,showSaveButton:we,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(Ne.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.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(Ne.Z,{key:Se,onClick:()=>y(ie),className:me.Z.diamond},Fe.createElement(Ee.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(Ne.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.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(Ne.Z,{key:Se,onClick:()=>y(ie),className:me.Z.diamond},Fe.createElement(Ee.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||""),we&&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},63347:function(De,tt,ge){"use strict";ge.d(tt,{h:function(){return ee}});var re=ge(59301),de=ge(57809),Ne=ge(78241),Qe=ge(3113),fe=ge(89780),Ee=ge.n(fe),me=ge(4887),Ie=ge(37068),Fe=Object.defineProperty,Ge=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,we=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(we)for(var oe of we(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(ye){ie(z[ye][1])}function le(ye){te(ye)}return re.createElement(Ne.default,E(b({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),re.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(de.default,{getPopupContainer:ye=>ye.parentNode,onChange:Se},Object.keys(z).map(ye=>re.createElement(y,{key:ye,value:ye},z[ye][0])))),re.createElement(Ne.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,ye]=(0,re.useState)();return(0,re.useEffect)(()=>{if(le){let xe=function(Je){const ot=Je.getValue();ae&&ae(ot)};return le.on("change",xe),()=>{le.off("change",xe)}}},[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 xe=Ee().fromTextArea(Se.current,b({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ye(xe)}},[Se.current,le]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Se}))}},88871:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ct}});var re=ge(59301),de=ge(89780),Ne=ge.n(de),Qe=ge(76374),fe=ge(4887),Ee=ge(6313),me=ge(25717),Ie=ge(99498),Fe=ge(25419),Ge=ge(67549),Ae=ge(76818),we=({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 pt(){se(Re)}return be.createElement("a",{title:Pe,className:et,onClick:pt},be.createElement("i",{className:`${ce}`}),nt)}var ie=({watch:se,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Re,fullScreen:et,insertTemp:nt,hidetoolBar:pt,extraUse:dt})=>{const ct=[...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"},!pt&&ct.map((bt,Kt)=>be.createElement("li",{key:Kt},bt.actionName?be.createElement(oe,te(ee({},bt),{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(81123),le=ge(78241),ye=ge(92832),xe=ge(3113),Je=Object.defineProperty,ot=Object.defineProperties,it=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Me=(se,Pe,ce)=>Pe in se?Je(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)&&Me(se,ce,Pe[ce]);if(he)for(var ce of he(Pe))ke.call(Pe,ce)&&Me(se,ce,Pe[ce]);return se},Bt=(se,Pe)=>ot(se,it(Pe));const Et={labelCol:{span:4},wrapperCol:{span:20}};var yt=({callback:se,onCancel:Pe})=>{function ce(Re){se(Re)}return re.createElement(le.default,Bt(Ke({},Et),{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(ye.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(ye.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(xe.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ht=ge(63347),Ce=ge(90443),Oe=ge(43418),Ze=ge(95237),Pt=ge(86197),qe=ge(59301),st=({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 qe.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(Ze.Z,{style:{height:"100vh"}},qe.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 Ue(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ue,go.CommandHandler),Ue.prototype.canAlignSelection=function(){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<2)},Ue.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")},Ue.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")},Ue.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")},Ue.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")},Ue.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")}},Ue.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")}},Ue.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,pt=ce[Re+1];pt.move(new go.Point(et.actualBounds.x,nt))}Pe.commitTransaction("align Column")},Ue.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,pt=ce[Re+1];pt.move(new go.Point(nt,et.actualBounds.y))}Pe.commitTransaction("align Row")},Ue.prototype.canRotate=function(se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ue.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())},Ue.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){Ue._assignZOrder(ce,Pe.get(ce.layer)+1)}),se.commitTransaction("pullToFront")},Ue.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){Ue._assignZOrder(ce,Pe.get(ce.layer)-1-Ue._findGroupDepth(ce))}),se.commitTransaction("pushToBack")},Ue._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){Ue._assignZOrder(Re,Pe+1,ce)})},Ue._findGroupDepth=function(se){if(se instanceof go.Group){var Pe=0;return se.memberParts.each(function(ce){Pe=Math.max(Pe,Ue._findGroupDepth(ce))}),Pe+1}else return 0},Ue.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)}},Ue.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},Ue.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")},Ue.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))},Ue.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,pt=0;pt<Re.length;pt++){var dt=Re[pt];if(dt!==Pe&&dt.canSelect()){var ct=dt.actualBounds.center,bt=ce.directionPoint(ct),Kt=this._angleCloseness(bt,se);if(Kt<=45){var Te=ce.distanceSquaredPoint(ct);Te*=1+Math.sin(Kt*Math.PI/180),Te<et&&(et=Te,nt=dt)}}}return nt},Ue.prototype._angleCloseness=function(se,Pe){return Math.min(Math.abs(Pe-se),Math.min(Math.abs(Pe+360-se),Math.abs(Pe-360-se)))},Ue.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),pt=nt.indexOf(Pe);if(pt>0){for(var dt=nt.elt(pt-1);dt!==null&&dt.isTreeExpanded&&!dt.isTreeLeaf;){var ct=this._sortTreeChildrenByY(dt);dt=ct.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),pt=nt.indexOf(Pe);if(pt<nt.length-1){se.select(nt.elt(pt+1));break}else Pe=et}var bt=se.selection.first();bt!==null&&se.scrollToRect(bt.actualBounds)}},Ue.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},Ue.prototype.copyToClipboard=function(se){go.CommandHandler.prototype.copyToClipboard.call(this,se),this._lastPasteOffset.set(this.pasteOffset)},Ue.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(Ue.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(Ue.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 Dt=Ue,It=ge(87851),Ot=ge(43604),Be=ge(57193),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=ge(59301),_e=(se,Pe,ce)=>new Promise((Re,et)=>{var nt=ct=>{try{dt(ce.next(ct))}catch(bt){et(bt)}},pt=ct=>{try{dt(ce.throw(ct))}catch(bt){et(bt)}},dt=ct=>ct.done?Re(ct.value):Promise.resolve(ct.value).then(nt,pt);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 pt=(0,re.useRef)(!1),[dt,ct]=(0,re.useState)(0);function bt(){const Te=ue.bx.make,At={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(Dt),"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 Lt=We.subject;We.diagram.toolManager.linkingTool.isForwards?Lt.toNode.invalidateConnectedLinks():Lt.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:At.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 Lt=(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:At.white,strokeWidth:4,mouseEnter:(at,zt)=>zt.fill="dodgerblue",mouseLeave:(at,zt)=>zt.fill="orange",isActionable:!0,click:Lt,contextClick:Lt})}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,Lt)=>Lt.fill="dodgerblue",mouseLeave:(mt,Lt)=>Lt.fill="orange",click:(mt,Lt)=>{mt.diagram.commandHandler.showContextMenu(Lt.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(Lt,at)=>{Lt.handled=!0,Lt.diagram.model.commit(zt=>{zt.set(at.part.adornedPart.data,We,mt)})}}function Gt(We,mt){return mt||(mt="color"),Te(ue.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.stroke="dodgerblue",mouseLeave:(Lt,at)=>at.stroke="lightgray",click:Tt(mt,We),contextClick:Tt(mt,We)})}function qt(){return[Te("ContextMenuButton",Te(ue.s_,"Horizontal",Gt(At.white,"fill"),Gt(At.beige,"fill"),Gt(At.extralightblue,"fill"),Gt(At.extralightred,"fill"))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Gt(At.lightgray,"fill"),Gt(At.lightgreen,"fill"),Gt(At.lightblue,"fill"),Gt(At.lightred,"fill")))]}function wt(){return[Te("ContextMenuButton",Te(ue.s_,"Horizontal",Gt(At.black),Gt(At.green),Gt(At.blue),Gt(At.red))),Te("ContextMenuButton",Te(ue.s_,"Horizontal",Gt(At.white),Gt(At.magenta),Gt(At.purple),Gt(At.orange)))]}function Wt(We,mt){return mt||(mt="thickness"),Te(ue.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,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:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,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:(Lt,at)=>at.fill="dodgerblue",mouseLeave:(Lt,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(),wt(),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 Lt=mt.addMembers(mt.diagram.selection,!0);Lt||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:At.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(),wt(),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:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:Tt("dir",We),contextClick:Tt("dir",We)})}function hn(We){var mt=(Lt,at)=>{Lt.handled=!0,Lt.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:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:mt,contextClick:mt})}function $e(We,mt){var Lt=0,at=ue.z6.RightSide;We.equals(ue.z6.Top)?(Lt=270,at=ue.z6.TopSide):We.equals(ue.z6.Left)?(Lt=180,at=ue.z6.LeftSide):We.equals(ue.z6.Bottom)&&(Lt=90,at=ue.z6.BottomSide),mt||(Lt-=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:Lt,background:"transparent",mouseEnter:(Yt,Sn)=>Sn.background="dodgerblue",mouseLeave:(Yt,Sn)=>Sn.background="transparent",click:zt,contextClick:zt})}ce.current.linkTemplate.contextMenu=Te("ContextMenu",wt(),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 Lt=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(Lt.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 At=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Te.src}});Pe({src:At.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{bt()},500),ct(dt+1),()=>{ce.current=null}),[]),ve.createElement("div",{ref:pt,className:nt.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!dt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Ze.Z,null,ve.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(Ot.Z,{onClick:()=>{var Te,At,Mt=ce.current.selection.first();if(nt.current=!nt.current,document.activeElement&&Mt){let un=(At=(Te=document.activeElement)==null?void 0:Te.value)==null?void 0:At.trim();typeof un=="string"&&ce.current.model.commit(function(Tt){Tt.set(Mt.data,"text",un||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}ct(dt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:se},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:et})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:Re,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(xe.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),Ft=ge(5871);const xt=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(Ft.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(Ft.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(xt,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(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(xe.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},$t=ge(78673),Qt=ge(63089),mn=ge.n(Qt),Vt=(0,re.forwardRef)(({use3d:se,width:Pe,height:ce,callback:Re,showSaveButton:et},nt)=>{const pt=(0,re.useRef)(),dt=(0,re.useRef)(),[ct,bt]=(0,re.useState)(!1),Kt=(0,re.useRef)({id:pt,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 At=window.ggbApplet.getPNGBase64(1,!0,72);return Re&&Re(At),At};return(0,re.useEffect)(()=>{Kt.current.appName=ct?"3D":"graphing",dt.current.inject("applet_container")},[ct]),(0,re.useEffect)(()=>{bt(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:pt}),re.createElement(Ze.Z,{align:"middle"},re.createElement(Ot.Z,{flex:1},re.createElement($t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ct,onChange:At=>bt(At)})),re.createElement(Ot.Z,null,re.createElement(xe.ZP,{size:"large",onClick:Te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=ge(24638),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(66991),Un=(se,Pe,ce)=>new Promise((Re,et)=>{var nt=ct=>{try{dt(ce.next(ct))}catch(bt){et(bt)}},pt=ct=>{try{dt(ce.throw(ct))}catch(bt){et(bt)}},dt=ct=>ct.done?Re(ct.value):Promise.resolve(ct.value).then(nt,pt);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`,pe=["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 Ct=({defaultValue:se="",onChange:Pe,width:ce="100%",height:Re=400,miniToolbar:et=!1,isFocus:nt=!1,watch:pt,insertTemp:dt,mode:ct="markdown",id:bt="markdown-editor-id",showResizeBar:Kt=!1,noStorage:Te=!1,showNullButton:At=!1,showNullProgramButton:Mt=!1,hidetoolBar:un=!1,fullScreen:Tt=!1,onBlur:Gt,onCMBeforeChange:qt,onFullScreen:wt,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)(pt),[mt,Lt]=(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 Xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ea.current}});(St=Xe==null?void 0:Xe.attachments)!=null&&St.length&&(console.log("cm:",$e,$n),Xe.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?$e.replaceSelection(`![,](/api/attachments/${Ve.id}?type=${Ve.content_type})`):Ve.content_type.indexOf("video")>-1?$e.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?$e.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):$e.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.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)(()=>{wt==null||wt(mt)},[mt]),(0,re.useEffect)(()=>{if($n.current){let St=function(Ve,gt){var _t;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(),ct=="stex")return;try{let vn=an[1];((_t=an[0])==null?void 0:_t.kind)==="file"&&(vn=an[0]);const pn=vn.getAsFile(),Hn=pn.name.split(".").pop();(0,Ce.I)(pn,Gn=>{var ga,ia,ua;Gn.id?((ga=pn==null?void 0:pn.type)==null?void 0:ga.indexOf("image"))>-1?Xe.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?Xe.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?Xe.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=${pn.type}&disposition=inline" target="_blank">${pn.name}</a>`):pe.includes(Hn)?Xe.replaceSelection(`<a href="/api/attachments/${Gn.id}?type=office&disposition=inline" target="_blank">${pn.name}</a>`):Xe.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 Xe=Ne().fromTextArea($n.current,{mode:ct,lineNumbers:!et,lineWrapping:!0,value:se,autoCloseTags:!Mt,autoCloseBrackets:!0});return Xe.on("keyup",function(Ve,gt){gt.keyCode===8&&(Ve.getValue()==""?Xe.setOption("placeholder",ln):Xe.setOption("placeholder",null))}),Xe.on("keydown",function(Ve,gt){if(gt.keyCode===8){var _t=Kn(Ve);_t&&gt.preventDefault()}}),nt&&Xe.focus(),Xe.on("paste",St),Xe.on("dragleave",function(Ve,gt){Rn.current.classList.remove("mouse-hover-md")}),en&&Xe.on("beforeChange",function(Ve,gt){(gt.origin==="paste"||gt.origin==="+input")&&gt.cancel()}),Ln(Xe),()=>{Xe.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 Xe=new Qe.Z(Ve=>{for(let gt of Ve)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&(Wn(),$e.setSize("100%","100%"),$e.refresh())});return Xe.observe($n.current.parentElement),Xe}if($e){const Xe=St();return()=>{var Ve,gt;(Ve=$n.current)!=null&&Ve.parentElement&&Xe.unobserve((gt=$n.current)==null?void 0:gt.parentElement)}}},[$e,Wn]),(0,re.useEffect)(()=>{if($e){let St=[];for(const[Xe,Ve]of Object.entries(lt)){let gt={[Xe]:()=>{Jn(Ve)}};St.push(gt),$e.addKeyMap(gt)}return Rt.current=setInterval(()=>{cn.current&&ta()},4e3),()=>{clearInterval(Rt.current);for(let Xe of St)$e.removeKeyMap(Xe)}}},[$e]),(0,re.useEffect)(()=>{Tt!==mt&&Lt(Tt)},[Tt]),(0,Qn.Z)(()=>{if(!Te&&Yt>0){let St=new Date().getTime(),Xe=window.sessionStorage.getItem(bt);St>=Yt+Zn&&(!Xe||Xe!==yn)&&(window.sessionStorage.setItem(bt,yn),zn(!0))}},Zn),(0,re.useEffect)(()=>{We(pt)},[$e,pt]),(0,re.useEffect)(()=>{$e&&nt&&$e.focus()},[$e,nt]),(0,re.useEffect)(()=>{if(jt&&$e){let St=function(Ve){let gt=Ve.target;if(In.current){let _t=gt.scrollTop/gt.scrollHeight;In.current.scrollTop=In.current.scrollHeight*_t}};const Xe=$e.getScrollerElement();return Xe.addEventListener("scroll",St),()=>{Xe.removeEventListener("scroll",St)}}},[$e,jt]),(0,re.useEffect)(()=>{if($e&&qt){let St=function(Xe,Ve){qt(Xe,Ve)};return $e.on("beforeChange",St),()=>{$e.off("beforeChange",St)}}},[$e,qt]),(0,re.useEffect)(()=>{if($e&&Gt){let St=function(){Gt($e.getValue())};return $e.on("blur",St),()=>{$e.off("blur",St)}}},[$e,Gt]);function Kn(St,Xe){var Ve=St.getDoc(),gt=Ve.getCursor(),_t=Ve.getLine(gt.line),Zt=_t.charAt(gt.ch-1),fn=_t.lastIndexOf("@\u2581@",gt.ch),an=_t.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:",Xe,St,_t,gt,vn,fn,an,Zt),vn>=0&&gt.ch-vn<5){var Hn=vn+pn;return Ve.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(Xe,Ve){const gt=Xe.getValue();En(gt),Sn(new Date().getTime()),Xe.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 Xe=$e.getCursor(),Ve=$e.getSelection();let gt=Ve.split(`
`);switch(St){case"bold":return $e.replaceSelection("**"+Ve+"**"),Ve===""&&$e.setCursor(Xe.line,Xe.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+Ve+"*"),Ve===""&&$e.setCursor(Xe.line,Xe.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+Ve+"`"),Ve===""&&$e.setCursor(Xe.line,Xe.ch+1),$e.focus();case"inline-latex":return zt("inline-latex"),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+Ve+"\n```"),$e.setCursor(Xe.line+1,Ve.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
`),$e.focus();case"list-ul":return Ve===""?$e.replaceSelection("- "+Ve):$e.replaceSelection(gt.map(_t=>_t===""?"":`- ${_t}`).join(`
`)),$e.focus();case"list-ol":return Ve===""?$e.replaceSelection("1. "+Ve):$e.replaceSelection(gt.map((_t,Zt)=>_t===""?"":`${Zt+1}. ${_t}`).join(`
`)),$e.focus();case"add-null-ch":return Ve===""&&$e.setCursor(Xe.line,Xe.ch),$e.replaceSelection(qn),$e.focus();case"add-signal":return Ve===""&&$e.setCursor(Xe.line,Xe.ch),$e.replaceSelection(ra),$e.focus();case"add-multiple":return Ve===""&&$e.setCursor(Xe.line,Xe.ch),$e.replaceSelection(On),$e.focus();case"inster-template-1":return Ve===""&&$e.setCursor(Xe.line,Xe.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 Lt(!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,Xe)=>{var Ve,gt,_t,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,Ce.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=Xe,Ba=(_t=(gt=(Ve=An==null?void 0:An.name)==null?void 0:Ve.split("."))==null?void 0:gt.pop)==null?void 0:_t.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>`):pe.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(yt,{callback:Cn,onCancel:Vn});case on:return re.createElement(Ht.Z,{callback:Cn,onCancel:Vn});case wn:return re.createElement(Ce.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){_t=!0,Zt=fn.pageY},Xe=function(){_t=!1},Ve=function(fn){if(_t){let an=fn.pageY-Zt;an<0&&(an=0),an>300&&(an=300);let vn=Re+an+"px";sn(vn)}},gt=_n.current,_t=!1,Zt=0;return gt.addEventListener("mousedown",St),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",Xe),()=>{gt.removeEventListener("mousedown",St),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",Xe)}}},[$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),Xe=St.getHours(),Ve=St.getMinutes(),gt=St.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,Ve=Ve<10?"0"+Ve:Ve,gt=gt<10?"0"+gt:gt,`${Xe}:${Ve}:${gt}`}return 0},[Yt]),Pa=St=>{const Xe=[];if(Mt){let Ve=-1;St=St.replace(/(@▁▁@|@▁@)/g,function(gt,_t,Zt){Xe.push({multiLine:gt!==ra})})}return Xe};function pa(){window.sessionStorage.removeItem(bt),zn(!1),Sn(0)}function ba(){zn(!1),Sn(0),$e.setValue(window.sessionStorage.getItem(bt))}(0,re.useEffect)(()=>{ft[at]&&at!==Fn&&at!==Dn&&setTimeout(()=>{const St=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-St.offsetWidth/2,Ve=window.innerHeight/2-St.offsetHeight/2;dn(Xe),Tn(Ve)},0)},[at]);const ha=St=>{St.preventDefault();const Xe=St.clientX-rn,Ve=St.clientY-Bn;document.body.onmousemove=gt=>{let _t=gt.clientX-Xe,Zt=gt.clientY-Ve;const fn=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth-fn.offsetWidth,vn=window.innerHeight-fn.offsetHeight;_t=Math.max(0,Math.min(_t,an)),Zt=Math.max(0,Math.min(Zt,vn)),ca(gt.clientX,gt.clientY,Xe,Ve)&&(dn(_t),Tn(Zt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ca=(St,Xe,Ve,gt)=>{const _t=document.body.clientHeight,Zt=document.body.clientWidth;return St<20&&Ve>St||St>Zt-20&&Ve<St||Xe<20&&gt>Xe||Xe>_t-20&&gt<Xe?(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:At,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"},ct==="stex"&&re.createElement(we,{value:yn}),ct!=="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(st,{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))}},90443:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return oe},I:function(){return Se}});var re=ge(78241),de=ge(8591),Ne=ge(92832),Qe=ge(81327),fe=ge(5871),Ee=ge(5112),me=ge(3113),Ie=ge(88457),Fe=ge(59301),Ge=ge(81779),Ae=ge(59301),we=Object.defineProperty,be=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(le,ye,xe)=>ye in le?we(le,ye,{enumerable:!0,configurable:!0,writable:!0,value:xe}):le[ye]=xe,x=(le,ye)=>{for(var xe in ye||(ye={}))b.call(ye,xe)&&y(le,xe,ye[xe]);if(a)for(var xe of a(ye))E.call(ye,xe)&&y(le,xe,ye[xe]);return le},z=(le,ye)=>be(le,ne(ye));const{useForm:ee}=re.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:le,onCancel:ye})=>{const[xe]=ee();let Je=(0,Fe.useRef)();function ot(ze){Je.current.width=xe.getFieldValue("width"),Je.current.align=xe.getFieldValue("align"),le(ze,Je.current)}function it(ze,ke){if(ze.status===-1){de.ZP.error(ze.message);return}xe.setFieldsValue({src:`/api/attachments/${ze.id}`,type:ke.type})}function he(ze){let ke=ze.target.files[0];Je.current=ke,Se(ke,it)}return Ae.createElement(re.default,z(x({form:xe},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(Ne.default,{style:te})),Ae.createElement(ie,{onFileChange:he}))),Ae.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ae.createElement(Ne.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(Ee.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:ye},"\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,ye){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 xe=new FormData;xe.append("editormd-image-file",le),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(ot){ye(JSON.parse(ot.target.responseText),le)},!1),Je.addEventListener("error",function(ot){console.error(ot)},!1),Je.open("POST",`${Ie.KI}/api/attachments.json`),Je.send(xe)}},81123:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ne}});var re=ge(59301),de=ge(4676);class Ne extends re.Component{constructor(fe){super(fe);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,de.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},66991:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return de}});var re=ge(59301);function de(Ne,Qe){const fe=(0,re.useRef)();(0,re.useEffect)(()=>{fe.current=Ne}),(0,re.useEffect)(()=>{function Ee(){fe.current()}if(Qe!==null){let me=setInterval(Ee,Qe);return()=>clearInterval(me)}},[Qe])}},46846:function(De,tt,ge){"use strict";ge.r(tt),ge.d(tt,{default:function(){return Je}});var re=ge(59301),de=ge(88871),Ne=ge(95392),Qe=ge(20834),fe=ge(44e3),Ee=ge(78241),me=ge(8591),Ie=ge(66104),Fe=ge(95237),Ge=ge(43604),Ae=ge(57809),we=ge(92832),be=ge(28103),ne=ge(19842),a=ge(3113),b=ge(48091),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 Me=Et=>{try{Bt(he.next(Et))}catch(yt){ke(yt)}},Ke=Et=>{try{Bt(he.throw(Et))}catch(yt){ke(yt)}},Bt=Et=>Et.done?ze(Et.value):Promise.resolve(Et.value).then(Me,Ke);Bt((he=he.apply(ot,it)).next())});const{SubMenu:Se}=Qe.default,{Content:le,Sider:ye}=fe.default,xe=ot=>{var it=ot,{graduation:he,globalSetting:ze,loading:ke,user:Me,dispatch:Ke}=it,Bt=oe(it,["graduation","globalSetting","loading","user","dispatch"]),Et,yt,Ht,Ce,Oe,Ze,Pt;const qe=(0,Ne.useIntl)(),st=(0,Ne.useParams)(),ue=(0,Ne.useLocation)(),{userInfo:Ue}=Me,[Dt]=Ee.default.useForm(),{addTopicData:It}=he,Ot=()=>ie(void 0,null,function*(){const Be=Dt.getFieldsValue(),Le=ae({},Be);Le.city&&(Le.province=Le.city[0],Le.city=Le.city[1]);const ve=yield Ke({type:"graduation/addTopic",payload:{coursesId:st.coursesId,attachment_ids:[],graduation_topic:Le}});ve.status?me.ZP.error(ve.message):Ne.history.push(`/classrooms/${st.coursesId}/graduation_topics/${st.categoryId}`)});return(0,re.useEffect)(()=>{Ke({type:"graduation/addTopicDefaultData",payload:ae({},st)})},[st.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(Ne.Link,{to:`${Ue.first_category_url}`},(Et=Ue==null?void 0:Ue.course)==null?void 0:Et.course_name)),re.createElement(Ie.Z.Item,null,re.createElement(Ne.Link,{to:`/classrooms/${st.coursesId}/graduation_topics/${st.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(Ne.Link,{className:"font16 c-light-black",to:`/classrooms/${st.coursesId}/exercise`},"\u8FD4\u56DE"))))),re.createElement("section",{className:[E.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},re.createElement(Ee.default,{layout:"vertical",form:Dt,scrollToFirstError:!0,onFinish:Be=>ie(void 0,null,function*(){Ot()})},re.createElement(Ee.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}},(yt=It.teacher_list)==null?void 0:yt.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)}))),re.createElement(Ee.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},re.createElement(we.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(Ee.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:qe.formatMessage({id:"classrooms.enterContent",defaultMessage:"\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(Ee.default.Item,{name:"topic_type"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(Ht=It.topic_type)==null?void 0:Ht.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(Ee.default.Item,{name:"topic_source"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Ce=It.topic_source)==null?void 0:Ce.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(Ee.default.Item,{name:"topic_property_first"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Oe=It.topic_property_first)==null?void 0:Oe.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)})))),re.createElement(Ge.Z,{flex:"1"},re.createElement(Ee.default.Item,{name:"topic_property_second"},re.createElement(Ae.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ze=It.topic_property_second)==null?void 0:Ze.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)})))),re.createElement(Ge.Z,{flex:"150px"})),re.createElement(be.Z,null),re.createElement(Ee.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},re.createElement(we.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),re.createElement(Ee.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=It.topic_repeat)==null?void 0:Pt.map(function(Be,Le){return re.createElement(Ae.default.Option,{value:Be.id,key:Le},Be.name)}))),re.createElement(Ee.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:()=>{Dt.submit()}},"\u4FDD\u5B58"),re.createElement(Ne.Link,{to:`/classrooms/${st.coursesId}/graduation_topics/${st.categoryId}`},"\u53D6\u6D88")))};var Je=(0,Ne.connect)(({graduation:ot,loading:it,user:he,globalSetting:ze})=>({graduation:ot,globalSetting:ze,user:he,loading:it.effects}))(xe)},48091:function(De,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(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return it}});var re=ge(92310),de=ge.n(re),Ne=ge(11592),Qe=ge(26112),fe=ge(59301),Ee=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_),Me=ke("breadcrumb");return fe.createElement("li",{className:`${Me}-separator`,"aria-hidden":"true"},ze===""?ze:ze||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Ae=Ge,we=function(he,ze){var ke={};for(var Me in he)Object.prototype.hasOwnProperty.call(he,Me)&&ze.indexOf(Me)<0&&(ke[Me]=he[Me]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(he);Ke<Me.length;Ke++)ze.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Me[Ke])&&(ke[Me[Ke]]=he[Me[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"),(Me,Ke)=>ze[Ke]||Me)}function ne(he,ze,ke,Me){if(ke==null)return null;const{className:Ke,onClick:Bt}=ze,Et=we(ze,["className","onClick"]),yt=Object.assign(Object.assign({},(0,Qe.Z)(Et,{data:!0,aria:!0})),{onClick:Bt});return Me!==void 0?fe.createElement("a",Object.assign({},yt,{className:de()(`${he}-link`,Ke),href:Me}),ke):fe.createElement("span",Object.assign({},yt,{className:de()(`${he}-link`,Ke)}),ke)}function a(he,ze){return(Me,Ke,Bt,Et,yt)=>{if(ze)return ze(Me,Ke,Bt,Et);const Ht=be(Me,Ke);return ne(he,Me,Ht,yt)}}var b=function(he,ze){var ke={};for(var Me in he)Object.prototype.hasOwnProperty.call(he,Me)&&ze.indexOf(Me)<0&&(ke[Me]=he[Me]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(he);Ke<Me.length;Ke++)ze.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Me[Ke])&&(ke[Me[Ke]]=he[Me[Ke]]);return ke};const E=he=>{const{prefixCls:ze,separator:ke="/",children:Me,menu:Ke,overlay:Bt,dropdownProps:Et,href:yt}=he,Ce=(Oe=>{if(Ke||Bt){const Ze=Object.assign({},Et);if(Ke){const Pt=Ke||{},{items:qe}=Pt,st=b(Pt,["items"]);Ze.menu=Object.assign(Object.assign({},st),{items:qe==null?void 0:qe.map((ue,Ue)=>{var{key:Dt,title:It,label:Ot,path:Be}=ue,Le=b(ue,["key","title","label","path"]);let ve=Ot!=null?Ot:It;return Be&&(ve=fe.createElement("a",{href:`${yt}${Be}`},ve)),Object.assign(Object.assign({},Le),{key:Dt!=null?Dt:Ue,label:ve})})})}else Bt&&(Ze.overlay=Bt);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})(Me);return Ce!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,Ce),ke&&fe.createElement(Ae,null,ke)):null},y=he=>{const{prefixCls:ze,children:ke,href:Me}=he,Ke=b(he,["prefixCls","children","href"]),{getPrefixCls:Bt}=fe.useContext(me.E_),Et=Bt("breadcrumb",ze);return fe.createElement(E,Object.assign({},Ke,{prefixCls:Et}),ne(Et,Ke,ke,Me))};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 Me in he)Object.prototype.hasOwnProperty.call(he,Me)&&ze.indexOf(Me)<0&&(ke[Me]=he[Me]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(he);Ke<Me.length;Ke++)ze.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Me[Ke])&&(ke[Me[Ke]]=he[Me[Ke]]);return ke};function Se(he){const{breadcrumbName:ze,children:ke}=he,Me=ie(he,["breadcrumbName","children"]),Ke=Object.assign({title:ze},Me);return ke&&(Ke.menu={items:ke.map(Bt=>{var{breadcrumbName:Et}=Bt,yt=ie(Bt,["breadcrumbName"]);return Object.assign(Object.assign({},yt),{title:Et})})}),Ke}function le(he,ze){return(0,fe.useMemo)(()=>he||(ze?ze.map(Se):null),[he,ze])}var ye=function(he,ze){var ke={};for(var Me in he)Object.prototype.hasOwnProperty.call(he,Me)&&ze.indexOf(Me)<0&&(ke[Me]=he[Me]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(he);Ke<Me.length;Ke++)ze.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,Me[Ke])&&(ke[Me[Ke]]=he[Me[Ke]]);return ke};const xe=(he,ze)=>{if(ze===void 0)return ze;let ke=(ze||"").replace(/^\//,"");return Object.keys(he).forEach(Me=>{ke=ke.replace(`:${Me}`,he[Me])}),ke},Je=he=>{const{prefixCls:ze,separator:ke="/",style:Me,className:Ke,rootClassName:Bt,routes:Et,items:yt,children:Ht,itemRender:Ce,params:Oe={}}=he,Ze=ye(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Pt,direction:qe,breadcrumb:st}=fe.useContext(me.E_);let ue;const Ue=Pt("breadcrumb",ze),[Dt,It]=oe(Ue),Ot=le(yt,Et),Be=a(Ue,Ce);if(Ot&&Ot.length>0){const _e=[],je=yt||Et;ue=Ot.map((ut,vt)=>{const{path:Ft,key:xt,type:Nt,menu:ht,overlay:$t,onClick:Qt,className:mn,separator:gn,dropdownProps:Vt}=ut,tn=xe(Oe,Ft);tn!==void 0&&_e.push(tn);const nn=xt!=null?xt:vt;if(Nt==="separator")return fe.createElement(Ae,{key:nn},gn);const Pn={},bn=vt===Ot.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:Ue}),Be(ut,Oe,je,_e,wn))})}else if(Ht){const _e=(0,Ne.Z)(Ht).length;ue=(0,Ne.Z)(Ht).map((je,ut)=>{if(!je)return je;const vt=ut===_e-1;return(0,Ee.Tm)(je,{separator:vt?"":ke,key:ut})})}const Le=de()(Ue,st==null?void 0:st.className,{[`${Ue}-rtl`]:qe==="rtl"},Ke,Bt,It),ve=Object.assign(Object.assign({},st==null?void 0:st.style),Me);return Dt(fe.createElement("nav",Object.assign({className:Le,style:ve},Ze),fe.createElement("ol",null,ue)))};Je.Item=x,Je.Separator=Ae;var ot=Je,it=ot},19842:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return da}});var re=ge(94480),de=ge(59301),Ne=ge(33853),Qe=ge(58617),fe=ge(38819),Ee=ge(92310),me=ge.n(Ee),Ie=ge(54476),Fe=ge(42978),Ge=ge(75931),Ae=ge(77861),we=ge(17115),be=ge(90782),ne=ge(6089),a=ge(18929),b=de.createContext(null),E=b,y=ge(76190),x=ge(20068),z=ge(33885),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(pe,He,Ye,rt,lt,ft){var Ct=lt.filter,se=Ct===void 0?te:Ct,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 pt=[];if(!pe)return[];function dt(ct,bt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ct.forEach(function(Te){if(!(!nt&&et!==!1&&et>0&&pt.length>=et)){var At=[].concat((0,re.Z)(bt),[Te]),Mt=Te[Ye.children],un=Kt||Te.disabled;if((!Mt||Mt.length===0||ft)&&se(pe,At,{label:Ye.label})){var Tt;pt.push((0,z.Z)((0,z.Z)({},Te),{},(Tt={disabled:un},(0,x.Z)(Tt,Ye.label,ce(pe,At,rt,Ye)),(0,x.Z)(Tt,ee,At),(0,x.Z)(Tt,Ye.children,void 0),Tt)))}Mt&&dt(Te[Ye.children],At,un)}})}return dt(He,[]),nt&&pt.sort(function(ct,bt){return nt(ct[ee],bt[ee],pe,Ye)}),et!==!1&&et>0?pt.slice(0,et):pt},[pe,He,Ye,rt,ce,ft,se,nt,et])},ie="__RC_CASCADER_SPLIT__",Se="SHOW_PARENT",le="SHOW_CHILD";function ye(pe){return pe.join(ie)}function xe(pe){return pe.map(ye)}function Je(pe){return pe.split(ie)}function ot(pe){var He=pe||{},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(pe,He){var Ye,rt;return(Ye=pe.isLeaf)!==null&&Ye!==void 0?Ye:!((rt=pe[He.children])!==null&&rt!==void 0&&rt.length)}function he(pe){var He=pe.parentElement;if(He){var Ye=pe.offsetTop-He.offsetTop;Ye-He.scrollTop<0?He.scrollTo({top:Ye}):Ye+pe.offsetHeight-He.scrollTop>He.offsetHeight&&He.scrollTo({top:Ye+pe.offsetHeight-He.offsetHeight})}}function ze(pe,He){return pe.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(pe,He,Ye){var rt=new Set(pe),lt=He();return pe.filter(function(ft){var Ct=lt[ft],se=Ct?Ct.parent:null,Pe=Ct?Ct.children:null;return Ct&&Ct.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 Me(pe,He,Ye){for(var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,lt=He,ft=[],Ct=function(){var ce,Re,et,nt=pe[se],pt=(ce=lt)===null||ce===void 0?void 0:ce.findIndex(function(ct){var bt=ct[Ye.value];return rt?String(bt)===String(nt):bt===nt}),dt=pt!==-1?(Re=lt)===null||Re===void 0?void 0:Re[pt]:null;ft.push({value:(et=dt==null?void 0:dt[Ye.value])!==null&&et!==void 0?et:nt,index:pt,option:dt}),lt=dt==null?void 0:dt[Ye.children]},se=0;se<pe.length;se+=1)Ct();return ft}var Ke=function(pe,He,Ye,rt,lt){return de.useMemo(function(){var ft=lt||function(Ct){var se=rt?Ct.slice(-1):Ct,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 pe.map(function(Ct){var se,Pe,ce=Me(Ct,He,Ye),Re=ft(ce.map(function(nt){var pt,dt=nt.option,ct=nt.value;return(pt=dt==null?void 0:dt[Ye.label])!==null&&pt!==void 0?pt:ct}),ce.map(function(nt){var pt=nt.option;return pt})),et=ye(Ct);return{label:Re,value:et,key:et,valueCells:Ct,disabled:(se=ce[ce.length-1])===null||se===void 0||(Pe=se.option)===null||Pe===void 0?void 0:Pe.disabled}})},[pe,He,Ye,lt,rt])},Bt=ge(71430),Et=function(pe,He){var Ye=de.useRef({options:null,info:null}),rt=de.useCallback(function(){return Ye.current.options!==pe&&(Ye.current.options=pe,Ye.current.info=(0,Bt.I8)(pe,{fieldNames:He,initWrapper:function(ft){return(0,z.Z)((0,z.Z)({},ft),{},{pathKeyEntities:{}})},processEntity:function(ft,Ct){var se=ft.nodes.map(function(Pe){return Pe[He.value]}).join(ie);Ct.pathKeyEntities[se]=ft,ft.key=se}})),Ye.current.info.pathKeyEntities},[He,pe]);return rt},yt=function(pe,He){return de.useCallback(function(Ye){var rt=[],lt=[];return Ye.forEach(function(ft){var Ct=Me(ft,pe,He);Ct.every(function(se){return se.option})?lt.push(ft):rt.push(ft)}),[lt,rt]},[pe,He])},Ht=ge(48736);function Ce(pe){return de.useMemo(function(){if(!pe)return[!1,{}];var He={matchInputWidth:!0,limit:50};return pe&&(0,y.Z)(pe)==="object"&&(He=(0,z.Z)((0,z.Z)({},He),pe)),He.limit<=0&&delete He.limit,[!0,He]},[pe])}var Oe=de.memo(function(pe){var He=pe.children;return He},function(pe,He){return!He.open}),Ze=Oe;function Pt(pe){var He,Ye=pe.prefixCls,rt=pe.checked,lt=pe.halfChecked,ft=pe.disabled,Ct=pe.onClick,se=pe.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:Ct},Re)}var qe="__cascader_fix_label__";function st(pe){var He=pe.prefixCls,Ye=pe.multiple,rt=pe.options,lt=pe.activeValue,ft=pe.prevValuePath,Ct=pe.onToggleOpen,se=pe.onSelect,Pe=pe.onActive,ce=pe.checkedSet,Re=pe.halfCheckedSet,et=pe.loadingKeys,nt=pe.isSelectable,pt=pe.searchValue,dt="".concat(He,"-menu"),ct="".concat(He,"-menu-item"),bt=de.useContext(E),Kt=bt.fieldNames,Te=bt.changeOnSelect,At=bt.expandTrigger,Mt=bt.expandIcon,un=bt.loadingIcon,Tt=bt.dropdownMenuColumnStyle,Gt=At==="hover",qt=de.useMemo(function(){return rt.map(function(wt){var Wt,kt=wt.disabled,en=wt.disableCheckbox,Xt=wt[ee],ln=(Wt=wt[qe])!==null&&Wt!==void 0?Wt:wt[Kt.label],Ut=wt[Kt.value],hn=it(wt,Kt),$e=Xt?Xt.map(function(We){return We[Kt.value]}):[].concat((0,re.Z)(ft),[Ut]),Ln=ye($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:wt,disableCheckbox:en,fullPath:$e,fullPathKey:Ln}})},[rt,ce,Kt,Re,et,ft]);return de.createElement("ul",{className:dt,role:"menu"},qt.map(function(wt){var Wt,kt=wt.disabled,en=wt.label,Xt=wt.value,ln=wt.isLeaf,Ut=wt.isLoading,hn=wt.checked,$e=wt.halfChecked,Ln=wt.option,yn=wt.fullPath,En=wt.fullPathKey,jt=wt.disableCheckbox,We=function(){if(!(kt||pt)){var zt=(0,re.Z)(yn);Gt&&ln&&zt.pop(),Pe(zt)}},mt=function(){nt(Ln)&&se(yn,ln)},Lt;return typeof Ln.title=="string"?Lt=Ln.title:typeof en=="string"&&(Lt=en),de.createElement("li",{key:En,className:me()(ct,(Wt={},(0,x.Z)(Wt,"".concat(ct,"-expand"),!ln),(0,x.Z)(Wt,"".concat(ct,"-active"),lt===Xt||lt===En),(0,x.Z)(Wt,"".concat(ct,"-disabled"),kt),(0,x.Z)(Wt,"".concat(ct,"-loading"),Ut),Wt)),style:Tt,role:"menuitemcheckbox",title:Lt,"aria-checked":hn,"data-path-key":En,onClick:function(){We(),!jt&&(!Ye||ln)&&mt()},onDoubleClick:function(){Te&&Ct(!1)},onMouseEnter:function(){Gt&&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(ct,"-content")},en),!Ut&&Mt&&!ln&&de.createElement("div",{className:"".concat(ct,"-expand-icon")},Mt),Ut&&un&&de.createElement("div",{className:"".concat(ct,"-loading-icon")},un))}))}var ue=function(){var pe=(0,Ae.lk)(),He=pe.multiple,Ye=pe.open,rt=de.useContext(E),lt=rt.values,ft=de.useState([]),Ct=(0,Fe.Z)(ft,2),se=Ct[0],Pe=Ct[1];return de.useEffect(function(){if(Ye&&!He){var ce=lt[0];Pe(ce||[])}},[Ye]),[se,Pe]},Ue=ge(10228),Dt=function(pe,He,Ye,rt,lt,ft){var Ct=(0,Ae.lk)(),se=Ct.direction,Pe=Ct.searchValue,ce=Ct.toggleOpen,Re=Ct.open,et=se==="rtl",nt=de.useMemo(function(){for(var Tt=-1,Gt=He,qt=[],wt=[],Wt=rt.length,kt=ze(He,Ye),en=function(Ln){var yn=Gt.findIndex(function(En,jt){return(kt[jt]?ye(kt[jt]):En[Ye.value])===rt[Ln]});if(yn===-1)return"break";Tt=yn,qt.push(Tt),wt.push(rt[Ln]),Gt=Gt[Tt][Ye.children]},Xt=0;Xt<Wt&&Gt;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[wt,Tt,Ut,kt]},[rt,Ye,He]),pt=(0,Fe.Z)(nt,4),dt=pt[0],ct=pt[1],bt=pt[2],Kt=pt[3],Te=function(Gt){lt(Gt)},At=function(Gt){var qt=bt.length,wt=ct;wt===-1&&Gt<0&&(wt=qt);for(var Wt=0;Wt<qt;Wt+=1){wt=(wt+Gt+qt)%qt;var kt=bt[wt];if(kt&&!kt.disabled){var en=dt.slice(0,-1).concat(Kt[wt]?ye(Kt[wt]):kt[Ye.value]);Te(en);return}}},Mt=function(){if(dt.length>1){var Gt=dt.slice(0,-1);Te(Gt)}else ce(!1)},un=function(){var Gt,qt=((Gt=bt[ct])===null||Gt===void 0?void 0:Gt[Ye.children])||[],wt=qt.find(function(kt){return!kt.disabled});if(wt){var Wt=[].concat((0,re.Z)(dt),[wt[Ye.value]]);Te(Wt)}};de.useImperativeHandle(pe,function(){return{onKeyDown:function(Gt){var qt=Gt.which;switch(qt){case Ue.Z.UP:case Ue.Z.DOWN:{var wt=0;qt===Ue.Z.UP?wt=-1:qt===Ue.Z.DOWN&&(wt=1),wt!==0&&At(wt);break}case Ue.Z.LEFT:{if(Pe)break;et?un():Mt();break}case Ue.Z.RIGHT:{if(Pe)break;et?Mt():un();break}case Ue.Z.BACKSPACE:{Pe||Mt();break}case Ue.Z.ENTER:{if(dt.length){var Wt=bt[ct],kt=(Wt==null?void 0:Wt[ee])||[];kt.length?ft(kt.map(function(en){return en[Ye.value]}),kt[kt.length-1]):ft(dt,bt[ct])}break}case Ue.Z.ESC:ce(!1),Re&&Gt.stopPropagation()}},onKeyUp:function(){}}})},It=de.forwardRef(function(pe,He){var Ye,rt,lt,ft,Ct=(0,Ae.lk)(),se=Ct.prefixCls,Pe=Ct.multiple,ce=Ct.searchValue,Re=Ct.toggleOpen,et=Ct.notFoundContent,nt=Ct.direction,pt=Ct.open,dt=de.useRef(),ct=nt==="rtl",bt=de.useContext(E),Kt=bt.options,Te=bt.values,At=bt.halfValues,Mt=bt.fieldNames,un=bt.changeOnSelect,Tt=bt.onSelect,Gt=bt.searchOptions,qt=bt.dropdownPrefixCls,wt=bt.loadData,Wt=bt.expandTrigger,kt=qt||se,en=de.useState([]),Xt=(0,Fe.Z)(en,2),ln=Xt[0],Ut=Xt[1],hn=function(Rt){if(!(!wt||ce)){var rn=Me(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=ye(Rt);Ut(function($n){return[].concat((0,re.Z)($n),[Tn])}),wt(dn)}}};de.useEffect(function(){ln.length&&ln.forEach(function(cn){var Rt=Je(cn),rn=Me(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(xe(Te))},[Te]),Ln=de.useMemo(function(){return new Set(xe(At))},[At]),yn=ue(),En=(0,Fe.Z)(yn,2),jt=En[0],We=En[1],mt=function(Rt){We(Rt),hn(Rt)},Lt=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?Gt:Kt},[ce,Gt,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]?ye(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){Lt(rn)&&at(Rt,it(rn,Mt),!0)};Dt(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=ye(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,qe,et),(0,x.Z)(lt,"disabled",!0),lt)],Mn=(0,z.Z)((0,z.Z)({},pe),{},{multiple:!Jt&&Pe,onSelect:at,onActive:mt,onToggleOpen:Re,checkedSet:$e,halfCheckedSet:Ln,loadingKeys:ln,isSelectable:Lt}),zn=Jt?[{options:sn}]:Yt,ea=zn.map(function(cn,Rt){var rn=jt.slice(0,Rt),dn=jt[Rt];return de.createElement(st,(0,Ie.Z)({key:Rt},Mn,{searchValue:ce,prefixCls:kt,options:cn.options,prevValuePath:rn,activeValue:dn}))});return de.createElement(Ze,{open:pt},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"),ct),ft)),ref:dt},ea))}),Ot=It;function Be(pe){var He=pe.onPopupVisibleChange,Ye=pe.popupVisible,rt=pe.popupClassName,lt=pe.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 Le(pe,He){if(pe){var Ye=function rt(lt){for(var ft=0;ft<lt.length;ft++){var Ct=lt[ft];if(Ct[He==null?void 0:He.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ct[He==null?void 0:He.children])&&rt(Ct[He==null?void 0:He.children]))return!0}};Ye(pe)}}var ve=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(pe){return Array.isArray(pe)&&Array.isArray(pe[0])}function ut(pe){return pe?je(pe)?pe:(pe.length===0?[]:[pe]).map(function(He){return Array.isArray(He)?He:[He]}):[]}var vt=de.forwardRef(function(pe,He){var Ye=pe.id,rt=pe.prefixCls,lt=rt===void 0?"rc-cascader":rt,ft=pe.fieldNames,Ct=pe.defaultValue,se=pe.value,Pe=pe.changeOnSelect,ce=pe.onChange,Re=pe.displayRender,et=pe.checkable,nt=pe.autoClearSearchValue,pt=nt===void 0?!0:nt,dt=pe.searchValue,ct=pe.onSearch,bt=pe.showSearch,Kt=pe.expandTrigger,Te=pe.options,At=pe.dropdownPrefixCls,Mt=pe.loadData,un=pe.popupVisible,Tt=pe.open,Gt=pe.popupClassName,qt=pe.dropdownClassName,wt=pe.dropdownMenuColumnStyle,Wt=pe.popupPlacement,kt=pe.placement,en=pe.onDropdownVisibleChange,Xt=pe.onPopupVisibleChange,ln=pe.expandIcon,Ut=ln===void 0?">":ln,hn=pe.loadingIcon,$e=pe.children,Ln=pe.dropdownMatchSelectWidth,yn=Ln===void 0?!1:Ln,En=pe.showCheckedStrategy,jt=En===void 0?Se:En,We=(0,Ge.Z)(pe,_e),mt=(0,we.ZP)(Ye),Lt=!!et,at=(0,a.Z)(Ct,{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=Et(sn,Jt),zn=de.useCallback(function(Xe){var Ve=Mn();return Xe.map(function(gt){var _t=Ve[gt].nodes;return _t.map(function(Zt){return Zt[Jt.value]})})},[Mn,Jt]),ea=(0,a.Z)("",{value:dt,postState:function(Ve){return Ve||""}}),cn=(0,Fe.Z)(ea,2),Rt=cn[0],rn=cn[1],dn=function(Ve,gt){rn(Ve),gt.source!=="blur"&&ct&&ct(Ve)},Bn=Ce(bt),Tn=(0,Fe.Z)(Bn,2),$n=Tn[0],Rn=Tn[1],_n=oe(Rt,sn,Jt,At||lt,Rn,Pe),In=yt(sn,Jt),ta=de.useMemo(function(){var Xe=In(Yt),Ve=(0,Fe.Z)(Xe,2),gt=Ve[0],_t=Ve[1];if(!Lt||!Yt.length)return[gt,[],_t];var Zt=xe(gt),fn=Mn(),an=(0,be.S)(Zt,!0,fn),vn=an.checkedKeys,pn=an.halfCheckedKeys;return[zn(vn),zn(pn),_t]},[Lt,Yt,Mn,zn,In]),Wn=(0,Fe.Z)(ta,3),Kn=Wn[0],Jn=Wn[1],Cn=Wn[2],na=de.useMemo(function(){var Xe=xe(Kn),Ve=ke(Xe,Mn,jt);return[].concat((0,re.Z)(Cn),(0,re.Z)(zn(Ve)))},[Kn,Mn,zn,Cn,jt]),Vn=Ke(na,sn,Jt,Lt,Re),ma=(0,ne.Z)(function(Xe){if(Sn(Xe),ce){var Ve=ut(Xe),gt=Ve.map(function(fn){return Me(fn,sn,Jt).map(function(an){return an.option})}),_t=Lt?Ve:Ve[0],Zt=Lt?gt:gt[0];ce(_t,Zt)}}),sa=(0,ne.Z)(function(Xe){if((!Lt||pt)&&rn(""),!Lt)ma(Xe);else{var Ve=ye(Xe),gt=xe(Kn),_t=xe(Jn),Zt=gt.includes(Ve),fn=Cn.some(function(aa){return ye(aa)===Ve}),an=Kn,vn=Cn;if(fn&&!Zt)vn=Cn.filter(function(aa){return ye(aa)!==Ve});else{var pn=Zt?gt.filter(function(aa){return aa!==Ve}):[].concat((0,re.Z)(gt),[Ve]),Hn=Mn(),Gn;if(Zt){var ga=(0,be.S)(pn,{checked:!1,halfCheckedKeys:_t},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(Ve,gt){if(gt.type==="clear"){ma([]);return}var _t=gt.values[0],Zt=_t.valueCells;sa(Zt)},va=Tt!==void 0?Tt:un,Pa=qt||Gt,pa=kt||Wt,ba=function(Ve){en==null||en(Ve),Xt==null||Xt(Ve)},ha=de.useMemo(function(){return{options:sn,fieldNames:Jt,values:Kn,halfValues:Jn,changeOnSelect:Pe,onSelect:sa,checkable:et,searchOptions:_n,dropdownPrefixCls:At,loadData:Mt,expandTrigger:Kt,expandIcon:Ut,loadingIcon:hn,dropdownMenuColumnStyle:wt}},[sn,Jt,Kn,Jn,Pe,sa,et,_n,At,Mt,Kt,Ut,hn,wt]),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:pt,dropdownMatchSelectWidth:yn,dropdownStyle:St,displayValues:Vn,onDisplayValuesChange:Sa,mode:Lt?"multiple":void 0,searchValue:Rt,onSearch:dn,showSearch:$n,OptionList:Ot,emptyOptions:ca,open:va,dropdownClassName:Pa,placement:pa,onDropdownVisibleChange:ba,getRawInputElement:function(){return $e}})))});vt.SHOW_PARENT=Se,vt.SHOW_CHILD=le;var Ft=vt,xt=Ft,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=pe=>{const{prefixCls:He,componentCls:Ye,antCls:rt}=pe,lt=`${Ye}-menu-item`,ft=`
&${lt}-expand ${lt}-expand-icon,
${lt}-loading-icon
`;return[{[Ye]:{width:pe.controlWidth}},{[`${Ye}-dropdown`]:[(0,Nn.C2)(`${He}-checkbox`,pe),{[`&${rt}-select-dropdown`]:{padding:0}},{[Ye]:{"&-checkbox":{top:0,marginInlineEnd:pe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ye}-menu-empty`]:{[`${Ye}-menu`]:{width:"100%",height:"auto",[lt]:{color:pe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:pe.controlItemWidth,height:pe.dropdownHeight,margin:0,padding:pe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${pe.lineWidth}px ${pe.lineType} ${pe.colorSplit}`},"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:pe.optionPadding,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,borderRadius:pe.borderRadiusSM,"&:hover":{background:pe.controlItemBgHover},"&-disabled":{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ft]:{color:pe.colorTextDisabled}},[`&-active:not(${lt}-disabled)`]:{"&, &:hover":{fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg}},"&-content":{flex:"auto"},[ft]:{marginInlineStart:pe.paddingXXS,color:pe.colorTextDescription,fontSize:pe.fontSizeIcon},"&-keyword":{color:pe.colorHighlight}})}}}]},{[`${Ye}-dropdown-rtl`]:{direction:"rtl"}},(0,xn.c)(pe)]};var Qn=(0,kn.Z)("Cascader",pe=>[jn(pe)],pe=>{const He=Math.round((pe.controlHeight-pe.fontSize*pe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:pe.controlItemBgActive,optionSelectedFontWeight:pe.fontWeightStrong,optionPadding:`${He}px ${pe.paddingSM}px`,menuPadding:pe.paddingXXS}}),Un=function(pe,He){var Ye={};for(var rt in pe)Object.prototype.hasOwnProperty.call(pe,rt)&&He.indexOf(rt)<0&&(Ye[rt]=pe[rt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,rt=Object.getOwnPropertySymbols(pe);lt<rt.length;lt++)He.indexOf(rt[lt])<0&&Object.prototype.propertyIsEnumerable.call(pe,rt[lt])&&(Ye[rt[lt]]=pe[rt[lt]]);return Ye};const{SHOW_CHILD:Yn,SHOW_PARENT:oa}=xt;function Zn(pe,He,Ye){const rt=pe.toLowerCase().split(He).reduce((Ct,se,Pe)=>Pe===0?[se]:[].concat((0,re.Z)(Ct),[He,se]),[]),lt=[];let ft=0;return rt.forEach((Ct,se)=>{const Pe=ft+Ct.length;let ce=pe.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=(pe,He,Ye,rt)=>{const lt=[],ft=pe.toLowerCase();return He.forEach((Ct,se)=>{se!==0&&lt.push(" / ");let Pe=Ct[rt.label];const ce=typeof Pe;(ce==="string"||ce==="number")&&(Pe=Zn(String(Pe),ft,Ye)),lt.push(Pe)}),lt},On=de.forwardRef((pe,He)=>{const{prefixCls:Ye,size:rt,disabled:lt,className:ft,rootClassName:Ct,multiple:se,bordered:Pe=!0,transitionName:ce,choiceTransitionName:Re="",popupClassName:et,dropdownClassName:nt,expandIcon:pt,placement:dt,showSearch:ct,allowClear:bt=!0,notFoundContent:Kt,direction:Te,getPopupContainer:At,status:Mt,showArrow:un,builtinPlacements:Tt,style:Gt}=pe,qt=Un(pe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),wt=(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"}),Lt=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"},Ct,Sn),ea=de.useMemo(()=>{if(!ct)return ct;let Cn={render:qn};return typeof ct=="object"&&(Cn=Object.assign(Object.assign({},Cn),ct)),Cn},[ct]),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=pt;pt||(dn=$e?de.createElement(Ne.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)(pe.suffixIcon,un),{suffixIcon:Rn,removeIcon:_n,clearIcon:In}=(0,Dn.Z)(Object.assign(Object.assign({},pe),{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=bt===!0?{clearIcon:In}:bt,Jn=de.createElement(xt,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,Ct,Sn),disabled:rn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Gt)},wt,{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)(Lt,"",Re),transitionName:(0,ht.m)(Lt,"slide-up",ce),getPopupContainer:At||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(De,tt,ge){"use strict";ge.d(tt,{C2:function(){return fe}});var re=ge(17313),de=ge(37613),Ne=ge(83116);const Qe=Ee=>{const{checkboxCls:me}=Ee,Ie=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,re.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,re.Wf)(Ee)),{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)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.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)(Ee))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${me}:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{borderColor:Ee.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${me}-checked:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.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:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function fe(Ee,me){const Ie=(0,de.TS)(me,{checkboxCls:`.${Ee}`,checkboxSize:me.controlInteractiveSize});return[Qe(Ie)]}tt.ZP=(0,Ne.Z)("Checkbox",(Ee,me)=>{let{prefixCls:Ie}=me;return[fe(Ie,Ee)]})},28103:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return we}});var re=ge(92310),de=ge.n(re),Ne=ge(59301),Qe=ge(36355),fe=ge(17313),Ee=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,Ee.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},we=be=>{const{getPrefixCls:ne,direction:a,divider:b}=Ne.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"]),ye=ne("divider",E),[xe,Je]=Fe(ye),ot=x.length>0?`-${x}`:x,it=!!ae,he=x==="left"&&z!=null,ze=x==="right"&&z!=null,ke=de()(ye,b==null?void 0:b.className,Je,`${ye}-${y}`,{[`${ye}-with-text`]:it,[`${ye}-with-text${ot}`]:it,[`${ye}-dashed`]:!!oe,[`${ye}-plain`]:!!ie,[`${ye}-rtl`]:a==="rtl",[`${ye}-no-default-orientation-margin-left`]:he,[`${ye}-no-default-orientation-margin-right`]:ze},ee,te),Me=Ne.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Ke=Object.assign(Object.assign({},he&&{marginLeft:Me}),ze&&{marginRight:Me});return xe(Ne.createElement("div",Object.assign({className:ke,style:Object.assign(Object.assign({},b==null?void 0:b.style),Se)},le,{role:"separator"}),ae&&y!=="vertical"&&Ne.createElement("span",{className:`${ye}-inner-text`,style:Ke},ae)))}},91857:function(De,tt,ge){"use strict";var re=ge(59301),de=ge(38819),Ne=ge(92310),Qe=ge.n(Ne),fe=ge(31561),Ee=ge(70425),me=ge(18929),Ie=ge(2738),Fe=ge(79676),Ge=ge(53487),Ae=ge(92343),we=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:ye,dropdownRender:xe,getPopupContainer:Je,overlayClassName:ot,rootClassName:it,open:he,onOpenChange:ze,visible:ke,onVisibleChange:Me,mouseEnterDelay:Ke=.15,mouseLeaveDelay:Bt=.1,autoAdjustOverflow:Et=!0,placement:yt="",overlay:Ht,transitionName:Ce}=te,{getPopupContainer:Oe,getPrefixCls:Ze,direction:Pt}=re.useContext(we.E_),qe=re.useMemo(()=>{const ht=Ze();return Ce!==void 0?Ce:yt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Ze,yt,Ce]),st=re.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:Pt==="rtl"?"bottomRight":"bottomLeft",[yt,Pt]),ue=Ze("dropdown",ie),[Ue,Dt]=(0,b.Z)(ue),[,It]=(0,a.Z)(),Ot=re.Children.only(Se),Be=(0,Ae.Tm)(Ot,{className:Qe()(`${ue}-trigger`,{[`${ue}-rtl`]:Pt==="rtl"},Ot.props.className),disabled:ye}),Le=ye?[]:le;let ve;Le&&Le.includes("contextMenu")&&(ve=!0);const[_e,je]=(0,me.Z)(!1,{value:he!=null?he:ke}),ut=(0,Ee.useEvent)(ht=>{ze==null||ze(ht),Me==null||Me(ht),je(ht)}),vt=Qe()(ot,it,Dt,{[`${ue}-rtl`]:Pt==="rtl"}),Ft=(0,Fe.Z)({arrowPointAtCenter:typeof oe=="object"&&oe.pointAtCenter,autoAdjustOverflow:Et,offset:It.marginXXS,arrowWidth:oe?It.sizePopupArrow:0,borderRadius:It.borderRadius}),xt=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,xe&&(ht=xe(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:xt,validator:$t=>{let{mode:Qt}=$t}},ht)};return Ue(re.createElement(fe.Z,Object.assign({alignPoint:ve},(0,Ie.Z)(te,["rootClassName"]),{mouseEnterDelay:Ke,mouseLeaveDelay:Bt,visible:_e,builtinPlacements:Ft,arrow:!!oe,overlayClassName:vt,prefixCls:ue,getPopupContainer:Je||Oe,transitionName:qe,trigger:Le,overlay:Nt,placement:st,onVisibleChange:ut}),Be))};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(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ae}});var re=ge(17313),de=ge(13826),Ne=ge(92899),Qe=ge(29878),fe=ge(19447),Ee=ge(83116),me=ge(37613),Fe=we=>{const{componentCls:be,menuCls:ne,colorError:a,colorTextLightSolid:b}=we,E=`${ne}-item`;return{[`${be}, ${be}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const Ge=we=>{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}=we;return[{[be]:Object.assign(Object.assign({},(0,re.Wf)(we)),{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)(we,{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:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,re.Qy)(we)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:we.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:we.marginXS,fontSize:we.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:we.colorText,fontWeight:"normal",fontSize:te,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,re.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${we.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${we.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Se+we.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:we.colorPrimary}})}},[(0,de.oN)(we,"slide-up"),(0,de.oN)(we,"slide-down"),(0,Ne.Fm)(we,"move-up"),(0,Ne.Fm)(we,"move-down"),(0,Qe._y)(we,"zoom-big")]]};var Ae=(0,Ee.Z)("Dropdown",(we,be)=>{let{rootPrefixCls:ne}=be;const{marginXXS:a,sizePopupArrow:b,controlHeight:E,fontSize:y,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=we,ae=(E-y*x)/2,{dropdownArrowOffset:oe}=(0,fe.fS)({contentRadius:te}),ie=(0,me.TS)(we,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:b/2+a,dropdownArrowOffset:oe,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:z});return[Ge(ie),Fe(ie)]},we=>({zIndexPopup:we.zIndexPopupBase+50}))},45818:function(De,tt,ge){"use strict";ge.d(tt,{D:function(){return z},Z:function(){return ae}});var re=ge(54476),de=ge(59301),Ne={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=Ne,fe=ge(7657),Ee=function(ie,Se){return de.createElement(fe.Z,(0,re.Z)({},ie,{ref:Se,icon:Qe}))},me=de.forwardRef(Ee),Ie=me,Fe=ge(33853),Ge=ge(38819),Ae=ge(92310),we=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 ye=0,le=Object.getOwnPropertySymbols(oe);ye<le.length;ye++)ie.indexOf(le[ye])<0&&Object.prototype.propertyIsEnumerable.call(oe,le[ye])&&(Se[le[ye]]=oe[le[ye]]);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:ye,children:xe,defaultCollapsed:Je=!1,theme:ot="dark",style:it={},collapsible:he=!1,reverseArrow:ze=!1,width:ke=200,collapsedWidth:Me=80,zeroWidthTriggerStyle:Ke,breakpoint:Bt,onCollapse:Et,onBreakpoint:yt}=oe,Ht=y(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ce}=(0,de.useContext)(E.Gs),[Oe,Ze]=(0,de.useState)("collapsed"in oe?oe.collapsed:Je),[Pt,qe]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in oe&&Ze(oe.collapsed)},[oe.collapsed]);const st=(Be,Le)=>{"collapsed"in oe||Ze(Be),Et==null||Et(Be,Le)},ue=(0,de.useRef)();ue.current=Be=>{qe(Be.matches),yt==null||yt(Be.matches),Oe!==Be.matches&&st(Be.matches,"responsive")},(0,de.useEffect)(()=>{function Be(ve){return ue.current(ve)}let Le;if(typeof window!="undefined"){const{matchMedia:ve}=window;if(ve&&Bt&&Bt in x){Le=ve(`(max-width: ${x[Bt]})`);try{Le.addEventListener("change",Be)}catch(_e){Le.addListener(Be)}Be(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Be)}catch(ve){Le==null||Le.removeListener(Be)}}},[Bt]),(0,de.useEffect)(()=>{const Be=ee("ant-sider-");return Ce.addSider(Be),()=>Ce.removeSider(Be)},[]);const Ue=()=>{st(!Oe,"clickTrigger")},{getPrefixCls:Dt}=(0,de.useContext)(b.E_),It=()=>{const Be=Dt("layout-sider",Se),Le=(0,be.Z)(Ht,["collapsed"]),ve=Oe?Me:ke,_e=a(ve)?`${ve}px`:String(ve),je=parseFloat(String(Me||0))===0?de.createElement("span",{onClick:Ue,className:we()(`${Be}-zero-width-trigger`,`${Be}-zero-width-trigger-${ze?"right":"left"}`),style:Ke},ye||de.createElement(Ie,null)):null,Ft={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"],xt=ye!==null?je||de.createElement("div",{className:`${Be}-trigger`,onClick:Ue,style:{width:_e}},ye||Ft):null,Nt=Object.assign(Object.assign({},it),{flex:`0 0 ${_e}`,maxWidth:_e,minWidth:_e,width:_e}),ht=we()(Be,`${Be}-${ot}`,{[`${Be}-collapsed`]:!!Oe,[`${Be}-has-trigger`]:he&&ye!==null&&!je,[`${Be}-below`]:!!Pt,[`${Be}-zero-width`]:parseFloat(_e)===0},le);return de.createElement("aside",Object.assign({className:ht},Le,{style:Nt,ref:ie}),de.createElement("div",{className:`${Be}-children`},xe),he||Pt&&je?xt:null)},Ot=de.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return de.createElement(z.Provider,{value:Ot},It())})},44e3:function(De,tt,ge){"use strict";var re=ge(84966),de=ge(45818);const Ne=re.ZP;Ne.Header=re.h4,Ne.Footer=re.$_,Ne.Content=re.VY,Ne.Sider=de.Z,tt.default=Ne},84966:function(De,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(94480),de=ge(92310),Ne=ge.n(de),Qe=ge(2738),fe=ge(59301),Ee=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:ye,headerHeight:xe,headerPadding:Je,headerColor:ot,footerPadding:it,triggerHeight:he,zeroTriggerHeight:ze,zeroTriggerWidth:ke,motionDurationMid:Me,motionDurationSlow:Ke,fontSize:Bt,borderRadius:Et,bodyBg:yt,headerBg:Ht,siderBg:Ce}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:yt,"&, *":{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:Ce,transition:`all ${Me}, 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:ye,cursor:"pointer",transition:`all ${Me}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-ke,zIndex:1,width:ke,height:ze,color:Se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ce,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,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:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},Fe(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:xe,padding:Je,color:ot,lineHeight:`${xe}px`,background:Ht,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:it,color:ie,fontSize:Bt,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:ye,colorTextLightSolid:xe,colorBgContainer:Je}=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+ye*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Je,lightTriggerBg:Je,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),we=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((ye,xe)=>fe.createElement(Se,Object.assign({ref:xe,suffixCls:ae,tagName:oe},ye)))}const a=fe.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:ie,className:Se,tagName:le}=te,ye=we(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=fe.useContext(Ee.E_),Je=xe("layout",oe),[ot,it]=Ae(Je),he=ie?`${Je}-${ie}`:Je;return ot(fe.createElement(le,Object.assign({className:Ne()(oe||he,Se,it),ref:ae},ye)))}),b=fe.forwardRef((te,ae)=>{const{direction:oe}=fe.useContext(Ee.E_),[ie,Se]=fe.useState([]),{prefixCls:le,className:ye,rootClassName:xe,children:Je,hasSider:ot,tagName:it,style:he}=te,ze=we(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ke=(0,Qe.Z)(ze,["suffixCls"]),{getPrefixCls:Me,layout:Ke}=fe.useContext(Ee.E_),Bt=Me("layout",le),[Et,yt]=Ae(Bt),Ht=Ne()(Bt,{[`${Bt}-has-sider`]:typeof ot=="boolean"?ot:ie.length>0,[`${Bt}-rtl`]:oe==="rtl"},Ke==null?void 0:Ke.className,ye,xe,yt),Ce=fe.useMemo(()=>({siderHook:{addSider:Oe=>{Se(Ze=>[].concat((0,re.Z)(Ze),[Oe]))},removeSider:Oe=>{Se(Ze=>Ze.filter(Pt=>Pt!==Oe))}}}),[]);return Et(fe.createElement(be.Provider,{value:Ce},fe.createElement(it,Object.assign({ref:ae,className:Ht,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),he)},ke),Je)))}),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(De,tt,ge){"use strict";ge.d(tt,{J:function(){return Ee}});var re=ge(59301),de=ge(33234),Ne=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),Ee=re.forwardRef((me,Ie)=>{const{children:Fe}=me,Ge=Qe(me,["children"]),Ae=re.useContext(fe),we=re.useMemo(()=>Object.assign(Object.assign({},Ae),Ge),[Ae,Ge.prefixCls,Ge.mode,Ge.selectable]);return re.createElement(fe.Provider,{value:we},re.createElement(de.BR,null,(0,Ne.supportNodeRef)(Fe)?re.cloneElement(Fe,{ref:Ie}):Fe))});tt.Z=fe},20834:function(De,tt,ge){"use strict";ge.d(tt,{default:function(){return Ot}});var re=ge(15285),de=ge(59301),Ne=ge(45818),Qe=ge(92310),fe=ge.n(Qe),Ee=ge(36355),me=function(Be,Le){var ve={};for(var _e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Be[_e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Be);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Be,_e[je])&&(ve[_e[je]]=Be[_e[je]]);return ve},Fe=Be=>{const{prefixCls:Le,className:ve,dashed:_e}=Be,je=me(Be,["prefixCls","className","dashed"]),{getPrefixCls:ut}=de.useContext(Ee.E_),vt=ut("menu",Le),Ft=fe()({[`${vt}-item-divider-dashed`]:!!_e},ve);return de.createElement(re.iz,Object.assign({className:Ft},je))},Ge=ge(11592),Ae=ge(2738),we=ge(6848),be=ge(92343),a=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Be=>{var Le;const{className:ve,children:_e,icon:je,title:ut,danger:vt}=Be,{prefixCls:Ft,firstLevel:xt,direction:Nt,disableMenuItemTitleTooltip:ht,inlineCollapsed:$t}=de.useContext(a),Qt=Pn=>{const bn=de.createElement("span",{className:`${Ft}-title-content`},_e);return(!je||(0,be.l$)(_e)&&_e.type==="span")&&_e&&Pn&&xt&&typeof _e=="string"?de.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},_e.charAt(0)):bn},{siderCollapsed:mn}=de.useContext(Ne.D);let gn=ut;typeof ut=="undefined"?gn=xt?_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)(Be,["title","icon","danger"]),{className:fe()({[`${Ft}-item-danger`]:vt,[`${Ft}-item-only-child`]:(je?tn+1:tn)===1},ve),title:typeof ut=="string"?ut:void 0}),(0,be.Tm)(je,{className:fe()((0,be.l$)(je)?(Le=je.props)===null||Le===void 0?void 0:Le.className:"",`${Ft}-item-icon`)}),Qt($t));return ht||(nn=de.createElement(we.Z,Object.assign({},Vt,{placement:Nt==="rtl"?"left":"right",overlayClassName:`${Ft}-inline-collapsed-tooltip`}),nn)),nn},x=Be=>{var Le;const{popupClassName:ve,icon:_e,title:je,theme:ut}=Be,vt=de.useContext(a),{prefixCls:Ft,inlineCollapsed:xt,theme:Nt}=vt,ht=(0,re.Xl)();let $t;if(!_e)$t=xt&&!ht.length&&je&&typeof je=="string"?de.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},je.charAt(0)):de.createElement("span",{className:`${Ft}-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)?(Le=_e.props)===null||Le===void 0?void 0:Le.className:"",`${Ft}-item-icon`)}),mn?je:de.createElement("span",{className:`${Ft}-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)(Be,["icon"]),{title:$t,popupClassName:fe()(Ft,ve,`${Ft}-${ut||Nt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),ae=ge(40875),oe=function(Be,Le){var ve={};for(var _e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Be[_e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Be);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Be,_e[je])&&(ve[_e[je]]=Be[_e[je]]);return ve};function ie(Be){return(Be||[]).map((Le,ve)=>{if(Le&&typeof Le=="object"){const _e=Le,{label:je,children:ut,key:vt,type:Ft}=_e,xt=oe(_e,["label","children","key","type"]),Nt=vt!=null?vt:`tmp-${ve}`;return ut||Ft==="group"?Ft==="group"?de.createElement(re.BW,Object.assign({key:Nt},xt,{title:je}),ie(ut)):de.createElement(x,Object.assign({key:Nt},xt,{title:je}),ie(ut)):Ft==="divider"?de.createElement(Fe,Object.assign({key:Nt},xt)):de.createElement(E,Object.assign({key:Nt},xt),je)}return null}).filter(Le=>Le)}function Se(Be){return de.useMemo(()=>Be&&ie(Be),[Be])}var le=ge(64993),ye=ge(17313),xe=ge(8378),Je=ge(13826),ot=ge(29878),it=ge(83116),he=ge(37613),ke=Be=>{const{componentCls:Le,motionDurationSlow:ve,horizontalLineHeight:_e,colorSplit:je,lineWidth:ut,lineType:vt,itemPaddingInline:Ft}=Be;return{[`${Le}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${ut}px ${vt} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},Ke=Be=>{let{componentCls:Le,menuArrowOffset:ve}=Be;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Bt=Be=>Object.assign({},(0,ye.oN)(Be));var yt=(Be,Le)=>{const{componentCls:ve,itemColor:_e,itemSelectedColor:je,groupTitleColor:ut,itemBg:vt,subMenuItemBg:Ft,itemSelectedBg:xt,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}=Be;return{[`${ve}-${Le}, ${ve}-${Le} > ${ve}`]:{color:_e,background:vt,[`&${ve}-root:focus-visible`]:Object.assign({},Bt(Be)),[`${ve}-item-group-title`]:{color:ut},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:je}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${wn} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:nn}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}}},[`${ve}-item-danger`]:{color:Dn,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Fn}},[`&${ve}-item:active`]:{background:on}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:je,[`&${ve}-item-danger`]:{color:Nn},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:xt,[`&${ve}-item-danger`]:{backgroundColor:xn}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Bt(Be))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:Qn},[`&${ve}-popup > ${ve}`]:{backgroundColor:qn},[`&${ve}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-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}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${$t}px ${Pn} ${bn}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Ft},[`${ve}-item, ${ve}-submenu-title`]:$t&&ht?{width:`calc(100% + ${$t}px)`}:{},[`${ve}-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:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Nn}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${mn}`,`opacity ${tn} ${mn}`].join(",")}}}}}};const Ht=Be=>{const{componentCls:Le,itemHeight:ve,itemMarginInline:_e,padding:je,menuArrowSize:ut,marginXS:vt,itemMarginBlock:Ft}=Be,xt=je+ut+vt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:Ft,width:`calc(100% - ${_e*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:xt}}};var Oe=Be=>{const{componentCls:Le,iconCls:ve,itemHeight:_e,colorTextLightSolid:je,dropdownWidth:ut,controlHeightLG:vt,motionDurationMid:Ft,motionEaseOut:xt,paddingXL:Nt,itemMarginInline:ht,fontSizeLG:$t,motionDurationSlow:Qt,paddingXS:mn,boxShadowSecondary:gn,collapsedWidth:Vt,collapsedIconSize:tn}=Be,nn={height:_e,lineHeight:`${_e}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Ht(Be))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Ht(Be)),{boxShadow:gn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qt}`,`background ${Qt}`,`padding ${Ft} ${xt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:nn,[`& ${Le}-item-group-title`]:{paddingInlineStart:Nt}},[`${Le}-item`]:nn}},{[`${Le}-inline-collapsed`]:{width:Vt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:$t,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$t/2}px - ${ht}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${ve}`]:{margin:0,fontSize:tn,lineHeight:`${_e}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:je}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},ye.vS),{paddingInline:mn})}}]};const Ze=Be=>{const{componentCls:Le,motionDurationSlow:ve,motionDurationMid:_e,motionEaseInOut:je,motionEaseOut:ut,iconCls:vt,iconSize:Ft,iconMarginInlineEnd:xt}=Be;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${je}`].join(","),[`${Le}-item-icon, ${vt}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${_e} ${ut}`,`margin ${ve} ${je}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${ve} ${je}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,ye.Ro)()),[`&${Le}-item-only-child`]:{[`> ${vt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pt=Be=>{const{componentCls:Le,motionDurationSlow:ve,motionEaseInOut:_e,borderRadius:je,menuArrowSize:ut,menuArrowOffset:vt}=Be;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Be.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${_e}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${ve} ${_e}`,`transform ${ve} ${_e}`,`top ${ve} ${_e}`,`color ${ve} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},qe=Be=>{const{antCls:Le,componentCls:ve,fontSize:_e,motionDurationSlow:je,motionDurationMid:ut,motionEaseInOut:vt,paddingXS:Ft,padding:xt,colorSplit:Nt,lineWidth:ht,zIndexPopup:$t,borderRadiusLG:Qt,subMenuItemBorderRadius:mn,menuArrowSize:gn,menuArrowOffset:Vt,lineType:tn,menuPanelMaskInset:nn,groupTitleLineHeight:Pn,groupTitleFontSize:bn}=Be;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,ye.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(Be)),(0,ye.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",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Be.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Ft}px ${xt}px`,fontSize:bn,lineHeight:Pn,transition:`all ${je}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`,`padding ${ut} ${vt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${je} ${vt}`,`padding ${je} ${vt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${je}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Nt,borderStyle:tn,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ze(Be)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${_e*2}px ${xt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:Qt,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-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:Be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Be.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qt},Ze(Be)),Pt(Be)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:mn},[`${ve}-submenu-title::after`]:{transition:`transform ${je} ${vt}`}})}}),Pt(Be)),{[`&-inline-collapsed ${ve}-submenu-arrow,
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${gn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${Le}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var st=(Be,Le)=>(0,it.Z)("Menu",_e=>{if(Le===!1)return[];const{colorBgElevated:je,colorPrimary:ut,colorTextLightSolid:vt,controlHeightLG:Ft,fontSize:xt,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=xt/7*5,on=(0,he.TS)(_e,{menuArrowSize:Nn,menuHorizontalHeight:Ft*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[qe(on),ke(on),Oe(on),yt(on,"light"),yt(xn,"dark"),Ke(on),(0,xe.Z)(on),(0,Je.oN)(on,"slide-up"),(0,Je.oN)(on,"slide-down"),(0,ot._y)(on,"zoom-big")]},_e=>{const{colorPrimary:je,colorError:ut,colorTextDisabled:vt,colorErrorBg:Ft,colorText:xt,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:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,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:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,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"]]})(Be),ue=function(Be,Le){var ve={};for(var _e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Be[_e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Be);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Be,_e[je])&&(ve[_e[je]]=Be[_e[je]]);return ve},Dt=(0,de.forwardRef)((Be,Le)=>{var ve,_e;const je=de.useContext(ae.Z),ut=je||{},{getPrefixCls:vt,getPopupContainer:Ft,direction:xt,menu:Nt}=de.useContext(Ee.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}=Be,kn=ue(Be,["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;(ve=ut.validator)===null||ve===void 0||ve.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]=st(On,!je),pe=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:xt,firstLevel:!0,theme:gn,mode:Yn,disableMenuItemTitleTooltip:tn}),[On,Zn,xt,tn,gn]);return ra(de.createElement(ae.Z.Provider,{value:null},de.createElement(a.Provider,{value:Ye},de.createElement(re.ZP,Object.assign({getPopupContainer:Ft,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:pe,prefixCls:On,direction:xt,defaultMotions:qn,expandIcon:He,ref:Le,rootClassName:fe()(Dn,da)}),Qn))))});const It=(0,de.forwardRef)((Be,Le)=>{const ve=(0,de.useRef)(null),_e=de.useContext(Ne.D);return(0,de.useImperativeHandle)(Le,()=>({menu:ve.current,focus:je=>{var ut;(ut=ve.current)===null||ut===void 0||ut.focus(je)}})),de.createElement(Dt,Object.assign({ref:ve},Be,_e))});It.Item=E,It.SubMenu=x,It.Divider=Fe,It.ItemGroup=re.BW;var Ot=It},90782:function(De,tt,ge){"use strict";ge.d(tt,{S:function(){return me}});var re=ge(48736),de=ge(67841);function Ne(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,we=Fe.checkable;return!!(Ge||Ae)||we===!1}function fe(Ie,Fe,Ge,Ae){for(var we=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;we.has(z)&&!Ae(ee)&&ae.filter(function(oe){return!Ae(oe.node)}).forEach(function(oe){we.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=we.has(ie);te&&!Se&&(te=!1),!ae&&(Se||be.has(ie))&&(ae=!0)}),te&&we.add(z.key),ae&&be.add(z.key),b.add(z.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(Ne(be,we))}}function Ee(Ie,Fe,Ge,Ae,we){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)&&!we(te)&&oe.filter(function(ie){return!we(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(!(we(te)||!z.parent||E.has(z.parent.key))){if(we(z.parent.node)){E.add(ee.key);return}var ae=!0,oe=!1;(ee.children||[]).filter(function(ie){return!we(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(Ne(ne,be))}}function me(Ie,Fe,Ge,Ae){var we=[],be;Ae?be=Ae:be=Qe;var ne=new Set(Ie.filter(function(y){var x=!!(0,de.Z)(Ge,y);return x||we.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)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var E;return Fe===!0?E=fe(ne,a,b,be):E=Ee(ne,Fe.halfCheckedKeys,a,b,be),E}},67841:function(De,tt,ge){"use strict";ge.d(tt,{Z:function(){return re}});function re(de,Ne){return de[Ne]}},71430:function(De,tt,ge){"use strict";ge.d(tt,{F:function(){return z},H8:function(){return x},I8:function(){return y},km:function(){return we},oH:function(){return b},w$:function(){return be},zn:function(){return a}});var re=ge(76190),de=ge(94480),Ne=ge(33885),Qe=ge(75931),fe=ge(11592),Ee=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 we(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 ye=le[te.key],xe=le[te.children];warning(ye!=null,"Tree node must have a certain key: [".concat(Se).concat(ye,"]"));var Je=String(ye);warning(!ae.has(Je)||ye===null||ye===void 0,"Same 'key' exist in the Tree: ".concat(Je)),ae.set(Je,!0),oe(xe,"".concat(Se).concat(Je," > "))})}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,ye=le.children,xe=(0,Qe.Z)(le,Fe),Je=(0,Ne.Z)({key:Se},xe),ot=te(ye);return ot.length&&(Je.children=ot),Je}).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,ye=new Set(te===!0?[]:te),xe=[];function Je(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),Me=we(he[Se],ke),Ke,Bt=0;Bt<ie.length;Bt+=1){var Et=ie[Bt];if(he[Et]!==void 0){Ke=he[Et];break}}var yt=(0,Ne.Z)((0,Ne.Z)({},(0,Ee.Z)(he,[].concat((0,de.Z)(ie),[Se,le]))),{},{title:Ke,key:Me,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 xe.push(yt),te===!0||ye.has(Me)?yt.children=Je(he[le]||[],yt):yt.children=[],yt})}return Je(ee),xe}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,ye=ie.fieldNames,xe=be(ye),Je=xe.key,ot=xe.children,it=Se||ot,he;le?typeof le=="string"?he=function(Me){return Me[le]}:typeof le=="function"&&(he=function(Me){return le(Me)}):he=function(Me,Ke){return we(Me[Je],Ke)};function ze(ke,Me,Ke,Bt){var Et=ke?ke[it]:ee,yt=ke?Ge(Ke.pos,Me):"0",Ht=ke?[].concat((0,de.Z)(Bt),[ke]):[];if(ke){var Ce=he(ke,yt),Oe={node:ke,index:Me,pos:yt,key:Ce,parentPos:Ke.node?Ke.pos:null,level:Ke.level+1,nodes:Ht};te(Oe)}Et&&Et.forEach(function(Ze,Pt){ze(Ze,Pt,{node:ke,pos:yt,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,ye=te.fieldNames,xe=arguments.length>2?arguments[2]:void 0,Je=Se||xe,ot={},it={},he={posEntities:ot,keyEntities:it};return ae&&(he=ae(he)||he),E(ee,function(ze){var ke=ze.node,Me=ze.index,Ke=ze.pos,Bt=ze.key,Et=ze.parentPos,yt=ze.level,Ht=ze.nodes,Ce={node:ke,nodes:Ht,index:Me,key:Bt,pos:Ke,level:yt},Oe=we(Bt,Ke);ot[Ke]=Ce,it[Oe]=Ce,Ce.parent=ot[Et],Ce.parent&&(Ce.parent.children=Ce.parent.children||[],Ce.parent.children.push(Ce)),oe&&oe(Ce,he)},{externalGetKey:Je,childrenPropName:le,fieldNames:ye}),ie&&ie(he),he}function x(ee,te){var ae=te.expandedKeys,oe=te.selectedKeys,ie=te.loadedKeys,Se=te.loadingKeys,le=te.checkedKeys,ye=te.halfCheckedKeys,xe=te.dragOverNodeKey,Je=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:ye.indexOf(ee)!==-1,pos:String(it?it.pos:""),dragOver:xe===ee&&Je===0,dragOverGapTop:xe===ee&&Je===-1,dragOverGapBottom:xe===ee&&Je===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,ye=ee.halfChecked,xe=ee.dragOver,Je=ee.dragOverGapTop,ot=ee.dragOverGapBottom,it=ee.pos,he=ee.active,ze=ee.eventKey,ke=(0,Ne.Z)((0,Ne.Z)({},te),{},{expanded:ae,selected:oe,checked:ie,loaded:Se,loading:le,halfChecked:ye,dragOver:xe,dragOverGapTop:Je,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}}}]);