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

150 lines
411 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[5888],{26227:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},41464:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},61481:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},33853:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={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"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},12893:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},32134:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},38819:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ie}});var ne=oe(16378),Se=oe(59301),Ye={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"},Ne=Ye,ce=oe(7657),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le},93938:function(Oe,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Oe(ae,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Oe.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Oe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Oe.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Oe.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Oe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ae];x||(x=[],go.Shape._FigureParameters[ae]=x),x[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function Ye(ae,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(E-ee)/ie,Ce=E-se*b;ge=ae,me=se*ge+Ce}else if(ie===0){var Re=(a-x)/re,Pt=a-Re*ae;ge=b,me=Re*ge+Pt}else{var Re=(a-x)/re,se=(E-ee)/ie,Pt=a-Re*ae,Ce=E-se*b;ge=(Ce-Pt)/(Re-se),me=Re*ge+Pt}return te.x=ge,te.y=me,te}function Ne(ae,a,y,x,b,E,z,ee,te,re,ie,ge,me,se){var Ce=1-te,Re=te,Pt=ae*Ce+y*Re,zt=a*Ce+x*Re,kt=y*Ce+b*Re,Le=x*Ce+E*Re,Ae=b*Ce+z*Re,$e=E*Ce+ee*Re,Ve=Pt*Ce+kt*Re,it=zt*Ce+Le*Re,je=kt*Ce+Ae*Re,Xe=Le*Ce+$e*Re,qe=Ve*Ce+je*Re,pt=it*Ce+Xe*Re;re.x=Pt,re.y=zt,ie.x=Ve,ie.y=it,ge.x=qe,ge.y=pt,me.x=je,me.y=Xe,se.x=Ae,se.y=$e}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Oe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Oe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Oe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ie=[];function Ge(){var ae=Ie.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,Ie.push(ae)}function nt(ae){for(var a=Ge(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ae;z++)E=2*Math.PI/ae*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function _e(ae){var a=Te(ae),y=Ge();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return De(a),y}function Te(ae){for(var a=nt(ae),y=Ge(),x=Math.floor(a.length/2),b=a.length-1,E=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(x+z-1)%b],ie=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ye(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=nt(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var x=nt(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var x=nt(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var x=nt(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var x=nt(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var x=nt(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var x=nt(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var x=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var x=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var x=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var x=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var x=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var x=_e(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var x=_e(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var x=_e(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var x=_e(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var x=_e(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var x=_e(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Oe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Oe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,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,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Oe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=Fe,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var x=le/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var x=ae?ae.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),re=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Oe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Oe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,re,ie,ge,me,me);var se=ne(),Ce=ne(),Re=ne();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,me,me,Re,se,Ce);var Pt=ne(),zt=ne(),kt=ne();Ne(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Pt,zt,kt,me,me);var Le=ne(),Ae=ne(),$e=ne();return Ne(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,me,me,$e,Le,Ae),te.add(new go.PathSegment(go.PathSegment.Move,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,kt.x*a,kt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,Pt.x*a,Pt.y*y,zt.x*a,zt.y*y).close()),Se(re),Se(ie),Se(ge),Se(me),Se(se),Se(Ce),Se(Re),Se(Pt),Se(zt),Se(kt),Se(Le),Se(Ae),Se($e),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-E)*a,ee*y,!1);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,re,ie,ge);var Ce=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=le*.35;var Re=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var Pt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Pt),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(Ce),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z)),re.add(new go.PathSegment(go.PathSegment.Line,E,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ye(0,ee/y,1,ee/y,E/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z)),re.add(new go.PathSegment(go.PathSegment.Line,E,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ye(0,ee/y,1,ee/y,E/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Oe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ye(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ye(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ye(0,.5,.3,ee/y,0,E/y,1,E/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ye(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,E/y);var ge=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Oe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Ye(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Ye(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ye(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ye(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,le*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-le*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-le*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-le*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,le*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-le*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-le*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-le*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+le*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+le*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-le*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-le*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var x=new go.Geometry,b=.2,E=.1,z=le*b,ee=le*E,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+E)*y,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+E)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-E)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-E)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-E)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+E)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+E)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Oe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=le*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),re.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var 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,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(E-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Ce=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Re=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var Pt=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return x.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ne(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,E=.3,Ne(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ie),Se(ge),Se(me),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Ce=new go.PathFigure(te*a,(1-re)*y,!1);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Ce=ie*me,Re=ie*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ce+me)/2)*a,(te+(se+Re)/2)*y,(ee-me)*a,(te+Re)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Re)*y,(ee-Ce)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ce)*a,(te-se)*y,(ee+me)*a,(te-Re)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Re)*y,(ee+(Ce+me)/2)*a,(te+(se+Re)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Pt=new go.PathFigure(.2*a,y,!1);x.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return x.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Ce=new go.PathFigure((me-ie)*a,se*y,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Re=new go.PathFigure(0,y,!1);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var x=new go.Geometry,b=.3,E=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var re=new go.PathFigure(0,.7*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var x=new go.Geometry,b=8,E=b*le,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var x=new go.Geometry,b=15,E=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),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")},98598: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 Oe={},dt="5.0",oe={},ne=null,Se=!1,Ye=!1,Ne=null,ce=!1,Fe=null,le=null,Ie=0;Ie<arguments.length;Ie++){var Ge=arguments[Ie];if(Ge!==null)switch(typeof Ge){case"number":dt=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Ge:Ne=Ge;break;case"object":typeof Ge.is3D!="undefined"?ne=Ge:oe=Ge;break;case"boolean":Se=Ge,Ye=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Ye&&(Se=!0)),Ne!==null&&oe.id===void 0&&(oe.id=Ne);var De="",nt="",_e=!1,Te=null,ae=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};Oe.setHTML5Codebase=function(Pe,Be){le=Pe,Xe(Pe,Be)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(Pe,Be){var Ke=parseFloat(Pe);if(Ke!==NaN&&Ke<5){console.log("The GeoGebra HTML5 codebase version "+Ke+" is deprecated. Using version latest instead.");return}Fe=Pe,je(Pe,Be)},Oe.getHTML5CodebaseVersion=function(){return ae},Oe.getParameters=function(){return oe},Oe.setFontsCSSURL=function(Pe){z=Pe},Oe.setGiacJSURL=function(Pe){},Oe.setJNLPFile=function(Pe){De=Pe},Oe.setJNLPBaseDir=function(Pe){},Oe.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",Ke=oe.id,ut,Ue=!1,tt=0;tt<arguments.length;tt++){var de=arguments[tt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=de:Ke=arguments[tt]):typeof de=="boolean"?Ue=de:de instanceof HTMLElement&&(ut=de)}Je();function Je(){if(!ce){setTimeout(Je,200);return}Be=Ve(Be);var ct=ut||document.getElementById(Ke);if(!ct){console.log("possibly bug on ajax loading? ");return}if(Oe.removeExistingApplet(ct,!1),oe.width===void 0&&ct.clientWidth&&(oe.width=ct.clientWidth),oe.height===void 0&&ct.clientHeight&&(oe.height=ct.clientHeight),!(oe.width&&oe.height)&&Be==="html5"&&(delete oe.width,delete oe.height),Te=Be,Be==="screenshot")zt(ct,oe);else{var Ot=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Ot=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Ot=(!re()||Pe())&&ie()),Ot?(Te="screenshot",Le(ct,oe,Ue,Be)):Pt(ct,oe,Ue)}}};function re(){try{return window.self!==window.top}catch(Pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Oe.getViews=function(){return ne},Oe.isJavaInstalled=function(){return!1};var ge=function(Pe){var Be=function(tt){var de=JSON.parse(tt),Je=function(wt){return wt.type=="G"||wt.type=="E"},ct=de.elements?de.elements.filter(Je)[0]:de;if(!ct||!ct.url){Ke();return}oe.fileName=ct.url,me(ct.settings||{}),ne.is3D=!0;var Ot="https://www.geogebra.org/images/";Oe.setPreviewImage(x||ct.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),Pe()},Ke=function(){oe.onError&&oe.onError(),qe("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ut=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+oe.material_id+"?scope=basic";se("https://"+ut+"/api/proxy.php?path="+encodeURIComponent(Ue),Be,Ke)};function me(Pe){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ke){Pe[Ke]=!!Pe[Ke]}),Be.forEach(function(Ke){oe[Ke]===void 0&&Pe[Ke]!==void 0&&(oe[Ke]=Pe[Ke])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(Pe,Be,Ke){var ut=new XMLHttpRequest;ut.open("GET",Pe),ut.onload=function(){Be(ut.responseText)},ut.onerror=Ke,ut.send()}Oe.isHTML5Installed=function(){return!0},Oe.getLoadedAppletType=function(){return Te},Oe.setPreviewImage=function(Pe,Be,Ke){x=Pe,b=Be,E=Ke},Oe.removeExistingApplet=function(Pe,Be){var Ke;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),Te=null;var ut=null;for(Ke=0;Ke<Pe.childNodes.length;Ke++){var Ue=Pe.childNodes[Ke],tt=Ue.className;tt==="applet_screenshot"?Be?(Ue.style.display="block",Te="screenshot"):Ue.style.display="none":tt!=="applet_scaler prerender"&&(Pe.removeChild(Ue),ut=tt&&tt.indexOf("appletParameters")!=-1?Ue.id:null,Ke--)}var de=oe.id!==void 0?oe.id:ut,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},Oe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=Oe.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var Pe=Oe.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},Oe.stopAnimation=function(){var Pe=Oe.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var Pe=oe.id!==void 0?oe.id:"ggbApplet";return window[Pe]},Oe.resize=function(){};var Ce=function(Pe,Be,Ke){var ut=document.createElement("param");ut.setAttribute("name",Be),ut.setAttribute("value",Ke),Pe.appendChild(ut)},Re=function(Pe){return Pe&&Pe!=="false"},Pt=function(Pe,Be,Ke){te(ae)<=4.2&&(Ke=!0);var ut=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ut=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var tt=Be.width,de=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(te(ae)<=4.4)Re(Be.showToolBar)&&(Be.height-=7),Re(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&Re(Be.showToolBar)&&(Be.width=605,tt=605);else{var Je=100;(Re(Be.showToolBar)||Re(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),Je=Re(Be.showMenuBar)?245:155),tt<Je&&(Be.width=Je,tt=Je)}Ue.style.border="none",Ue.style.display="inline-block";for(var ct in Be)Be.hasOwnProperty(ct)&&ct!=="appletOnLoad"&&Ue.setAttribute("data-param-"+ct,Be[ct]);z&&Ue.setAttribute("data-param-fontscssurl",z),Oe.resize=function(){GGBAppletUtils.responsiveResize(Pe,Be)},window.addEventListener("resize",function(Ct){Oe.resize()});var Ot=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!Ke&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var wt=Pe.querySelector(".applet_scaler.prerender"),we=wt!==null;if(we)var ve=wt.querySelector(".ggb_preview");else{var ve=$e(tt,de,Be.borderColor,!1);wt=document.createElement("div"),wt.className="applet_scaler",wt.style.position="relative",wt.style.display="block",wt.style.width=tt+"px",wt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(wt,"66%"),te(ae)>=5?(Be.appletOnLoad=function(Ct){var yt=Pe.querySelector(".ggb_preview");yt&&yt.parentNode.removeChild(yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(wt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Ct)},we||wt.appendChild(ve)):Ue.appendChild(ve),wt.appendChild(Ue),we||Pe.appendChild(wt),setTimeout(function(){Oe.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Ue),Pe.appendChild(fe),Be.appletOnLoad=function(Ct){Oe.resize(),Ot(Ct)}}function ke(Ct,yt){yt&&typeof yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ct,yt.appletOnLoad):renderGGBElement(Ct),qe("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yt)}function He(Ct,yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ct,params:yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bt){ke(bt.article,bt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Ct.className+=" geogebraweb")):ke(Ct,yt)}if(ut){scriptLoadStarted=!0;for(var mt=0;mt<Ue.childNodes.length;mt++){var Et=Ue.childNodes[mt].tagName;Et==="TABLE"&&(Ue.removeChild(Ue.childNodes[mt]),mt--)}if(ggbHTML5LoadedScript!==null){var Ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ft!=null&&Ft.parentNode.removeChild(Ft)}var Mt=document.createElement("script"),_t=function(){He(Ue,Be)};Mt.src=nt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Mt.src,qe("GeoGebra HTML5 codebase loaded: '"+nt+"'.",Be),!le&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),_t()):nt.requirejs?__webpack_require__.e(7374).then(function(){var Ct=[__webpack_require__(97374)];_t.apply(null,Ct)}.bind(this)).catch(__webpack_require__.oe):(Mt.onload=_t,Pe.appendChild(Mt))}else He(Ue,Be);Be.height=de,Be.width=tt},zt=function(Pe,Be,Ke){var ut=$e(Be.width,Be.height,Be.borderColor,Ke),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Be.width+"px",Ue.style.height=Be.height+"px",Ue.className="applet_screenshot applet_scaler"+(Ke?" applet_screenshot_play":""),Ue.appendChild(ut);var tt=GGBAppletUtils.getScale(Be,Pe,Ke);Ke?(Pe.appendChild(Ae()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),Pe.appendChild(Ue),tt!==1&&!isNaN(tt)&&(GGBAppletUtils.scaleElement(Ue,tt),Ue.style.width=Be.width+"px",Ue.style.height=Be.height+"px",Ue.parentNode.style.width=Be.width*tt+"px",Ue.parentNode.style.height=Be.height*tt+"px"),Oe.resize=function(){kt(Pe,ut,Ue,Ke)},window.addEventListener("resize",function(de){Oe.resize()}),Oe.resize()};function kt(Pe,Be,Ke,ut){if(Pe.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var Ue=GGBAppletUtils.getScale(oe,Pe,ut);Ke.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(Ke,Ue),Ke.parentNode.style.width=oe.width*Ue+"px",Ke.parentNode.style.height=oe.height*Ue+"px"):(GGBAppletUtils.scaleElement(Ke,1),Ke.parentNode.style.width=oe.width+"px",Ke.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Oe.onExitFullscreen=function(Pe,Be){Be.appendChild(Pe)};var Le=function(Pe,Be,Ke,ut){zt(Pe,Be,!0);for(var Ue=function(){var Je=[];for(de=0;de<Pe.childNodes.length;de++)Je.push(Pe.childNodes[de]);if(window.GGBT_wsf_view){var ct=window.GGBT_wsf_view.renderFullScreen(Pe,Be.id),Ot=document.getElementById("fullscreencontainer"),wt=jQuery(Pe).find(".fullscreencontent");wt.length>0?(ct.remove(),wt.attr("id","fullscreencontent").show(),jQuery(Ot).append(wt),window.dispatchEvent(new Event("resize"))):Pt(ct,Be,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else Te=ut,Pt(Pe,Be,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)Pe.removeChild(Je[de])},tt=Pe.getElementsByClassName("ggb_preview_play"),de=0;de<tt.length;de++)tt[de].addEventListener("click",Ue,!1),tt[de].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ae=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Be='.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");}',Ke=document.createElement("style");Ke.styleSheet?Ke.styleSheet.cssText=Be:Ke.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(Ke)}return Pe},$e=function(Pe,Be,Ke,ut){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=Pe-2+"px",Ue.style.height=Be-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var tt="lightgrey";Ke!==void 0&&(Ke==="none"?tt="transparent":tt=Ke),Ue.style.border="1px solid "+tt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var Je,ct,Ot;if(!ut){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,ct=360,ct>Pe/4*3&&(ct=Pe/4*3),Ot=ct/5.8,Je.setAttribute("src",b),Je.setAttribute("width",ct),Je.setAttribute("height",Ot);var wt=(Pe-ct)/2,we=(Be-Ot)/2;Je.style.left=wt+"px",Je.style.top=we+"px",Ue.appendChild(Je)}}return Ue.appendChild(de),Ue},Ve=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(Pe,Be){if(ae=Pe,Be){Xe(ae,!0);return}var Ke=!Se;if(Ke){var ut=te(ae);!isNaN(ut)&&ut<4.4&&(Ke=!1)}var Ue,tt;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var de=ae.indexOf("//");de>0?tt=ae:de===0?tt=Ue+ae:tt="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in it)if(ae.slice(it[Je].length*-1)===it[Je]||ae.slice((it[Je].length+1)*-1)===it[Je]+"/"){Xe(tt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ke&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Re(oe.showToolBar)&&!Re(oe.showMenuBar)&&!Re(oe.showAlgebraInput)&&!Re(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?tt+="webSimple/":tt+="web3d/",Xe(tt,!1)},Xe=function(Pe,Be){if(Pe.requirejs){nt=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),nt=Pe,Be===null&&(Be=Pe.indexOf("http")===-1),_e=Be,a="web.nocache.js",y=!1;var Ke=nt.split("/");Ke.length>1&&(!Be&&Ke[Ke.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Ke[Ke.length-2])>=0&&(a=Ke[Ke.length-2]+".nocache.js")),Ke=Pe.split("/"),ae=Ke[Ke.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var ut=parseFloat(ae);ut!==NaN&&ut<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead."),je("5.0",Be))},qe=function(Pe,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(Pe)};oe.material_id!==void 0?ge(pt):pt();function pt(){var Pe=dt;Fe!==null?Pe=Fe:parseFloat(Pe)<5&&(Pe="5.0"),je(Pe,!1),le!==null&&Xe(le,_e),ce=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function dt(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function oe(ce,Fe,le,Ie,Ge,De){var nt=null;if(De!=null&&De!="")for(var _e=ce.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+De+" ")>-1){nt=_e;break}else _e=_e.parentNode;var Te=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(nt)Te=nt.offsetWidth,ae=Math.max(Ie?nt.offsetWidth:0,nt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Te&&(Ge===void 0||!Ge)&&(document.dir==="rtl"?(x=Te-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((le===void 0||!le)&&Fe>0&&Fe+y<Te?Te=Fe:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=E)),{width:Te,height:ae}}function ne(ce,Fe,le,Ie,Ge){if(ce.isScreenshoGenerator)return 1;var De=Ie!==void 0&&Ie,nt=ce.noScaleMargin!=null&&ce.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},Te=_e(ce.autoHeight),ae=oe(Fe,ce.width,le,Te,De&&window.GGBT_wsf_view||nt,Ge),a=parseInt(ae.width),y=ce.width,x=ce.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=De?1:ae.height/x;return le!==void 0&&!le&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Se(ce,Fe,le){var Ie=1,Ge,De=!1;if(ce.hasOwnProperty("allowUpscale")&&(De=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ie=parseFloat(ce.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(De=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ge=ne(ce,Fe,De,le,ce.scaleContainerClass);else return Ie;return De&&(!ce.hasOwnProperty("scale")||Ie===1)?Ge:Math.min(Ie,Ge)}function Ye(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=ce.getBoundingClientRect(),Ge=(Fe-Ie.width)/2,De=(le-Ie.height)/2;De<0&&(De=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?ce.style.left="40px":ce.style.left=Ge+"px",ce.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?ce.style.top="40px":ce.style.top=De+"px",ce.style.left=Ge+"px")}function Ne(ce,Fe){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Ie=Se(Fe,ce);Oe()&&le.setAttribute("data-param-scale",Ie);for(var Ge=null,De=0;De<ce.childNodes.length;De++)if(ce.childNodes[De].className!==void 0&&ce.childNodes[De].className.match(/^applet_scaler/)){Ge=ce.childNodes[De];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var nt=Fe.id!==void 0?Fe.id:"ggbApplet",_e=window[nt];(_e==null||!_e.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(Ge.parentNode.style.width=Fe.width*Ie+"px",Ge.parentNode.style.height=Fe.height*Ie+"px",dt(Ge,Ie)):(dt(Ge,1),Ge.parentNode.style.width=Fe.width+"px",Ge.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ye(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Oe,positionCenter:Ye,getScale:Se,scaleElement:dt}}();__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 Oe=n.location.search;return Oe.indexOf(J)!=-1||Oe.indexOf(K)!=-1}function q(Oe,dt){}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(Oe){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=Oe[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var Ye=ne[Se];oe[Ye[O]]=Ye[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Oe=o.createElement(Q);if(Oe.id=L,Oe.style.cssText=R+S,Oe.tabIndex=-1,o.body.appendChild(Oe),t=Oe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Oe){function dt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ye=Se();if(Ye){ne();return}function Ne(){if(!Ye){if(!Se())return;Ye=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var ce=setInterval(function(){Ne()},$)}function oe(ne){var Se=u(),Ye=Se.body,Ne=Se.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ne,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ye.appendChild(Ne)}dt(function(){oe(Oe)})}webModule.__startLoadingFragment=function(Oe){return C(Oe)},webModule.__installRunAsyncCode=function(Oe){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=Oe,oe.appendChild(ne),oe.removeChild(ne)};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(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var dt=c[Oe];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Oe(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var Ie=ce.lastIndexOf(tb,Math.min(le,Fe));return Ie>=O?ce.substring(O,Ie+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Oe(Fe.src)}return ce}function oe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),Fe=O;Fe<ce.length;++Fe)if(ce[Fe].src.indexOf(xb)!=-1)return Oe(ce[Fe].src);return W}function Se(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ye(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ne=oe();return Ne==W&&(Ne=ne()),Ne==W&&(Ne=Se()),Ne==W&&Ye()&&(Ne=Oe(o.location.href)),Ne=dt(Ne),Ne}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],dt=O,oe=[],ne=[];function Se(ce){var Fe=ne[ce](),le=oe[ce];if(Fe in le)return Fe;var Ie=[];for(var Ge in le)Ie[le[Ge]]=Ge;throw r&&r(ce,Ie,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in oe[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(ce[Fe]=Se(Fe));return ce},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ye;try{Ye=Cb;var Ne=Ye.indexOf(Db);Ne!=-1&&(dt=parseInt(Ye.substring(Ne+P),$),Ye=Ye.substring(O,Ne))}catch(ce){}return webModule.__softPermutationId=dt,C(Ye+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})()},58788:function(Oe,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ne},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ye},f1:function(){return Se}});var ne=oe(10148);function Se(Ie){let Ge=!0;if(Ie.length>0){for(let De=0;De<Ie.length;De++)if(Ie[De].compile_success==0||!Ie[De].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function Ye(Ie,Ge=""){let De=[];for(let nt=0;nt<Ie.length;nt++){let _e=Ie[nt],Te=Ge?`${Ge}/${_e.name}`:`${_e.name}`;De.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:Te})}return De}function Ne(Ie,Ge,De){for(let nt=0;nt<Ie.length;nt++){let _e=Ie[nt];if(_e.key===Ge){_e.children=De;break}_e.children&&Ne(_e.children,Ge,De)}return Ie}function ce(Ie,Ge,De){let nt;return function(){let _e=this,Te=arguments,ae=function(){nt=null,De||Ie.apply(_e,Te)},a=De&&!nt;clearTimeout(nt),nt=setTimeout(ae,Ge),a&&Ie.apply(_e,Te)}}const Fe=!0,le=ne.Z.API_SERVER},10437:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return kt}});var ne=oe(59301),Se=oe(42203),Ye=oe(24905),Ne=oe(12893),ce=oe(32134),Fe=oe(70635),le=oe(78241),Ie=oe(57809),Ge={},De=Object.defineProperty,nt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ae=(Le,Ae,$e)=>Ae in Le?De(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[Ae]=$e,a=(Le,Ae)=>{for(var $e in Ae||(Ae={}))_e.call(Ae,$e)&&ae(Le,$e,Ae[$e]);if(nt)for(var $e of nt(Ae))Te.call(Ae,$e)&&ae(Le,$e,Ae[$e]);return Le},y=(Le,Ae,$e)=>new Promise((Ve,it)=>{var je=pt=>{try{qe($e.next(pt))}catch(Pe){it(Pe)}},Xe=pt=>{try{qe($e.throw(pt))}catch(Pe){it(Pe)}},qe=pt=>pt.done?Ve(pt.value):Promise.resolve(pt.value).then(je,Xe);qe(($e=$e.apply(Le,Ae)).next())});const x=Ye.default.Group,b=({classroomList:Le,loading:Ae,user:$e,exercise_id:Ve=null,homework_common_id:it=null,setitem:je,item:Xe,type:qe,rz:pt,dispatch:Pe})=>{var Be,Ke,ut,Ue,tt,de,Je,ct;const[Ot,wt]=(0,ne.useState)([]);let[we,ve]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const fe=(0,Se.useParams)(),[ke,He]=(0,ne.useState)(!1),[mt,Et]=(0,ne.useState)(!1),[Ft]=le.default.useForm();(0,ne.useEffect)(()=>{pt&&(we.zydatas=pt,ve(a({},we)),Xe!=null&&Xe.ec_course_id&&Mt())},[Xe,pt]);function Mt(){return y(this,null,function*(){console.log("----",Xe),yield _t(Xe==null?void 0:Xe.ec_major_school_id),yield Ct(Xe==null?void 0:Xe.ec_year_id),yield yt(Xe==null?void 0:Xe.ec_course_id),Ft.setFieldsValue({ec_course_id:Xe==null?void 0:Xe.ec_course_id,ec_major_school_id:Xe==null?void 0:Xe.ec_major_school_id,ec_point_ids:Xe==null?void 0:Xe.ec_point_ids,ec_year_id:Xe==null?void 0:Xe.ec_year_id})})}function _t(bt){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_major_schools/${bt}/ec_years/get_year_list.json`,{method:"get"});we.jbdatas=Wt==null?void 0:Wt.data,ve(a({},we)),Ft.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ct(bt){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_years/${bt}/ec_courses/get_courses.json`,{method:"get"});we.kcdatas=Wt==null?void 0:Wt.data,ve(a({},we)),Ft.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const yt=bt=>y(void 0,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_courses/${bt}/ec_points.json`,{method:"get",params:{ec_course_id:bt}});we.zsdatas=Wt==null?void 0:Wt.data,ve(a({},we))});return ne.createElement("div",{className:Ge.from},ne.createElement(le.default,{form:Ft,layout:"inline",onValuesChange:bt=>{console.log("----",bt),bt.ec_major_school_id&&(we.jbdatas=[],we.kcdatas=[],we.zsdatas=[],ve(a({},we)),_t(bt.ec_major_school_id)),bt.ec_year_id&&(we.kcdatas=[],we.zsdatas=[],ve(a({},we)),Ct(bt.ec_year_id)),bt.ec_course_id&&(we.zsdatas=[],ve(a({},we)),yt(bt.ec_course_id))},onFinish:bt=>y(void 0,null,function*(){je(bt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(Ie.default,{style:{width:150},disabled:((Be=we.zydatas)==null?void 0:Be.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ke=we==null?void 0:we.zydatas)==null?void 0:Ke.map((bt,Wt)=>ne.createElement(Ie.default.Option,{key:Wt,value:bt==null?void 0:bt.ec_major_school_id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(Ie.default,{style:{width:150},disabled:((ut=we.jbdatas)==null?void 0:ut.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ue=we==null?void 0:we.jbdatas)==null?void 0:Ue.map((bt,Wt)=>ne.createElement(Ie.default.Option,{key:Wt,value:bt==null?void 0:bt.ec_year_id},bt==null?void 0:bt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(Ie.default,{style:{width:150},disabled:((tt=we.kcdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=we==null?void 0:we.kcdatas)==null?void 0:de.map((bt,Wt)=>ne.createElement(Ie.default.Option,{key:Wt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(Ie.default,{onChange:()=>{Ft.submit()},style:{width:150},mode:"multiple",disabled:((Je=we.zsdatas)==null?void 0:Je.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ct=we==null?void 0:we.zsdatas)==null?void 0:ct.map((bt,Wt)=>ne.createElement(Ie.default.Option,{key:Wt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name))))))};var E=(0,Se.connect)(({classroomList:Le,loading:Ae,globalSetting:$e,user:Ve})=>({classroomList:Le,globalSetting:$e,loading:Ae.effects,user:Ve}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Le,Ae,$e)=>Ae in Le?z(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[Ae]=$e,se=(Le,Ae)=>{for(var $e in Ae||(Ae={}))ie.call(Ae,$e)&&me(Le,$e,Ae[$e]);if(re)for(var $e of re(Ae))ge.call(Ae,$e)&&me(Le,$e,Ae[$e]);return Le},Ce=(Le,Ae)=>ee(Le,te(Ae)),Re=(Le,Ae,$e)=>new Promise((Ve,it)=>{var je=pt=>{try{qe($e.next(pt))}catch(Pe){it(Pe)}},Xe=pt=>{try{qe($e.throw(pt))}catch(Pe){it(Pe)}},qe=pt=>pt.done?Ve(pt.value):Promise.resolve(pt.value).then(je,Xe);qe(($e=$e.apply(Le,Ae)).next())});const Pt=Ye.default.Group,zt=({classroomList:Le,loading:Ae,user:$e,exercise_id:Ve=null,homework_common_id:it=null,setitem:je,type:Xe,dispatch:qe})=>{var pt,Pe;let[Be,Ke]=(0,ne.useState)([{}]),[ut,Ue]=(0,ne.useState)([]);function tt(){return Re(this,null,function*(){var Je,ct,Ot;let wt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Ve,homework_common_id:it}});if(((Je=wt==null?void 0:wt.data)==null?void 0:Je.length)>0){let we=[];(ct=wt==null?void 0:wt.data)==null||ct.map(ve=>{var fe;(fe=ve==null?void 0:ve.ec_point_ids)==null||fe.map(ke=>{we.push(ke)})}),je(Ce(se({},(Ot=wt==null?void 0:wt.data)==null?void 0:Ot[0]),{ec_point_ids:we})),Ke(wt==null?void 0:wt.data)}})}(0,ne.useEffect)(()=>{var Je,ct;(ct=(Je=$e==null?void 0:$e.userInfo)==null?void 0:Je.course)!=null&&ct.course_school_id&&de()},[(Pe=(pt=$e==null?void 0:$e.userInfo)==null?void 0:pt.course)==null?void 0:Pe.course_school_id]);function de(){return Re(this,null,function*(){var Je,ct;const Ot=yield(0,Fe.ZP)(`/api/schools/${(ct=(Je=$e==null?void 0:$e.userInfo)==null?void 0:Je.course)==null?void 0:ct.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ue(Ot==null?void 0:Ot.data),(it||Ve)&&tt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Be==null?void 0:Be.map((Je,ct)=>ne.createElement("div",{key:ct,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(E,{rz:ut,item:Je,type:ct,setitem:Ot=>{Be.splice(ct,1,Ot),Ke([...Be]);let wt=[];Be==null||Be.map(we=>{var ve;(ve=we==null?void 0:we.ec_point_ids)==null||ve.map(fe=>{wt.push(fe)})}),je(Ce(se({},Ot),{ec_point_ids:wt}))}}),ct!=0&&ne.createElement(Ne.Z,{onClick:()=>{Be.splice(ct,1),Ke([...Be])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ce.Z,{onClick:()=>{Be.push({}),Ke([...Be])},style:{marginLeft:10,fontSize:"20px"}}))))};var kt=(0,Se.connect)(({classroomList:Le,loading:Ae,globalSetting:$e,user:Ve})=>({classroomList:Le,globalSetting:$e,loading:Ae.effects,user:Ve}))(zt)},12963:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ye=oe(92310),Ne=oe.n(Ye),ce=oe(71418),Fe=oe(2859),le=oe(70635),Ie=oe(58130),Ge=(_e,Te,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(_e,Te)).next())}),nt=({data:_e,className:Te,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[_e==null?void 0:_e.visible]);const Ce=()=>Ge(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,Ie.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=Le,z.current.onload=function(){kt()},ge(!1),se("")}),Re=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Pt=Le=>Ge(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ae=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:Le.dataUrl}});Ae!=null&&Ae.id&&!E?(yield(0,le.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ae==null?void 0:Ae.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Ae!=null&&Ae.id&&x(Ae),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),zt=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach($e=>{const Ve=document.querySelector($e.name);Ve&&Ve.setAttribute("title",$e.title)})},kt=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",Pt),ee.current.addEventListener("beforeclose",Re),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return ne.createElement(ne.Fragment,null,(_e==null?void 0:_e.visible)&&ne.createElement(ce.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ne()(Se.imageDimensions,Te,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},75890:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ye=oe(43604),Ne=oe(99313),ce=oe(3113),Fe=oe(25711),le=oe(93938),Ie=oe(48136),Ge=oe(59301);const De=(0,ne.forwardRef)(({callback:nt,showSaveButton:_e,value:Te=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ge.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ge.createElement(Ye.Z,{flex:"110px",className:le.Z.item},Ge.createElement("div",null,Ge.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Ge.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ge.createElement("div",{key:ie},Ge.createElement("h1",null,re.name),Ge.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>Ge.createElement(Ye.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Ge.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ge.createElement(Ye.Z,{flex:"110px",className:le.Z.item},Ge.createElement("div",null,Ge.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ge.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ge.createElement("div",{key:ie},re.name&&Ge.createElement("h1",null,re.name),Ge.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>Ge.createElement(Ye.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Ge.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return nt&&nt(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ge.createElement("div",{className:le.Z.mathWrap},Ge.createElement(Ne.default,{defaultActiveKey:"1",items:E}),Ge.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Te||""),_e&&Ge.createElement("div",{className:le.Z.button},Ge.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=De},57203:function(Oe,dt,oe){"use strict";oe.d(dt,{z:function(){return Ve},Z:function(){return it}});var ne=oe(59301),Se=oe(54580),Ye=oe(8591),Ne=oe(43418),ce=oe(3113),Fe=oe(10148),le=oe(76904),Ie=Object.defineProperty,Ge=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,_e=(je,Xe,qe)=>Xe in je?Ie(je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):je[Xe]=qe,Te=(je,Xe)=>{for(var qe in Xe||(Xe={}))De.call(Xe,qe)&&_e(je,qe,Xe[qe]);if(Ge)for(var qe of Ge(Xe))nt.call(Xe,qe)&&_e(je,qe,Xe[qe]);return je},ae=(je,Xe,qe)=>new Promise((pt,Pe)=>{var Be=Ue=>{try{ut(qe.next(Ue))}catch(tt){Pe(tt)}},Ke=Ue=>{try{ut(qe.throw(Ue))}catch(tt){Pe(tt)}},ut=Ue=>Ue.done?pt(Ue.value):Promise.resolve(Ue.value).then(Be,Ke);ut((qe=qe.apply(je,Xe)).next())});const a="\u3000\u3000";function y(je){var Xe=["Bytes","KB","MB","GB","TB"];if(je==0)return"0 Byte";var qe=parseInt(""+Math.floor(Math.log(je)/Math.log(1024)),10);return(je/Math.pow(1024,qe)).toFixed(1)+" "+Xe[qe]}var x=({value:je=[],action:Xe,onChange:qe,className:pt,maxSize:Pe=150,title:Be="\u6587\u4EF6\u4E0A\u4F20",accept:Ke=null})=>{const ut={multiple:!1,fileList:je,accept:Ke,withCredentials:!0,beforeUpload:tt=>tt.size/1024/1024<Pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Pe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(tt){var de,Je,ct,Ot;let wt=[...tt.fileList];if(wt=wt.map(we=>(we.name.indexOf(a)===-1&&(we.name=`${we.name}${a}${y(we.size)}`),Te({},we))),tt.file.status==="done"&&((Je=(de=tt.file)==null?void 0:de.response)==null?void 0:Je.status)===-1){message.error((Ot=(ct=tt.file)==null?void 0:ct.response)==null?void 0:Ot.message),qe([]);return}qe(wt)},onRemove:tt=>ae(void 0,null,function*(){const de=tt.size/1024/1024;return tt.status==="uploading"?!0:de<Pe&&(tt.response?tt.response.id:tt.uid)?yield removeAttachment(tt.response?tt.response.id:tt.id):!0})};function Ue(tt){tt.preventDefault(),tt.stopPropagation()}return React.createElement("div",{className:`single-upload ${pt||""}`},React.createElement(Upload,Te({},ut),React.createElement(Button,{type:"primary",title:je.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:je.length>0,ghost:!0},Be),React.createElement("span",{onClick:Ue,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Pe,"M)"," ")))},b=oe(61481),E=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(je,Xe,qe)=>Xe in je?z(je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):je[Xe]=qe,ge=(je,Xe)=>{for(var qe in Xe||(Xe={}))te.call(Xe,qe)&&ie(je,qe,Xe[qe]);if(ee)for(var qe of ee(Xe))re.call(Xe,qe)&&ie(je,qe,Xe[qe]);return je};const me=je=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ce=Object.defineProperty,Re=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,kt=(je,Xe,qe)=>Xe in je?Ce(je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):je[Xe]=qe,Le=(je,Xe)=>{for(var qe in Xe||(Xe={}))Pt.call(Xe,qe)&&kt(je,qe,Xe[qe]);if(Re)for(var qe of Re(Xe))zt.call(Xe,qe)&&kt(je,qe,Xe[qe]);return je},Ae=(je,Xe,qe)=>new Promise((pt,Pe)=>{var Be=Ue=>{try{ut(qe.next(Ue))}catch(tt){Pe(tt)}},Ke=Ue=>{try{ut(qe.throw(Ue))}catch(tt){Pe(tt)}},ut=Ue=>Ue.done?pt(Ue.value):Promise.resolve(Ue.value).then(Be,Ke);ut((qe=qe.apply(je,Xe)).next())});const{Dragger:$e}=Se.default;function Ve(je){let Xe=[];return je&&je.length>0&&(Xe=je.map(qe=>({uid:qe.id,id:qe.id,name:qe.title+a+qe.filesize,url:qe.url,filesize:qe.filesize,status:"done",response:{id:qe.id}}))),Xe}var it=({value:je,onChange:Xe,action:qe,data:pt,className:Pe,maxSize:Be=150,title:Ke="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ut=!1,accept:Ue="",additionalText:tt,isDragger:de,number:Je=1e3,aloneClear:ct=!1,realTimeRemove:Ot=!0,uploadText:wt,setFileProgress:we,showFileProgress:ve})=>{const[fe,ke]=(0,ne.useState)(!1);let[He,mt]=(0,ne.useState)(je||[]),[Et,Ft]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{je&&(Et===1&&mt([...je]),Ft(2),Je===(je==null?void 0:je.length)&&ke(!0))},[je]);const Mt=()=>{setTimeout(()=>{He.pop(),mt([...He])},500)};ve&&we(He.some(yt=>yt.status==="uploading"));const _t={multiple:!0,disabled:fe,accept:Ue,withCredentials:!0,fileList:He,beforeUpload:(yt,bt)=>{const Wt=yt.size/1024/1024;return He.concat(bt).length>Je?(He.pop(),mt([...He]),Ye.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Je}\u4E2A\u6587\u4EF6`),ct?Promise.reject():(Mt(),!1)):Wt<Be?!0:(Ye.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB).`),ct?Promise.reject():(Mt(),!1))},data:pt,action:qe||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(yt){var bt,Wt,mn,qt;if(yt.file.status==="removed"?He=yt.fileList:He=(0,E.uniqBy)([...yt.fileList,...He],"uid"),yt.file.status==="done"&&((Wt=(bt=yt.file)==null?void 0:bt.response)==null?void 0:Wt.status)===-1){Ye.ZP.error((qt=(mn=yt.file)==null?void 0:mn.response)==null?void 0:qt.message);return}He.length>=Je?ke(!0):ke(!1),mt([...He]),He=He.map(Ut=>{var pe,Ee;return(pe=Ut==null?void 0:Ut.response)!=null&&pe.id&&(Ut.url=(Ee=Ut==null?void 0:Ut.response)==null?void 0:Ee.url),Ut.name.indexOf(a)===-1&&(Ut.name=`${Ut.name}${a}${y(Ut.size)}`),Le({},Ut)}),console.log("info:",yt,He),Xe(He)},onRemove:yt=>Ae(void 0,null,function*(){if(!Ot)return!0;const bt=()=>Ae(void 0,null,function*(){if(yt.response?yt.response.id:yt.id){let mn=yield(0,le.JZ)(yt.response?yt.response.id:yt.uid);return Promise.resolve(mn)}else return!0});return ut?new Promise((Wt,mn)=>{Ne.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ae(void 0,null,function*(){const qt=yield bt();Ye.ZP.success("\u5220\u9664\u6210\u529F"),Wt(!0)}),onCancel:()=>Wt(!1)})}):yield bt()})};function Ct(yt){yt.preventDefault(),yt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Pe||""}`},de&&ne.createElement($e,Le({},_t),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Be,"MB)"," "),tt),!de&&ne.createElement(Se.default,Le({},_t),ne.createElement(ce.ZP,{disabled:fe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Ke),ne.createElement("span",{onClick:Ct,className:"upload_text"},wt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Be}MB)`)))}},1568:function(Oe,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ye=oe(78241),Ne=oe(3113),ce=oe(89780),Fe=oe.n(ce),le=oe(79906),Ie=oe(44383),Ge=Object.defineProperty,De=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Ge(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Te.call(re,ie)&&a(te,ie,re[ie]);if(_e)for(var ie of _e(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},x=(te,re)=>De(te,nt(re));const b=Se.default.Option,E={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"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(Ce){ge(z[Ce][1])}function se(Ce){te(Ce)}return ne.createElement(Ye.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:me},Object.keys(z).map(Ce=>ne.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ne.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ne.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const me=(0,ne.useRef)(),[se,Ce]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Re=function(Pt){const zt=Pt.getValue();re&&re(zt)};return se.on("change",Re),()=>{se.off("change",Re)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(me.current&&!se){const Re=Fe().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ce(Re)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},23469:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),Ye=oe.n(Se),Ne=oe(76374),ce=oe(79906),Fe=oe(6313),le=oe(25717),Ie=oe(99498),Ge=oe(25419),De=oe(67549),nt=oe(25711),_e=({value:ye="",className:be,showTextOnly:he,showLines:lt,style:Nt={}})=>{const Bt=(0,ne.useMemo)(()=>"",[ye]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},Te=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ye,be,he)=>be in ye?ae(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:he}):ye[be]=he,ee=(ye,be)=>{for(var he in be||(be={}))b.call(be,he)&&z(ye,he,be[he]);if(x)for(var he of x(be))E.call(be,he)&&z(ye,he,be[he]);return ye},te=(ye,be)=>a(ye,y(be));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:ye,title:be,icon:he,actionName:lt,className:Nt="",children:Bt}){function ln(){ye(lt)}return Te.createElement("a",{title:be,className:Nt,onClick:ln},Te.createElement("i",{className:`${he}`}),Bt)}var ge=({watch:ye,showNullButton:be,showNullProgramButton:he,onActionCallback:lt,fullScreen:Nt,insertTemp:Bt,hidetoolBar:ln,extraUse:Zt})=>{const en=[...re,{title:`${ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ye?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Te.createElement("ul",{className:"markdown-toolbar-container"},!ln&&en.map((Ln,_n)=>Te.createElement("li",{key:_n},Ln.actionName?Te.createElement(ie,te(ee({},Ln),{onActionCallback:lt})):Te.createElement("span",{className:"v-line"}))),be?Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?Te.createElement(Te.Fragment,null,Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&Te.createElement("li",null,Zt),Te.createElement("li",{className:"btn-full-screen"},Te.createElement(ie,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},me=oe(50474),se=oe(78241),Ce=oe(92832),Re=oe(3113),Pt=Object.defineProperty,zt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ve=(ye,be,he)=>be in ye?Pt(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:he}):ye[be]=he,it=(ye,be)=>{for(var he in be||(be={}))Ae.call(be,he)&&Ve(ye,he,be[he]);if(Le)for(var he of Le(be))$e.call(be,he)&&Ve(ye,he,be[he]);return ye},je=(ye,be)=>zt(ye,kt(be));const Xe={labelCol:{span:4},wrapperCol:{span:20}};var qe=({callback:ye,onCancel:be})=>{function he(lt){ye(lt)}return ne.createElement(se.default,je(it({},Xe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ce.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ce.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Re.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},pt=oe(1568),Pe=oe(56701),Be=oe(43418),Ke=oe(95237),ut=oe(12963),Ue=oe(59301),tt=({callback:ye,onCancel:be})=>{const he=document.createElement("canvas"),lt=he.getContext("2d");he.width=1e3,he.height=800,lt.fillStyle="#ffffff",lt.fillRect(0,0,he.width,he.height);const Nt=he.toDataURL("image/png");return Ue.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(Ke.Z,{style:{height:"100vh"}},Ue.createElement(ut.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:Bt=>{ye({src:Bt.url})},onClose:be})))},de=oe(12378);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<2)},Je.prototype.alignLeft=function(){var ye=this.diagram;ye.startTransaction("aligning left");var be=1/0;ye.selection.each(function(he){he instanceof go.Link||(be=Math.min(he.position.x,be))}),ye.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(be,he.position.y))}),ye.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var ye=this.diagram;ye.startTransaction("aligning right");var be=-1/0;ye.selection.each(function(he){if(!(he instanceof go.Link)){var lt=he.actualBounds.x+he.actualBounds.width;be=Math.max(lt,be)}}),ye.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(be-he.actualBounds.width,he.position.y))}),ye.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var ye=this.diagram;ye.startTransaction("alignTop");var be=1/0;ye.selection.each(function(he){he instanceof go.Link||(be=Math.min(he.position.y,be))}),ye.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,be))}),ye.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var ye=this.diagram;ye.startTransaction("aligning bottom");var be=-1/0;ye.selection.each(function(he){if(!(he instanceof go.Link)){var lt=he.actualBounds.y+he.actualBounds.height;be=Math.max(lt,be)}}),ye.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,be-he.actualBounds.height))}),ye.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center X");var he=be.actualBounds.x+be.actualBounds.width/2;ye.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(he-lt.actualBounds.width/2,lt.actualBounds.y))}),ye.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center Y");var he=be.actualBounds.y+be.actualBounds.height/2;ye.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(lt.actualBounds.x,he-lt.actualBounds.height/2))}),ye.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(ye){var be=this.diagram;be.startTransaction("align Column"),ye===void 0&&(ye=0),ye=parseFloat(ye);var he=new Array;be.selection.each(function(Zt){Zt instanceof go.Link||he.push(Zt)});for(var lt=0;lt<he.length-1;lt++){var Nt=he[lt],Bt=Nt.actualBounds.y+Nt.actualBounds.height+ye,ln=he[lt+1];ln.move(new go.Point(Nt.actualBounds.x,Bt))}be.commitTransaction("align Column")},Je.prototype.alignRow=function(ye){ye===void 0&&(ye=0),ye=parseFloat(ye);var be=this.diagram;be.startTransaction("align Row");var he=new Array;be.selection.each(function(Zt){Zt instanceof go.Link||he.push(Zt)});for(var lt=0;lt<he.length-1;lt++){var Nt=he[lt],Bt=Nt.actualBounds.x+Nt.actualBounds.width+ye,ln=he[lt+1];ln.move(new go.Point(Bt,Nt.actualBounds.y))}be.commitTransaction("align Row")},Je.prototype.canRotate=function(ye){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},Je.prototype.rotate=function(ye){ye===void 0&&(ye=90);var be=this.diagram;be.startTransaction("rotate "+ye.toString());var be=this.diagram;be.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=ye)}),be.commitTransaction("rotate "+ye.toString())},Je.prototype.pullToFront=function(){var ye=this.diagram;ye.startTransaction("pullToFront");var be=new go.Map;ye.selection.each(function(he){be.set(he.layer,0)}),be.iteratorKeys.each(function(he){var lt=0;he.parts.each(function(Nt){if(!Nt.isSelected){var Bt=Nt.zOrder;isNaN(Bt)?Nt.zOrder=0:lt=Math.max(lt,Bt)}}),be.set(he,lt)}),ye.selection.each(function(he){Je._assignZOrder(he,be.get(he.layer)+1)}),ye.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var ye=this.diagram;ye.startTransaction("pushToBack");var be=new go.Map;ye.selection.each(function(he){be.set(he.layer,0)}),be.iteratorKeys.each(function(he){var lt=0;he.parts.each(function(Nt){if(!Nt.isSelected){var Bt=Nt.zOrder;isNaN(Bt)?Nt.zOrder=0:lt=Math.min(lt,Bt)}}),be.set(he,lt)}),ye.selection.each(function(he){Je._assignZOrder(he,be.get(he.layer)-1-Je._findGroupDepth(he))}),ye.commitTransaction("pushToBack")},Je._assignZOrder=function(ye,be,he){he===void 0&&(he=ye),ye.layer===he.layer&&(ye.zOrder=be),ye instanceof go.Group&&ye.memberParts.each(function(lt){Je._assignZOrder(lt,be+1,he)})},Je._findGroupDepth=function(ye){if(ye instanceof go.Group){var be=0;return ye.memberParts.each(function(he){be=Math.max(be,Je._findGroupDepth(he))}),be+1}else return 0},Je.prototype.doKeyDown=function(){var ye=this.diagram;if(ye!==null){var be=ye.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var ye=new Array;return this.diagram.nodes.each(function(be){ye.push(be)}),this.diagram.parts.each(function(be){ye.push(be)}),ye},Je.prototype._arrowKeyMove=function(){var ye=this.diagram,be=ye.lastInput,he=0,lt=0;if(be.control||be.meta)he=1,lt=1;else if(ye.grid!==null){var Nt=ye.grid.gridCellSize;lt=Nt.width,he=Nt.height}ye.startTransaction("arrowKeyMove"),ye.selection.each(function(Bt){be.key==="Up"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y-he)):be.key==="Down"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y+he)):be.key==="Left"?Bt.move(new go.Point(Bt.actualBounds.x-lt,Bt.actualBounds.y)):be.key==="Right"&&Bt.move(new go.Point(Bt.actualBounds.x+lt,Bt.actualBounds.y))}),ye.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var ye=this.diagram,be=ye.lastInput,he=null;be.key==="Up"?he=this._findNearestPartTowards(270):be.key==="Down"?he=this._findNearestPartTowards(90):be.key==="Left"?he=this._findNearestPartTowards(180):be.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(be.shift?he.isSelected=!0:be.control||be.meta?he.isSelected=!he.isSelected:ye.select(he))},Je.prototype._findNearestPartTowards=function(ye){var be=this.diagram.selection.first();if(be===null)return null;for(var he=be.actualBounds.center,lt=this._getAllParts(),Nt=1/0,Bt=be,ln=0;ln<lt.length;ln++){var Zt=lt[ln];if(Zt!==be&&Zt.canSelect()){var en=Zt.actualBounds.center,Ln=he.directionPoint(en),_n=this._angleCloseness(Ln,ye);if(_n<=45){var gt=he.distanceSquaredPoint(en);gt*=1+Math.sin(_n*Math.PI/180),gt<Nt&&(Nt=gt,Bt=Zt)}}}return Bt},Je.prototype._angleCloseness=function(ye,be){return Math.min(Math.abs(be-ye),Math.min(Math.abs(be+360-ye),Math.abs(be-360-ye)))},Je.prototype._arrowKeyTree=function(){var ye=this.diagram,be=ye.selection.first();if(be instanceof go.Node){var he=ye.lastInput;if(he.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)ye.commandHandler.canExpandTree(be)&&ye.commandHandler.expandTree(be);else{var lt=this._sortTreeChildrenByY(be).first();lt!==null&&ye.select(lt)}}else if(he.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)ye.commandHandler.canCollapseTree(be)&&ye.commandHandler.collapseTree(be);else{var Nt=be.findTreeParentNode();Nt!==null&&ye.select(Nt)}else if(he.key==="Up"){var Nt=be.findTreeParentNode();if(Nt!==null){var Bt=this._sortTreeChildrenByY(Nt),ln=Bt.indexOf(be);if(ln>0){for(var Zt=Bt.elt(ln-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var en=this._sortTreeChildrenByY(Zt);Zt=en.last()}Zt!==null&&ye.select(Zt)}else ye.select(Nt)}}else if(he.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var lt=this._sortTreeChildrenByY(be).first();lt!==null&&ye.select(lt)}else for(;be!==null;){var Nt=be.findTreeParentNode();if(Nt===null)break;var Bt=this._sortTreeChildrenByY(Nt),ln=Bt.indexOf(be);if(ln<Bt.length-1){ye.select(Bt.elt(ln+1));break}else be=Nt}var Ln=ye.selection.first();Ln!==null&&ye.scrollToRect(Ln.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(ye){var be=new go.List().addAll(ye.findTreeChildrenNodes());return be.sort(function(he,lt){var Nt=he.location,Bt=lt.location;return Nt.y<Bt.y?-1:Nt.y>Bt.y?1:Nt.x<Bt.x?-1:Nt.x>Bt.x?1:0}),be},Je.prototype.copyToClipboard=function(ye){go.CommandHandler.prototype.copyToClipboard.call(this,ye),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var ye=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ye,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ye},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ye){if(ye!=="move"&&ye!=="select"&&ye!=="scroll"&&ye!=="tree"&&ye!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ye);this._arrowKeyBehavior=ye}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ye){if(!(ye instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ye);this._pasteOffset.set(ye)}});var ct=Je,Ot=oe(37404),wt=oe(43604),we=oe(70635),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=oe(59301),ke=(ye,be,he)=>new Promise((lt,Nt)=>{var Bt=en=>{try{Zt(he.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(he.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?lt(en.value):Promise.resolve(en.value).then(Bt,ln);Zt((he=he.apply(ye,be)).next())});function He({onCancel:ye,callback:be}){let he=(0,ne.useRef)(),lt=(0,ne.useRef)(),Nt=(0,ne.useRef)(),Bt=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Zt,en]=(0,ne.useState)(0);function Ln(){const gt=de.bx.make,tn={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"};he.current=new de.S0(lt.current,{padding:20,grid:gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var vt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);vt||ot.diagram.currentTool.doCancel()},commandHandler:gt(ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var vt=ot.subject;vt.location=vt.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var vt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var vt=ot.parameter.part;vt.invalidateConnectedLinks();var It=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?It.toNode.invalidateConnectedLinks():It.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),gt(de.bn,{name:"SHAPE",fill:tn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),he.current.nodeTemplate.toolTip=gt("ToolTip",gt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},gt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),gt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(ot,vt){var It=(ht,Yt)=>{ht.handled=!0,ht.diagram.model.commit(Qt=>{var Ht=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(Ht.actualBounds,ot);Pn.subtract(Ht.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Ht.location),Pn.snapToGridPoint(ht.diagram.grid.gridOrigin,ht.diagram.grid.gridCellSize);var fn=Qt.copyNodeData(Ht.data);Qt.setGroupKeyForNodeData(fn,Qt.getGroupKeyForNodeData(Ht.data)),Qt.addNodeData(fn);var oa={from:Ht.key,to:Qt.getKeyForNodeData(fn)};Qt.addLinkData(oa);var Qn=ht.diagram.findNodeForData(fn);Qn.location=Pn,ht.diagram.select(Qn),setTimeout(()=>{ht.diagram.commandHandler.editTextBlock()},20)})};return gt(de.bn,{figure:vt,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(ht,Yt)=>Yt.fill="dodgerblue",mouseLeave:(ht,Yt)=>Yt.fill="orange",isActionable:!0,click:It,contextClick:It})}function Zn(ot){return gt(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(vt,It)=>It.fill="dodgerblue",mouseLeave:(vt,It)=>It.fill="orange",click:(vt,It)=>{vt.diagram.commandHandler.showContextMenu(It.part.adornedPart)}},ot||{})}he.current.nodeTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Fn(ot,vt){return(It,ht)=>{It.handled=!0,It.diagram.model.commit(Yt=>{Yt.set(ht.part.adornedPart.data,ot,vt)})}}function ue(ot,vt){return vt||(vt="color"),gt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(It,ht)=>ht.stroke="dodgerblue",mouseLeave:(It,ht)=>ht.stroke="lightgray",click:Fn(vt,ot),contextClick:Fn(vt,ot)})}function Me(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white,"fill"),ue(tn.beige,"fill"),ue(tn.extralightblue,"fill"),ue(tn.extralightred,"fill"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.lightgray,"fill"),ue(tn.lightgreen,"fill"),ue(tn.lightblue,"fill"),ue(tn.lightred,"fill")))]}function ze(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.black),ue(tn.green),ue(tn.blue),ue(tn.red))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white),ue(tn.magenta),ue(tn.purple),ue(tn.orange)))]}function We(ot,vt){return vt||(vt="thickness"),gt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(It,ht)=>ht.background="dodgerblue",mouseLeave:(It,ht)=>ht.background="transparent",click:Fn(vt,ot),contextClick:Fn(vt,ot)})}function at(ot,vt){return vt||(vt="dash"),gt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(It,ht)=>ht.background="dodgerblue",mouseLeave:(It,ht)=>ht.background="transparent",click:Fn(vt,ot),contextClick:Fn(vt,ot)})}function rt(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",We(1),We(2),We(3),We(4))),gt("ContextMenuButton",gt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function et(ot,vt){return vt||(vt="figure"),gt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(It,ht)=>ht.fill="dodgerblue",mouseLeave:(It,ht)=>ht.fill="lightgray",click:Fn(vt,ot),contextClick:Fn(vt,ot)})}he.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Rectangle"),et("RoundedRectangle"),et("Ellipse"),et("Diamond"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Parallelogram2"),et("ManualOperation"),et("Procedure"),et("Cylinder1"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Terminator"),et("CreateRequest"),et("Document"),et("TriangleDown"))),Me(),ze(),rt()),he.current.groupTemplate=gt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,vt)=>{var It=vt.addMembers(vt.diagram.selection,!0);It||vt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.s_,"Auto",{name:"BODY"},gt(de.bn,{parameter1:10,fill:tn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.Vm,{background:"transparent",margin:20})),gt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),he.current.groupTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(de.s_,"Auto",gt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),he.current.groupTemplate.contextMenu=gt("ContextMenu",Me(),ze(),rt()),he.current.linkTemplate=gt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),gt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot===1)),gt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=gt(de.uz,gt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ze(2)},new de.KX("pathPattern","thickness",Ze)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ze(ot){return gt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function At(ot){var vt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?vt="M0 0 M16 16 M0 8 L16 8":ot===2&&(vt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt(de.bn,{geometryString:vt,margin:2,background:"transparent",mouseEnter:(It,ht)=>ht.background="dodgerblue",mouseLeave:(It,ht)=>ht.background="transparent",click:Fn("dir",ot),contextClick:Fn("dir",ot)})}function Dt(ot){var vt=(It,ht)=>{It.handled=!0,It.diagram.model.commit(Yt=>{var Qt=ht.part.adornedPart;Yt.set(Qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(It,ht)=>ht.background="dodgerblue",mouseLeave:(It,ht)=>ht.background="transparent",click:vt,contextClick:vt})}function xe(ot,vt){var It=0,ht=de.z6.RightSide;ot.equals(de.z6.Top)?(It=270,ht=de.z6.TopSide):ot.equals(de.z6.Left)?(It=180,ht=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(It=90,ht=de.z6.BottomSide),vt||(It-=180);var Yt=(Qt,Ht)=>{Qt.handled=!0,Qt.diagram.model.commit(Pn=>{var fn=Ht.part.adornedPart;Pn.set(fn.data,vt?"toSpot":"fromSpot",de.z6.stringify(ht)),(vt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:It,background:"transparent",mouseEnter:(Qt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Qt,Ht)=>Ht.background="transparent",click:Yt,contextClick:Yt})}he.current.linkTemplate.contextMenu=gt("ContextMenu",ze(),rt(),gt("ContextMenuButton",gt(de.s_,"Horizontal",At(0),At(1),At(2))),gt("ContextMenuButton",gt(de.s_,"Horizontal",gt(de.s_,"Spot",Dt(!1),xe(de.z6.Top,!1),xe(de.z6.Left,!1),xe(de.z6.Right,!1),xe(de.z6.Bottom,!1)),gt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Dt(!0),xe(de.z6.Top,!0),xe(de.z6.Left,!0),xe(de.z6.Right,!0),xe(de.z6.Bottom,!0)))));const rn=`{ "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 an=["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 pn(ot){return console.log("shapeName:",ot),an.indexOf(ot)>=0}var Cn=new de.YI(Nt.current,{maxSelectionCount:1,linkTemplate:gt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:gt(de.uz,"Link",{locationSpot:de.z6.Center},gt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),gt(de.bn,{isPanelMain:!0,strokeWidth:2}),gt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(ot){var vt;const It=ot.subject.part;var ht=(vt=document.activeElement)==null?void 0:vt.value;typeof ht=="string"&&ht.trim()===""&&he.current.model.commit(function(Yt){Yt.set(It.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),gt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{he.current.grid=gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const _n=()=>ke(this,null,function*(){var gt=he.current.makeImage();const tn=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});be({src:tn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),en(Zt+1),()=>{he.current=null}),[]),fe.createElement("div",{ref:ln,className:Bt.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Ke.Z,null,fe.createElement(wt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(wt.Z,{onClick:()=>{var gt,tn,Dn=he.current.selection.first();if(Bt.current=!Bt.current,document.activeElement&&Dn){let Zn=(tn=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:tn.trim();typeof Zn=="string"&&he.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Zn||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}en(Zt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ye},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:Nt})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:lt,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(Re.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var mt=He,Et=oe(5112),Ft=oe(5871);const Mt=Et.ZP.Group,_t={margin:"0 8px"};var Ct=({callback:ye,onCancel:be})=>{function he(lt){ye(lt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:_t},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:_t},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Ft.Z,null)),ne.createElement("span",{style:_t},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Ft.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:_t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Mt,null,ne.createElement(Et.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Et.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Et.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Et.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Re.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},yt=oe(78673),bt=oe(98598),Wt=oe.n(bt),qt=(0,ne.forwardRef)(({use3d:ye,width:be,height:he,callback:lt,showSaveButton:Nt},Bt)=>{const ln=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[en,Ln]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:ln,appName:"graphing",width:be||1e3,height:he||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Zt.current=new(Wt())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const gt=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return lt&&lt(tn),tn};return(0,ne.useEffect)(()=>{_n.current.appName=en?"3D":"graphing",Zt.current.inject("applet_container")},[en]),(0,ne.useEffect)(()=>{Ln(ye)},[ye]),(0,ne.useImperativeHandle)(Bt,()=>({getImgData:gt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Ke.Z,{align:"middle"},ne.createElement(wt.Z,{flex:1},ne.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>Ln(tn)})),ne.createElement(wt.Z,null,ne.createElement(Re.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ut=oe(75890),pe=oe(1012),Ee=oe(8591);const Qe="link",st="upload-image",ft="add-flowchart",Tt="draw-image",jt="add-flowchart",$t="code-block",Rt="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var nn=oe(91300),hn=(ye,be,he)=>new Promise((lt,Nt)=>{var Bt=en=>{try{Zt(he.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(he.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?lt(en.value):Promise.resolve(en.value).then(Bt,ln);Zt((he=he.apply(ye,be)).next())});function vn(){}let wn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",Bn="@\u2581@",xn=`
**\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`,cn=["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 zn(ye){return/^\d+$/.test(ye)?`${ye}px`:ye}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[st]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Rt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:ye="",onChange:be,width:he="100%",height:lt=400,miniToolbar:Nt=!1,isFocus:Bt=!1,watch:ln,insertTemp:Zt,mode:en="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:gt=!1,showNullButton:tn=!1,showNullProgramButton:Dn=!1,hidetoolBar:Zn=!1,fullScreen:Fn=!1,onBlur:ue,onCMBeforeChange:Me,onFullScreen:ze,className:We="",disablePaste:at=!1,disabled:rt=!1,disabledFill:et=!1,placeholder:Ze="",values:At="",extraUse:Dt})=>{const[xe,rn]=(0,ne.useState)(null),[an,pn]=(0,ne.useState)(ye),[Cn,ot]=(0,ne.useState)(ln),[vt,It]=(0,ne.useState)(Fn),[ht,Yt]=(0,ne.useState)(""),[Qt,Ht]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(lt),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,pe.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,En]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ia=(0,ne.useRef)(),ga=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var Gt;const St=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Gt=St==null?void 0:St.attachments)!=null&&Gt.length&&(console.log("cm:",xe,ta),St.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?xe.replaceSelection(`![,](/api/attachments/${Lt.id}?type=${Lt.content_type})`):Lt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Lt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type}&disposition=inline" target="_blank">${Lt.name}</a>`):xe.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,ne.useEffect)(()=>{const Gt=window.scrollY||window.pageYOffset;pn(At),xe==null||xe.setValue(At),window.scrollTo(0,Gt)},[At]),(0,ne.useEffect)(()=>{ze==null||ze(vt)},[vt]),(0,ne.useEffect)(()=>{if(ta.current){let Gt=function(Lt,xt){var un;if(at){xt.preventDefault();return}const Gn=xt.clipboardData;if(Gn){const Rn=Gn.types.toString(),An=Gn.items;if(Rn==="Files"||Gn.types.indexOf("Files")>-1){if(xt.preventDefault(),en=="stex")return;try{let jn=An[1];((un=An[0])==null?void 0:un.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,Pe.I)(kn,Vn=>{var Vt,sn,bn;Vn.id?((Vt=kn==null?void 0:kn.type)==null?void 0:Vt.indexOf("image"))>-1?St.replaceSelection(`![,](/api/attachments/${Vn.id}?type=${Vn.content_type})`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?St.replaceSelection(`<video width="100%" controls src="/api/attachments/${Vn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?St.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):cn.includes(sa)?St.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):St.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Ee.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ee.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const St=Ye().fromTextArea(ta.current,{mode:en,lineNumbers:!Nt,lineWrapping:!0,value:ye,autoCloseTags:!Dn,autoCloseBrackets:!0});return St.on("keyup",function(Lt,xt){xt.keyCode===8&&(Lt.getValue()==""?St.setOption("placeholder",Ze):St.setOption("placeholder",null))}),St.on("keydown",function(Lt,xt){if(xt.keyCode===8){var un=Xt(Lt);un&&xt.preventDefault()}}),Bt&&St.focus(),St.on("paste",Gt),St.on("dragleave",function(Lt,xt){ia.current.classList.remove("mouse-hover-md")}),rt&&St.on("beforeChange",function(Lt,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),rn(St),()=>{St.off("paste",Gt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ia.current)try{}catch(Gt){console.log(Gt,"---- to set md editor body height")}},[Pn,ia,vt]);(0,ne.useEffect)(()=>{function Gt(){let St=new Ne.Z(Lt=>{for(let xt of Lt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(fa(),xe.setSize("100%","100%"),xe.refresh())});return St.observe(ta.current.parentElement),St}if(xe){const St=Gt();return()=>{var Lt,xt;(Lt=ta.current)!=null&&Lt.parentElement&&St.unobserve((xt=ta.current)==null?void 0:xt.parentElement)}}},[xe,fa]),(0,ne.useEffect)(()=>{if(xe){let Gt=[];for(const[St,Lt]of Object.entries(Wn)){let xt={[St]:()=>{$n(Lt)}};Gt.push(xt),xe.addKeyMap(xt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let St of Gt)xe.removeKeyMap(St)}}},[xe]),(0,ne.useEffect)(()=>{Fn!==vt&&It(Fn)},[Fn]),(0,nn.Z)(()=>{if(!gt&&Qt>0){let Gt=new Date().getTime(),St=window.sessionStorage.getItem(Ln);Gt>=Qt+dn&&(!St||St!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ne.useEffect)(()=>{ot(ln)},[xe,ln]),(0,ne.useEffect)(()=>{xe&&Bt&&xe.focus()},[xe,Bt]),(0,ne.useEffect)(()=>{if(Cn&&xe){let Gt=function(Lt){let xt=Lt.target;if(aa.current){let un=xt.scrollTop/xt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const St=xe.getScrollerElement();return St.addEventListener("scroll",Gt),()=>{St.removeEventListener("scroll",Gt)}}},[xe,Cn]),(0,ne.useEffect)(()=>{if(xe&&Me){let Gt=function(St,Lt){Me(St,Lt)};return xe.on("beforeChange",Gt),()=>{xe.off("beforeChange",Gt)}}},[xe,Me]),(0,ne.useEffect)(()=>{if(xe&&ue){let Gt=function(){ue(xe.getValue())};return xe.on("blur",Gt),()=>{xe.off("blur",Gt)}}},[xe,ue]);function Xt(Gt,St){var Lt=Gt.getDoc(),xt=Lt.getCursor(),un=Lt.getLine(xt.line),Gn=un.charAt(xt.ch-1),Rn=un.lastIndexOf("@\u2581@",xt.ch),An=un.lastIndexOf("@\u2581\u2581@",xt.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(yn.indexOf(Gn)===-1)return null;if(console.log("change1:",St,Gt,un,xt,jn,Rn,An,Gn),jn>=0&&xt.ch-jn<5){var sa=jn+kn;return Lt.replaceRange("",{line:xt.line,ch:jn},{line:xt.line,ch:sa}),{line:xt.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(xe){let Gt=function(St,Lt){const xt=St.getValue();pn(xt),Ht(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(Dn?be(xt,On(xt)):be(xt))};return xe.on("change",Gt),()=>{xe.off("change",Gt)}}},[xe,be]),(0,ne.useEffect)(()=>{if(xe)if(ye==null)xe.setValue(""),pn("");else{const Gt=window.scrollY||window.pageYOffset;ye!==xe.getValue()&&(xe.setValue(ye),pn(ye),xe.setCursor(rt?1:xe.lineCount(),0),window.scrollTo(0,Gt))}},[xe,ye]);const $n=(0,ne.useCallback)(Gt=>{const St=xe.getCursor(),Lt=xe.getSelection();let xt=Lt.split(`
`);switch(Gt){case"bold":return xe.replaceSelection("**"+Lt+"**"),Lt===""&&xe.setCursor(St.line,St.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+Lt+"*"),Lt===""&&xe.setCursor(St.line,St.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+Lt+"`"),Lt===""&&xe.setCursor(St.line,St.ch+1),xe.focus();case"inline-latex":return Yt("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+Lt+"\n```"),xe.setCursor(St.line+1,Lt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
`),xe.focus();case"list-ul":return Lt===""?xe.replaceSelection("- "+Lt):xe.replaceSelection(xt.map(un=>un===""?"":`- ${un}`).join(`
`)),xe.focus();case"list-ol":return Lt===""?xe.replaceSelection("1. "+Lt):xe.replaceSelection(xt.map((un,Gn)=>un===""?"":`${Gn+1}. ${un}`).join(`
`)),xe.focus();case"add-null-ch":return Lt===""&&xe.setCursor(St.line,St.ch),xe.replaceSelection(on),xe.focus();case"add-signal":return Lt===""&&xe.setCursor(St.line,St.ch),xe.replaceSelection(Bn),xe.focus();case"add-multiple":return Lt===""&&xe.setCursor(St.line,St.ch),xe.replaceSelection(yn),xe.focus();case"inster-template-1":return Lt===""&&xe.setCursor(St.line,St.ch),xe.replaceSelection(xn),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return ot(!Cn),xe.focus();case"trigger-full-screen":return It(!vt),xe.focus();case Qe:Yt(Qe);return;case $t:Yt($t);return;case st:Yt(st);return;case Tt:Yt(Tt);return;case"maths-latex":Yt("maths-latex");return;case ft:Yt(ft);return;case Rt:Yt(Rt);return;default:throw new Error}},[xe,Cn,vt]),In=(0,ne.useCallback)((Gt,St)=>{var Lt,xt,un,Gn,Rn,An;switch(Yt(""),ht){case Qe:const{title:Vt,link:sn}=Gt;return xe.replaceSelection(`[${Vt}](${sn})`),xe.focus();case $t:const{language:bn,content:gn}=Gt;return xe.replaceSelection(["```"+bn,gn,"```"].join(`
`)),xe.focus();case"maths-latex":for(var jn=atob(Gt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Vn=new Blob([kn],{type:"image/png"});(0,Pe.I)(Vn,ma=>{ma.id?xe.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+Gt+"$$`");break;case st:case Tt:case jt:const{src:Sn,alt:Hn}=Gt,Tn=St,ha=(un=(xt=(Lt=Tn==null?void 0:Tn.name)==null?void 0:Lt.split("."))==null?void 0:xt.pop)==null?void 0:un.call(xt);return((Gn=Tn==null?void 0:Tn.type)==null?void 0:Gn.indexOf("image"))>-1||!(Tn!=null&&Tn.type)?Hn?xe.replaceSelection(`![ ${Hn} ]( ${Sn} "${Hn}" )`):xe.replaceSelection(`![,](${Sn})`):((Rn=Tn==null?void 0:Tn.type)==null?void 0:Rn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((An=Tn==null?void 0:Tn.type)==null?void 0:An.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${Sn}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):cn.includes(ha)?xe.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):xe.replaceSelection(`[${Tn.name}](${Sn})`),xe.focus();case Rt:const{row:ua,col:wa,align:Ea}=Gt;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ca=[],Ba=[];for(let xa=0;xa<wa;xa++)ma===1&&Ba.push(Kt[Ea]),Ca.push(" ");ma===1&&(Fa+=`| ${Ba.join(" | ")} |
`),Fa+=`| ${Ca.join(wa===1?"":" | ")} |
`}return xe.replaceSelection(Fa+`
`),xe.focus();default:throw new Error}},[xe,ht]),Un=(0,ne.useMemo)(()=>{switch(ht){case Qe:return ne.createElement(qe,{callback:In,onCancel:Xn});case $t:return ne.createElement(pt.Z,{callback:In,onCancel:Xn});case st:return ne.createElement(Pe.Z,{callback:In,onCancel:Xn});case ft:return ne.createElement(mt,{callback:In,onCancel:Xn});case Rt:return ne.createElement(Ct,{callback:In,onCancel:Xn});case"maths-latex":return ne.createElement(qt,{showSaveButton:!0,callback:In});case"inline-latex":return ne.createElement(Ut.Z,{showSaveButton:!0,callback:In});default:return null}},[ht]);function Xn(){Yt("")}(0,ne.useEffect)(()=>{if(ga.current){let Gt=function(Rn){un=!0,Gn=Rn.pageY},St=function(){un=!1},Lt=function(Rn){if(un){let An=Rn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let jn=lt+An+"px";fn(jn)}},xt=ga.current,un=!1,Gn=0;return xt.addEventListener("mousedown",Gt),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",St),()=>{xt.removeEventListener("mousedown",Gt),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",St)}}},[xe,ga]),(0,ne.useEffect)(()=>{fn(lt)},[lt]);const ra=zn(he),va=zn(Pn),pa={width:ra,height:va},Mn=(0,ne.useMemo)(()=>{if(Qt){let Gt=new Date(Qt),St=Gt.getHours(),Lt=Gt.getMinutes(),xt=Gt.getSeconds();return St=St<10?"0"+St:St,Lt=Lt<10?"0"+Lt:Lt,xt=xt<10?"0"+xt:xt,`${St}:${Lt}:${xt}`}return 0},[Qt]),On=Gt=>{const St=[];if(Dn){let Lt=-1;Gt=Gt.replace(/(@▁▁@|@▁@)/g,function(xt,un,Gn){St.push({multiLine:xt!==Bn})})}return St};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),xe.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[ht]&&ht!==Tt&&ht!==ft&&setTimeout(()=>{const Gt=document.getElementsByClassName("markdown-popup-form")[0],St=window.innerWidth/2-Gt.offsetWidth/2,Lt=window.innerHeight/2-Gt.offsetHeight/2;da(St),En(Lt)},0)},[ht]);const La=Gt=>{Gt.preventDefault();const St=Gt.clientX-Pa,Lt=Gt.clientY-Kn;document.body.onmousemove=xt=>{let un=xt.clientX-St,Gn=xt.clientY-Lt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,An)),Gn=Math.max(0,Math.min(Gn,jn)),ba(xt.clientX,xt.clientY,St,Lt)&&(da(un),En(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Gt,St,Lt,xt)=>{const un=document.body.clientHeight,Gn=document.body.clientWidth;return Gt<20&&Lt>Gt||Gt>Gn-20&&Lt<Gt||St<20&&xt>St||St>un-20&&xt<St?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ia},ne.createElement("div",{className:`markdown-editor-container ${We} ${Cn?"on-preview":""} ${Nt?"mini":""} ${vt?"full-screen":""}`,style:pa},ne.createElement(ge,{insertTemp:Zt,watch:Cn,fullScreen:vt,showNullButton:tn,showNullProgramButton:Dn,onActionCallback:$n,hidetoolBar:Zn,extraUse:Dt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ta,placeholder:Ze})),Cn?ne.createElement("div",{ref:aa,className:"preview-container"},en==="stex"&&ne.createElement(_e,{value:an}),en!=="stex"&&ne.createElement(nt.Z,{disabledFill:et,showProgramFill:Dn,value:an})):null))),_n?ne.createElement("a",{ref:ga,className:"editor-resize"}):null,ht===Tt&&ne.createElement(tt,{callback:In,onCancel:Xn}),ht===ft&&ne.createElement(mt,{callback:In,onCancel:Xn}),ne.createElement(me.Z,null,na[ht]&&ht!==Tt&&ht!==ft?ne.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ht]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ht===ft?"1200px":null,height:ht===ft?"80vh":null,className:"markdown-popup-form"},Un):null))}},56701:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return ee},I:function(){return re}});var ne=oe(78241),Se=oe(8591),Ye=oe(92832),Ne=oe(3113),ce=oe(58788),Fe=oe(59301),le=oe(2119),Ie=oe(59301),Ge=Object.defineProperty,De=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ie,ge,me)=>ge in ie?Ge(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:me}):ie[ge]=me,y=(ie,ge)=>{for(var me in ge||(ge={}))Te.call(ge,me)&&a(ie,me,ge[me]);if(_e)for(var me of _e(ge))ae.call(ge,me)&&a(ie,me,ge[me]);return ie},x=(ie,ge)=>De(ie,nt(ge));const{useForm:b}=ne.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ie,onCancel:ge})=>{const[me]=b();let se=(0,Fe.useRef)();function Ce(zt){ie(zt,se.current)}function Re(zt,kt){if(zt.status===-1){Se.ZP.error(zt.message);return}me.setFieldsValue({src:`/api/attachments/${zt.id}`,type:kt.type})}function Pt(zt){let kt=zt.target.files[0];se.current=kt,re(kt,Re)}return Ie.createElement(ne.default,x(y({form:me},z),{className:"upload-image-panel",onFinish:Ce,style:{width:470,overflow:"hidden"}}),Ie.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ie.createElement("div",{className:"flex-container"},Ie.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ie.createElement(Ye.default,{style:E})),Ie.createElement(te,{onFileChange:Pt}))),Ie.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ie.createElement(Ye.default,{style:{width:264}})),Ie.createElement(ne.default.Item,{style:{textAlign:"right"}},Ie.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ie.createElement(Ne.ZP,{type:"default",onClick:ge},"\u53D6\u6D88")))};function te({onFileChange:ie}){return Ie.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ie.createElement("input",{type:"file",onChange:ie}))}function re(ie,ge){if(!ie)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,le.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ie),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var se=new window.XMLHttpRequest;se.withCredentials=!0,se.addEventListener("load",function(Ce){ge(JSON.parse(Ce.target.responseText),ie)},!1),se.addEventListener("error",function(Ce){console.error(Ce)},!1),se.open("POST",`${ce.KI}/api/attachments.json`),se.send(me)}},50474:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ye}});var ne=oe(59301),Se=oe(4676);class Ye extends ne.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Se.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ye,Ne){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ye}),(0,ne.useEffect)(()=>{function Fe(){ce.current()}if(Ne!==null){let le=setInterval(Fe,Ne);return()=>clearInterval(le)}},[Ne])}},11621:function(Oe,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return ge}});var ne=oe(59301),Se=oe(42203),Ye=oe(78241),Ne=oe(66104),ce=oe(92832),Fe=oe(3113),le=oe(23469),Ie=oe(32583),Ge={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},De=oe(57203),nt=oe(58130),_e=oe(10437),Te=oe(70635),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(me,se,Ce)=>se in me?ae(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):me[se]=Ce,ee=(me,se)=>{for(var Ce in se||(se={}))b.call(se,Ce)&&z(me,Ce,se[Ce]);if(x)for(var Ce of x(se))E.call(se,Ce)&&z(me,Ce,se[Ce]);return me},te=(me,se)=>a(me,y(se)),re=(me,se,Ce)=>new Promise((Re,Pt)=>{var zt=Ae=>{try{Le(Ce.next(Ae))}catch($e){Pt($e)}},kt=Ae=>{try{Le(Ce.throw(Ae))}catch($e){Pt($e)}},Le=Ae=>Ae.done?Re(Ae.value):Promise.resolve(Ae.value).then(zt,kt);Le((Ce=Ce.apply(me,se)).next())});const ie=({shixunHomeworks:me,newCourse:se,globalSetting:Ce,user:Re,loading:Pt,dispatch:zt})=>{var kt,Le,Ae;const $e=(0,Se.useParams)(),[Ve]=Ye.default.useForm(),[it,je]=(0,ne.useState)({}),[Xe,qe]=(0,ne.useState)(),pt=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:Pe}=me;let[Be,Ke]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:Je}=$e;pt.current=$e==null?void 0:$e.courseId,qe(!!pt.current),pt.current&&ut(),zt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Je,coursesId:de,type:1}})},[]);const ut=()=>re(void 0,null,function*(){const de=yield zt({type:"newCourse/getEditCourseData",payload:{id:pt.current}});de&&(Ve.setFieldsValue({name:de.name}),Ve.setFieldsValue({intro:de.description}),Ve.setFieldsValue({notice:de.learning_notes}),je({name:de.name,intro:de.description,notice:de.learning_notes}))}),Ue=de=>re(void 0,null,function*(){var Je,ct;const Ot=ee({},it);Ot.attachment_ids&&(Ot.attachment_ids=(Je=Ot==null?void 0:Ot.attachment_ids)==null?void 0:Je.map(fe=>fe.response.id)),Ot.reference_attachment_ids&&(Ot.reference_attachment_ids=(ct=Ot==null?void 0:Ot.reference_attachment_ids)==null?void 0:ct.map(fe=>fe.response.id));const{coursesId:wt,categoryId:we}=$e,ve=yield(0,Ie.H1)(te(ee({coursesId:wt,category:we},Ot),{base_on_project:!0,type:1}));(ve==null?void 0:ve.status)===0&&(tt(ve.homework_id),(0,nt.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),Se.history.push(`/classrooms/${$e.coursesId}/common_homework/${ve.homework_id}/detail`))});function tt(de){return re(this,null,function*(){if(!(Be!=null&&Be.ec_point_ids))return;let Je=yield(0,Te.ZP)(`/api/ec_courses/${Be==null?void 0:Be.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},Be)})})}return ne.createElement("section",{className:Ge.bg},Pe.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Pe.category&&ne.createElement(Ne.Z,{separator:">"},ne.createElement(Ne.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Pe.course_id}/common_homework`},Pe.course_name)),ne.createElement(Ne.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Pe.course_id}/common_homework`},Pe.category.category_name)),ne.createElement(Ne.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(Ye.default,{form:Ve,className:Ge.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",Ve.getFieldsValue()),je(ee({},Ve.getFieldsValue()))},onFinish:Ue},ne.createElement("div",{className:Ge.fieldWrap},ne.createElement(Ye.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ce.default,{maxLength:60,suffix:`${((kt=it.name)==null?void 0:kt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:Ge.mdWrap},ne.createElement(Ye.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(le.Z,{watch:!0,defaultValue:it.intro})),ne.createElement("div",null,ne.createElement(Ye.default.Item,{name:"attachment_ids"},ne.createElement(De.Z,null)))),ne.createElement("div",{className:Ge.mdWrap},ne.createElement(Ye.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(le.Z,{watch:!0,defaultValue:it.notice})),ne.createElement("div",null,ne.createElement(Ye.default.Item,{name:"reference_attachment_ids"},ne.createElement(De.Z,null))))),ne.createElement("div",{className:Ge.mdWrap,style:{display:(Le=Ce==null?void 0:Ce.setting)!=null&&Le.hide_ec?"none":(Ae=Re.userInfo.course)!=null&&Ae.is_openengineering?"":"none"}},ne.createElement(_e.Z,{setitem:de=>Ke(ee({},de))})),ne.createElement("div",{className:Ge.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ye.default.Item,null,ne.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${Ge.button} mr20`,htmlType:"submit",onClick:()=>{Ve.submit()},loading:Pt["newCourse/editCourse"]||Pt["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:Ge.button,onClick:()=>Se.history.push(`/classrooms/${$e.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ge=(0,Se.connect)(({shixunHomeworks:me,newCourse:se,loading:Ce,user:Re,globalSetting:Pt})=>({shixunHomeworks:me,newCourse:se,user:Re,globalSetting:Pt,loading:Ce.effects}))(ie)},76904:function(Oe,dt,oe){"use strict";oe.d(dt,{$J:function(){return Ye},JZ:function(){return ce},bN:function(){return le},jP:function(){return Fe},rO:function(){return Ne}});var ne=oe(70635),Se=(Ie,Ge,De)=>new Promise((nt,_e)=>{var Te=y=>{try{a(De.next(y))}catch(x){_e(x)}},ae=y=>{try{a(De.throw(y))}catch(x){_e(x)}},a=y=>y.done?nt(y.value):Promise.resolve(y.value).then(Te,ae);a((De=De.apply(Ie,Ge)).next())});function Ye(Ie){return(0,ne.U2)(`libraries/${Ie}.json`)}function Ne(Ie){return(0,ne.U2)("library_tags.json",Ie)}function ce(Ie){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${Ie}.json`)).status===0})}function Fe(Ie){return(0,ne.v_)("libraries.json",Ie)}function le(Ie,Ge){return(0,ne.gz)(`libraries/${Ie}.json`,Ge)}},56762:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ye]=ne.useReducer(Ne=>Ne+1,0);return Ye}},66104:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return kt}});var ne=oe(92310),Se=oe.n(ne),Ye=oe(11592),Ne=oe(26112),ce=oe(59301),Fe=oe(92343),le=oe(36355),Ie=oe(84105),Ge=oe(91857);const De=Le=>{let{children:Ae}=Le;const{getPrefixCls:$e}=ce.useContext(le.E_),Ve=$e("breadcrumb");return ce.createElement("li",{className:`${Ve}-separator`,"aria-hidden":"true"},Ae===""?Ae:Ae||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var nt=De,_e=function(Le,Ae){var $e={};for(var Ve in Le)Object.prototype.hasOwnProperty.call(Le,Ve)&&Ae.indexOf(Ve)<0&&($e[Ve]=Le[Ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(Le);it<Ve.length;it++)Ae.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ve[it])&&($e[Ve[it]]=Le[Ve[it]]);return $e};function Te(Le,Ae){if(Le.title===void 0||Le.title===null)return null;const $e=Object.keys(Ae).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${$e})`,"g"),(Ve,it)=>Ae[it]||Ve)}function ae(Le,Ae,$e,Ve){if($e==null)return null;const{className:it,onClick:je}=Ae,Xe=_e(Ae,["className","onClick"]),qe=Object.assign(Object.assign({},(0,Ne.Z)(Xe,{data:!0,aria:!0})),{onClick:je});return Ve!==void 0?ce.createElement("a",Object.assign({},qe,{className:Se()(`${Le}-link`,it),href:Ve}),$e):ce.createElement("span",Object.assign({},qe,{className:Se()(`${Le}-link`,it)}),$e)}function a(Le,Ae){return(Ve,it,je,Xe,qe)=>{if(Ae)return Ae(Ve,it,je,Xe);const pt=Te(Ve,it);return ae(Le,Ve,pt,qe)}}var y=function(Le,Ae){var $e={};for(var Ve in Le)Object.prototype.hasOwnProperty.call(Le,Ve)&&Ae.indexOf(Ve)<0&&($e[Ve]=Le[Ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(Le);it<Ve.length;it++)Ae.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ve[it])&&($e[Ve[it]]=Le[Ve[it]]);return $e};const x=Le=>{const{prefixCls:Ae,separator:$e="/",children:Ve,menu:it,overlay:je,dropdownProps:Xe,href:qe}=Le,Pe=(Be=>{if(it||je){const Ke=Object.assign({},Xe);if(it){const ut=it||{},{items:Ue}=ut,tt=y(ut,["items"]);Ke.menu=Object.assign(Object.assign({},tt),{items:Ue==null?void 0:Ue.map((de,Je)=>{var{key:ct,title:Ot,label:wt,path:we}=de,ve=y(de,["key","title","label","path"]);let fe=wt!=null?wt:Ot;return we&&(fe=ce.createElement("a",{href:`${qe}${we}`},fe)),Object.assign(Object.assign({},ve),{key:ct!=null?ct:Je,label:fe})})})}else je&&(Ke.overlay=je);return ce.createElement(Ge.Z,Object.assign({placement:"bottom"},Ke),ce.createElement("span",{className:`${Ae}-overlay-link`},Be,ce.createElement(Ie.Z,null)))}return Be})(Ve);return Pe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Pe),$e&&ce.createElement(nt,null,$e)):null},b=Le=>{const{prefixCls:Ae,children:$e,href:Ve}=Le,it=y(Le,["prefixCls","children","href"]),{getPrefixCls:je}=ce.useContext(le.E_),Xe=je("breadcrumb",Ae);return ce.createElement(x,Object.assign({},it,{prefixCls:Xe}),ae(Xe,it,$e,Ve))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=Le=>{const{componentCls:Ae,iconCls:$e}=Le;return{[Ae]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[$e]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ae}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ae}-link`]:{[`
> ${$e} + span,
> ${$e} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Ae}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${$e}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Le=>{const Ae=(0,te.TS)(Le,{});return[re(Ae)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ge=function(Le,Ae){var $e={};for(var Ve in Le)Object.prototype.hasOwnProperty.call(Le,Ve)&&Ae.indexOf(Ve)<0&&($e[Ve]=Le[Ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(Le);it<Ve.length;it++)Ae.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ve[it])&&($e[Ve[it]]=Le[Ve[it]]);return $e};function me(Le){const{breadcrumbName:Ae,children:$e}=Le,Ve=ge(Le,["breadcrumbName","children"]),it=Object.assign({title:Ae},Ve);return $e&&(it.menu={items:$e.map(je=>{var{breadcrumbName:Xe}=je,qe=ge(je,["breadcrumbName"]);return Object.assign(Object.assign({},qe),{title:Xe})})}),it}function se(Le,Ae){return(0,ce.useMemo)(()=>Le||(Ae?Ae.map(me):null),[Le,Ae])}var Ce=function(Le,Ae){var $e={};for(var Ve in Le)Object.prototype.hasOwnProperty.call(Le,Ve)&&Ae.indexOf(Ve)<0&&($e[Ve]=Le[Ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(Le);it<Ve.length;it++)Ae.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ve[it])&&($e[Ve[it]]=Le[Ve[it]]);return $e};const Re=(Le,Ae)=>{if(Ae===void 0)return Ae;let $e=(Ae||"").replace(/^\//,"");return Object.keys(Le).forEach(Ve=>{$e=$e.replace(`:${Ve}`,Le[Ve])}),$e},Pt=Le=>{const{prefixCls:Ae,separator:$e="/",style:Ve,className:it,rootClassName:je,routes:Xe,items:qe,children:pt,itemRender:Pe,params:Be={}}=Le,Ke=Ce(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ut,direction:Ue,breadcrumb:tt}=ce.useContext(le.E_);let de;const Je=ut("breadcrumb",Ae),[ct,Ot]=ie(Je),wt=se(qe,Xe),we=a(Je,Pe);if(wt&&wt.length>0){const ke=[],He=qe||Xe;de=wt.map((mt,Et)=>{const{path:Ft,key:Mt,type:_t,menu:Ct,overlay:yt,onClick:bt,className:Wt,separator:mn,dropdownProps:qt}=mt,Ut=Re(Be,Ft);Ut!==void 0&&ke.push(Ut);const pe=Mt!=null?Mt:Et;if(_t==="separator")return ce.createElement(nt,{key:pe},mn);const Ee={},Qe=Et===wt.length-1;Ct?Ee.menu=Ct:yt&&(Ee.overlay=yt);let{href:st}=mt;return ke.length&&Ut!==void 0&&(st=`#/${ke.join("/")}`),ce.createElement(x,Object.assign({key:pe},Ee,(0,Ne.Z)(mt,{data:!0,aria:!0}),{className:Wt,dropdownProps:qt,href:st,separator:Qe?"":$e,onClick:bt,prefixCls:Je}),we(mt,Be,He,ke,st))})}else if(pt){const ke=(0,Ye.Z)(pt).length;de=(0,Ye.Z)(pt).map((He,mt)=>{if(!He)return He;const Et=mt===ke-1;return(0,Fe.Tm)(He,{separator:Et?"":$e,key:mt})})}const ve=Se()(Je,tt==null?void 0:tt.className,{[`${Je}-rtl`]:Ue==="rtl"},it,je,Ot),fe=Object.assign(Object.assign({},tt==null?void 0:tt.style),Ve);return ct(ce.createElement("nav",Object.assign({className:ve,style:fe},Ke),ce.createElement("ol",null,de)))};Pt.Item=E,Pt.Separator=nt;var zt=Pt,kt=zt},24905:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),Ye=oe(5630),Ne=oe(59301),ce=oe(36355),Fe=oe(1684),le=oe(32441),Ge=Ne.createContext(null),De=oe(98447),nt=oe(14088),_e=oe(4572),Te=function(ge,me){var se={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(se[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(ge);Re<Ce.length;Re++)me.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[Re])&&(se[Ce[Re]]=ge[Ce[Re]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Ce,className:Re,rootClassName:Pt,children:zt,indeterminate:kt=!1,style:Le,onMouseEnter:Ae,onMouseLeave:$e,skipGroup:Ve=!1,disabled:it}=ge,je=Te(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Xe,direction:qe,checkbox:pt}=Ne.useContext(ce.E_),Pe=Ne.useContext(Ge),{isFormItemInput:Be}=Ne.useContext(le.aM),Ke=Ne.useContext(Fe.Z),ut=(se=(Pe==null?void 0:Pe.disabled)||it)!==null&&se!==void 0?se:Ke,Ue=Ne.useRef(je.value);Ne.useEffect(()=>{Pe==null||Pe.registerValue(je.value)},[]),Ne.useEffect(()=>{if(!Ve)return je.value!==Ue.current&&(Pe==null||Pe.cancelValue(Ue.current),Pe==null||Pe.registerValue(je.value),Ue.current=je.value),()=>Pe==null?void 0:Pe.cancelValue(je.value)},[je.value]);const tt=Xe("checkbox",Ce),[de,Je]=(0,De.ZP)(tt),ct=Object.assign({},je);Pe&&!Ve&&(ct.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),Pe.toggleOption&&Pe.toggleOption({label:zt,value:je.value})},ct.name=Pe.name,ct.checked=Pe.value.includes(je.value));const Ot=Se()(`${tt}-wrapper`,{[`${tt}-rtl`]:qe==="rtl",[`${tt}-wrapper-checked`]:ct.checked,[`${tt}-wrapper-disabled`]:ut,[`${tt}-wrapper-in-form-item`]:Be},pt==null?void 0:pt.className,Re,Pt,Je),wt=Se()({[`${tt}-indeterminate`]:kt},_e.A,Je),we=kt?"mixed":void 0;return de(Ne.createElement(nt.Z,{component:"Checkbox",disabled:ut},Ne.createElement("label",{className:Ot,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Le),onMouseEnter:Ae,onMouseLeave:$e},Ne.createElement(Ye.Z,Object.assign({"aria-checked":we},ct,{prefixCls:tt,className:wt,disabled:ut,ref:me})),zt!==void 0&&Ne.createElement("span",null,zt))))};var y=Ne.forwardRef(ae),x=oe(65093),b=oe(2738),E=function(ge,me){var se={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(se[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(ge);Re<Ce.length;Re++)me.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[Re])&&(se[Ce[Re]]=ge[Ce[Re]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Ce,options:Re=[],prefixCls:Pt,className:zt,rootClassName:kt,style:Le,onChange:Ae}=ge,$e=E(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ve,direction:it}=Ne.useContext(ce.E_),[je,Xe]=Ne.useState($e.value||se||[]),[qe,pt]=Ne.useState([]);Ne.useEffect(()=>{"value"in $e&&Xe($e.value||[])},[$e.value]);const Pe=Ne.useMemo(()=>Re.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[Re]),Be=ve=>{pt(fe=>fe.filter(ke=>ke!==ve))},Ke=ve=>{pt(fe=>[].concat((0,x.Z)(fe),[ve]))},ut=ve=>{const fe=je.indexOf(ve.value),ke=(0,x.Z)(je);fe===-1?ke.push(ve.value):ke.splice(fe,1),"value"in $e||Xe(ke),Ae==null||Ae(ke.filter(He=>qe.includes(He)).sort((He,mt)=>{const Et=Pe.findIndex(Mt=>Mt.value===He),Ft=Pe.findIndex(Mt=>Mt.value===mt);return Et-Ft}))},Ue=Ve("checkbox",Pt),tt=`${Ue}-group`,[de,Je]=(0,De.ZP)(Ue),ct=(0,b.Z)($e,["value","disabled"]),Ot=Re.length?Pe.map(ve=>Ne.createElement(y,{prefixCls:Ue,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:$e.disabled,value:ve.value,checked:je.includes(ve.value),onChange:ve.onChange,className:`${tt}-item`,style:ve.style,title:ve.title},ve.label)):Ce,wt={toggleOption:ut,value:je,disabled:$e.disabled,name:$e.name,registerValue:Ke,cancelValue:Be},we=Se()(tt,{[`${tt}-rtl`]:it==="rtl"},zt,kt,Je);return de(Ne.createElement("div",Object.assign({className:we,style:Le},ct,{ref:me}),Ne.createElement(Ge.Provider,{value:wt},Ot)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Oe,dt,oe){"use strict";oe.d(dt,{C2:function(){return ce}});var ne=oe(17313),Se=oe(37613),Ye=oe(83116);const Ne=Fe=>{const{checkboxCls:le}=Fe,Ie=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{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}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Fe.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,le){const Ie=(0,Se.TS)(le,{checkboxCls:`.${Fe}`,checkboxSize:le.controlInteractiveSize});return[Ne(Ie)]}dt.ZP=(0,Ye.Z)("Checkbox",(Fe,le)=>{let{prefixCls:Ie}=le;return[ce(Ie,Fe)]})},91857:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Ye=oe(92310),Ne=oe.n(Ye),ce=oe(31561),Fe=oe(70425),le=oe(18929),Ie=oe(2738),Ge=oe(79676),De=oe(53487),nt=oe(92343),_e=oe(36355),Te=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const x=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:me,trigger:se,disabled:Ce,dropdownRender:Re,getPopupContainer:Pt,overlayClassName:zt,rootClassName:kt,open:Le,onOpenChange:Ae,visible:$e,onVisibleChange:Ve,mouseEnterDelay:it=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:Xe=!0,placement:qe="",overlay:pt,transitionName:Pe}=te,{getPopupContainer:Be,getPrefixCls:Ke,direction:ut}=ne.useContext(_e.E_),Ue=ne.useMemo(()=>{const Ct=Ke();return Pe!==void 0?Pe:qe.includes("top")?`${Ct}-slide-down`:`${Ct}-slide-up`},[Ke,qe,Pe]),tt=ne.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:ut==="rtl"?"bottomRight":"bottomLeft",[qe,ut]),de=Ke("dropdown",ge),[Je,ct]=(0,y.Z)(de),[,Ot]=(0,a.Z)(),wt=ne.Children.only(me),we=(0,nt.Tm)(wt,{className:Ne()(`${de}-trigger`,{[`${de}-rtl`]:ut==="rtl"},wt.props.className),disabled:Ce}),ve=Ce?[]:se;let fe;ve&&ve.includes("contextMenu")&&(fe=!0);const[ke,He]=(0,le.Z)(!1,{value:Le!=null?Le:$e}),mt=(0,Fe.useEvent)(Ct=>{Ae==null||Ae(Ct),Ve==null||Ve(Ct),He(Ct)}),Et=Ne()(zt,kt,ct,{[`${de}-rtl`]:ut==="rtl"}),Ft=(0,Ge.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Xe,offset:Ot.marginXXS,arrowWidth:ie?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),Mt=ne.useCallback(()=>{He(!1)},[]),_t=()=>{let Ct;return re!=null&&re.items?Ct=ne.createElement(Te.default,Object.assign({},re)):typeof pt=="function"?Ct=pt():Ct=pt,Re&&(Ct=Re(Ct)),Ct=ne.Children.only(typeof Ct=="string"?ne.createElement("span",null,Ct):Ct),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mt,validator:yt=>{let{mode:bt}=yt}},Ct)};return Je(ne.createElement(ce.Z,Object.assign({alignPoint:fe},(0,Ie.Z)(te,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:je,visible:ke,builtinPlacements:Ft,arrow:!!ie,overlayClassName:Et,prefixCls:de,getPopupContainer:Pt||Be,transitionName:Ue,trigger:ve,overlay:_t,placement:tt,onVisibleChange:mt}),we))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",te=>te,E),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(17313),Se=oe(13826),Ye=oe(92899),Ne=oe(29878),ce=oe(19447),Fe=oe(83116),le=oe(37613),Ge=_e=>{const{componentCls:Te,menuCls:ae,colorError:a,colorTextLightSolid:y}=_e,x=`${ae}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=_e=>{const{componentCls:Te,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=_e;return[{[Te]:Object.assign(Object.assign({},(0,ne.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ge}},[`${Te}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ge},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Te}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(_e,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,ne.Qy)(_e)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:_e.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:_e.marginXS,fontSize:_e.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:_e.colorText,fontWeight:"normal",fontSize:te,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,ne.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${_e.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+_e.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Te}-menu-submenu-title`]:{color:_e.colorPrimary}})}},[(0,Se.oN)(_e,"slide-up"),(0,Se.oN)(_e,"slide-down"),(0,Ye.Fm)(_e,"move-up"),(0,Ye.Fm)(_e,"move-down"),(0,Ne._y)(_e,"zoom-big")]]};var nt=(0,Fe.Z)("Dropdown",(_e,Te)=>{let{rootPrefixCls:ae}=Te;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=_e,re=(x-b*E)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,le.TS)(_e,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),Ge(ge)]},_e=>({zIndexPopup:_e.zIndexPopupBase+50}))},45818:function(Oe,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(16378),Se=oe(59301),Ye={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"},Ne=Ye,ce=oe(7657),Fe=function(ge,me){return Se.createElement(ce.Z,(0,ne.Z)({},ge,{ref:me,icon:Ne}))},le=Se.forwardRef(Fe),Ie=le,Ge=oe(33853),De=oe(38819),nt=oe(92310),_e=oe.n(nt),Te=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),x=oe(84966),b=function(ie,ge){var me={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(me[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,se=Object.getOwnPropertySymbols(ie);Ce<se.length;Ce++)ge.indexOf(se[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Ce])&&(me[se[Ce]]=ie[se[Ce]]);return me};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:me,className:se,trigger:Ce,children:Re,defaultCollapsed:Pt=!1,theme:zt="dark",style:kt={},collapsible:Le=!1,reverseArrow:Ae=!1,width:$e=200,collapsedWidth:Ve=80,zeroWidthTriggerStyle:it,breakpoint:je,onCollapse:Xe,onBreakpoint:qe}=ie,pt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Pe}=(0,Se.useContext)(x.Gs),[Be,Ke]=(0,Se.useState)("collapsed"in ie?ie.collapsed:Pt),[ut,Ue]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Ke(ie.collapsed)},[ie.collapsed]);const tt=(we,ve)=>{"collapsed"in ie||Ke(we),Xe==null||Xe(we,ve)},de=(0,Se.useRef)();de.current=we=>{Ue(we.matches),qe==null||qe(we.matches),Be!==we.matches&&tt(we.matches,"responsive")},(0,Se.useEffect)(()=>{function we(fe){return de.current(fe)}let ve;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&je&&je in E){ve=fe(`(max-width: ${E[je]})`);try{ve.addEventListener("change",we)}catch(ke){ve.addListener(we)}we(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",we)}catch(fe){ve==null||ve.removeListener(we)}}},[je]),(0,Se.useEffect)(()=>{const we=ee("ant-sider-");return Pe.addSider(we),()=>Pe.removeSider(we)},[]);const Je=()=>{tt(!Be,"clickTrigger")},{getPrefixCls:ct}=(0,Se.useContext)(y.E_),Ot=()=>{const we=ct("layout-sider",me),ve=(0,Te.Z)(pt,["collapsed"]),fe=Be?Ve:$e,ke=a(fe)?`${fe}px`:String(fe),He=parseFloat(String(Ve||0))===0?Se.createElement("span",{onClick:Je,className:_e()(`${we}-zero-width-trigger`,`${we}-zero-width-trigger-${Ae?"right":"left"}`),style:it},Ce||Se.createElement(Ie,null)):null,Ft={expanded:Ae?Se.createElement(De.Z,null):Se.createElement(Ge.Z,null),collapsed:Ae?Se.createElement(Ge.Z,null):Se.createElement(De.Z,null)}[Be?"collapsed":"expanded"],Mt=Ce!==null?He||Se.createElement("div",{className:`${we}-trigger`,onClick:Je,style:{width:ke}},Ce||Ft):null,_t=Object.assign(Object.assign({},kt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),Ct=_e()(we,`${we}-${zt}`,{[`${we}-collapsed`]:!!Be,[`${we}-has-trigger`]:Le&&Ce!==null&&!He,[`${we}-below`]:!!ut,[`${we}-zero-width`]:parseFloat(ke)===0},se);return Se.createElement("aside",Object.assign({className:Ct},ve,{style:_t,ref:ge}),Se.createElement("div",{className:`${we}-children`},Re),Le||ut&&He?Mt:null)},wt=Se.useMemo(()=>({siderCollapsed:Be}),[Be]);return Se.createElement(z.Provider,{value:wt},Ot())})},84966:function(Oe,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Te},ZP:function(){return ee}});var ne=oe(65093),Se=oe(92310),Ye=oe.n(Se),Ne=oe(2738),ce=oe(59301),Fe=oe(36355),le=oe(83116),Ge=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Ce,headerHeight:Re,headerPadding:Pt,headerColor:zt,footerPadding:kt,triggerHeight:Le,zeroTriggerHeight:Ae,zeroTriggerWidth:$e,motionDurationMid:Ve,motionDurationSlow:it,fontSize:je,borderRadius:Xe,bodyBg:qe,headerBg:pt,siderBg:Pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qe,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Pe,transition:`all ${Ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:me,lineHeight:`${Le}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-$e,zIndex:1,width:$e,height:Ae,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Pe,borderStartStartRadius:0,borderStartEndRadius:Xe,borderEndEndRadius:Xe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-$e,borderStartStartRadius:Xe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Xe}}}}},Ge(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Re,padding:Pt,color:zt,lineHeight:`${Re}px`,background:pt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:kt,color:ge,fontSize:je,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var nt=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Ce,colorTextLightSolid:Re,colorBgContainer:Pt}=te,zt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${zt}px`,headerColor:me,footerPadding:`${se}px ${zt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ce*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Pt,lightTriggerBg:Pt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const Te=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ce.forwardRef((Ce,Re)=>ce.createElement(me,Object.assign({ref:Re,suffixCls:re,tagName:ie},Ce)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Ce=_e(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=ce.useContext(Fe.E_),Pt=Re("layout",ie),[zt,kt]=nt(Pt),Le=ge?`${Pt}-${ge}`:Pt;return zt(ce.createElement(se,Object.assign({className:Ye()(ie||Le,me,kt),ref:re},Ce)))}),y=ce.forwardRef((te,re)=>{const{direction:ie}=ce.useContext(Fe.E_),[ge,me]=ce.useState([]),{prefixCls:se,className:Ce,rootClassName:Re,children:Pt,hasSider:zt,tagName:kt,style:Le}=te,Ae=_e(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),$e=(0,Ne.Z)(Ae,["suffixCls"]),{getPrefixCls:Ve,layout:it}=ce.useContext(Fe.E_),je=Ve("layout",se),[Xe,qe]=nt(je),pt=Ye()(je,{[`${je}-has-sider`]:typeof zt=="boolean"?zt:ge.length>0,[`${je}-rtl`]:ie==="rtl"},it==null?void 0:it.className,Ce,Re,qe),Pe=ce.useMemo(()=>({siderHook:{addSider:Be=>{me(Ke=>[].concat((0,ne.Z)(Ke),[Be]))},removeSider:Be=>{me(Ke=>Ke.filter(ut=>ut!==Be))}}}),[]);return Xe(ce.createElement(Te.Provider,{value:Pe},ce.createElement(kt,Object.assign({ref:re,className:pt,style:Object.assign(Object.assign({},it==null?void 0:it.style),Le)},$e),Pt)))}),x=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Oe,dt,oe){"use strict";oe.d(dt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Ye=oe(70425),Ne=function(le,Ie){var Ge={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&Ie.indexOf(De)<0&&(Ge[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(le);nt<De.length;nt++)Ie.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(le,De[nt])&&(Ge[De[nt]]=le[De[nt]]);return Ge};const ce=ne.createContext(null),Fe=ne.forwardRef((le,Ie)=>{const{children:Ge}=le,De=Ne(le,["children"]),nt=ne.useContext(ce),_e=ne.useMemo(()=>Object.assign(Object.assign({},nt),De),[nt,De.prefixCls,De.mode,De.selectable]);return ne.createElement(ce.Provider,{value:_e},ne.createElement(Se.BR,null,(0,Ye.supportNodeRef)(Ge)?ne.cloneElement(Ge,{ref:Ie}):Ge))});dt.Z=ce},20834:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return wt}});var ne=oe(15285),Se=oe(59301),Ye=oe(45818),Ne=oe(92310),ce=oe.n(Ne),Fe=oe(36355),le=function(we,ve){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(we);He<ke.length;He++)ve.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[He])&&(fe[ke[He]]=we[ke[He]]);return fe},Ge=we=>{const{prefixCls:ve,className:fe,dashed:ke}=we,He=le(we,["prefixCls","className","dashed"]),{getPrefixCls:mt}=Se.useContext(Fe.E_),Et=mt("menu",ve),Ft=ce()({[`${Et}-item-divider-dashed`]:!!ke},fe);return Se.createElement(ne.iz,Object.assign({className:Ft},He))},De=oe(11592),nt=oe(2738),_e=oe(6848),Te=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=we=>{var ve;const{className:fe,children:ke,icon:He,title:mt,danger:Et}=we,{prefixCls:Ft,firstLevel:Mt,direction:_t,disableMenuItemTitleTooltip:Ct,inlineCollapsed:yt}=Se.useContext(a),bt=Ee=>{const Qe=Se.createElement("span",{className:`${Ft}-title-content`},ke);return(!He||(0,Te.l$)(ke)&&ke.type==="span")&&ke&&Ee&&Mt&&typeof ke=="string"?Se.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},ke.charAt(0)):Qe},{siderCollapsed:Wt}=Se.useContext(Ye.D);let mn=mt;typeof mt=="undefined"?mn=Mt?ke:"":mt===!1&&(mn="");const qt={title:mn};!Wt&&!yt&&(qt.title=null,qt.open=!1);const Ut=(0,De.Z)(ke).length;let pe=Se.createElement(ne.ck,Object.assign({},(0,nt.Z)(we,["title","icon","danger"]),{className:ce()({[`${Ft}-item-danger`]:Et,[`${Ft}-item-only-child`]:(He?Ut+1:Ut)===1},fe),title:typeof mt=="string"?mt:void 0}),(0,Te.Tm)(He,{className:ce()((0,Te.l$)(He)?(ve=He.props)===null||ve===void 0?void 0:ve.className:"",`${Ft}-item-icon`)}),bt(yt));return Ct||(pe=Se.createElement(_e.Z,Object.assign({},qt,{placement:_t==="rtl"?"left":"right",overlayClassName:`${Ft}-inline-collapsed-tooltip`}),pe)),pe},E=we=>{var ve;const{popupClassName:fe,icon:ke,title:He,theme:mt}=we,Et=Se.useContext(a),{prefixCls:Ft,inlineCollapsed:Mt,theme:_t}=Et,Ct=(0,ne.Xl)();let yt;if(!ke)yt=Mt&&!Ct.length&&He&&typeof He=="string"?Se.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},He.charAt(0)):Se.createElement("span",{className:`${Ft}-title-content`},He);else{const Wt=(0,Te.l$)(He)&&He.type==="span";yt=Se.createElement(Se.Fragment,null,(0,Te.Tm)(ke,{className:ce()((0,Te.l$)(ke)?(ve=ke.props)===null||ve===void 0?void 0:ve.className:"",`${Ft}-item-icon`)}),Wt?He:Se.createElement("span",{className:`${Ft}-title-content`},He))}const bt=Se.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]);return Se.createElement(a.Provider,{value:bt},Se.createElement(ne.Wd,Object.assign({},(0,nt.Z)(we,["icon"]),{title:yt,popupClassName:ce()(Ft,fe,`${Ft}-${mt||_t}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(we,ve){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(we);He<ke.length;He++)ve.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[He])&&(fe[ke[He]]=we[ke[He]]);return fe};function ge(we){return(we||[]).map((ve,fe)=>{if(ve&&typeof ve=="object"){const ke=ve,{label:He,children:mt,key:Et,type:Ft}=ke,Mt=ie(ke,["label","children","key","type"]),_t=Et!=null?Et:`tmp-${fe}`;return mt||Ft==="group"?Ft==="group"?Se.createElement(ne.BW,Object.assign({key:_t},Mt,{title:He}),ge(mt)):Se.createElement(E,Object.assign({key:_t},Mt,{title:He}),ge(mt)):Ft==="divider"?Se.createElement(Ge,Object.assign({key:_t},Mt)):Se.createElement(x,Object.assign({key:_t},Mt),He)}return null}).filter(ve=>ve)}function me(we){return Se.useMemo(()=>we&&ge(we),[we])}var se=oe(64993),Ce=oe(17313),Re=oe(8378),Pt=oe(13826),zt=oe(29878),kt=oe(83116),Le=oe(37613),$e=we=>{const{componentCls:ve,motionDurationSlow:fe,horizontalLineHeight:ke,colorSplit:He,lineWidth:mt,lineType:Et,itemPaddingInline:Ft}=we;return{[`${ve}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${mt}px ${Et} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},it=we=>{let{componentCls:ve,menuArrowOffset:fe}=we;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const je=we=>Object.assign({},(0,Ce.oN)(we));var qe=(we,ve)=>{const{componentCls:fe,itemColor:ke,itemSelectedColor:He,groupTitleColor:mt,itemBg:Et,subMenuItemBg:Ft,itemSelectedBg:Mt,activeBarHeight:_t,activeBarWidth:Ct,activeBarBorderWidth:yt,motionDurationSlow:bt,motionEaseInOut:Wt,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Ut,itemHoverColor:pe,lineType:Ee,colorSplit:Qe,itemDisabledColor:st,dangerItemColor:ft,dangerItemHoverColor:Tt,dangerItemSelectedColor:jt,dangerItemActiveBg:$t,dangerItemSelectedBg:Rt,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:dn,popupBg:on}=we;return{[`${fe}-${ve}, ${fe}-${ve} > ${fe}`]:{color:ke,background:Et,[`&${fe}-root:focus-visible`]:Object.assign({},je(we)),[`${fe}-item-group-title`]:{color:mt},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:He}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${st} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:pe}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${fe}-item-danger`]:{color:ft,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Tt}},[`&${fe}-item:active`]:{background:$t}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:He,[`&${fe}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:Mt,[`&${fe}-item-danger`]:{backgroundColor:Rt}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},je(we))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:nn},[`&${fe}-popup > ${fe}`]:{backgroundColor:on},[`&${fe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:yt,marginTop:-yt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${_t}px solid transparent`,transition:`border-color ${bt} ${Wt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:_t,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:_t,borderBottomColor:hn}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${yt}px ${Ee} ${Qe}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Ft},[`${fe}-item, ${fe}-submenu-title`]:yt&&Ct?{width:`calc(100% + ${yt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ct}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${mn}`,`opacity ${Ut} ${mn}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${Wt}`,`opacity ${Ut} ${Wt}`].join(",")}}}}}};const pt=we=>{const{componentCls:ve,itemHeight:fe,itemMarginInline:ke,padding:He,menuArrowSize:mt,marginXS:Et,itemMarginBlock:Ft}=we,Mt=He+mt+Et;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Ft,width:`calc(100% - ${ke*2}px)`},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:Mt}}};var Be=we=>{const{componentCls:ve,iconCls:fe,itemHeight:ke,colorTextLightSolid:He,dropdownWidth:mt,controlHeightLG:Et,motionDurationMid:Ft,motionEaseOut:Mt,paddingXL:_t,itemMarginInline:Ct,fontSizeLG:yt,motionDurationSlow:bt,paddingXS:Wt,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Ut}=we,pe={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},pt(we))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},pt(we)),{boxShadow:mn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${Et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bt}`,`background ${bt}`,`padding ${Ft} ${Mt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:pe,[`& ${ve}-item-group-title`]:{paddingInlineStart:_t}},[`${ve}-item`]:pe}},{[`${ve}-inline-collapsed`]:{width:qt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:yt,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${yt/2}px - ${Ct}px)`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${fe}`]:{margin:0,fontSize:Ut,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:He}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:Wt})}}]};const Ke=we=>{const{componentCls:ve,motionDurationSlow:fe,motionDurationMid:ke,motionEaseInOut:He,motionEaseOut:mt,iconCls:Et,iconSize:Ft,iconMarginInlineEnd:Mt}=we;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${He}`].join(","),[`${ve}-item-icon, ${Et}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${ke} ${mt}`,`margin ${fe} ${He}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${fe} ${He}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${ve}-item-only-child`]:{[`> ${Et}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ut=we=>{const{componentCls:ve,motionDurationSlow:fe,motionEaseInOut:ke,borderRadius:He,menuArrowSize:mt,menuArrowOffset:Et}=we;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${ke}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:mt*.6,height:mt*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${fe} ${ke}`,`transform ${fe} ${ke}`,`top ${fe} ${ke}`,`color ${fe} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Et})`},"&::after":{transform:`rotate(-45deg) translateY(${Et})`}}}}},Ue=we=>{const{antCls:ve,componentCls:fe,fontSize:ke,motionDurationSlow:He,motionDurationMid:mt,motionEaseInOut:Et,paddingXS:Ft,padding:Mt,colorSplit:_t,lineWidth:Ct,zIndexPopup:yt,borderRadiusLG:bt,subMenuItemBorderRadius:Wt,menuArrowSize:mn,menuArrowOffset:qt,lineType:Ut,menuPanelMaskInset:pe,groupTitleLineHeight:Ee,groupTitleFontSize:Qe}=we;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(we)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Ft}px ${Mt}px`,fontSize:Qe,lineHeight:Ee,transition:`all ${He}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${He} ${Et}`,`background ${He} ${Et}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${He} ${Et}`,`background ${He} ${Et}`,`padding ${mt} ${Et}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${He} ${Et}`,`padding ${He} ${Et}`].join(",")},[`${fe}-title-content`]:{transition:`color ${He}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:_t,borderStyle:Ut,borderWidth:0,borderTopWidth:Ct,marginBlock:Ct,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ke(we)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${ke*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:yt,borderRadius:bt,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:bt},Ke(we)),ut(we)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Wt},[`${fe}-submenu-title::after`]:{transition:`transform ${He} ${Et}`}})}}),ut(we)),{[`&-inline-collapsed ${fe}-submenu-arrow,
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${ve}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var tt=(we,ve)=>(0,kt.Z)("Menu",ke=>{if(ve===!1)return[];const{colorBgElevated:He,colorPrimary:mt,colorTextLightSolid:Et,controlHeightLG:Ft,fontSize:Mt,darkItemColor:_t,darkDangerItemColor:Ct,darkItemBg:yt,darkSubMenuItemBg:bt,darkItemSelectedColor:Wt,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Ut,darkGroupTitleColor:pe,darkItemHoverColor:Ee,darkItemDisabledColor:Qe,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:Tt}=ke,jt=Mt/7*5,$t=(0,Le.TS)(ke,{menuArrowSize:jt,menuHorizontalHeight:Ft*1.15,menuArrowOffset:`${jt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),Rt=(0,Le.TS)($t,{itemColor:_t,itemHoverColor:Ee,groupTitleColor:pe,itemSelectedColor:Wt,itemBg:yt,popupBg:yt,subMenuItemBg:bt,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ut,itemDisabledColor:Qe,dangerItemColor:Ct,dangerItemHoverColor:st,dangerItemSelectedColor:ft,dangerItemActiveBg:Tt,dangerItemSelectedBg:qt,menuSubMenuBg:bt,horizontalItemSelectedColor:Et,horizontalItemSelectedBg:mt});return[Ue($t),$e($t),Be($t),qe($t,"light"),qe(Rt,"dark"),it($t),(0,Re.Z)($t),(0,Pt.oN)($t,"slide-up"),(0,Pt.oN)($t,"slide-down"),(0,zt._y)($t,"zoom-big")]},ke=>{const{colorPrimary:He,colorError:mt,colorTextDisabled:Et,colorErrorBg:Ft,colorText:Mt,colorTextDescription:_t,colorBgContainer:Ct,colorFillAlter:yt,colorFillContent:bt,lineWidth:Wt,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Ut,controlHeightLG:pe,lineHeight:Ee,colorBgElevated:Qe,marginXXS:st,padding:ft,fontSize:Tt,controlHeightSM:jt,fontSizeLG:$t,colorTextLightSolid:Rt,colorErrorHover:Jt}=ke,Kt=new se.C(Rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:_t,groupTitleColor:_t,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:Ct,itemBg:Ct,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:bt,itemActiveBg:qt,colorSubItemBg:yt,subMenuItemBg:yt,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Wt,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Ee,collapsedWidth:pe*2,popupBg:Qe,itemMarginBlock:st,itemPaddingInline:ft,horizontalLineHeight:`${pe*1.15}px`,iconSize:Tt,iconMarginInlineEnd:jt-Tt,collapsedIconSize:$t,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(Rt).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Rt,darkItemSelectedBg:He,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:Rt,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:mt}},{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"]]})(we),de=function(we,ve){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(we);He<ke.length;He++)ve.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[He])&&(fe[ke[He]]=we[ke[He]]);return fe},ct=(0,Se.forwardRef)((we,ve)=>{var fe,ke;const He=Se.useContext(re.Z),mt=He||{},{getPrefixCls:Et,getPopupContainer:Ft,direction:Mt,menu:_t}=Se.useContext(Fe.E_),Ct=Et(),{prefixCls:yt,className:bt,style:Wt,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Ut,inlineCollapsed:pe,siderCollapsed:Ee,items:Qe,children:st,rootClassName:ft,mode:Tt,selectable:jt,onClick:$t,overflowedIndicatorPopupClassName:Rt}=we,Jt=de(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,nt.Z)(Jt,["collapsedWidth"]),nn=me(Qe)||st;(fe=mt.validator)===null||fe===void 0||fe.call(mt,{mode:Tt});const hn=(0,ee.useEvent)(function(){var Nn;$t==null||$t.apply(void 0,arguments),(Nn=mt.onClick)===null||Nn===void 0||Nn.call(mt)}),vn=mt.mode||Tt,wn=jt!=null?jt:mt.selectable,dn=Se.useMemo(()=>Ee!==void 0?Ee:pe,[pe,Ee]),on={horizontal:{motionName:`${Ct}-slide-up`},inline:(0,te.Z)(Ct),other:{motionName:`${Ct}-zoom-big`}},yn=Et("menu",yt||mt.prefixCls),[Bn,xn]=tt(yn,!He),cn=ce()(`${yn}-${mn}`,_t==null?void 0:_t.className,bt);let zn;if(typeof qt=="function")zn=qt;else if(qt===null||qt===!1)zn=null;else if(mt.expandIcon===null||mt.expandIcon===!1)zn=null;else{const Nn=qt!=null?qt:mt.expandIcon;zn=(0,Te.Tm)(Nn,{className:ce()(`${yn}-submenu-expand-icon`,(0,Te.l$)(Nn)?(ke=Nn.props)===null||ke===void 0?void 0:ke.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:Mt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ut}),[yn,dn,Mt,Ut,mn]);return Bn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:Ft,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,Rt),mode:vn,selectable:wn,onClick:hn},Kt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),Wt),className:cn,prefixCls:yn,direction:Mt,defaultMotions:on,expandIcon:zn,ref:ve,rootClassName:ce()(ft,xn)}),nn))))});const Ot=(0,Se.forwardRef)((we,ve)=>{const fe=(0,Se.useRef)(null),ke=Se.useContext(Ye.D);return(0,Se.useImperativeHandle)(ve,()=>({menu:fe.current,focus:He=>{var mt;(mt=fe.current)===null||mt===void 0||mt.focus(He)}})),Se.createElement(ct,Object.assign({ref:fe},we,ke))});Ot.Item=x,Ot.SubMenu=E,Ot.Divider=Ge,Ot.ItemGroup=ne.BW;var wt=Ot},93948:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ut}});var ne=oe(59301),Se=oe(29679),Ye=oe(40001),Ne=oe(19248),ce=oe(99267),Fe=oe(92310),le=oe.n(Fe),Ie=oe(2738),Ge=oe(36355),De=oe(16378),nt=oe(35227),_e=oe(61206),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ee=(0,ne.useRef)([]),Qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var st=Date.now(),ft=!1;Ee.current.forEach(function(Tt){if(Tt){ft=!0;var jt=Tt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&st-Qe.current<100&&(jt.transitionDuration="0s, 0s")}}),ft&&(Qe.current=Date.now())}),Ee.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ee){var Qe=(0,nt.Z)((0,nt.Z)({},Te),Ee),st=Qe.className,ft=Qe.percent,Tt=Qe.prefixCls,jt=Qe.strokeColor,$t=Qe.strokeLinecap,Rt=Qe.strokeWidth,Jt=Qe.style,Kt=Qe.trailColor,nn=Qe.trailWidth,hn=Qe.transition,vn=(0,_e.Z)(Qe,a);delete vn.gapPosition;var wn=Array.isArray(ft)?ft:[ft],dn=Array.isArray(jt)?jt:[jt],on=ae(),yn=Rt/2,Bn=100-Rt/2,xn="M ".concat($t==="round"?yn:0,",").concat(yn,`
L `).concat($t==="round"?Bn:100,",").concat(yn),cn="0 0 100 ".concat(Rt),zn=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Tt,"-line"),st),viewBox:cn,preserveAspectRatio:"none",style:Jt},vn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:xn,strokeLinecap:$t,stroke:Kt,strokeWidth:nn||Rt,fillOpacity:"0"}),wn.map(function(Yn,Nn){var Wn=1;switch($t){case"round":Wn=1-Rt/100;break;case"square":Wn=1-Rt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[Nn]||dn[dn.length-1];return zn+=Yn,ne.createElement("path",{key:Nn,className:"".concat(Tt,"-line-path"),d:xn,strokeLinecap:$t,stroke:Jn,strokeWidth:Rt,fillOpacity:"0",ref:function(be){on[Nn]=be},style:na})}))},x=y,b=oe(42066),E=oe(10859),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var Ee=ne.useState(),Qe=(0,E.Z)(Ee,2),st=Qe[0],ft=Qe[1];return ne.useEffect(function(){ft("rc_progress_".concat(re()))},[]),pe||st},ge=function(Ee){var Qe=Ee.bg,st=Ee.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},st)};function me(pe,Ee){return Object.keys(pe).map(function(Qe){var st=parseFloat(Qe),ft="".concat(Math.floor(st*Ee),"%");return"".concat(pe[Qe]," ").concat(ft)})}var se=ne.forwardRef(function(pe,Ee){var Qe=pe.prefixCls,st=pe.color,ft=pe.gradientId,Tt=pe.radius,jt=pe.style,$t=pe.ptg,Rt=pe.strokeLinecap,Jt=pe.strokeWidth,Kt=pe.size,nn=pe.gapDegree,hn=st&&(0,b.Z)(st)==="object",vn=hn?"#FFF":void 0,wn=Kt/2,dn=ne.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:Tt,cx:wn,cy:wn,stroke:vn,strokeLinecap:Rt,strokeWidth:Jt,opacity:$t===0?0:1,style:jt,ref:Ee});if(!hn)return dn;var on="".concat(ft,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",Bn=me(st,(360-nn)/360),xn=me(st,1),cn="conic-gradient(from ".concat(yn,", ").concat(Bn.join(", "),")"),zn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(xn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:on},dn),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(on,")")},ne.createElement(ge,{bg:zn},ne.createElement(ge,{bg:cn}))))}),Ce=se,Re=100,Pt=function(Ee,Qe,st,ft,Tt,jt,$t,Rt,Jt,Kt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=st/100*360*((360-jt)/360),vn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[$t],wn=(100-ft)/100*Qe;Jt==="round"&&ft!==100&&(wn+=Kt/2,wn>=Qe&&(wn=Qe-.01));var dn=Re/2;return{stroke:typeof Rt=="string"?Rt:void 0,strokeDasharray:"".concat(Qe,"px ").concat(Ee),strokeDashoffset:wn+nn,transform:"rotate(".concat(Tt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kt(pe){var Ee=pe!=null?pe:[];return Array.isArray(Ee)?Ee:[Ee]}var Le=function(Ee){var Qe=(0,nt.Z)((0,nt.Z)({},Te),Ee),st=Qe.id,ft=Qe.prefixCls,Tt=Qe.steps,jt=Qe.strokeWidth,$t=Qe.trailWidth,Rt=Qe.gapDegree,Jt=Rt===void 0?0:Rt,Kt=Qe.gapPosition,nn=Qe.trailColor,hn=Qe.strokeLinecap,vn=Qe.style,wn=Qe.className,dn=Qe.strokeColor,on=Qe.percent,yn=(0,_e.Z)(Qe,zt),Bn=Re/2,xn=ie(st),cn="".concat(xn,"-gradient"),zn=Bn-jt/2,Yn=Math.PI*2*zn,Nn=Jt>0?90+Jt/2:-90,Wn=Yn*((360-Jt)/360),na=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},Jn=na.count,ye=na.space,be=kt(on),he=kt(dn),lt=he.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Nt=lt&&(0,b.Z)(lt)==="object",Bt=Nt?"butt":hn,ln=Pt(Yn,Wn,0,100,Nn,Jt,Kt,nn,Bt,jt),Zt=ae(),en=function(){var gt=0;return be.map(function(tn,Dn){var Zn=he[Dn]||he[he.length-1],Fn=Pt(Yn,Wn,gt,tn,Nn,Jt,Kt,Zn,Bt,jt);return gt+=tn,ne.createElement(Ce,{key:Dn,color:Zn,ptg:tn,radius:zn,prefixCls:ft,gradientId:cn,style:Fn,strokeLinecap:Bt,strokeWidth:jt,gapDegree:Jt,ref:function(Me){Zt[Dn]=Me},size:Re})}).reverse()},Ln=function(){var gt=Math.round(Jn*(be[0]/100)),tn=100/Jn,Dn=0;return new Array(Jn).fill(null).map(function(Zn,Fn){var ue=Fn<=gt-1?he[0]:nn,Me=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,ze=Pt(Yn,Wn,Dn,tn,Nn,Jt,Kt,ue,"butt",jt,ye);return Dn+=(Wn-ze.strokeDashoffset+ye)*100/Wn,ne.createElement("circle",{key:Fn,className:"".concat(ft,"-circle-path"),r:zn,cx:Bn,cy:Bn,stroke:Me,strokeWidth:jt,opacity:1,style:ze,ref:function(at){Zt[Fn]=at}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(ft,"-circle"),wn),viewBox:"0 0 ".concat(Re," ").concat(Re),style:vn,id:st,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(ft,"-circle-trail"),r:zn,cx:Bn,cy:Bn,stroke:nn,strokeLinecap:Bt,strokeWidth:$t||jt,style:ln}),Jn?Ln():en())},Ae=Le,$e={Line:x,Circle:Ae},Ve=oe(6848),it=oe(93398);function je(pe){return!pe||pe<0?0:pe>100?100:pe}function Xe(pe){let{success:Ee,successPercent:Qe}=pe,st=Qe;return Ee&&"progress"in Ee&&(st=Ee.progress),Ee&&"percent"in Ee&&(st=Ee.percent),st}const qe=pe=>{let{percent:Ee,success:Qe,successPercent:st}=pe;const ft=je(Xe({success:Qe,successPercent:st}));return[ft,je(je(Ee)-ft)]},pt=pe=>{let{success:Ee={},strokeColor:Qe}=pe;const{strokeColor:st}=Ee;return[st||it.presetPrimaryColors.green,Qe||null]},Pe=(pe,Ee,Qe)=>{var st,ft,Tt,jt;let $t=-1,Rt=-1;if(Ee==="step"){const Jt=Qe.steps,Kt=Qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?($t=pe==="small"?2:14,Rt=Kt!=null?Kt:8):typeof pe=="number"?[$t,Rt]=[pe,pe]:[$t=14,Rt=8]=pe,$t*=Jt}else if(Ee==="line"){const Jt=Qe==null?void 0:Qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?Rt=Jt||(pe==="small"?6:8):typeof pe=="number"?[$t,Rt]=[pe,pe]:[$t=-1,Rt=8]=pe}else(Ee==="circle"||Ee==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[$t,Rt]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[$t,Rt]=[pe,pe]:($t=(ft=(st=pe[0])!==null&&st!==void 0?st:pe[1])!==null&&ft!==void 0?ft:120,Rt=(jt=(Tt=pe[0])!==null&&Tt!==void 0?Tt:pe[1])!==null&&jt!==void 0?jt:120));return[$t,Rt]},Be=3,Ke=pe=>Be/pe*100;var Ue=pe=>{const{prefixCls:Ee,trailColor:Qe=null,strokeLinecap:st="round",gapPosition:ft,gapDegree:Tt,width:jt=120,type:$t,children:Rt,success:Jt,size:Kt=jt}=pe,[nn,hn]=Pe(Kt,"circle");let{strokeWidth:vn}=pe;vn===void 0&&(vn=Math.max(Ke(nn),6));const wn={width:nn,height:hn,fontSize:nn*.15+6},dn=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if($t==="dashboard")return 75},[Tt,$t]),on=ft||$t==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",Bn=pt({success:Jt,strokeColor:pe.strokeColor}),xn=le()(`${Ee}-inner`,{[`${Ee}-circle-gradient`]:yn}),cn=ne.createElement(Ae,{percent:qe(pe),strokeWidth:vn,trailWidth:vn,strokeColor:Bn,strokeLinecap:st,trailColor:Qe,prefixCls:Ee,gapDegree:dn,gapPosition:on});return ne.createElement("div",{className:xn,style:wn},nn<=20?ne.createElement(Ve.Z,{title:Rt},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,Rt))},tt=function(pe,Ee){var Qe={};for(var st in pe)Object.prototype.hasOwnProperty.call(pe,st)&&Ee.indexOf(st)<0&&(Qe[st]=pe[st]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,st=Object.getOwnPropertySymbols(pe);ft<st.length;ft++)Ee.indexOf(st[ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,st[ft])&&(Qe[st[ft]]=pe[st[ft]]);return Qe};const de=pe=>{let Ee=[];return Object.keys(pe).forEach(Qe=>{const st=parseFloat(Qe.replace(/%/g,""));isNaN(st)||Ee.push({key:st,value:pe[Qe]})}),Ee=Ee.sort((Qe,st)=>Qe.key-st.key),Ee.map(Qe=>{let{key:st,value:ft}=Qe;return`${ft} ${st}%`}).join(", ")},Je=(pe,Ee)=>{const{from:Qe=it.presetPrimaryColors.blue,to:st=it.presetPrimaryColors.blue,direction:ft=Ee==="rtl"?"to left":"to right"}=pe,Tt=tt(pe,["from","to","direction"]);if(Object.keys(Tt).length!==0){const jt=de(Tt);return{backgroundImage:`linear-gradient(${ft}, ${jt})`}}return{backgroundImage:`linear-gradient(${ft}, ${Qe}, ${st})`}};var Ot=pe=>{const{prefixCls:Ee,direction:Qe,percent:st,size:ft,strokeWidth:Tt,strokeColor:jt,strokeLinecap:$t="round",children:Rt,trailColor:Jt=null,success:Kt}=pe,nn=jt&&typeof jt!="string"?Je(jt,Qe):{backgroundColor:jt},hn=$t==="square"||$t==="butt"?0:void 0,vn={backgroundColor:Jt||void 0,borderRadius:hn},wn=ft!=null?ft:[-1,Tt||(ft==="small"?6:8)],[dn,on]=Pe(wn,"line",{strokeWidth:Tt}),yn=Object.assign({width:`${je(st)}%`,height:on,borderRadius:hn},nn),Bn=Xe(pe),xn={width:`${je(Bn)}%`,height:on,borderRadius:hn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ee}-outer`,style:cn},ne.createElement("div",{className:`${Ee}-inner`,style:vn},ne.createElement("div",{className:`${Ee}-bg`,style:yn}),Bn!==void 0?ne.createElement("div",{className:`${Ee}-success-bg`,style:xn}):null)),Rt)},we=pe=>{const{size:Ee,steps:Qe,percent:st=0,strokeWidth:ft=8,strokeColor:Tt,trailColor:jt=null,prefixCls:$t,children:Rt}=pe,Jt=Math.round(Qe*(st/100)),Kt=Ee==="small"?2:14,nn=Ee!=null?Ee:[Kt,ft],[hn,vn]=Pe(nn,"step",{steps:Qe,strokeWidth:ft}),wn=hn/Qe,dn=new Array(Qe);for(let on=0;on<Qe;on++){const yn=Array.isArray(Tt)?Tt[on]:Tt;dn[on]=ne.createElement("div",{key:on,className:le()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:on<=Jt-1}),style:{backgroundColor:on<=Jt-1?yn:jt,width:wn,height:vn}})}return ne.createElement("div",{className:`${$t}-steps-outer`},dn,Rt)},ve=oe(93083),fe=oe(17313),ke=oe(83116),He=oe(37613);const mt=pe=>{const Ee=pe?"100%":"-100%";return new ve.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Et=pe=>{const{componentCls:Ee,iconCls:Qe}=pe;return{[Ee]:Object.assign(Object.assign({},(0,fe.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Ee}-outer`]:{display:"inline-block",width:"100%"},[`&${Ee}-show-info`]:{[`${Ee}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:pe.defaultColor}},[`${Ee}-success-bg, ${Ee}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Ee}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:pe.fontSize}},[`&${Ee}-status-active`]:{[`${Ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:mt(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ee}-rtl${Ee}-status-active`]:{[`${Ee}-bg::before`]:{animationName:mt(!0)}},[`&${Ee}-status-exception`]:{[`${Ee}-bg`]:{backgroundColor:pe.colorError},[`${Ee}-text`]:{color:pe.colorError}},[`&${Ee}-status-exception ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:pe.colorError}},[`&${Ee}-status-success`]:{[`${Ee}-bg`]:{backgroundColor:pe.colorSuccess},[`${Ee}-text`]:{color:pe.colorSuccess}},[`&${Ee}-status-success ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:pe.colorSuccess}}})}},Ft=pe=>{const{componentCls:Ee,iconCls:Qe}=pe;return{[Ee]:{[`${Ee}-circle-trail`]:{stroke:pe.remainingColor},[`&${Ee}-circle ${Ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ee}-circle ${Ee}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qe]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Ee}-circle&-status-exception`]:{[`${Ee}-text`]:{color:pe.colorError}},[`${Ee}-circle&-status-success`]:{[`${Ee}-text`]:{color:pe.colorSuccess}}},[`${Ee}-inline-circle`]:{lineHeight:1,[`${Ee}-inner`]:{verticalAlign:"bottom"}}}},Mt=pe=>{const{componentCls:Ee}=pe;return{[Ee]:{[`${Ee}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:pe.progressStepMinWidth,marginInlineEnd:pe.progressStepMarginInlineEnd,backgroundColor:pe.remainingColor,transition:`all ${pe.motionDurationSlow}`,"&-active":{backgroundColor:pe.defaultColor}}}}}},_t=pe=>{const{componentCls:Ee,iconCls:Qe}=pe;return{[Ee]:{[`${Ee}-small&-line, ${Ee}-small&-line ${Ee}-text ${Qe}`]:{fontSize:pe.fontSizeSM}}}};var Ct=(0,ke.Z)("Progress",pe=>{const Ee=pe.marginXXS/2,Qe=(0,He.TS)(pe,{progressStepMarginInlineEnd:Ee,progressStepMinWidth:Ee,progressActiveMotionDuration:"2.4s"});return[Et(Qe),Ft(Qe),Mt(Qe),_t(Qe)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),yt=function(pe,Ee){var Qe={};for(var st in pe)Object.prototype.hasOwnProperty.call(pe,st)&&Ee.indexOf(st)<0&&(Qe[st]=pe[st]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,st=Object.getOwnPropertySymbols(pe);ft<st.length;ft++)Ee.indexOf(st[ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,st[ft])&&(Qe[st[ft]]=pe[st[ft]]);return Qe};const bt=null,Wt=["normal","exception","active","success"];var qt=ne.forwardRef((pe,Ee)=>{const{prefixCls:Qe,className:st,rootClassName:ft,steps:Tt,strokeColor:jt,percent:$t=0,size:Rt="default",showInfo:Jt=!0,type:Kt="line",status:nn,format:hn,style:vn}=pe,wn=yt(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var be,he;const lt=Xe(pe);return parseInt(lt!==void 0?(be=lt!=null?lt:0)===null||be===void 0?void 0:be.toString():(he=$t!=null?$t:0)===null||he===void 0?void 0:he.toString(),10)},[$t,pe.success,pe.successPercent]),on=ne.useMemo(()=>!Wt.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:Bn,progress:xn}=ne.useContext(Ge.E_),cn=yn("progress",Qe),[zn,Yn]=Ct(cn),Nn=ne.useMemo(()=>{if(!Jt)return null;const be=Xe(pe);let he;const lt=hn||(Bt=>`${Bt}%`),Nt=Kt==="line";return hn||on!=="exception"&&on!=="success"?he=lt(je($t),je(be)):on==="exception"?he=Nt?ne.createElement(Ne.Z,null):ne.createElement(ce.Z,null):on==="success"&&(he=Nt?ne.createElement(Se.Z,null):ne.createElement(Ye.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof he=="string"?he:void 0},he)},[Jt,$t,dn,on,Kt,cn,hn]),Wn=Array.isArray(jt)?jt[0]:jt,na=typeof jt=="string"||Array.isArray(jt)?jt:void 0;let Jn;Kt==="line"?Jn=Tt?ne.createElement(we,Object.assign({},pe,{strokeColor:na,prefixCls:cn,steps:Tt}),Nn):ne.createElement(Ot,Object.assign({},pe,{strokeColor:Wn,prefixCls:cn,direction:Bn}),Nn):(Kt==="circle"||Kt==="dashboard")&&(Jn=ne.createElement(Ue,Object.assign({},pe,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),Nn));const ye=le()(cn,`${cn}-status-${on}`,`${cn}-${Kt==="dashboard"&&"circle"||Tt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&Pe(Rt,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${Rt}`]:typeof Rt=="string",[`${cn}-rtl`]:Bn==="rtl"},xn==null?void 0:xn.className,st,ft,Yn);return zn(ne.createElement("div",Object.assign({ref:Ee,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),vn),className:ye,role:"progressbar","aria-valuenow":dn},(0,Ie.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ut=qt},54580:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Fn}});var ne=oe(59301),Se=oe(65093),Ye=oe(92310),Ne=oe.n(Ye),ce=oe(16378),Fe=oe(44202),le=oe(86773),Ie=oe(82412),Ge=oe(60845),De=oe(78772),nt=oe(61206),_e=oe(62907),Te=oe(42066),ae=oe(3872),a=oe(26112);function y(ue,Me){var ze="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Me.status,"'"),We=new Error(ze);return We.status=Me.status,We.method=ue.method,We.url=ue.action,We}function x(ue){var Me=ue.responseText||ue.response;if(!Me)return Me;try{return JSON.parse(Me)}catch(ze){return Me}}function b(ue){var Me=new XMLHttpRequest;ue.onProgress&&Me.upload&&(Me.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var ze=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var rt=ue.data[at];if(Array.isArray(rt)){rt.forEach(function(et){ze.append("".concat(at,"[]"),et)});return}ze.append(at,rt)}),ue.file instanceof Blob?ze.append(ue.filename,ue.file,ue.file.name):ze.append(ue.filename,ue.file),Me.onerror=function(rt){ue.onError(rt)},Me.onload=function(){return Me.status<200||Me.status>=300?ue.onError(y(ue,Me),x(Me)):ue.onSuccess(x(Me),Me)},Me.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Me&&(Me.withCredentials=!0);var We=ue.headers||{};return We["X-Requested-With"]!==null&&Me.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function(at){We[at]!==null&&Me.setRequestHeader(at,We[at])}),Me.send(ze),{abort:function(){Me.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=oe(48736),re=function(ue,Me){if(ue&&Me){var ze=Array.isArray(Me)?Me:Me.split(","),We=ue.name||"",at=ue.type||"",rt=at.replace(/\/.*$/,"");return ze.some(function(et){var Ze=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(Ze.charAt(0)==="."){var At=We.toLowerCase(),Dt=Ze.toLowerCase(),xe=[Dt];return(Dt===".jpg"||Dt===".jpeg")&&(xe=[".jpg",".jpeg"]),xe.some(function(rn){return At.endsWith(rn)})}return/\/\*$/.test(Ze)?rt===Ze.replace(/\/.*$/,""):at===Ze?!0:/^\w+$/.test(Ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ze,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Me){var ze=ue.createReader(),We=[];function at(){ze.readEntries(function(rt){var et=Array.prototype.slice.apply(rt);We=We.concat(et);var Ze=!et.length;Ze?Me(We):at()})}at()}var ge=function(Me,ze,We){var at=function rt(et,Ze){et&&(et.path=Ze||"",et.isFile?et.file(function(At){We(At)&&(et.fullPath&&!At.webkitRelativePath&&(Object.defineProperties(At,{webkitRelativePath:{writable:!0}}),At.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(At,{webkitRelativePath:{writable:!1}})),ze([At]))}):et.isDirectory&&ie(et,function(At){At.forEach(function(Dt){rt(Dt,"".concat(Ze).concat(et.name,"/"))})}))};Me.forEach(function(rt){at(rt.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(ue){(0,Ie.Z)(ze,ue);var Me=(0,Ge.Z)(ze);function ze(){var We;(0,Fe.Z)(this,ze);for(var at=arguments.length,rt=new Array(at),et=0;et<at;et++)rt[et]=arguments[et];return We=Me.call.apply(Me,[this].concat(rt)),We.state={uid:ee()},We.reqs={},We.fileInput=void 0,We._isMounted=void 0,We.onChange=function(Ze){var At=We.props,Dt=At.accept,xe=At.directory,rn=Ze.target.files,an=(0,Se.Z)(rn).filter(function(pn){return!xe||re(pn,Dt)});We.uploadFiles(an),We.reset()},We.onClick=function(Ze){var At=We.fileInput;if(At){var Dt=Ze.target,xe=We.props.onClick;if(Dt&&Dt.tagName==="BUTTON"){var rn=At.parentNode;rn.focus(),Dt.blur()}At.click(),xe&&xe(Ze)}},We.onKeyDown=function(Ze){Ze.key==="Enter"&&We.onClick(Ze)},We.onFileDrop=function(Ze){var At=We.props.multiple;if(Ze.preventDefault(),Ze.type!=="dragover")if(We.props.directory)me(Array.prototype.slice.call(Ze.dataTransfer.items),We.uploadFiles,function(xe){return re(xe,We.props.accept)});else{var Dt=(0,Se.Z)(Ze.dataTransfer.files).filter(function(xe){return re(xe,We.props.accept)});At===!1&&(Dt=Dt.slice(0,1)),We.uploadFiles(Dt)}},We.uploadFiles=function(Ze){var At=(0,Se.Z)(Ze),Dt=At.map(function(xe){return xe.uid=ee(),We.processFile(xe,At)});Promise.all(Dt).then(function(xe){var rn=We.props.onBatchStart;rn==null||rn(xe.map(function(an){var pn=an.origin,Cn=an.parsedFile;return{file:pn,parsedFile:Cn}})),xe.filter(function(an){return an.parsedFile!==null}).forEach(function(an){We.post(an)})})},We.processFile=function(){var Ze=(0,ae.Z)((0,_e.Z)().mark(function At(Dt,xe){var rn,an,pn,Cn,ot,vt,It,ht,Yt;return(0,_e.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(rn=We.props.beforeUpload,an=Dt,!rn){Ht.next=14;break}return Ht.prev=3,Ht.next=6,rn(Dt,xe);case 6:an=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),an=!1;case 12:if(an!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:Dt,parsedFile:null,action:null,data:null});case 14:if(pn=We.props.action,typeof pn!="function"){Ht.next=21;break}return Ht.next=18,pn(Dt);case 18:Cn=Ht.sent,Ht.next=22;break;case 21:Cn=pn;case 22:if(ot=We.props.data,typeof ot!="function"){Ht.next=29;break}return Ht.next=26,ot(Dt);case 26:vt=Ht.sent,Ht.next=30;break;case 29:vt=ot;case 30:return It=((0,Te.Z)(an)==="object"||typeof an=="string")&&an?an:Dt,It instanceof File?ht=It:ht=new File([It],Dt.name,{type:Dt.type}),Yt=ht,Yt.uid=Dt.uid,Ht.abrupt("return",{origin:Dt,data:vt,parsedFile:Yt,action:Cn});case 35:case"end":return Ht.stop()}},At,null,[[3,9]])}));return function(At,Dt){return Ze.apply(this,arguments)}}(),We.saveFileInput=function(Ze){We.fileInput=Ze},We}return(0,le.Z)(ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var rt=this,et=at.data,Ze=at.origin,At=at.action,Dt=at.parsedFile;if(this._isMounted){var xe=this.props,rn=xe.onStart,an=xe.customRequest,pn=xe.name,Cn=xe.headers,ot=xe.withCredentials,vt=xe.method,It=Ze.uid,ht=an||b,Yt={action:At,filename:pn,data:et,file:Dt,headers:Cn,withCredentials:ot,method:vt||"post",onProgress:function(Ht){var Pn=rt.props.onProgress;Pn==null||Pn(Ht,Dt)},onSuccess:function(Ht,Pn){var fn=rt.props.onSuccess;fn==null||fn(Ht,Dt,Pn),delete rt.reqs[It]},onError:function(Ht,Pn){var fn=rt.props.onError;fn==null||fn(Ht,Pn,Dt),delete rt.reqs[It]}};rn(Ze),this.reqs[It]=ht(Yt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var rt=this.reqs;if(at){var et=at.uid?at.uid:at;rt[et]&&rt[et].abort&&rt[et].abort(),delete rt[et]}else Object.keys(rt).forEach(function(Ze){rt[Ze]&&rt[Ze].abort&&rt[Ze].abort(),delete rt[Ze]})}},{key:"render",value:function(){var at=this.props,rt=at.component,et=at.prefixCls,Ze=at.className,At=at.disabled,Dt=at.id,xe=at.style,rn=at.multiple,an=at.accept,pn=at.capture,Cn=at.children,ot=at.directory,vt=at.openFileDialogOnClick,It=at.onMouseEnter,ht=at.onMouseLeave,Yt=(0,nt.Z)(at,se),Qt=Ne()((0,De.Z)((0,De.Z)((0,De.Z)({},et,!0),"".concat(et,"-disabled"),At),Ze,Ze)),Ht=ot?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=At?{}:{onClick:vt?this.onClick:function(){},onKeyDown:vt?this.onKeyDown:function(){},onMouseEnter:It,onMouseLeave:ht,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,ce.Z)({},Pn,{className:Qt,role:"button",style:xe}),ne.createElement("input",(0,ce.Z)({},(0,a.Z)(Yt,{aria:!0,data:!0}),{id:Dt,disabled:At,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:an},Ht,{multiple:rn,onChange:this.onChange},pn!=null?{capture:pn}:{})),Cn)}}]),ze}(ne.Component),Re=Ce;function Pt(){}var zt=function(ue){(0,Ie.Z)(ze,ue);var Me=(0,Ge.Z)(ze);function ze(){var We;(0,Fe.Z)(this,ze);for(var at=arguments.length,rt=new Array(at),et=0;et<at;et++)rt[et]=arguments[et];return We=Me.call.apply(Me,[this].concat(rt)),We.uploader=void 0,We.saveUploader=function(Ze){We.uploader=Ze},We}return(0,le.Z)(ze,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ne.createElement(Re,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(ne.Component);zt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Pt,onError:Pt,onSuccess:Pt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var kt=zt,Le=kt,Ae=oe(18929),$e=oe(4676),Ve=oe(36355),it=oe(1684),je=oe(9763),Xe=oe(31724),qe={icon:function(Me,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ze}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Me}}]}},name:"file",theme:"twotone"},pt=qe,Pe=oe(7657),Be=function(Me,ze){return ne.createElement(Pe.Z,(0,ce.Z)({},Me,{ref:ze,icon:pt}))},Ke=ne.forwardRef(Be),ut=Ke,Ue=oe(58617),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=tt,Je=function(Me,ze){return ne.createElement(Pe.Z,(0,ce.Z)({},Me,{ref:ze,icon:de}))},ct=ne.forwardRef(Je),Ot=ct,wt={icon:function(Me,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Me}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ze}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ze}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Me}}]}},name:"picture",theme:"twotone"},we=wt,ve=function(Me,ze){return ne.createElement(Pe.Z,(0,ce.Z)({},Me,{ref:ze,icon:we}))},fe=ne.forwardRef(ve),ke=fe,He=oe(77900),mt=oe(56762),Et=oe(62892),Ft=oe(92343),Mt=oe(3113);function _t(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function Ct(ue,Me){const ze=(0,Se.Z)(Me),We=ze.findIndex(at=>{let{uid:rt}=at;return rt===ue.uid});return We===-1?ze.push(ue):ze[We]=ue,ze}function yt(ue,Me){const ze=ue.uid!==void 0?"uid":"name";return Me.filter(We=>We[ze]===ue[ze])[0]}function bt(ue,Me){const ze=ue.uid!==void 0?"uid":"name",We=Me.filter(at=>at[ze]!==ue[ze]);return We.length===Me.length?null:We}const Wt=function(){const Me=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),We=Me[Me.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(We)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,qt=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const Me=ue.thumbUrl||ue.url||"",ze=Wt(Me);return/^data:image\//.test(Me)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ze)?!0:!(/^data:/.test(Me)||ze)},Ut=200;function pe(ue){return new Promise(Me=>{if(!ue.type||!mn(ue.type)){Me("");return}const ze=document.createElement("canvas");ze.width=Ut,ze.height=Ut,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(ze);const We=ze.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:rt,height:et}=at;let Ze=Ut,At=Ut,Dt=0,xe=0;rt>et?(At=et*(Ut/rt),xe=-(At-Ze)/2):(Ze=rt*(Ut/et),Dt=-(Ze-At)/2),We.drawImage(at,Dt,xe,Ze,At);const rn=ze.toDataURL();document.body.removeChild(ze),window.URL.revokeObjectURL(at.src),Me(rn)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(at.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&Me(rt.result)},rt.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Ee=oe(26227),Qe=oe(41464),st=oe(15277),ft=oe(93948),Tt=oe(6848),$t=ne.forwardRef((ue,Me)=>{let{prefixCls:ze,className:We,style:at,locale:rt,listType:et,file:Ze,items:At,progress:Dt,iconRender:xe,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:Cn,showRemoveIcon:ot,showDownloadIcon:vt,previewIcon:It,removeIcon:ht,downloadIcon:Yt,onPreview:Qt,onDownload:Ht,onClose:Pn}=ue;var fn,oa;const{status:Qn}=Ze,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=xe(Ze);let Kn=ne.createElement("div",{className:`${ze}-icon`},da);if(et==="picture"||et==="picture-card"||et==="picture-circle")if(qn==="uploading"||!Ze.thumbUrl&&!Ze.url){const Mn=Ne()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:Mn},da)}else{const Mn=pn!=null&&pn(Ze)?ne.createElement("img",{src:Ze.thumbUrl||Ze.url,alt:Ze.name,className:`${ze}-list-item-image`,crossOrigin:Ze.crossOrigin}):da,On=Ne()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:pn&&!pn(Ze)});Kn=ne.createElement("a",{className:On,onClick:la=>Qt(Ze,la),href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const En=Ne()(`${ze}-list-item`,`${ze}-list-item-${qn}`),ta=typeof Ze.linkProps=="string"?JSON.parse(Ze.linkProps):Ze.linkProps,ia=ot?rn((typeof ht=="function"?ht(Ze):ht)||ne.createElement(Ee.Z,null),()=>Pn(Ze),ze,rt.removeFile):null,ga=vt&&qn==="done"?rn((typeof Yt=="function"?Yt(Ze):Yt)||ne.createElement(Qe.Z,null),()=>Ht(Ze),ze,rt.downloadFile):null,aa=et!=="picture-card"&&et!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ne()(`${ze}-list-item-actions`,{picture:et==="picture"})},ga,ia),ea=Ne()(`${ze}-list-item-name`),fa=Ze.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ze.name},ta,{href:Ze.url,onClick:Mn=>Qt(Ze,Mn)}),Ze.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:Mn=>Qt(Ze,Mn),title:Ze.name},Ze.name),aa],Xt={pointerEvents:"none",opacity:.5},$n=Cn?ne.createElement("a",{href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ze.url||Ze.thumbUrl?void 0:Xt,onClick:Mn=>Qt(Ze,Mn),title:rt.previewFile},typeof It=="function"?It(Ze):It||ne.createElement(st.Z,null)):null,In=(et==="picture-card"||et==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${ze}-list-item-actions`},$n,qn==="done"&&ga,ia),{getPrefixCls:Un}=ne.useContext(Ve.E_),Xn=Un(),ra=ne.createElement("div",{className:En},Kn,fa,In,Sa&&ne.createElement(He.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const la="percent"in Ze?ne.createElement(ft.Z,Object.assign({},Dt,{type:"line",percent:Ze.percent,"aria-label":Ze["aria-label"],"aria-labelledby":Ze["aria-labelledby"]})):null;return ne.createElement("div",{className:Ne()(`${ze}-list-item-progress`,On)},la)})),va=Ze.response&&typeof Ze.response=="string"?Ze.response:((fn=Ze.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Ze.error)===null||oa===void 0?void 0:oa.message)||rt.uploadError,pa=qn==="error"?ne.createElement(Tt.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ne.createElement("div",{className:Ne()(`${ze}-list-item-container`,We),style:at,ref:Me},an?an(pa,Ze,At,{download:Ht.bind(null,Ze),preview:Qt.bind(null,Ze),remove:Pn.bind(null,Ze)}):pa)});const Rt=(ue,Me)=>{const{listType:ze="text",previewFile:We=pe,onPreview:at,onDownload:rt,onRemove:et,locale:Ze,iconRender:At,isImageUrl:Dt=qt,prefixCls:xe,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:Cn=!1,removeIcon:ot,previewIcon:vt,downloadIcon:It,progress:ht={size:[-1,2],showInfo:!1},appendAction:Yt,appendActionVisible:Qt=!0,itemRender:Ht,disabled:Pn}=ue,fn=(0,mt.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{ze!=="picture"&&ze!=="picture-card"&&ze!=="picture-circle"||(rn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",We&&We(Xt.originFileObj).then($n=>{Xt.thumbUrl=$n||"",fn()}))})},[ze,rn,We]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Xt,$n)=>{if(at)return $n==null||$n.preventDefault(),at(Xt)},ca=Xt=>{typeof rt=="function"?rt(Xt):Xt.url&&window.open(Xt.url)},Sa=Xt=>{et==null||et(Xt)},Pa=Xt=>{if(At)return At(Xt,ze);const $n=Xt.status==="uploading",In=Dt&&Dt(Xt)?ne.createElement(ke,null):ne.createElement(ut,null);let Un=$n?ne.createElement(Ue.Z,null):ne.createElement(Ot,null);return ze==="picture"?Un=$n?ne.createElement(Ue.Z,null):In:(ze==="picture-card"||ze==="picture-circle")&&(Un=$n?Ze.uploading:In),Un},da=(Xt,$n,In,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{$n(),(0,Ft.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ra)},className:`${In}-list-item-action`,disabled:Pn};if((0,Ft.l$)(Xt)){const ra=(0,Ft.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ne.createElement(Mt.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(Mt.ZP,Object.assign({},Xn),ne.createElement("span",null,Xt))};ne.useImperativeHandle(Me,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(Ve.E_),En=Kn("upload",xe),ta=Kn(),ia=Ne()(`${En}-list`,`${En}-list-${ze}`),ga=(0,Se.Z)(rn.map(Xt=>({key:Xt.uid,file:Xt})));let ea={motionDeadline:2e3,motionName:`${En}-${ze==="picture-card"||ze==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ne.useMemo(()=>{const Xt=Object.assign({},(0,Et.Z)(ta));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[ta]);return ze!=="picture-card"&&ze!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ia},ne.createElement(He.CSSMotionList,Object.assign({},ea,{component:!1}),Xt=>{let{key:$n,file:In,className:Un,style:Xn}=Xt;return ne.createElement($t,{key:$n,locale:Ze,prefixCls:En,className:Un,style:Xn,file:In,items:rn,progress:ht,listType:ze,isImgUrl:Dt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:Cn,removeIcon:ot,previewIcon:vt,downloadIcon:It,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Yt&&ne.createElement(He.default,Object.assign({},ea,{visible:Qt,forceRender:!0}),Xt=>{let{className:$n,style:In}=Xt;return(0,Ft.Tm)(Yt,Un=>({className:Ne()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var Kt=ne.forwardRef(Rt),nn=oe(17313),hn=oe(8378),vn=oe(83116),wn=oe(37613),on=ue=>{const{componentCls:Me,iconCls:ze}=ue;return{[`${Me}-wrapper`]:{[`${Me}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Me]:{padding:`${ue.padding}px 0`},[`${Me}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Me}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Me}-drag-icon`]:{marginBottom:ue.margin,[ze]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Me}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Me}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Me}-disabled`]:{cursor:"not-allowed",[`p${Me}-drag-icon ${ze},
p${Me}-text,
p${Me}-hint
`]:{color:ue.colorTextDisabled}}}}}},Bn=ue=>{const{componentCls:Me,antCls:ze,iconCls:We,fontSize:at,lineHeight:rt}=ue,et=`${Me}-list-item`,Ze=`${et}-actions`,At=`${et}-action`,Dt=Math.round(at*rt);return{[`${Me}-wrapper`]:{[`${Me}-list`]:Object.assign(Object.assign({},(0,nn.dF)()),{lineHeight:ue.lineHeight,[et]:{position:"relative",height:ue.lineHeight*at,marginTop:ue.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${et}-name`]:Object.assign(Object.assign({},nn.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Ze]:{[At]:{opacity:0},[`${At}${ze}-btn-sm`]:{height:Dt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${At}:focus-visible,
&.picture ${At}
`]:{opacity:1},[We]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${We}`]:{color:ue.colorText}},[`${Me}-icon ${We}`]:{color:ue.colorTextDescription,fontSize:at},[`${et}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:at+ue.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${et}:hover ${At}`]:{opacity:1,color:ue.colorText},[`${et}-error`]:{color:ue.colorError,[`${et}-name, ${Me}-icon ${We}`]:{color:ue.colorError},[Ze]:{[`${We}, ${We}:hover`]:{color:ue.colorError},[At]:{opacity:1}}},[`${Me}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=oe(93083),cn=oe(1950);const zn=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=ue=>{const{componentCls:Me}=ue,ze=`${Me}-animate-inline`;return[{[`${Me}-wrapper`]:{[`${ze}-appear, ${ze}-enter, ${ze}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ze}-appear, ${ze}-enter`]:{animationName:zn},[`${ze}-leave`]:{animationName:Yn}}},{[`${Me}-wrapper`]:(0,cn.J$)(ue)},zn,Yn]},na=oe(93398),Jn=oe(64993);const ye=ue=>{const{componentCls:Me,iconCls:ze,uploadThumbnailSize:We,uploadProgressOffset:at}=ue,rt=`${Me}-list`,et=`${rt}-item`;return{[`${Me}-wrapper`]:{[`
${rt}${rt}-picture,
${rt}${rt}-picture-card,
${rt}${rt}-picture-circle
`]:{[et]:{position:"relative",height:We+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${et}-thumbnail`]:Object.assign(Object.assign({},nn.vS),{width:We,height:We,lineHeight:`${We+ue.paddingSM}px`,textAlign:"center",flex:"none",[ze]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${et}-progress`]:{bottom:at,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:We+ue.paddingXS}},[`${et}-error`]:{borderColor:ue.colorError,[`${et}-thumbnail ${ze}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${et}-uploading`]:{borderStyle:"dashed",[`${et}-name`]:{marginBottom:at}}},[`${rt}${rt}-picture-circle ${et}`]:{[`&, &::before, ${et}-thumbnail`]:{borderRadius:"50%"}}}}},be=ue=>{const{componentCls:Me,iconCls:ze,fontSizeLG:We,colorTextLightSolid:at}=ue,rt=`${Me}-list`,et=`${rt}-item`,Ze=ue.uploadPicCardSize;return{[`
${Me}-wrapper${Me}-picture-card-wrapper,
${Me}-wrapper${Me}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${Me}${Me}-select`]:{width:Ze,height:Ze,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Me}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Ze,height:Ze,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[et]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${et}:hover`]:{[`&::before, ${et}-actions`]:{opacity:1}},[`${et}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{zIndex:10,width:We,margin:`0 ${ue.marginXXS}px`,fontSize:We,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${et}-actions, ${et}-actions:hover`]:{[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${et}-thumbnail, ${et}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${et}-name`]:{display:"none",textAlign:"center"},[`${et}-file + ${et}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${et}-uploading`]:{[`&${et}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${ze}-eye, ${ze}-download, ${ze}-delete`]:{display:"none"}},[`${et}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Me}-wrapper${Me}-picture-circle-wrapper`]:{[`${Me}${Me}-select`]:{borderRadius:"50%"}}}};var lt=ue=>{const{componentCls:Me}=ue;return{[`${Me}-rtl`]:{direction:"rtl"}}};const Nt=ue=>{const{componentCls:Me,colorTextDisabled:ze}=ue;return{[`${Me}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(ue)),{[Me]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Me}-select`]:{display:"inline-block"},[`${Me}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var Bt=(0,vn.Z)("Upload",ue=>{const{fontSizeHeading3:Me,fontSize:ze,lineHeight:We,lineWidth:at,controlHeightLG:rt}=ue,et=Math.round(ze*We),Ze=(0,wn.TS)(ue,{uploadThumbnailSize:Me*2,uploadProgressOffset:et/2+at,uploadPicCardSize:rt*2.55});return[Nt(Ze),on(Ze),ye(Ze),be(Ze),Bn(Ze),Wn(Ze),lt(Ze),(0,hn.Z)(Ze)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,Me,ze,We){function at(rt){return rt instanceof ze?rt:new ze(function(et){et(rt)})}return new(ze||(ze=Promise))(function(rt,et){function Ze(xe){try{Dt(We.next(xe))}catch(rn){et(rn)}}function At(xe){try{Dt(We.throw(xe))}catch(rn){et(rn)}}function Dt(xe){xe.done?rt(xe.value):at(xe.value).then(Ze,At)}Dt((We=We.apply(ue,Me||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,en=(ue,Me)=>{const{fileList:ze,defaultFileList:We,onRemove:at,showUploadList:rt=!0,listType:et="text",onPreview:Ze,onDownload:At,onChange:Dt,onDrop:xe,previewFile:rn,disabled:an,locale:pn,iconRender:Cn,isImageUrl:ot,progress:vt,prefixCls:It,className:ht,type:Yt="select",children:Qt,style:Ht,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ne.useContext(it.Z),Kn=an!=null?an:da,[En,ta]=(0,Ae.Z)(We||[],{value:ze,postState:Vt=>Vt!=null?Vt:[]}),[ia,ga]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Vt=Date.now();(ze||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Vt}_${bn}__`)})},[ze]);const ea=(Vt,sn,bn)=>{let gn=(0,Se.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,$e.flushSync)(()=>{ta(gn)});const Hn={file:Vt,fileList:gn};bn&&(Hn.event=bn),(!Sn||gn.some(Tn=>Tn.uid===Vt.uid))&&(0,$e.flushSync)(()=>{Dt==null||Dt(Hn)})},fa=(Vt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=ue;let Sn=Vt;if(bn){const Hn=yield bn(Vt,sn);if(Hn===!1)return!1;if(delete Vt[Zt],Hn===Zt)return Object.defineProperty(Vt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return gn&&(Sn=yield gn(Sn)),Sn}),Xt=Vt=>{const sn=Vt.filter(Sn=>!Sn.file[Zt]);if(!sn.length)return;const bn=sn.map(Sn=>_t(Sn.file));let gn=(0,Se.Z)(En);bn.forEach(Sn=>{gn=Ct(Sn,gn)}),bn.forEach((Sn,Hn)=>{let Tn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Sn.uid,Tn=ua}ea(Tn,gn)})},$n=(Vt,sn,bn)=>{try{typeof Vt=="string"&&(Vt=JSON.parse(Vt))}catch(Hn){}if(!yt(sn,En))return;const gn=_t(sn);gn.status="done",gn.percent=100,gn.response=Vt,gn.xhr=bn;const Sn=Ct(gn,En);ea(gn,Sn)},In=(Vt,sn)=>{if(!yt(sn,En))return;const bn=_t(sn);bn.status="uploading",bn.percent=Vt.percent;const gn=Ct(bn,En);ea(bn,gn,Vt)},Un=(Vt,sn,bn)=>{if(!yt(bn,En))return;const gn=_t(bn);gn.error=Vt,gn.response=sn,gn.status="error";const Sn=Ct(gn,En);ea(gn,Sn)},Xn=Vt=>{let sn;Promise.resolve(typeof at=="function"?at(Vt):at).then(bn=>{var gn;if(bn===!1)return;const Sn=bt(Vt,En);Sn&&(sn=Object.assign(Object.assign({},Vt),{status:"removed"}),En==null||En.forEach(Hn=>{const Tn=sn.uid!==void 0?"uid":"name";Hn[Tn]===sn[Tn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Vt=>{ga(Vt.type),Vt.type==="drop"&&(xe==null||xe(Vt))};ne.useImperativeHandle(Me,()=>({onBatchStart:Xt,onSuccess:$n,onProgress:In,onError:Un,fileList:En,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ne.useContext(Ve.E_),On=va("upload",It),la=Object.assign(Object.assign({onBatchStart:Xt,onError:Un,onProgress:In,onSuccess:$n},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:On,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Qt||Kn)&&delete la.id;const[ya,La]=Bt(On),[ba]=(0,je.Z)("Upload",Xe.Z.Upload),{showRemoveIcon:Gt,showPreviewIcon:St,showDownloadIcon:Lt,removeIcon:xt,previewIcon:un,downloadIcon:Gn}=typeof rt=="boolean"?{}:rt,Rn=(Vt,sn)=>rt?ne.createElement(Kt,{prefixCls:On,listType:et,items:En,previewFile:rn,onPreview:Ze,onDownload:At,onRemove:Xn,showRemoveIcon:!Kn&&Gt,showPreviewIcon:St,showDownloadIcon:Lt,removeIcon:xt,previewIcon:un,downloadIcon:Gn,iconRender:Cn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:vt,appendAction:Vt,appendActionVisible:sn,itemRender:Pn,disabled:Kn}):Vt,An=Ne()(`${On}-wrapper`,ht,Pa,La,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:pa==="rtl",[`${On}-picture-card-wrapper`]:et==="picture-card",[`${On}-picture-circle-wrapper`]:et==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ht);if(Yt==="drag"){const Vt=Ne()(La,On,`${On}-drag`,{[`${On}-drag-uploading`]:En.some(sn=>sn.status==="uploading"),[`${On}-drag-hover`]:ia==="dragover",[`${On}-disabled`]:Kn,[`${On}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:An},ne.createElement("div",{className:Vt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(Le,Object.assign({},la,{ref:aa,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Qt))),Rn()))}const kn=Ne()(On,`${On}-select`,{[`${On}-disabled`]:Kn}),Vn=(Vt=>ne.createElement("div",{className:kn,style:Vt},ne.createElement(Le,Object.assign({},la,{ref:aa}))))(Qt?void 0:{display:"none"});return ya(et==="picture-card"||et==="picture-circle"?ne.createElement("span",{className:An},Rn(Vn,!!Qt)):ne.createElement("span",{className:An},Vn,Rn()))};var _n=ne.forwardRef(en),gt=function(ue,Me){var ze={};for(var We in ue)Object.prototype.hasOwnProperty.call(ue,We)&&Me.indexOf(We)<0&&(ze[We]=ue[We]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,We=Object.getOwnPropertySymbols(ue);at<We.length;at++)Me.indexOf(We[at])<0&&Object.prototype.propertyIsEnumerable.call(ue,We[at])&&(ze[We[at]]=ue[We[at]]);return ze},Dn=ne.forwardRef((ue,Me)=>{var{style:ze,height:We}=ue,at=gt(ue,["style","height"]);return ne.createElement(_n,Object.assign({ref:Me},at,{type:"drag",style:Object.assign(Object.assign({},ze),{height:We})}))});const Zn=_n;Zn.Dragger=Dn,Zn.LIST_IGNORE=Zt;var Fn=Zn}}]);