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.
167 lines
423 KiB
167 lines
423 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[9715],{84249:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},90674:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},33859:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},22751:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},24018:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},40043:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},91034:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},71736:function(Me,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Me(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Me.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(Me.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(Me.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(Me.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 Me))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var it=[];function oe(ae,a){var y=it.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=it.pop();return ae===void 0?new go.Point:ae}function ce(ae){it.push(ae)}function Xe(ae,a,y,E,b,x,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=(x-ee)/ie,Ne=x-se*b;ge=ae,me=se*ge+Ne}else if(ie===0){var Ge=(a-E)/re,pt=a-Ge*ae;ge=b,me=Ge*ge+pt}else{var Ge=(a-E)/re,se=(x-ee)/ie,pt=a-Ge*ae,Ne=x-se*b;ge=(Ne-pt)/(Ge-se),me=Ge*ge+pt}return te.x=ge,te.y=me,te}function ze(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Ne=1-te,Ge=te,pt=ae*Ne+y*Ge,zt=a*Ne+E*Ge,kt=y*Ne+b*Ge,Le=E*Ne+x*Ge,Ie=b*Ne+z*Ge,Ae=x*Ne+ee*Ge,nt=pt*Ne+kt*Ge,gt=zt*Ne+Le*Ge,Ze=kt*Ne+Ie*Ge,Ye=Le*Ne+Ae*Ge,at=nt*Ne+Ze*Ge,xt=gt*Ne+Ye*Ge;re.x=pt,re.y=zt,ie.x=nt,ie.y=gt,ge.x=at,ge.y=xt,me.x=Ze,me.y=Ye,se.x=Ie,se.y=Ae}var ue=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Me("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(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 E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(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 E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ue,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(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 Me("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Me("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Me("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var He=[];function xe(){var ae=He.pop();return ae===void 0?[]:ae}function Te(ae){ae.length=0,He.push(ae)}function _e(ae){for(var a=xe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=je(ae),y=xe();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Te(a),y}function je(ae){for(var a=_e(ae),y=xe(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Xe(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],Te(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=_e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=_e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=_e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=_e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=_e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=_e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=_e(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Me("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Me("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Me("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ue,x.spot2=Ce,x.defaultStretch=go.GraphObject.Uniform,x}),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 E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Me("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Me("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/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,x,.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,x,.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 Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Me("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Me("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(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 E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),Ne=ne(),Ge=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Ge,se,Ne);var pt=ne(),zt=ne(),kt=ne();ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,pt,zt,kt,me,me);var Le=ne(),Ie=ne(),Ae=ne();return ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ae,Le,Ie),te.add(new go.PathSegment(go.PathSegment.Move,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,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,Ae.x*a,Ae.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,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,pt.x*a,pt.y*y,zt.x*a,zt.y*y).close()),ce(re),ce(ie),ce(ge),ce(me),ce(se),ce(Ne),ce(Ge),ce(pt),ce(zt),ce(kt),ce(Le),ce(Ie),ce(Ae),E.defaultStretch=go.GraphObject.Uniform,E}),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 Me("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(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 E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,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);ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Ne=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,(Ne.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*a,(Ne.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*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+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var pt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(pt),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(Ne),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(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 E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(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 E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Me("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Me("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Me("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Me("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Me("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Xe(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Xe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Me("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Me("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var 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,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Me("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Me("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Me("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var 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,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Me("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Me("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Me("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Me("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Me("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.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)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Me("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*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-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.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)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.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);E.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 Ne=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Ne),Ne.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)),Ne.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)),Ne.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)),Ne.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 Ge=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ge),Ge.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)),Ge.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)),Ge.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)),Ge.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 E.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()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,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);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*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+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.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,x=.3,ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.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-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,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 E.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()),ce(te),ce(re),ce(ie),ce(ge),ce(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=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,Ne=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ne.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Ne=ie*me,Ge=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ne+me)/2)*a,(te+(se+Ge)/2)*y,(ee-me)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Ge)*y,(ee-Ne)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ne)*a,(te-se)*y,(ee+me)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Ge)*y,(ee+(Ne+me)/2)*a,(te+(se+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var pt=new go.PathFigure(.2*a,y,!1);E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return E.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.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 E.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()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.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);E.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);E.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,Ne=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Ne.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 Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),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)),E}),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 E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(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 E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(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 E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.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()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(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 E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Me={},it="5.0",oe={},ne=null,ce=!1,Xe=!1,ze=null,ue=!1,Ce=null,le=null,He=0;He<arguments.length;He++){var xe=arguments[He];if(xe!==null)switch(typeof xe){case"number":it=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=xe:ze=xe;break;case"object":typeof xe.is3D!="undefined"?ne=xe:oe=xe;break;case"boolean":ce=xe,Xe=!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&&!Xe&&(ce=!0)),ze!==null&&oe.id===void 0&&(oe.id=ze);var Te="",_e="",ke=!1,je=null,ae=null,a=null,y=!1,E=null,b=null,x=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(he){return parseFloat(he)>4?parseFloat(he):5};Me.setHTML5Codebase=function(he,Be){le=he,Ye(he,Be)},Me.setJavaCodebase=Me.setJavaCodebaseVersion=Me.isCompiledInstalled=Me.setPreCompiledScriptPath=Me.setPreCompiledResourcePath=function(){},Me.setHTML5CodebaseVersion=function(he,Be){var et=parseFloat(he);if(et!==NaN&&et<5){console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead.");return}Ce=he,Ze(he,Be)},Me.getHTML5CodebaseVersion=function(){return ae},Me.getParameters=function(){return oe},Me.setFontsCSSURL=function(he){z=he},Me.setGiacJSURL=function(he){},Me.setJNLPFile=function(he){Te=he},Me.setJNLPBaseDir=function(he){},Me.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",et=oe.id,yt,Ke=!1,qe=0;qe<arguments.length;qe++){var de=arguments[qe];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=de:et=arguments[qe]):typeof de=="boolean"?Ke=de:de instanceof HTMLElement&&(yt=de)}tt();function tt(){if(!ue){setTimeout(tt,200);return}Be=nt(Be);var ft=yt||document.getElementById(et);if(!ft){console.log("possibly bug on ajax loading? ");return}if(Me.removeExistingApplet(ft,!1),oe.width===void 0&&ft.clientWidth&&(oe.width=ft.clientWidth),oe.height===void 0&&ft.clientHeight&&(oe.height=ft.clientHeight),!(oe.width&&oe.height)&&Be==="html5"&&(delete oe.width,delete oe.height),je=Be,Be==="screenshot")zt(ft,oe);else{var Ht=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Ht=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Ht=(!re()||he())&&ie()),Ht?(je="screenshot",Le(ft,oe,Ke,Be)):pt(ft,oe,Ke)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Me.getViews=function(){return ne},Me.isJavaInstalled=function(){return!1};var ge=function(he){var Be=function(qe){var de=JSON.parse(qe),tt=function(ut){return ut.type=="G"||ut.type=="E"},ft=de.elements?de.elements.filter(tt)[0]:de;if(!ft||!ft.url){et();return}oe.fileName=ft.url,me(ft.settings||{}),ne.is3D=!0;var Ht="https://www.geogebra.org/images/";Me.setPreviewImage(E||ft.previewUrl,Ht+"GeoGebra_loading.png",Ht+"applet_play.png"),he()},et=function(){oe.onError&&oe.onError(),at("Error: Fetching material (id "+oe.material_id+") failed.",oe)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ke="/materials/"+oe.material_id+"?scope=basic";se("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(Ke),Be,et)};function me(he){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(et){he[et]=!!he[et]}),Be.forEach(function(et){oe[et]===void 0&&he[et]!==void 0&&(oe[et]=he[et])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(he,Be,et){var yt=new XMLHttpRequest;yt.open("GET",he),yt.onload=function(){Be(yt.responseText)},yt.onerror=et,yt.send()}Me.isHTML5Installed=function(){return!0},Me.getLoadedAppletType=function(){return je},Me.setPreviewImage=function(he,Be,et){E=he,b=Be,x=et},Me.removeExistingApplet=function(he,Be){var et;typeof he=="string"&&(he=document.getElementById(he)),je=null;var yt=null;for(et=0;et<he.childNodes.length;et++){var Ke=he.childNodes[et],qe=Ke.className;qe==="applet_screenshot"?Be?(Ke.style.display="block",je="screenshot"):Ke.style.display="none":qe!=="applet_scaler prerender"&&(he.removeChild(Ke),yt=qe&&qe.indexOf("appletParameters")!=-1?Ke.id:null,et--)}var de=oe.id!==void 0?oe.id:yt,tt=window[de];tt&&typeof tt.getBase64=="function"&&(tt.remove(),window[de]=null)},Me.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Me.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Me.startAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Me.stopAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Me.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},Me.resize=function(){};var Ne=function(he,Be,et){var yt=document.createElement("param");yt.setAttribute("name",Be),yt.setAttribute("value",et),he.appendChild(yt)},Ge=function(he){return he&&he!=="false"},pt=function(he,Be,et){te(ae)<=4.2&&(et=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ke=document.createElement("div");Ke.classList.add("appletParameters","notranslate");var qe=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)Ge(Be.showToolBar)&&(Be.height-=7),Ge(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&Ge(Be.showToolBar)&&(Be.width=605,qe=605);else{var tt=100;(Ge(Be.showToolBar)||Ge(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),tt=Ge(Be.showMenuBar)?245:155),qe<tt&&(Be.width=tt,qe=tt)}Ke.style.border="none",Ke.style.display="inline-block";for(var ft in Be)Be.hasOwnProperty(ft)&&ft!=="appletOnLoad"&&Ke.setAttribute("data-param-"+ft,Be[ft]);z&&Ke.setAttribute("data-param-fontscssurl",z),Me.resize=function(){GGBAppletUtils.responsiveResize(he,Be)},window.addEventListener("resize",function(jt){Me.resize()});var Ht=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!et&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||Ke.setAttribute("data-param-showSplash","false");var ut=he.querySelector(".applet_scaler.prerender"),Ee=ut!==null;if(Ee)var be=ut.querySelector(".ggb_preview");else{var be=Ae(qe,de,Be.borderColor,!1);ut=document.createElement("div"),ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.style.width=qe+"px",ut.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ut,"66%"),te(ae)>=5?(Be.appletOnLoad=function(jt){var wt=he.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ut),window.GGBT_wsf_view&&$(window).trigger("resize"),Ht(jt)},Ee||ut.appendChild(be)):Ke.appendChild(be),ut.appendChild(Ke),Ee||he.appendChild(ut),setTimeout(function(){Me.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Ke),he.appendChild(ve),Be.appletOnLoad=function(jt){Me.resize(),Ht(jt)}}function ye(jt,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,wt.appletOnLoad):renderGGBElement(jt),at("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function Fe(jt,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bt){ye(bt.article,bt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):ye(jt,wt)}if(yt){scriptLoadStarted=!0;for(var Ve=0;Ve<Ke.childNodes.length;Ve++){var ct=Ke.childNodes[Ve].tagName;ct==="TABLE"&&(Ke.removeChild(Ke.childNodes[Ve]),Ve--)}if(ggbHTML5LoadedScript!==null){var Pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pt!=null&&Pt.parentNode.removeChild(Pt)}var Lt=document.createElement("script"),Ot=function(){Fe(Ke,Be)};Lt.src=_e+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Lt.src,at("GeoGebra HTML5 codebase loaded: '"+_e+"'.",Be),!le&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):_e.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];Ot.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=Ot,he.appendChild(Lt))}else Fe(Ke,Be);Be.height=de,Be.width=qe},zt=function(he,Be,et){var yt=Ae(Be.width,Be.height,Be.borderColor,et),Ke=document.createElement("div");Ke.style.position="relative",Ke.style.display="block",Ke.style.width=Be.width+"px",Ke.style.height=Be.height+"px",Ke.className="applet_screenshot applet_scaler"+(et?" applet_screenshot_play":""),Ke.appendChild(yt);var qe=GGBAppletUtils.getScale(Be,he,et);et?(he.appendChild(Ie()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ke,"66%"),he.appendChild(Ke),qe!==1&&!isNaN(qe)&&(GGBAppletUtils.scaleElement(Ke,qe),Ke.style.width=Be.width+"px",Ke.style.height=Be.height+"px",Ke.parentNode.style.width=Be.width*qe+"px",Ke.parentNode.style.height=Be.height*qe+"px"),Me.resize=function(){kt(he,yt,Ke,et)},window.addEventListener("resize",function(de){Me.resize()}),Me.resize()};function kt(he,Be,et,yt){if(he.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Ke=GGBAppletUtils.getScale(oe,he,yt);et.parentNode!==null&&(!isNaN(Ke)&&Ke!==1?(GGBAppletUtils.scaleElement(et,Ke),et.parentNode.style.width=oe.width*Ke+"px",et.parentNode.style.height=oe.height*Ke+"px"):(GGBAppletUtils.scaleElement(et,1),et.parentNode.style.width=oe.width+"px",et.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Me.onExitFullscreen=function(he,Be){Be.appendChild(he)};var Le=function(he,Be,et,yt){zt(he,Be,!0);for(var Ke=function(){var tt=[];for(de=0;de<he.childNodes.length;de++)tt.push(he.childNodes[de]);if(window.GGBT_wsf_view){var ft=window.GGBT_wsf_view.renderFullScreen(he,Be.id),Ht=document.getElementById("fullscreencontainer"),ut=jQuery(he).find(".fullscreencontent");ut.length>0?(ft.remove(),ut.attr("id","fullscreencontent").show(),jQuery(Ht).append(ut),window.dispatchEvent(new Event("resize"))):pt(ft,Be,!1),window.GGBT_wsf_view.launchFullScreen(Ht)}else je=yt,pt(he,Be,!1);if(!window.GGBT_wsf_view)for(de=0;de<tt.length;de++)he.removeChild(tt[de])},qe=he.getElementsByClassName("ggb_preview_play"),de=0;de<qe.length;de++)qe[de].addEventListener("click",Ke,!1),qe[de].addEventListener("ontouchstart",Ke,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ie=function(){var he=document.createElement("div");if(he.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");}',et=document.createElement("style");et.styleSheet?et.styleSheet.cssText=Be:et.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(et)}return he},Ae=function(he,Be,et,yt){var Ke=document.createElement("div");Ke.className="ggb_preview",Ke.style.position="absolute",Ke.style.zIndex="90",Ke.style.width=he-2+"px",Ke.style.height=Be-2+"px",Ke.style.top="0px",Ke.style.left="0px",Ke.style.overflow="hidden",Ke.style.backgroundColor="white";var qe="lightgrey";et!==void 0&&(et==="none"?qe="transparent":qe=et),Ke.style.border="1px solid "+qe;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var tt,ft,Ht;if(!yt){tt=document.createElement("img"),tt.style.position="absolute",tt.style.zIndex="1001",tt.style.opacity=1,de.style.opacity=.3,ft=360,ft>he/4*3&&(ft=he/4*3),Ht=ft/5.8,tt.setAttribute("src",b),tt.setAttribute("width",ft),tt.setAttribute("height",Ht);var ut=(he-ft)/2,Ee=(Be-Ht)/2;tt.style.left=ut+"px",tt.style.top=Ee+"px",Ke.appendChild(tt)}}return Ke.appendChild(de),Ke},nt=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ze=function(he,Be){if(ae=he,Be){Ye(ae,!0);return}var et=!ce;if(et){var yt=te(ae);!isNaN(yt)&&yt<4.4&&(et=!1)}var Ke,qe;window.location.protocol.substr(0,4)==="http"?Ke=window.location.protocol:Ke="http:";var de=ae.indexOf("//");de>0?qe=ae:de===0?qe=Ke+ae:qe="https://www.geogebra.org/apps/5.2.814.0/";for(var tt in gt)if(ae.slice(gt[tt].length*-1)===gt[tt]||ae.slice((gt[tt].length+1)*-1)===gt[tt]+"/"){Ye(qe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&et&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ge(oe.showToolBar)&&!Ge(oe.showMenuBar)&&!Ge(oe.showAlgebraInput)&&!Ge(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?qe+="webSimple/":qe+="web3d/",Ye(qe,!1)},Ye=function(he,Be){if(he.requirejs){_e=he;return}he.slice(-1)!=="/"&&(he+="/"),_e=he,Be===null&&(Be=he.indexOf("http")===-1),ke=Be,a="web.nocache.js",y=!1;var et=_e.split("/");et.length>1&&(!Be&&et[et.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(et[et.length-2])>=0&&(a=et[et.length-2]+".nocache.js")),et=he.split("/"),ae=et[et.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 yt=parseFloat(ae);yt!==NaN&&yt<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),Ze("5.0",Be))},at=function(he,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ge(xt):xt();function xt(){var he=it;Ce!==null?he=Ce:parseFloat(he)<5&&(he="5.0"),Ze(he,!1),le!==null&&Ye(le,ke),ue=!0}return Me},GGBAppletUtils=function(){"use strict";function Me(){return window.GGBT_wsf_edit!==void 0}function it(ue,Ce){Ce!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ce+","+Ce+")",ue.style.webkitTransform="scale("+Ce+","+Ce+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,Ce,le,He,xe,Te){var _e=null;if(Te!=null&&Te!="")for(var ke=ue.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+Te+" ")>-1){_e=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(_e)je=_e.offsetWidth,ae=Math.max(He?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=je):(je=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=je&&(xe===void 0||!xe)&&(document.dir==="rtl"?(E=je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ue&&((le===void 0||!le)&&Ce>0&&Ce+y<je?je=Ce:je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:je,height:ae}}function ne(ue,Ce,le,He,xe){if(ue.isScreenshoGenerator)return 1;var Te=He!==void 0&&He,_e=ue.noScaleMargin!=null&&ue.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(ue.autoHeight),ae=oe(Ce,ue.width,le,je,Te&&window.GGBT_wsf_view||_e,xe),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(ue,Ce,le){var He=1,xe,Te=!1;if(ue.hasOwnProperty("allowUpscale")&&(Te=ue.allowUpscale),ue.hasOwnProperty("scale")&&(He=parseFloat(ue.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(Te=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))xe=ne(ue,Ce,Te,le,ue.scaleContainerClass);else return He;return Te&&(!ue.hasOwnProperty("scale")||He===1)?xe:Math.min(He,xe)}function Xe(ue){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=ue.getBoundingClientRect(),xe=(Ce-He.width)/2,Te=(le-He.height)/2;Te<0&&(Te=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ue.style.left="40px":ue.style.left=xe+"px",ue.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ue.style.top="40px":ue.style.top=Te+"px",ue.style.left=xe+"px")}function ze(ue,Ce){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(Ce,ue);Me()&&le.setAttribute("data-param-scale",He);for(var xe=null,Te=0;Te<ue.childNodes.length;Te++)if(ue.childNodes[Te].className!==void 0&&ue.childNodes[Te].className.match(/^applet_scaler/)){xe=ue.childNodes[Te];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var _e=Ce.id!==void 0?Ce.id:"ggbApplet",ke=window[_e];(ke==null||!ke.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(He)&&He!==1?(xe.parentNode.style.width=Ce.width*He+"px",xe.parentNode.style.height=Ce.height*He+"px",it(xe,He)):(it(xe,1),xe.parentNode.style.width=Ce.width+"px",xe.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:Me,positionCenter:Xe,getScale:ce,scaleElement:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Me=n.location.search;return Me.indexOf(J)!=-1||Me.indexOf(K)!=-1}function q(Me,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Me){var it=s[L].bindings;s[L].bindings=function(){for(var oe=it?it():{},ne=Me[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var Xe=ne[ce];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Me=o.createElement(Q);if(Me.id=L,Me.style.cssText=R+S,Me.tabIndex=-1,o.body.appendChild(Me),t=Me.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Me){function it(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=ce();if(Xe){ne();return}function ze(){if(!Xe){if(!ce())return;Xe=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var ue=setInterval(function(){ze()},$)}function oe(ne){var ce=u(),Xe=ce.body,ze=ce.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=ne,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Xe.appendChild(ze)}it(function(){oe(Me)})}webModule.__startLoadingFragment=function(Me){return C(Me)},webModule.__installRunAsyncCode=function(Me){var it=u(),oe=it.body,ne=it.createElement(_);ne.language=ab,ne.text=Me,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(Me){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Me){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Me){var it=c[Me];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Me(ue){var Ce=ue.lastIndexOf(rb);Ce==-1&&(Ce=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var He=ue.lastIndexOf(tb,Math.min(le,Ce));return He>=O?ue.substring(O,He+P):W}function it(ue){if(!ue.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=ue+vb,ue=Me(Ce.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Ce=O;Ce<ue.length;++Ce)if(ue[Ce].src.indexOf(xb)!=-1)return Me(ue[Ce].src);return W}function ce(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function Xe(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var ze=oe();return ze==W&&(ze=ne()),ze==W&&(ze=ce()),ze==W&&Xe()&&(ze=Me(o.location.href)),ze=it(ze),ze}function C(Me){return Me.match(/^\//)||Me.match(/^[a-zA-Z]+:\/\//)?Me:webModule.__moduleBase+Me}function D(){var Me=[],it=O,oe=[],ne=[];function ce(ue){var Ce=ne[ue](),le=oe[ue];if(Ce in le)return Ce;var He=[];for(var xe in le)He[le[xe]]=xe;throw r&&r(ue,He,Ce),null}if(__gwt_isKnownPropertyValue=function(ue,Ce){return Ce in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(ue[Ce]=ce(Ce));return ue},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var ze=Xe.indexOf(Db);ze!=-1&&(it=parseInt(Xe.substring(ze+P),$),Xe=Xe.substring(O,ze))}catch(ue){}return webModule.__softPermutationId=it,C(Xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Me,it,oe){"use strict";oe.d(it,{Ax:function(){return ze},Ds:function(){return ue},KI:function(){return le},SI:function(){return Xe},f1:function(){return ce}});var ne=oe(11320);function ce(He){let xe=!0;if(He.length>0){for(let Te=0;Te<He.length;Te++)if(He[Te].compile_success==0||!He[Te].compile_success){xe=!1;break}}else xe=!1;return xe}function Xe(He,xe=""){let Te=[];for(let _e=0;_e<He.length;_e++){let ke=He[_e],je=xe?`${xe}/${ke.name}`:`${ke.name}`;Te.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return Te}function ze(He,xe,Te){for(let _e=0;_e<He.length;_e++){let ke=He[_e];if(ke.key===xe){ke.children=Te;break}ke.children&&ze(ke.children,xe,Te)}return He}function ue(He,xe,Te){let _e;return function(){let ke=this,je=arguments,ae=function(){_e=null,Te||He.apply(ke,je)},a=Te&&!_e;clearTimeout(_e),_e=setTimeout(ae,xe),a&&He.apply(ke,je)}}const Ce=!0,le=ne.Z.API_SERVER},10191:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return kt}});var ne=oe(67294),ce=oe(35973),Xe=oe(84567),ze=oe(24018),ue=oe(40043),Ce=oe(33170),le=oe(22150),He=oe(11713),xe={},Te=Object.defineProperty,_e=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(Le,Ie,Ae)=>Ie in Le?Te(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Le[Ie]=Ae,a=(Le,Ie)=>{for(var Ae in Ie||(Ie={}))ke.call(Ie,Ae)&&ae(Le,Ae,Ie[Ae]);if(_e)for(var Ae of _e(Ie))je.call(Ie,Ae)&&ae(Le,Ae,Ie[Ae]);return Le},y=(Le,Ie,Ae)=>new Promise((nt,gt)=>{var Ze=xt=>{try{at(Ae.next(xt))}catch(he){gt(he)}},Ye=xt=>{try{at(Ae.throw(xt))}catch(he){gt(he)}},at=xt=>xt.done?nt(xt.value):Promise.resolve(xt.value).then(Ze,Ye);at((Ae=Ae.apply(Le,Ie)).next())});const E=Xe.default.Group,b=({classroomList:Le,loading:Ie,user:Ae,exercise_id:nt=null,homework_common_id:gt=null,setitem:Ze,item:Ye,type:at,rz:xt,dispatch:he})=>{var Be,et,yt,Ke,qe,de,tt,ft;const[Ht,ut]=(0,ne.useState)([]);let[Ee,be]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const ve=(0,ce.useParams)(),[ye,Fe]=(0,ne.useState)(!1),[Ve,ct]=(0,ne.useState)(!1),[Pt]=le.default.useForm();(0,ne.useEffect)(()=>{xt&&(Ee.zydatas=xt,be(a({},Ee)),Ye!=null&&Ye.ec_course_id&&Lt())},[Ye,xt]);function Lt(){return y(this,null,function*(){console.log("----",Ye),yield Ot(Ye==null?void 0:Ye.ec_major_school_id),yield jt(Ye==null?void 0:Ye.ec_year_id),yield wt(Ye==null?void 0:Ye.ec_course_id),Pt.setFieldsValue({ec_course_id:Ye==null?void 0:Ye.ec_course_id,ec_major_school_id:Ye==null?void 0:Ye.ec_major_school_id,ec_point_ids:Ye==null?void 0:Ye.ec_point_ids,ec_year_id:Ye==null?void 0:Ye.ec_year_id})})}function Ot(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_major_schools/${bt}/ec_years/get_year_list.json`,{method:"get"});Ee.jbdatas=Mt==null?void 0:Mt.data,be(a({},Ee)),Pt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function jt(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_years/${bt}/ec_courses/get_courses.json`,{method:"get"});Ee.kcdatas=Mt==null?void 0:Mt.data,be(a({},Ee)),Pt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const wt=bt=>y(void 0,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_courses/${bt}/ec_points.json`,{method:"get",params:{ec_course_id:bt}});Ee.zsdatas=Mt==null?void 0:Mt.data,be(a({},Ee))});return ne.createElement("div",{className:xe.from},ne.createElement(le.default,{form:Pt,layout:"inline",onValuesChange:bt=>{console.log("----",bt),bt.ec_major_school_id&&(Ee.jbdatas=[],Ee.kcdatas=[],Ee.zsdatas=[],be(a({},Ee)),Ot(bt.ec_major_school_id)),bt.ec_year_id&&(Ee.kcdatas=[],Ee.zsdatas=[],be(a({},Ee)),jt(bt.ec_year_id)),bt.ec_course_id&&(Ee.zsdatas=[],be(a({},Ee)),wt(bt.ec_course_id))},onFinish:bt=>y(void 0,null,function*(){Ze(bt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:((Be=Ee.zydatas)==null?void 0:Be.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(et=Ee==null?void 0:Ee.zydatas)==null?void 0:et.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{style:{width:150},disabled:((yt=Ee.jbdatas)==null?void 0:yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ke=Ee==null?void 0:Ee.jbdatas)==null?void 0:Ke.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{style:{width:150},disabled:((qe=Ee.kcdatas)==null?void 0:qe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Ee==null?void 0:Ee.kcdatas)==null?void 0:de.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{onChange:()=>{Pt.submit()},style:{width:150},mode:"multiple",disabled:((tt=Ee.zsdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ft=Ee==null?void 0:Ee.zsdatas)==null?void 0:ft.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name))))))};var x=(0,ce.connect)(({classroomList:Le,loading:Ie,globalSetting:Ae,user:nt})=>({classroomList:Le,globalSetting:Ae,loading:Ie.effects,user:nt}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Le,Ie,Ae)=>Ie in Le?z(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Le[Ie]=Ae,se=(Le,Ie)=>{for(var Ae in Ie||(Ie={}))ie.call(Ie,Ae)&&me(Le,Ae,Ie[Ae]);if(re)for(var Ae of re(Ie))ge.call(Ie,Ae)&&me(Le,Ae,Ie[Ae]);return Le},Ne=(Le,Ie)=>ee(Le,te(Ie)),Ge=(Le,Ie,Ae)=>new Promise((nt,gt)=>{var Ze=xt=>{try{at(Ae.next(xt))}catch(he){gt(he)}},Ye=xt=>{try{at(Ae.throw(xt))}catch(he){gt(he)}},at=xt=>xt.done?nt(xt.value):Promise.resolve(xt.value).then(Ze,Ye);at((Ae=Ae.apply(Le,Ie)).next())});const pt=Xe.default.Group,zt=({classroomList:Le,loading:Ie,user:Ae,exercise_id:nt=null,homework_common_id:gt=null,setitem:Ze,type:Ye,dispatch:at})=>{var xt,he;let[Be,et]=(0,ne.useState)([{}]),[yt,Ke]=(0,ne.useState)([]);function qe(){return Ge(this,null,function*(){var tt,ft,Ht;let ut=yield(0,Ce.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:nt,homework_common_id:gt}});if(((tt=ut==null?void 0:ut.data)==null?void 0:tt.length)>0){let Ee=[];(ft=ut==null?void 0:ut.data)==null||ft.map(be=>{var ve;(ve=be==null?void 0:be.ec_point_ids)==null||ve.map(ye=>{Ee.push(ye)})}),Ze(Ne(se({},(Ht=ut==null?void 0:ut.data)==null?void 0:Ht[0]),{ec_point_ids:Ee})),et(ut==null?void 0:ut.data)}})}(0,ne.useEffect)(()=>{var tt,ft;(ft=(tt=Ae==null?void 0:Ae.userInfo)==null?void 0:tt.course)!=null&&ft.course_school_id&&de()},[(he=(xt=Ae==null?void 0:Ae.userInfo)==null?void 0:xt.course)==null?void 0:he.course_school_id]);function de(){return Ge(this,null,function*(){var tt,ft;const Ht=yield(0,Ce.ZP)(`/api/schools/${(ft=(tt=Ae==null?void 0:Ae.userInfo)==null?void 0:tt.course)==null?void 0:ft.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ke(Ht==null?void 0:Ht.data),(gt||nt)&&qe()})}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((tt,ft)=>ne.createElement("div",{key:ft,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:yt,item:tt,type:ft,setitem:Ht=>{Be.splice(ft,1,Ht),et([...Be]);let ut=[];Be==null||Be.map(Ee=>{var be;(be=Ee==null?void 0:Ee.ec_point_ids)==null||be.map(ve=>{ut.push(ve)})}),Ze(Ne(se({},Ht),{ec_point_ids:ut}))}}),ft!=0&&ne.createElement(ze.Z,{onClick:()=>{Be.splice(ft,1),et([...Be])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{Be.push({}),et([...Be])},style:{marginLeft:10,fontSize:"20px"}}))))};var kt=(0,ce.connect)(({classroomList:Le,loading:Ie,globalSetting:Ae,user:nt})=>({classroomList:Le,globalSetting:Ae,loading:Ie.effects,user:nt}))(zt)},63205:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return _e}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(94184),ze=oe.n(Xe),ue=oe(57953),Ce=oe(15979),le=oe(33170),He=oe(28706),xe=(ke,je,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,je)).next())}),_e=({data:ke,className:je,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{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)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&Ne()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const Ne=()=>xe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,He.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Le,z.current.onload=function(){kt()},ge(!1),se("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},pt=Le=>xe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ie=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Le.dataUrl}});Ie!=null&&Ie.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ie==null?void 0:Ie.id,settings:JSON.stringify(Le.state)}})).status===0&&E():Ie!=null&&Ie.id&&E(Ie),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(Ae=>{const nt=document.querySelector(Ae.name);nt&&nt.setAttribute("title",Ae.title)})},kt=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",pt),ee.current.addEventListener("beforeclose",Ge),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ue.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:ze()(ce.imageDimensions,je,ae?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:z}))))}},36527:function(Me,it,oe){"use strict";var ne=oe(67294),ce=oe(71230),Xe=oe(15746),ze=oe(66368),ue=oe(71577),Ce=oe(85725),le=oe(71736),He=oe(84279),xe=oe(67294);const Te=(0,ne.forwardRef)(({callback:_e,showSaveButton:ke,value:je=""},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 "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>xe.createElement(Xe.Z,{flex:"110px",className:le.Z.item},xe.createElement("div",null,xe.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),xe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>xe.createElement("div",{key:ie},xe.createElement("h1",null,re.name),xe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>xe.createElement(Xe.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},xe.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>xe.createElement(Xe.Z,{flex:"110px",className:le.Z.item},xe.createElement("div",null,xe.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),xe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>xe.createElement("div",{key:ie},re.name&&xe.createElement("h1",null,re.name),xe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>xe.createElement(Xe.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},xe.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return _e&&_e(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),xe.createElement("div",{className:le.Z.mathWrap},xe.createElement(ze.default,{defaultActiveKey:"1",items:x}),xe.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}},je||""),ke&&xe.createElement("div",{className:le.Z.button},xe.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Te},65866:function(Me,it,oe){"use strict";oe.d(it,{z:function(){return nt},Z:function(){return gt}});var ne=oe(67294),ce=oe(59810),Xe=oe(2453),ze=oe(14446),ue=oe(71577),Ce=oe(11320),le=oe(4440),He=Object.defineProperty,xe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ke=(Ze,Ye,at)=>Ye in Ze?He(Ze,Ye,{enumerable:!0,configurable:!0,writable:!0,value:at}):Ze[Ye]=at,je=(Ze,Ye)=>{for(var at in Ye||(Ye={}))Te.call(Ye,at)&&ke(Ze,at,Ye[at]);if(xe)for(var at of xe(Ye))_e.call(Ye,at)&&ke(Ze,at,Ye[at]);return Ze},ae=(Ze,Ye,at)=>new Promise((xt,he)=>{var Be=Ke=>{try{yt(at.next(Ke))}catch(qe){he(qe)}},et=Ke=>{try{yt(at.throw(Ke))}catch(qe){he(qe)}},yt=Ke=>Ke.done?xt(Ke.value):Promise.resolve(Ke.value).then(Be,et);yt((at=at.apply(Ze,Ye)).next())});const a="\u3000\u3000";function y(Ze){var Ye=["Bytes","KB","MB","GB","TB"];if(Ze==0)return"0 Byte";var at=parseInt(""+Math.floor(Math.log(Ze)/Math.log(1024)),10);return(Ze/Math.pow(1024,at)).toFixed(1)+" "+Ye[at]}var E=({value:Ze=[],action:Ye,onChange:at,className:xt,maxSize:he=150,title:Be="\u6587\u4EF6\u4E0A\u4F20",accept:et=null})=>{const yt={multiple:!1,fileList:Ze,accept:et,withCredentials:!0,beforeUpload:qe=>qe.size/1024/1024<he?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${he}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(qe){var de,tt,ft,Ht;let ut=[...qe.fileList];if(ut=ut.map(Ee=>(Ee.name.indexOf(a)===-1&&(Ee.name=`${Ee.name}${a}${y(Ee.size)}`),je({},Ee))),qe.file.status==="done"&&((tt=(de=qe.file)==null?void 0:de.response)==null?void 0:tt.status)===-1){message.error((Ht=(ft=qe.file)==null?void 0:ft.response)==null?void 0:Ht.message),at([]);return}at(ut)},onRemove:qe=>ae(void 0,null,function*(){const de=qe.size/1024/1024;return qe.status==="uploading"?!0:de<he&&(qe.response?qe.response.id:qe.uid)?yield removeAttachment(qe.response?qe.response.id:qe.id):!0})};function Ke(qe){qe.preventDefault(),qe.stopPropagation()}return React.createElement("div",{className:`single-upload ${xt||""}`},React.createElement(Upload,je({},yt),React.createElement(Button,{type:"primary",title:Ze.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:Ze.length>0,ghost:!0},Be),React.createElement("span",{onClick:Ke,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",he,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ze,Ye,at)=>Ye in Ze?z(Ze,Ye,{enumerable:!0,configurable:!0,writable:!0,value:at}):Ze[Ye]=at,ge=(Ze,Ye)=>{for(var at in Ye||(Ye={}))te.call(Ye,at)&&ie(Ze,at,Ye[at]);if(ee)for(var at of ee(Ye))re.call(Ye,at)&&ie(Ze,at,Ye[at]);return Ze};const me=Ze=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ze),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=",Ne=Object.defineProperty,Ge=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,kt=(Ze,Ye,at)=>Ye in Ze?Ne(Ze,Ye,{enumerable:!0,configurable:!0,writable:!0,value:at}):Ze[Ye]=at,Le=(Ze,Ye)=>{for(var at in Ye||(Ye={}))pt.call(Ye,at)&&kt(Ze,at,Ye[at]);if(Ge)for(var at of Ge(Ye))zt.call(Ye,at)&&kt(Ze,at,Ye[at]);return Ze},Ie=(Ze,Ye,at)=>new Promise((xt,he)=>{var Be=Ke=>{try{yt(at.next(Ke))}catch(qe){he(qe)}},et=Ke=>{try{yt(at.throw(Ke))}catch(qe){he(qe)}},yt=Ke=>Ke.done?xt(Ke.value):Promise.resolve(Ke.value).then(Be,et);yt((at=at.apply(Ze,Ye)).next())});const{Dragger:Ae}=ce.default;function nt(Ze){let Ye=[];return Ze&&Ze.length>0&&(Ye=Ze.map(at=>({uid:at.id,id:at.id,name:at.title+a+at.filesize,url:at.url,filesize:at.filesize,status:"done",response:{id:at.id}}))),Ye}var gt=({value:Ze,onChange:Ye,action:at,data:xt,className:he,maxSize:Be=150,title:et="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:yt=!1,accept:Ke="",additionalText:qe,isDragger:de,number:tt=1e3,aloneClear:ft=!1,realTimeRemove:Ht=!0,uploadText:ut,setFileProgress:Ee,showFileProgress:be})=>{const[ve,ye]=(0,ne.useState)(!1);let[Fe,Ve]=(0,ne.useState)(Ze||[]),[ct,Pt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Ze&&(ct===1&&Ve([...Ze]),Pt(2),tt===(Ze==null?void 0:Ze.length)&&ye(!0))},[Ze]);const Lt=()=>{setTimeout(()=>{Fe.pop(),Ve([...Fe])},500)};be&&Ee(Fe.some(wt=>wt.status==="uploading"));const Ot={multiple:!0,disabled:ve,accept:Ke,withCredentials:!0,fileList:Fe,beforeUpload:(wt,bt)=>{const Mt=wt.size/1024/1024;return Fe.concat(bt).length>tt?(Fe.pop(),Ve([...Fe]),Xe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${tt}\u4E2A\u6587\u4EF6`),ft?Promise.reject():(Lt(),!1)):Mt<Be?!0:(Xe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB).`),ft?Promise.reject():(Lt(),!1))},data:xt,action:at||`${Ce.Z.API_SERVER}/api/attachments.json`,onChange(wt){var bt,Mt,Vt,_t;if(wt.file.status==="removed"?Fe=wt.fileList:Fe=(0,x.uniqBy)([...wt.fileList,...Fe],"uid"),wt.file.status==="done"&&((Mt=(bt=wt.file)==null?void 0:bt.response)==null?void 0:Mt.status)===-1){Xe.ZP.error((_t=(Vt=wt.file)==null?void 0:Vt.response)==null?void 0:_t.message);return}Fe.length>=tt?ye(!0):ye(!1),Ve([...Fe]),Fe=Fe.map(Qt=>{var pe,Oe;return(pe=Qt==null?void 0:Qt.response)!=null&&pe.id&&(Qt.url=(Oe=Qt==null?void 0:Qt.response)==null?void 0:Oe.url),Qt.name.indexOf(a)===-1&&(Qt.name=`${Qt.name}${a}${y(Qt.size)}`),Le({},Qt)}),console.log("info:",wt,Fe),Ye(Fe)},onRemove:wt=>Ie(void 0,null,function*(){if(!Ht)return!0;const bt=()=>Ie(void 0,null,function*(){if(wt.response?wt.response.id:wt.id){let Vt=yield(0,le.JZ)(wt.response?wt.response.id:wt.uid);return Promise.resolve(Vt)}else return!0});return yt?new Promise((Mt,Vt)=>{ze.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:()=>Ie(void 0,null,function*(){const _t=yield bt();Xe.ZP.success("\u5220\u9664\u6210\u529F"),Mt(!0)}),onCancel:()=>Mt(!1)})}):yield bt()})};function jt(wt){wt.preventDefault(),wt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${he||""}`},de&&ne.createElement(Ae,Le({},Ot),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)"," "),qe),!de&&ne.createElement(ce.default,Le({},Ot),ne.createElement(ue.ZP,{disabled:ve,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),et),ne.createElement("span",{onClick:jt,className:"upload_text"},ut||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Be}MB)`)))}},57444:function(Me,it,oe){"use strict";oe.d(it,{h:function(){return ee}});var ne=oe(67294),ce=oe(11713),Xe=oe(22150),ze=oe(71577),ue=oe(4631),Ce=oe.n(ue),le=oe(71749),He=oe(30483),xe=Object.defineProperty,Te=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?xe(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))je.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Te(te,_e(re));const b=ce.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};it.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(Ne){ge(z[Ne][1])}function se(Ne){te(Ne)}return ne.createElement(Xe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(ce.default,{getPopupContainer:Ne=>Ne.parentNode,onChange:me},Object.keys(z).map(Ne=>ne.createElement(b,{key:Ne,value:Ne},z[Ne][0])))),ne.createElement(Xe.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(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(ze.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const me=(0,ne.useRef)(),[se,Ne]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Ge=function(pt){const zt=pt.getValue();re&&re(zt)};return se.on("change",Ge),()=>{se.off("change",Ge)}}},[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 Ge=Ce().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ne(Ge)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},35567:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return Zn}});var ne=oe(67294),ce=oe(4631),Xe=oe.n(ce),ze=oe(91033),ue=oe(71749),Ce=oe(57341),le=oe(82801),He=oe(88386),xe=oe(49047),Te=oe(80785),_e=oe(85725),ke=({value:fe="",className:we,showTextOnly:Pe,showLines:dt,style:Et={}})=>{const Gt=(0,ne.useMemo)(()=>"",[fe]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},je=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(fe,we,Pe)=>we in fe?ae(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[we]=Pe,ee=(fe,we)=>{for(var Pe in we||(we={}))b.call(we,Pe)&&z(fe,Pe,we[Pe]);if(E)for(var Pe of E(we))x.call(we,Pe)&&z(fe,Pe,we[Pe]);return fe},te=(fe,we)=>a(fe,y(we));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:fe,title:we,icon:Pe,actionName:dt,className:Et="",children:Gt}){function Pn(){fe(dt)}return je.createElement("a",{title:we,className:Et,onClick:Pn},je.createElement("i",{className:`${Pe}`}),Gt)}var ge=({watch:fe,showNullButton:we,showNullProgramButton:Pe,onActionCallback:dt,fullScreen:Et,insertTemp:Gt,hidetoolBar:Pn,extraUse:Jt})=>{const sn=[...re,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Pn&&sn.map((Cn,Un)=>je.createElement("li",{key:Un},Cn.actionName?je.createElement(ie,te(ee({},Cn),{onActionCallback:dt})):je.createElement("span",{className:"v-line"}))),we?je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Jt&&je.createElement("li",null,Jt),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${Et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},me=oe(76621),se=oe(22150),Ne=oe(69677),Ge=oe(71577),pt=Object.defineProperty,zt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,nt=(fe,we,Pe)=>we in fe?pt(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[we]=Pe,gt=(fe,we)=>{for(var Pe in we||(we={}))Ie.call(we,Pe)&&nt(fe,Pe,we[Pe]);if(Le)for(var Pe of Le(we))Ae.call(we,Pe)&&nt(fe,Pe,we[Pe]);return fe},Ze=(fe,we)=>zt(fe,kt(we));const Ye={labelCol:{span:4},wrapperCol:{span:20}};var at=({callback:fe,onCancel:we})=>{function Pe(dt){fe(dt)}return ne.createElement(se.default,Ze(gt({},Ye),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,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(Ne.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(Ne.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},xt=oe(57444),he=oe(70859),Be=oe(14446),et=oe(71230),yt=oe(63205),Ke=oe(67294),qe=({callback:fe,onCancel:we})=>{const Pe=document.createElement("canvas"),dt=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,Pe.width,Pe.height);const Et=Pe.toDataURL("image/png");return Ke.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ke.createElement(et.Z,{style:{height:"100vh"}},Ke.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Et,visible:!0,title:String(Date.now())},onOk:Gt=>{fe({src:Gt.url})},onClose:we})))},de=oe(23495);function tt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(tt,go.CommandHandler),tt.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},tt.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var we=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(we=Math.min(Pe.position.x,we))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(we,Pe.position.y))}),fe.commitTransaction("aligning left")},tt.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var we=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var dt=Pe.actualBounds.x+Pe.actualBounds.width;we=Math.max(dt,we)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(we-Pe.actualBounds.width,Pe.position.y))}),fe.commitTransaction("aligning right")},tt.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var we=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(we=Math.min(Pe.position.y,we))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,we))}),fe.commitTransaction("alignTop")},tt.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var we=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var dt=Pe.actualBounds.y+Pe.actualBounds.height;we=Math.max(dt,we)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,we-Pe.actualBounds.height))}),fe.commitTransaction("aligning bottom")},tt.prototype.alignCenterX=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center X");var Pe=we.actualBounds.x+we.actualBounds.width/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(Pe-dt.actualBounds.width/2,dt.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},tt.prototype.alignCenterY=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center Y");var Pe=we.actualBounds.y+we.actualBounds.height/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,Pe-dt.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},tt.prototype.alignColumn=function(fe){var we=this.diagram;we.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Pe=new Array;we.selection.each(function(Jt){Jt instanceof go.Link||Pe.push(Jt)});for(var dt=0;dt<Pe.length-1;dt++){var Et=Pe[dt],Gt=Et.actualBounds.y+Et.actualBounds.height+fe,Pn=Pe[dt+1];Pn.move(new go.Point(Et.actualBounds.x,Gt))}we.commitTransaction("align Column")},tt.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var we=this.diagram;we.startTransaction("align Row");var Pe=new Array;we.selection.each(function(Jt){Jt instanceof go.Link||Pe.push(Jt)});for(var dt=0;dt<Pe.length-1;dt++){var Et=Pe[dt],Gt=Et.actualBounds.x+Et.actualBounds.width+fe,Pn=Pe[dt+1];Pn.move(new go.Point(Gt,Et.actualBounds.y))}we.commitTransaction("align Row")},tt.prototype.canRotate=function(fe){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},tt.prototype.rotate=function(fe){fe===void 0&&(fe=90);var we=this.diagram;we.startTransaction("rotate "+fe.toString());var we=this.diagram;we.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=fe)}),we.commitTransaction("rotate "+fe.toString())},tt.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var we=new go.Map;fe.selection.each(function(Pe){we.set(Pe.layer,0)}),we.iteratorKeys.each(function(Pe){var dt=0;Pe.parts.each(function(Et){if(!Et.isSelected){var Gt=Et.zOrder;isNaN(Gt)?Et.zOrder=0:dt=Math.max(dt,Gt)}}),we.set(Pe,dt)}),fe.selection.each(function(Pe){tt._assignZOrder(Pe,we.get(Pe.layer)+1)}),fe.commitTransaction("pullToFront")},tt.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var we=new go.Map;fe.selection.each(function(Pe){we.set(Pe.layer,0)}),we.iteratorKeys.each(function(Pe){var dt=0;Pe.parts.each(function(Et){if(!Et.isSelected){var Gt=Et.zOrder;isNaN(Gt)?Et.zOrder=0:dt=Math.min(dt,Gt)}}),we.set(Pe,dt)}),fe.selection.each(function(Pe){tt._assignZOrder(Pe,we.get(Pe.layer)-1-tt._findGroupDepth(Pe))}),fe.commitTransaction("pushToBack")},tt._assignZOrder=function(fe,we,Pe){Pe===void 0&&(Pe=fe),fe.layer===Pe.layer&&(fe.zOrder=we),fe instanceof go.Group&&fe.memberParts.each(function(dt){tt._assignZOrder(dt,we+1,Pe)})},tt._findGroupDepth=function(fe){if(fe instanceof go.Group){var we=0;return fe.memberParts.each(function(Pe){we=Math.max(we,tt._findGroupDepth(Pe))}),we+1}else return 0},tt.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var we=fe.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},tt.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(we){fe.push(we)}),this.diagram.parts.each(function(we){fe.push(we)}),fe},tt.prototype._arrowKeyMove=function(){var fe=this.diagram,we=fe.lastInput,Pe=0,dt=0;if(we.control||we.meta)Pe=1,dt=1;else if(fe.grid!==null){var Et=fe.grid.gridCellSize;dt=Et.width,Pe=Et.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Gt){we.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-Pe)):we.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+Pe)):we.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-dt,Gt.actualBounds.y)):we.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+dt,Gt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},tt.prototype._arrowKeySelect=function(){var fe=this.diagram,we=fe.lastInput,Pe=null;we.key==="Up"?Pe=this._findNearestPartTowards(270):we.key==="Down"?Pe=this._findNearestPartTowards(90):we.key==="Left"?Pe=this._findNearestPartTowards(180):we.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(we.shift?Pe.isSelected=!0:we.control||we.meta?Pe.isSelected=!Pe.isSelected:fe.select(Pe))},tt.prototype._findNearestPartTowards=function(fe){var we=this.diagram.selection.first();if(we===null)return null;for(var Pe=we.actualBounds.center,dt=this._getAllParts(),Et=1/0,Gt=we,Pn=0;Pn<dt.length;Pn++){var Jt=dt[Pn];if(Jt!==we&&Jt.canSelect()){var sn=Jt.actualBounds.center,Cn=Pe.directionPoint(sn),Un=this._angleCloseness(Cn,fe);if(Un<=45){var lt=Pe.distanceSquaredPoint(sn);lt*=1+Math.sin(Un*Math.PI/180),lt<Et&&(Et=lt,Gt=Jt)}}}return Gt},tt.prototype._angleCloseness=function(fe,we){return Math.min(Math.abs(we-fe),Math.min(Math.abs(we+360-fe),Math.abs(we-360-fe)))},tt.prototype._arrowKeyTree=function(){var fe=this.diagram,we=fe.selection.first();if(we instanceof go.Node){var Pe=fe.lastInput;if(Pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)fe.commandHandler.canExpandTree(we)&&fe.commandHandler.expandTree(we);else{var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}}else if(Pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)fe.commandHandler.canCollapseTree(we)&&fe.commandHandler.collapseTree(we);else{var Et=we.findTreeParentNode();Et!==null&&fe.select(Et)}else if(Pe.key==="Up"){var Et=we.findTreeParentNode();if(Et!==null){var Gt=this._sortTreeChildrenByY(Et),Pn=Gt.indexOf(we);if(Pn>0){for(var Jt=Gt.elt(Pn-1);Jt!==null&&Jt.isTreeExpanded&&!Jt.isTreeLeaf;){var sn=this._sortTreeChildrenByY(Jt);Jt=sn.last()}Jt!==null&&fe.select(Jt)}else fe.select(Et)}}else if(Pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}else for(;we!==null;){var Et=we.findTreeParentNode();if(Et===null)break;var Gt=this._sortTreeChildrenByY(Et),Pn=Gt.indexOf(we);if(Pn<Gt.length-1){fe.select(Gt.elt(Pn+1));break}else we=Et}var Cn=fe.selection.first();Cn!==null&&fe.scrollToRect(Cn.actualBounds)}},tt.prototype._sortTreeChildrenByY=function(fe){var we=new go.List().addAll(fe.findTreeChildrenNodes());return we.sort(function(Pe,dt){var Et=Pe.location,Gt=dt.location;return Et.y<Gt.y?-1:Et.y>Gt.y?1:Et.x<Gt.x?-1:Et.x>Gt.x?1:0}),we},tt.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},tt.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(tt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(tt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var ft=tt,Ht=oe(18023),ut=oe(15746),Ee=oe(33170),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=oe(67294),ye=(fe,we,Pe)=>new Promise((dt,Et)=>{var Gt=sn=>{try{Jt(Pe.next(sn))}catch(Cn){Et(Cn)}},Pn=sn=>{try{Jt(Pe.throw(sn))}catch(Cn){Et(Cn)}},Jt=sn=>sn.done?dt(sn.value):Promise.resolve(sn.value).then(Gt,Pn);Jt((Pe=Pe.apply(fe,we)).next())});function Fe({onCancel:fe,callback:we}){let Pe=(0,ne.useRef)(),dt=(0,ne.useRef)(),Et=(0,ne.useRef)(),Gt=(0,ne.useRef)(!1);const Pn=(0,ne.useRef)(!1),[Jt,sn]=(0,ne.useState)(0);function Cn(){const lt=de.bx.make,gn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0(dt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:rt=>{var Ft=rt.diagram.commandHandler.addTopLevelParts(rt.diagram.selection,!0);Ft||rt.diagram.currentTool.doCancel()},commandHandler:lt(ft),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:rt=>{var Ft=rt.subject;Ft.location=Ft.location.copy().snapToGridPoint(rt.diagram.grid.gridOrigin,rt.diagram.grid.gridCellSize),setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:rt=>{var Ft=rt.subject;setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()})},LinkRelinked:rt=>{var Ft=rt.parameter.part;Ft.invalidateConnectedLinks();var Rt=rt.subject;rt.diagram.toolManager.linkingTool.isForwards?Rt.toNode.invalidateConnectedLinks():Rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=lt(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),lt(de.bn,{name:"SHAPE",fill:gn.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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(rt,Ft){var Rt=(mt,tn)=>{mt.handled=!0,mt.diagram.model.commit(nn=>{var En=tn.part.adornedPart,xn=new de.E9().setRectSpot(En.actualBounds,rt);xn.subtract(En.location),xn.scale(2,2),xn.x+=Math.sign(xn.x)*130,xn.y+=Math.sign(xn.y)*130,xn.add(En.location),xn.snapToGridPoint(mt.diagram.grid.gridOrigin,mt.diagram.grid.gridCellSize);var Bn=nn.copyNodeData(En.data);nn.setGroupKeyForNodeData(Bn,nn.getGroupKeyForNodeData(En.data)),nn.addNodeData(Bn);var ga={from:En.key,to:nn.getKeyForNodeData(Bn)};nn.addLinkData(ga);var ta=mt.diagram.findNodeForData(Bn);ta.location=xn,mt.diagram.select(ta),setTimeout(()=>{mt.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,alignment:rt,alignmentFocus:rt.opposite(),width:rt.equals(de.z6.Top)||rt.equals(de.z6.Bottom)?25:18,height:rt.equals(de.z6.Top)||rt.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:gn.white,strokeWidth:4,mouseEnter:(mt,tn)=>tn.fill="dodgerblue",mouseLeave:(mt,tn)=>tn.fill="orange",isActionable:!0,click:Rt,contextClick:Rt})}function De(rt){return lt(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:(Ft,Rt)=>Rt.fill="dodgerblue",mouseLeave:(Ft,Rt)=>Rt.fill="orange",click:(Ft,Rt)=>{Ft.diagram.commandHandler.showContextMenu(Rt.part.adornedPart)}},rt||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),De({alignment:new de.z6(.75,0)}));function $e(rt,Ft){return(Rt,mt)=>{Rt.handled=!0,Rt.diagram.model.commit(tn=>{tn.set(mt.part.adornedPart.data,rt,Ft)})}}function Re(rt,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:rt,margin:1,background:"transparent",mouseEnter:(Rt,mt)=>mt.stroke="dodgerblue",mouseLeave:(Rt,mt)=>mt.stroke="lightgray",click:$e(Ft,rt),contextClick:$e(Ft,rt)})}function st(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.white,"fill"),Re(gn.beige,"fill"),Re(gn.extralightblue,"fill"),Re(gn.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.lightgray,"fill"),Re(gn.lightgreen,"fill"),Re(gn.lightblue,"fill"),Re(gn.lightred,"fill")))]}function Qe(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.black),Re(gn.green),Re(gn.blue),Re(gn.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(gn.white),Re(gn.magenta),Re(gn.purple),Re(gn.orange)))]}function ot(rt,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:rt,margin:1,background:"transparent",mouseEnter:(Rt,mt)=>mt.background="dodgerblue",mouseLeave:(Rt,mt)=>mt.background="transparent",click:$e(Ft,rt),contextClick:$e(Ft,rt)})}function Ue(rt,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:rt,margin:1,background:"transparent",mouseEnter:(Rt,mt)=>mt.background="dodgerblue",mouseLeave:(Rt,mt)=>mt.background="transparent",click:$e(Ft,rt),contextClick:$e(Ft,rt)})}function Wt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ot(1),ot(2),ot(3),ot(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Ue(null),Ue([2,4]),Ue([4,4])))]}function $t(rt,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:rt,margin:1,background:"transparent",mouseEnter:(Rt,mt)=>mt.fill="dodgerblue",mouseLeave:(Rt,mt)=>mt.fill="lightgray",click:$e(Ft,rt),contextClick:$e(Ft,rt)})}Pe.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Rectangle"),$t("RoundedRectangle"),$t("Ellipse"),$t("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Parallelogram2"),$t("ManualOperation"),$t("Procedure"),$t("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Terminator"),$t("CreateRequest"),$t("Document"),$t("TriangleDown"))),st(),Qe(),Wt()),Pe.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(rt,Ft)=>{var Rt=Ft.addMembers(Ft.diagram.selection,!0);Rt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:gn.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")),lt(de.Vm,{background:"transparent",margin:20})),lt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),De({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=lt("ContextMenu",st(),Qe(),Wt()),Pe.current.linkTemplate=lt(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",rt=>rt>=1?10:0),new de.KX("toShortLength","dir",rt=>rt>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(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",rt=>rt===1)),lt(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",rt=>rt>=1),new de.KX("width","thickness",rt=>7+3*rt),new de.KX("height","thickness",rt=>7+3*rt),new de.KX("segmentOffset","thickness",rt=>new de.E9(-15,4+1.5*rt))),lt(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",rt=>rt===2),new de.KX("width","thickness",rt=>7+3*rt),new de.KX("height","thickness",rt=>7+3*rt),new de.KX("segmentOffset","thickness",rt=>new de.E9(-15,4+1.5*rt))),lt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ut(2)},new de.KX("pathPattern","thickness",Ut)),De({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ut(rt){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(rt+4).toString()+" H3"})}function en(rt){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return rt===0?Ft="M0 0 M16 16 M0 8 L16 8":rt===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(Rt,mt)=>mt.background="dodgerblue",mouseLeave:(Rt,mt)=>mt.background="transparent",click:$e("dir",rt),contextClick:$e("dir",rt)})}function mn(rt){var Ft=(Rt,mt)=>{Rt.handled=!0,Rt.diagram.model.commit(tn=>{var nn=mt.part.adornedPart;tn.set(nn.data,rt?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(rt?nn.toNode:nn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rt,mt)=>mt.background="dodgerblue",mouseLeave:(Rt,mt)=>mt.background="transparent",click:Ft,contextClick:Ft})}function We(rt,Ft){var Rt=0,mt=de.z6.RightSide;rt.equals(de.z6.Top)?(Rt=270,mt=de.z6.TopSide):rt.equals(de.z6.Left)?(Rt=180,mt=de.z6.LeftSide):rt.equals(de.z6.Bottom)&&(Rt=90,mt=de.z6.BottomSide),Ft||(Rt-=180);var tn=(nn,En)=>{nn.handled=!0,nn.diagram.model.commit(xn=>{var Bn=En.part.adornedPart;xn.set(Bn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(mt)),(Ft?Bn.toNode:Bn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:rt,alignmentFocus:rt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rt,background:"transparent",mouseEnter:(nn,En)=>En.background="dodgerblue",mouseLeave:(nn,En)=>En.background="transparent",click:tn,contextClick:tn})}Pe.current.linkTemplate.contextMenu=lt("ContextMenu",Qe(),Wt(),lt("ContextMenuButton",lt(de.s_,"Horizontal",en(0),en(1),en(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",mn(!1),We(de.z6.Top,!1),We(de.z6.Left,!1),We(de.z6.Right,!1),We(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},mn(!0),We(de.z6.Top,!0),We(de.z6.Left,!0),We(de.z6.Right,!0),We(de.z6.Bottom,!0)))));const Hn=`{ "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 In=["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 Wn(rt){return console.log("shapeName:",rt),In.indexOf(rt)>=0}var wn=new de.YI(Et.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(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(rt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:rt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(rt){var Ft;const Rt=rt.subject.part;var mt=(Ft=document.activeElement)==null?void 0:Ft.value;typeof mt=="string"&&mt.trim()===""&&Pe.current.model.commit(function(tn){tn.set(Rt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(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")),lt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Un=()=>ye(this,null,function*(){var lt=Pe.current.makeImage();const gn=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});we({src:gn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Cn()},500),sn(Jt+1),()=>{Pe.current=null}),[]),ve.createElement("div",{ref:Pn,className:Gt.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Jt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(et.Z,null,ve.createElement(ut.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(ut.Z,{onClick:()=>{var lt,gn,Se=Pe.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Se){let De=(gn=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:gn.trim();typeof De=="string"&&Pe.current.model.commit(function($e){$e.set(Se.data,"text",De||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}sn(Jt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:Et})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:dt,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(Ge.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=Fe,ct=oe(78045),Pt=oe(31795);const Lt=ct.ZP.Group,Ot={margin:"0 8px"};var jt=({callback:fe,onCancel:we})=>{function Pe(dt){fe(dt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Pt.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Pt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Lt,null,ne.createElement(ct.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(ct.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(ct.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(ct.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},wt=oe(47897),bt=oe(61016),Mt=oe.n(bt),_t=(0,ne.forwardRef)(({use3d:fe,width:we,height:Pe,callback:dt,showSaveButton:Et},Gt)=>{const Pn=(0,ne.useRef)(),Jt=(0,ne.useRef)(),[sn,Cn]=(0,ne.useState)(!1),Un=(0,ne.useRef)({id:Pn,appName:"graphing",width:we||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Jt.current=new(Mt())(Un.current,!0),window.onload=function(){Jt.current.inject("applet_container")}},[]);const lt=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(gn),gn};return(0,ne.useEffect)(()=>{Un.current.appName=sn?"3D":"graphing",Jt.current.inject("applet_container")},[sn]),(0,ne.useEffect)(()=>{Cn(fe)},[fe]),(0,ne.useImperativeHandle)(Gt,()=>({getImgData:lt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Pn}),ne.createElement(et.Z,{align:"middle"},ne.createElement(ut.Z,{flex:1},ne.createElement(wt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:sn,onChange:gn=>Cn(gn)})),ne.createElement(ut.Z,null,ne.createElement(Ge.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qt=oe(36527),pe=oe(25934),Oe=oe(2453);const Je="link",St="upload-image",ht="add-flowchart",Tt="draw-image",Dt="add-flowchart",Bt="code-block",It="add-table",Kt="------------",Xt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var rn=oe(99914),on=(fe,we,Pe)=>new Promise((dt,Et)=>{var Gt=sn=>{try{Jt(Pe.next(sn))}catch(Cn){Et(Cn)}},Pn=sn=>{try{Jt(Pe.throw(sn))}catch(Cn){Et(Cn)}},Jt=sn=>sn.done?dt(sn.value):Promise.resolve(sn.value).then(Gt,Pn);Jt((Pe=Pe.apply(fe,we)).next())});function hn(){}let vn=0;const an=1e4,qt="\u2581",Sn="@\u2581\u2581@",pn="@\u2581@",yn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,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 Fn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"},Kn={[Je]:"\u6DFB\u52A0\u94FE\u63A5",[Bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[St]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:fe="",onChange:we,width:Pe="100%",height:dt=400,miniToolbar:Et=!1,isFocus:Gt=!1,watch:Pn,insertTemp:Jt,mode:sn="markdown",id:Cn="markdown-editor-id",showResizeBar:Un=!1,noStorage:lt=!1,showNullButton:gn=!1,showNullProgramButton:Se=!1,hidetoolBar:De=!1,fullScreen:$e=!1,onBlur:Re,onCMBeforeChange:st,onFullScreen:Qe,className:ot="",disablePaste:Ue=!1,disabled:Wt=!1,disabledFill:$t=!1,placeholder:Ut="",values:en="",extraUse:mn})=>{const[We,Hn]=(0,ne.useState)(null),[In,Wn]=(0,ne.useState)(fe),[wn,rt]=(0,ne.useState)(Pn),[Ft,Rt]=(0,ne.useState)($e),[mt,tn]=(0,ne.useState)(""),[nn,En]=(0,ne.useState)(0),[xn,Bn]=(0,ne.useState)(dt),[ga,ta]=(0,ne.useState)(!1),ca=(0,ne.useRef)((0,pe.Z)()),da=(0,ne.useRef)(!1),Yn=(0,ne.useRef)(),[$n,la]=(0,ne.useState)(0),[sa,ma]=(0,ne.useState)(0),Jn=(0,ne.useRef)(),_n=(0,ne.useRef)(),oa=(0,ne.useRef)(),Yt=(0,ne.useRef)(),zn=()=>on(void 0,null,function*(){var At;const vt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(At=vt==null?void 0:vt.attachments)!=null&&At.length&&(console.log("cm:",We,Jn),vt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?We.replaceSelection(``):Ct.content_type.indexOf("video")>-1?We.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?We.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):We.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const At=window.scrollY||window.pageYOffset;Wn(en),We==null||We.setValue(en),window.scrollTo(0,At)},[en]),(0,ne.useEffect)(()=>{Qe==null||Qe(Ft)},[Ft]),(0,ne.useEffect)(()=>{if(Jn.current){let At=function(Ct,Nt){var fn;if(Ue){Nt.preventDefault();return}const Gn=Nt.clipboardData;if(Gn){const Xn=Gn.types.toString(),Tn=Gn.items;if(Xn==="Files"||Gn.types.indexOf("Files")>-1){if(Nt.preventDefault(),sn=="stex")return;try{let Dn=Tn[1];((fn=Tn[0])==null?void 0:fn.kind)==="file"&&(Dn=Tn[0]);const Zt=Dn.getAsFile(),dn=Zt.name.split(".").pop();(0,he.I)(Zt,un=>{var ln,Ln,Rn;un.id?((ln=Zt==null?void 0:Zt.type)==null?void 0:ln.indexOf("image"))>-1?vt.replaceSelection(`<img width="100%" src="/api/attachments/${un.id}?type=${un.content_type})" alt="" />`):((Ln=Zt==null?void 0:Zt.type)==null?void 0:Ln.indexOf("video"))>-1?vt.replaceSelection(`<video width="100%" controls src="/api/attachments/${un.id}"></video>`):((Rn=Zt==null?void 0:Zt.type)==null?void 0:Rn.indexOf("pdf"))>-1?vt.replaceSelection(`<a href="/api/attachments/${un.id}?type=${Zt.type}&disposition=inline" target="_blank">${Zt.name}</a>`):cn.includes(dn)?vt.replaceSelection(`<a href="/api/attachments/${un.id}?type=office&disposition=inline" target="_blank">${Zt.name}</a>`):vt.replaceSelection(`[${Zt.name}](/api/attachments/${un.id}?type=${un.content_type})`):(un==null?void 0:un.status)===401&&(Oe.ZP.warning((un==null?void 0:un.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dn){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const vt=Xe().fromTextArea(Jn.current,{mode:sn,lineNumbers:!Et,lineWrapping:!0,value:fe,autoCloseTags:!Se,autoCloseBrackets:!0});return vt.on("keyup",function(Ct,Nt){Nt.keyCode===8&&(Ct.getValue()==""?vt.setOption("placeholder",Ut):vt.setOption("placeholder",null))}),vt.on("keydown",function(Ct,Nt){if(Nt.keyCode===8){var fn=Vn(Ct);fn&&Nt.preventDefault()}}),Gt&&vt.focus(),vt.on("paste",At),vt.on("dragleave",function(Ct,Nt){_n.current.classList.remove("mouse-hover-md")}),Wt&&vt.on("beforeChange",function(Ct,Nt){(Nt.origin==="paste"||Nt.origin==="+input")&&Nt.cancel()}),Hn(vt),()=>{vt.off("paste",At)}}},[]);const Qn=(0,ne.useCallback)(()=>{if(_n.current)try{}catch(At){console.log(At,"---- to set md editor body height")}},[xn,_n,Ft]);(0,ne.useEffect)(()=>{function At(){let vt=new ze.Z(Ct=>{for(let Nt of Ct)(Nt.target.offsetHeight>0||Nt.target.offsetWidth>0)&&(Qn(),We.setSize("100%","100%"),We.refresh())});return vt.observe(Jn.current.parentElement),vt}if(We){const vt=At();return()=>{var Ct,Nt;(Ct=Jn.current)!=null&&Ct.parentElement&&vt.unobserve((Nt=Jn.current)==null?void 0:Nt.parentElement)}}},[We,Qn]),(0,ne.useEffect)(()=>{if(We){let At=[];for(const[vt,Ct]of Object.entries(Mn)){let Nt={[vt]:()=>{na(Ct)}};At.push(Nt),We.addKeyMap(Nt)}return Yn.current=setInterval(()=>{da.current&&zn()},4e3),()=>{clearInterval(Yn.current);for(let vt of At)We.removeKeyMap(vt)}}},[We]),(0,ne.useEffect)(()=>{$e!==Ft&&Rt($e)},[$e]),(0,rn.Z)(()=>{if(!lt&&nn>0){let At=new Date().getTime(),vt=window.sessionStorage.getItem(Cn);At>=nn+an&&(!vt||vt!==In)&&(window.sessionStorage.setItem(Cn,In),ta(!0))}},an),(0,ne.useEffect)(()=>{rt(Pn)},[We,Pn]),(0,ne.useEffect)(()=>{We&&Gt&&We.focus()},[We,Gt]),(0,ne.useEffect)(()=>{if(wn&&We){let At=function(Ct){let Nt=Ct.target;if(Yt.current){let fn=Nt.scrollTop/Nt.scrollHeight;Yt.current.scrollTop=Yt.current.scrollHeight*fn}};const vt=We.getScrollerElement();return vt.addEventListener("scroll",At),()=>{vt.removeEventListener("scroll",At)}}},[We,wn]),(0,ne.useEffect)(()=>{if(We&&st){let At=function(vt,Ct){st(vt,Ct)};return We.on("beforeChange",At),()=>{We.off("beforeChange",At)}}},[We,st]),(0,ne.useEffect)(()=>{if(We&&Re){let At=function(){Re(We.getValue())};return We.on("blur",At),()=>{We.off("blur",At)}}},[We,Re]);function Vn(At,vt){var Ct=At.getDoc(),Nt=Ct.getCursor(),fn=Ct.getLine(Nt.line),Gn=fn.charAt(Nt.ch-1),Xn=fn.lastIndexOf("@\u2581@",Nt.ch),Tn=fn.lastIndexOf("@\u2581\u2581@",Nt.ch),Dn=Xn>Tn?Xn:Tn,Zt=Xn>Tn?3:4;if(Sn.indexOf(Gn)===-1)return null;if(console.log("change1:",vt,At,fn,Nt,Dn,Xn,Tn,Gn),Dn>=0&&Nt.ch-Dn<5){var dn=Dn+Zt;return Ct.replaceRange("",{line:Nt.line,ch:Dn},{line:Nt.line,ch:dn}),{line:Nt.line,ch:dn}}return null}(0,ne.useEffect)(()=>{if(We){let At=function(vt,Ct){const Nt=vt.getValue();Wn(Nt),En(new Date().getTime()),vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Se?we(Nt,Pa(Nt)):we(Nt))};return We.on("change",At),()=>{We.off("change",At)}}},[We,we]),(0,ne.useEffect)(()=>{if(We)if(fe==null)We.setValue(""),Wn("");else{const At=window.scrollY||window.pageYOffset;fe!==We.getValue()&&(We.setValue(fe),Wn(fe),We.setCursor(Wt?1:We.lineCount(),0),window.scrollTo(0,At))}},[We,fe]);const na=(0,ne.useCallback)(At=>{const vt=We.getCursor(),Ct=We.getSelection();let Nt=Ct.split(`
|
|
`);switch(At){case"bold":return We.replaceSelection("**"+Ct+"**"),Ct===""&&We.setCursor(vt.line,vt.ch+2),We.focus();case"italic":return We.replaceSelection("*"+Ct+"*"),Ct===""&&We.setCursor(vt.line,vt.ch+1),We.focus();case"code":return We.replaceSelection("`"+Ct+"`"),Ct===""&&We.setCursor(vt.line,vt.ch+1),We.focus();case"inline-latex":return tn("inline-latex"),We.focus();case"latex":return We.replaceSelection("```latex\n"+Ct+"\n```"),We.setCursor(vt.line+1,Ct.length+1),We.focus();case"line-break":return We.replaceSelection(`<br/>
|
|
`),We.focus();case"list-ul":return Ct===""?We.replaceSelection("- "+Ct):We.replaceSelection(Nt.map(fn=>fn===""?"":`- ${fn}`).join(`
|
|
`)),We.focus();case"list-ol":return Ct===""?We.replaceSelection("1. "+Ct):We.replaceSelection(Nt.map((fn,Gn)=>fn===""?"":`${Gn+1}. ${fn}`).join(`
|
|
`)),We.focus();case"add-null-ch":return Ct===""&&We.setCursor(vt.line,vt.ch),We.replaceSelection(qt),We.focus();case"add-signal":return Ct===""&&We.setCursor(vt.line,vt.ch),We.replaceSelection(pn),We.focus();case"add-multiple":return Ct===""&&We.setCursor(vt.line,vt.ch),We.replaceSelection(Sn),We.focus();case"inster-template-1":return Ct===""&&We.setCursor(vt.line,vt.ch),We.replaceSelection(yn),We.focus();case"eraser":return We.setValue(""),We.focus();case"trigger-watch":return rt(!wn),We.focus();case"trigger-full-screen":return Rt(!Ft),We.focus();case Je:tn(Je);return;case Bt:tn(Bt);return;case St:tn(St);return;case Tt:tn(Tt);return;case"maths-latex":tn("maths-latex");return;case ht:tn(ht);return;case It:tn(It);return;default:throw new Error}},[We,wn,Ft]),An=(0,ne.useCallback)((At,vt)=>{var Ct,Nt,fn,Gn,Xn,Tn;switch(tn(""),mt){case Je:const{title:ln,link:Ln}=At;return We.replaceSelection(`[${ln}](${Ln})`),We.focus();case Bt:const{language:Rn,content:ua}=At;return We.replaceSelection(["```"+Rn,ua,"```"].join(`
|
|
`)),We.focus();case"maths-latex":for(var Dn=atob(At),Zt=new Uint8Array(Dn.length),dn=0;dn<Dn.length;dn++)Zt[dn]=Dn.charCodeAt(dn);var un=new Blob([Zt],{type:"image/png"});(0,he.I)(un,ia=>{ia.id?We.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":We.replaceSelection("`$$"+At+"$$`");break;case St:case Tt:case Dt:const{src:ea,alt:ra}=At,jn=vt,Ea=(fn=(Nt=(Ct=jn==null?void 0:jn.name)==null?void 0:Ct.split("."))==null?void 0:Nt.pop)==null?void 0:fn.call(Nt);return((Gn=jn==null?void 0:jn.type)==null?void 0:Gn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?We.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ea}" alt="${ra||""}" /></p>`):We.replaceSelection(`<img width="100%" src="${ea}" alt="${ra||""}" />`):((Xn=jn==null?void 0:jn.type)==null?void 0:Xn.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="${ea}"></video>`):((Tn=jn==null?void 0:jn.type)==null?void 0:Tn.indexOf("pdf"))>-1?We.replaceSelection(`<a href="${ea}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):cn.includes(Ea)?We.replaceSelection(`<a href="${ea}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):We.replaceSelection(`[${jn.name}](${ea})`),We.focus();case It:const{row:xa,col:ba,align:Ba}=At;let va=`
|
|
`;for(let ia=0;ia<xa;ia++){let wa=[],Fa=[];for(let Ca=0;Ca<ba;Ca++)ia===1&&Fa.push(Xt[Ba]),wa.push(" ");ia===1&&(va+=`| ${Fa.join(" | ")} |
|
|
`),va+=`| ${wa.join(ba===1?"":" | ")} |
|
|
`}return We.replaceSelection(va+`
|
|
`),We.focus();default:throw new Error}},[We,mt]),Sa=(0,ne.useMemo)(()=>{switch(mt){case Je:return ne.createElement(at,{callback:An,onCancel:qn});case Bt:return ne.createElement(xt.Z,{callback:An,onCancel:qn});case St:return ne.createElement(he.Z,{callback:An,onCancel:qn});case ht:return ne.createElement(Ve,{callback:An,onCancel:qn});case It:return ne.createElement(jt,{callback:An,onCancel:qn});case"maths-latex":return ne.createElement(_t,{showSaveButton:!0,callback:An});case"inline-latex":return ne.createElement(Qt.Z,{showSaveButton:!0,callback:An});default:return null}},[mt]);function qn(){tn("")}(0,ne.useEffect)(()=>{if(oa.current){let At=function(Xn){fn=!0,Gn=Xn.pageY},vt=function(){fn=!1},Ct=function(Xn){if(fn){let Tn=Xn.pageY-Gn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let Dn=dt+Tn+"px";Bn(Dn)}},Nt=oa.current,fn=!1,Gn=0;return Nt.addEventListener("mousedown",At),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",vt),()=>{Nt.removeEventListener("mousedown",At),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",vt)}}},[We,oa]),(0,ne.useEffect)(()=>{Bn(dt)},[dt]);const On=Fn(Pe),Nn=Fn(xn),aa={width:On,height:Nn},fa=(0,ne.useMemo)(()=>{if(nn){let At=new Date(nn),vt=At.getHours(),Ct=At.getMinutes(),Nt=At.getSeconds();return vt=vt<10?"0"+vt:vt,Ct=Ct<10?"0"+Ct:Ct,Nt=Nt<10?"0"+Nt:Nt,`${vt}:${Ct}:${Nt}`}return 0},[nn]),Pa=At=>{const vt=[];if(Se){let Ct=-1;At=At.replace(/(@▁▁@|@▁@)/g,function(Nt,fn,Gn){vt.push({multiLine:Nt!==pn})})}return vt};function ya(){window.sessionStorage.removeItem(Cn),ta(!1),En(0)}function La(){ta(!1),En(0),We.setValue(window.sessionStorage.getItem(Cn))}(0,ne.useEffect)(()=>{Kn[mt]&&mt!==Tt&&mt!==ht&&setTimeout(()=>{const At=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth/2-At.offsetWidth/2,Ct=window.innerHeight/2-At.offsetHeight/2;la(vt),ma(Ct)},0)},[mt]);const ha=At=>{At.preventDefault();const vt=At.clientX-$n,Ct=At.clientY-sa;document.body.onmousemove=Nt=>{let fn=Nt.clientX-vt,Gn=Nt.clientY-Ct;const Xn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Xn.offsetWidth,Dn=window.innerHeight-Xn.offsetHeight;fn=Math.max(0,Math.min(fn,Tn)),Gn=Math.max(0,Math.min(Gn,Dn)),pa(Nt.clientX,Nt.clientY,vt,Ct)&&(la(fn),ma(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(At,vt,Ct,Nt)=>{const fn=document.body.clientHeight,Gn=document.body.clientWidth;return At<20&&Ct>At||At>Gn-20&&Ct<At||vt<20&&Nt>vt||vt>fn-20&&Nt<vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:_n},ne.createElement("div",{className:`markdown-editor-container ${ot} ${wn?"on-preview":""} ${Et?"mini":""} ${Ft?"full-screen":""}`,style:aa},ne.createElement(ge,{insertTemp:Jt,watch:wn,fullScreen:Ft,showNullButton:gn,showNullProgramButton:Se,onActionCallback:na,hidetoolBar:De,extraUse:mn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Jn,placeholder:Ut})),wn?ne.createElement("div",{ref:Yt,className:"preview-container"},sn==="stex"&&ne.createElement(ke,{value:In}),sn!=="stex"&&ne.createElement(_e.Z,{disabledFill:$t,showProgramFill:Se,value:In})):null))),Un?ne.createElement("a",{ref:oa,className:"editor-resize"}):null,mt===Tt&&ne.createElement(qe,{callback:An,onCancel:qn}),mt===ht&&ne.createElement(Ve,{callback:An,onCancel:qn}),ne.createElement(me.Z,null,Kn[mt]&&mt!==Tt&&mt!==ht?ne.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:sa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Kn[mt]),open:!0,onCancel:qn,footer:null,destroyOnClose:!0,width:mt===ht?"1200px":null,height:mt===ht?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ie},I:function(){return me}});var ne=oe(22150),ce=oe(2453),Xe=oe(69677),ze=oe(93421),ue=oe(31795),Ce=oe(78045),le=oe(71577),He=oe(15476),xe=oe(67294),Te=oe(52262),_e=oe(67294),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ne,Ge)=>Ne in se?ke(se,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):se[Ne]=Ge,x=(se,Ne)=>{for(var Ge in Ne||(Ne={}))y.call(Ne,Ge)&&b(se,Ge,Ne[Ge]);if(a)for(var Ge of a(Ne))E.call(Ne,Ge)&&b(se,Ge,Ne[Ge]);return se},z=(se,Ne)=>je(se,ae(Ne));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Ne})=>{const[Ge]=ee();let pt=(0,xe.useRef)();function zt(Ie){pt.current.width=Ge.getFieldValue("width"),pt.current.align=Ge.getFieldValue("align"),se(Ie,pt.current)}function kt(Ie,Ae){if(Ie.status===-1){ce.ZP.error(Ie.message);return}Ge.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:Ae.type})}function Le(Ie){let Ae=Ie.target.files[0];pt.current=Ae,me(Ae,kt)}return _e.createElement(ne.default,z(x({form:Ge},re),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),_e.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(Xe.default,{style:te})),_e.createElement(ge,{onFileChange:Le}))),_e.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},_e.createElement(Xe.default,{style:{width:264}})),_e.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},_e.createElement(ze.Z,null,_e.createElement(ne.default.Item,{name:"width",style:{margin:0}},_e.createElement(ue.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},_e.createElement(Ce.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),_e.createElement("aside",null,_e.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),_e.createElement(le.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:se}))}function me(se,Ne){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",se),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(zt){Ne(JSON.parse(zt.target.responseText),se)},!1),pt.addEventListener("error",function(zt){console.error(zt)},!1),pt.open("POST",`${He.KI}/api/attachments.json`),pt.send(Ge)}},76621:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return Xe}});var ne=oe(67294),ce=oe(73935);class Xe extends ne.Component{constructor(ue){super(ue);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ce.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ce}});var ne=oe(67294);function ce(Xe,ze){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=Xe}),(0,ne.useEffect)(()=>{function Ce(){ue.current()}if(ze!==null){let le=setInterval(Ce,ze);return()=>clearInterval(le)}},[ze])}},61712:function(Me,it,oe){"use strict";oe.r(it),oe.d(it,{default:function(){return ie}});var ne=oe(67294),ce=oe(35973),Xe=oe(22150),ze=oe(85673),ue=oe(69677),Ce=oe(71577),le=oe(35567),He=oe(86763),xe={bg:"bg___ZTexa",flexRow:"flexRow___VO4ro",flexJustifyCenter:"flexJustifyCenter___OXFkk",flexAlignEnd:"flexAlignEnd___d6zIM",flexAlignCenter:"flexAlignCenter___YzqD8",flexColumn:"flexColumn___RKoTE",formWrap:"formWrap___BxAFG",titleWrap:"titleWrap___tvKuf",fieldWrap:"fieldWrap___eigdN",mdWrap:"mdWrap___cmz87",backgroundFa:"backgroundFa___b57J2",button:"button___VVH5U"},Te=oe(65866),_e=oe(10191),ke=oe(33170),je=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ge,me,se)=>me in ge?je(ge,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[me]=se,z=(ge,me)=>{for(var se in me||(me={}))E.call(me,se)&&x(ge,se,me[se]);if(y)for(var se of y(me))b.call(me,se)&&x(ge,se,me[se]);return ge},ee=(ge,me)=>ae(ge,a(me)),te=(ge,me,se)=>new Promise((Ne,Ge)=>{var pt=Le=>{try{kt(se.next(Le))}catch(Ie){Ge(Ie)}},zt=Le=>{try{kt(se.throw(Le))}catch(Ie){Ge(Ie)}},kt=Le=>Le.done?Ne(Le.value):Promise.resolve(Le.value).then(pt,zt);kt((se=se.apply(ge,me)).next())});const re=({shixunHomeworks:ge,newCourse:me,globalSetting:se,user:Ne,loading:Ge,dispatch:pt})=>{var zt,kt,Le;const Ie=(0,ce.useParams)(),[Ae]=Xe.default.useForm(),[nt,gt]=(0,ne.useState)({}),[Ze,Ye]=(0,ne.useState)(!1);let[at,xt]=(0,ne.useState)({});const he=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Be}=ge;(0,ne.useEffect)(()=>{et()},[Ie.categoryId]);const et=()=>te(void 0,null,function*(){const qe=yield pt({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},Ie),{type:1})});if(qe){const de={name:qe.name,description:qe.description,reference_answer:qe.reference_answer,attachment_ids:(0,Te.z)(qe.attachments),reference_attachment_ids:(0,Te.z)(qe.ref_attachments)};Ae.setFieldsValue(z({},de)),gt(z({},de)),Ye(!0)}});function yt(qe){return te(this,null,function*(){if(!(at!=null&&at.ec_point_ids))return;let de=yield(0,ke.ZP)(`/api/ec_courses/${at==null?void 0:at.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:qe},at)})})}const Ke=qe=>te(void 0,null,function*(){var de,tt;const ft=z({},nt);ft.attachment_ids&&(ft.attachment_ids=(de=ft==null?void 0:ft.attachment_ids)==null?void 0:de.map(ut=>{var Ee;return(Ee=ut.response)==null?void 0:Ee.id})),ft.reference_attachment_ids&&(ft.reference_attachment_ids=(tt=ft==null?void 0:ft.reference_attachment_ids)==null?void 0:tt.map(ut=>{var Ee;return(Ee=ut.response)==null?void 0:Ee.id}));const Ht=yield(0,He.Ar)(ee(z(z({},Ie),ft),{base_on_project:!0,type:1}));yt(Ie.categoryId),Ht&&ce.history.push(`/classrooms/${Ie.coursesId}/common_homework/${Ie.categoryId}/detail`)});return ne.createElement("section",{className:xe.bg},Be.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Be.category&&ne.createElement(ze.Z,{separator:">"},ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Ie.coursesId}/common_homework`},Be.course_name)),ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Ie.coursesId}/common_homework`},Be.category.category_name)),ne.createElement(ze.Z.Item,null,"\u7F16\u8F91")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(Xe.default,{form:Ae,className:xe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{gt(z({},Ae.getFieldsValue()))},onFinish:Ke},ne.createElement("div",{className:xe.fieldWrap},ne.createElement(Xe.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ue.default,{maxLength:60,suffix:`${((zt=nt.name)==null?void 0:zt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:xe.mdWrap},ne.createElement(Xe.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:Be.description})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"attachment_ids"},Ze&&ne.createElement(Te.Z,null)))),ne.createElement("div",{className:xe.mdWrap},ne.createElement(Xe.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(le.Z,{defaultValue:Be.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"reference_attachment_ids"},Ze&&ne.createElement(Te.Z,null))))),ne.createElement("div",{className:xe.mdWrap,style:{display:(kt=se==null?void 0:se.setting)!=null&&kt.hide_ec?"none":(Le=Ne.userInfo.course)!=null&&Le.is_openengineering?"":"none"}},ne.createElement(_e.Z,{setitem:qe=>xt(z({},qe)),homework_common_id:Ie.categoryId})),ne.createElement("div",{className:xe.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Xe.default.Item,null,ne.createElement(Ce.ZP,{size:"middle",type:"primary",className:`${xe.button} mr20`,htmlType:"submit",onClick:()=>{Ae.submit()},loading:Ge["newCourse/editCourse"]||Ge["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Ce.ZP,{size:"middle",type:"primary",ghost:!0,className:xe.button,onClick:()=>ce.history.push(`/classrooms/${Ie.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ie=(0,ce.connect)(({shixunHomeworks:ge,newCourse:me,loading:se,user:Ne,globalSetting:Ge})=>({shixunHomeworks:ge,newCourse:me,globalSetting:Ge,user:Ne,loading:se.effects}))(re)},4440:function(Me,it,oe){"use strict";oe.d(it,{$J:function(){return Xe},JZ:function(){return ue},bN:function(){return le},jP:function(){return Ce},rO:function(){return ze}});var ne=oe(33170),ce=(He,xe,Te)=>new Promise((_e,ke)=>{var je=y=>{try{a(Te.next(y))}catch(E){ke(E)}},ae=y=>{try{a(Te.throw(y))}catch(E){ke(E)}},a=y=>y.done?_e(y.value):Promise.resolve(y.value).then(je,ae);a((Te=Te.apply(He,xe)).next())});function Xe(He){return(0,ne.U2)(`libraries/${He}.json`)}function ze(He){return(0,ne.U2)("library_tags.json",He)}function ue(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function Ce(He){return(0,ne.v_)("libraries.json",He)}function le(He,xe){return(0,ne.gz)(`libraries/${He}.json`,xe)}},57838:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,Xe]=ne.useReducer(ze=>ze+1,0);return Xe}},85673:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return kt}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(37419),ze=oe(1337),ue=oe(67294),Ce=oe(96159),le=oe(53124),He=oe(42922),xe=oe(35874);const Te=Le=>{let{children:Ie}=Le;const{getPrefixCls:Ae}=ue.useContext(le.E_),nt=Ae("breadcrumb");return ue.createElement("li",{className:`${nt}-separator`,"aria-hidden":"true"},Ie===""?Ie:Ie||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var _e=Te,ke=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};function je(Le,Ie){if(Le.title===void 0||Le.title===null)return null;const Ae=Object.keys(Ie).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Ae})`,"g"),(nt,gt)=>Ie[gt]||nt)}function ae(Le,Ie,Ae,nt){if(Ae==null)return null;const{className:gt,onClick:Ze}=Ie,Ye=ke(Ie,["className","onClick"]),at=Object.assign(Object.assign({},(0,ze.Z)(Ye,{data:!0,aria:!0})),{onClick:Ze});return nt!==void 0?ue.createElement("a",Object.assign({},at,{className:ce()(`${Le}-link`,gt),href:nt}),Ae):ue.createElement("span",Object.assign({},at,{className:ce()(`${Le}-link`,gt)}),Ae)}function a(Le,Ie){return(nt,gt,Ze,Ye,at)=>{if(Ie)return Ie(nt,gt,Ze,Ye);const xt=je(nt,gt);return ae(Le,nt,xt,at)}}var y=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};const E=Le=>{const{prefixCls:Ie,separator:Ae="/",children:nt,menu:gt,overlay:Ze,dropdownProps:Ye,href:at}=Le,he=(Be=>{if(gt||Ze){const et=Object.assign({},Ye);if(gt){const yt=gt||{},{items:Ke}=yt,qe=y(yt,["items"]);et.menu=Object.assign(Object.assign({},qe),{items:Ke==null?void 0:Ke.map((de,tt)=>{var{key:ft,title:Ht,label:ut,path:Ee}=de,be=y(de,["key","title","label","path"]);let ve=ut!=null?ut:Ht;return Ee&&(ve=ue.createElement("a",{href:`${at}${Ee}`},ve)),Object.assign(Object.assign({},be),{key:ft!=null?ft:tt,label:ve})})})}else Ze&&(et.overlay=Ze);return ue.createElement(xe.Z,Object.assign({placement:"bottom"},et),ue.createElement("span",{className:`${Ie}-overlay-link`},Be,ue.createElement(He.Z,null)))}return Be})(nt);return he!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,he),Ae&&ue.createElement(_e,null,Ae)):null},b=Le=>{const{prefixCls:Ie,children:Ae,href:nt}=Le,gt=y(Le,["prefixCls","children","href"]),{getPrefixCls:Ze}=ue.useContext(le.E_),Ye=Ze("breadcrumb",Ie);return ue.createElement(E,Object.assign({},gt,{prefixCls:Ye}),ae(Ye,gt,Ae,nt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=Le=>{const{componentCls:Ie,iconCls:Ae}=Le;return{[Ie]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Ae]:{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},[`${Ie}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ie}-link`]:{[`
|
|
> ${Ae} + span,
|
|
> ${Ae} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ie}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Ae}`]:{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 Ie=(0,te.TS)(Le,{});return[re(Ie)]},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,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};function me(Le){const{breadcrumbName:Ie,children:Ae}=Le,nt=ge(Le,["breadcrumbName","children"]),gt=Object.assign({title:Ie},nt);return Ae&&(gt.menu={items:Ae.map(Ze=>{var{breadcrumbName:Ye}=Ze,at=ge(Ze,["breadcrumbName"]);return Object.assign(Object.assign({},at),{title:Ye})})}),gt}function se(Le,Ie){return(0,ue.useMemo)(()=>Le||(Ie?Ie.map(me):null),[Le,Ie])}var Ne=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};const Ge=(Le,Ie)=>{if(Ie===void 0)return Ie;let Ae=(Ie||"").replace(/^\//,"");return Object.keys(Le).forEach(nt=>{Ae=Ae.replace(`:${nt}`,Le[nt])}),Ae},pt=Le=>{const{prefixCls:Ie,separator:Ae="/",style:nt,className:gt,rootClassName:Ze,routes:Ye,items:at,children:xt,itemRender:he,params:Be={}}=Le,et=Ne(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:yt,direction:Ke,breadcrumb:qe}=ue.useContext(le.E_);let de;const tt=yt("breadcrumb",Ie),[ft,Ht]=ie(tt),ut=se(at,Ye),Ee=a(tt,he);if(ut&&ut.length>0){const ye=[],Fe=at||Ye;de=ut.map((Ve,ct)=>{const{path:Pt,key:Lt,type:Ot,menu:jt,overlay:wt,onClick:bt,className:Mt,separator:Vt,dropdownProps:_t}=Ve,Qt=Ge(Be,Pt);Qt!==void 0&&ye.push(Qt);const pe=Lt!=null?Lt:ct;if(Ot==="separator")return ue.createElement(_e,{key:pe},Vt);const Oe={},Je=ct===ut.length-1;jt?Oe.menu=jt:wt&&(Oe.overlay=wt);let{href:St}=Ve;return ye.length&&Qt!==void 0&&(St=`#/${ye.join("/")}`),ue.createElement(E,Object.assign({key:pe},Oe,(0,ze.Z)(Ve,{data:!0,aria:!0}),{className:Mt,dropdownProps:_t,href:St,separator:Je?"":Ae,onClick:bt,prefixCls:tt}),Ee(Ve,Be,Fe,ye,St))})}else if(xt){const ye=(0,Xe.Z)(xt).length;de=(0,Xe.Z)(xt).map((Fe,Ve)=>{if(!Fe)return Fe;const ct=Ve===ye-1;return(0,Ce.Tm)(Fe,{separator:ct?"":Ae,key:Ve})})}const be=ce()(tt,qe==null?void 0:qe.className,{[`${tt}-rtl`]:Ke==="rtl"},gt,Ze,Ht),ve=Object.assign(Object.assign({},qe==null?void 0:qe.style),nt);return ft(ue.createElement("nav",Object.assign({className:be,style:ve},et),ue.createElement("ol",null,de)))};pt.Item=x,pt.Separator=_e;var zt=pt,kt=zt},84567:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(95860),ze=oe(67294),ue=oe(53124),Ce=oe(98866),le=oe(65223),xe=ze.createContext(null),Te=oe(63185),_e=oe(45353),ke=oe(92429),je=function(ge,me){var se={};for(var Ne in ge)Object.prototype.hasOwnProperty.call(ge,Ne)&&me.indexOf(Ne)<0&&(se[Ne]=ge[Ne]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(ge);Ge<Ne.length;Ge++)me.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ne[Ge])&&(se[Ne[Ge]]=ge[Ne[Ge]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Ne,className:Ge,rootClassName:pt,children:zt,indeterminate:kt=!1,style:Le,onMouseEnter:Ie,onMouseLeave:Ae,skipGroup:nt=!1,disabled:gt}=ge,Ze=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ye,direction:at,checkbox:xt}=ze.useContext(ue.E_),he=ze.useContext(xe),{isFormItemInput:Be}=ze.useContext(le.aM),et=ze.useContext(Ce.Z),yt=(se=(he==null?void 0:he.disabled)||gt)!==null&&se!==void 0?se:et,Ke=ze.useRef(Ze.value);ze.useEffect(()=>{he==null||he.registerValue(Ze.value)},[]),ze.useEffect(()=>{if(!nt)return Ze.value!==Ke.current&&(he==null||he.cancelValue(Ke.current),he==null||he.registerValue(Ze.value),Ke.current=Ze.value),()=>he==null?void 0:he.cancelValue(Ze.value)},[Ze.value]);const qe=Ye("checkbox",Ne),[de,tt]=(0,Te.ZP)(qe),ft=Object.assign({},Ze);he&&!nt&&(ft.onChange=function(){Ze.onChange&&Ze.onChange.apply(Ze,arguments),he.toggleOption&&he.toggleOption({label:zt,value:Ze.value})},ft.name=he.name,ft.checked=he.value.includes(Ze.value));const Ht=ce()(`${qe}-wrapper`,{[`${qe}-rtl`]:at==="rtl",[`${qe}-wrapper-checked`]:ft.checked,[`${qe}-wrapper-disabled`]:yt,[`${qe}-wrapper-in-form-item`]:Be},xt==null?void 0:xt.className,Ge,pt,tt),ut=ce()({[`${qe}-indeterminate`]:kt},ke.A,tt),Ee=kt?"mixed":void 0;return de(ze.createElement(_e.Z,{component:"Checkbox",disabled:yt},ze.createElement("label",{className:Ht,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Le),onMouseEnter:Ie,onMouseLeave:Ae},ze.createElement(Xe.Z,Object.assign({"aria-checked":Ee},ft,{prefixCls:qe,className:ut,disabled:yt,ref:me})),zt!==void 0&&ze.createElement("span",null,zt))))};var y=ze.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,me){var se={};for(var Ne in ge)Object.prototype.hasOwnProperty.call(ge,Ne)&&me.indexOf(Ne)<0&&(se[Ne]=ge[Ne]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(ge);Ge<Ne.length;Ge++)me.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ne[Ge])&&(se[Ne[Ge]]=ge[Ne[Ge]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Ne,options:Ge=[],prefixCls:pt,className:zt,rootClassName:kt,style:Le,onChange:Ie}=ge,Ae=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:nt,direction:gt}=ze.useContext(ue.E_),[Ze,Ye]=ze.useState(Ae.value||se||[]),[at,xt]=ze.useState([]);ze.useEffect(()=>{"value"in Ae&&Ye(Ae.value||[])},[Ae.value]);const he=ze.useMemo(()=>Ge.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Ge]),Be=be=>{xt(ve=>ve.filter(ye=>ye!==be))},et=be=>{xt(ve=>[].concat((0,E.Z)(ve),[be]))},yt=be=>{const ve=Ze.indexOf(be.value),ye=(0,E.Z)(Ze);ve===-1?ye.push(be.value):ye.splice(ve,1),"value"in Ae||Ye(ye),Ie==null||Ie(ye.filter(Fe=>at.includes(Fe)).sort((Fe,Ve)=>{const ct=he.findIndex(Lt=>Lt.value===Fe),Pt=he.findIndex(Lt=>Lt.value===Ve);return ct-Pt}))},Ke=nt("checkbox",pt),qe=`${Ke}-group`,[de,tt]=(0,Te.ZP)(Ke),ft=(0,b.Z)(Ae,["value","disabled"]),Ht=Ge.length?he.map(be=>ze.createElement(y,{prefixCls:Ke,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Ae.disabled,value:be.value,checked:Ze.includes(be.value),onChange:be.onChange,className:`${qe}-item`,style:be.style,title:be.title},be.label)):Ne,ut={toggleOption:yt,value:Ze,disabled:Ae.disabled,name:Ae.name,registerValue:et,cancelValue:Be},Ee=ce()(qe,{[`${qe}-rtl`]:gt==="rtl"},zt,kt,tt);return de(ze.createElement("div",Object.assign({className:Ee,style:Le},ft,{ref:me}),ze.createElement(xe.Provider,{value:ut},Ht)))},ee=ze.forwardRef(z);var te=ze.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Me,it,oe){"use strict";oe.d(it,{C2:function(){return ue}});var ne=oe(14747),ce=oe(45503),Xe=oe(67968);const ze=Ce=>{const{checkboxCls:le}=Ce,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ce.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)(Ce))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ce.checkboxSize,height:Ce.checkboxSize,direction:"ltr",backgroundColor:Ce.colorBgContainer,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ce.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ce.checkboxSize/14*5,height:Ce.checkboxSize/14*8,border:`${Ce.lineWidthBold}px solid ${Ce.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ce.motionDurationFast} ${Ce.motionEaseInBack}, opacity ${Ce.motionDurationFast}`}},"& + span":{paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS}})},{[`
|
|
${He}:not(${He}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:Ce.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Ce.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Ce.colorPrimary,borderColor:Ce.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseOutBack} ${Ce.motionDurationFast}`}}},[`
|
|
${He}-checked:not(${He}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Ce.colorBgContainer,borderColor:Ce.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ce.fontSizeLG/2,height:Ce.fontSizeLG/2,backgroundColor:Ce.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,"&:after":{borderColor:Ce.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ce.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Ce.colorTextDisabled}}}]};function ue(Ce,le){const He=(0,ce.TS)(le,{checkboxCls:`.${Ce}`,checkboxSize:le.controlInteractiveSize});return[ze(He)]}it.ZP=(0,Xe.Z)("Checkbox",(Ce,le)=>{let{prefixCls:He}=le;return[ue(He,Ce)]})},35874:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ve}});var ne=oe(67294),ce=oe(91034),Xe=oe(94184),ze=oe.n(Xe),ue=oe(87462),Ce=oe(4942),le=oe(97685),He=oe(45987),xe=oe(62709),Te=oe(71002),_e=oe(12060);function ke(ye,Fe,Ve){var ct=React.useRef({});return(!("value"in ct.current)||Ve(ct.current.condition,Fe))&&(ct.current.value=ye(),ct.current.condition=Fe),ct.current.value}function je(ye,Fe){typeof ye=="function"?ye(Fe):(0,Te.Z)(ye)==="object"&&ye&&"current"in ye&&(ye.current=Fe)}function ae(){for(var ye=arguments.length,Fe=new Array(ye),Ve=0;Ve<ye;Ve++)Fe[Ve]=arguments[Ve];var ct=Fe.filter(function(Pt){return Pt});return ct.length<=1?ct[0]:function(Pt){Fe.forEach(function(Lt){je(Lt,Pt)})}}function a(){for(var ye=arguments.length,Fe=new Array(ye),Ve=0;Ve<ye;Ve++)Fe[Ve]=arguments[Ve];return useMemo(function(){return ae.apply(void 0,Fe)},Fe,function(ct,Pt){return ct.length===Pt.length&&ct.every(function(Lt,Ot){return Lt===Pt[Ot]})})}function y(ye){var Fe,Ve,ct=(0,_e.isMemo)(ye)?ye.type.type:ye.type;return!(typeof ct=="function"&&!((Fe=ct.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof ye=="function"&&!((Ve=ye.prototype)!==null&&Ve!==void 0&&Ve.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var Ve=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||Ve>=E.F1&&Ve<=E.F12)return!1;switch(Ve){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=E.ZERO&&Fe<=E.NINE||Fe>=E.NUM_ZERO&&Fe<=E.NUM_MULTIPLY||Fe>=E.A&&Fe<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Fe){return+setTimeout(Fe,16)},z=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Fe){return window.requestAnimationFrame(Fe)},z=function(Fe){return window.cancelAnimationFrame(Fe)});var ee=0,te=new Map;function re(ye){te.delete(ye)}var ie=function(Fe){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var ct=ee;function Pt(Lt){if(Lt===0)re(ct),Fe();else{var Ot=x(function(){Pt(Lt-1)});te.set(ct,Ot)}}return Pt(Ve),ct};ie.cancel=function(ye){var Fe=te.get(ye);return re(Fe),z(Fe)};var ge=ie,me=b.ESC,se=b.TAB;function Ne(ye){var Fe=ye.visible,Ve=ye.triggerRef,ct=ye.onVisibleChange,Pt=ye.autoFocus,Lt=ye.overlayRef,Ot=ne.useRef(!1),jt=function(){if(Fe){var Vt,_t;(Vt=Ve.current)===null||Vt===void 0||(_t=Vt.focus)===null||_t===void 0||_t.call(Vt),ct==null||ct(!1)}},wt=function(){var Vt;return(Vt=Lt.current)!==null&&Vt!==void 0&&Vt.focus?(Lt.current.focus(),Ot.current=!0,!0):!1},bt=function(Vt){switch(Vt.keyCode){case me:jt();break;case se:{var _t=!1;Ot.current||(_t=wt()),_t?Vt.preventDefault():jt();break}}};ne.useEffect(function(){return Fe?(window.addEventListener("keydown",bt),Pt&&ge(wt,3),function(){window.removeEventListener("keydown",bt),Ot.current=!1}):function(){Ot.current=!1}},[Fe])}var Ge=(0,ne.forwardRef)(function(ye,Fe){var Ve=ye.overlay,ct=ye.arrow,Pt=ye.prefixCls,Lt=(0,ne.useMemo)(function(){var jt;return typeof Ve=="function"?jt=Ve():jt=Ve,jt},[Ve]),Ot=ae(Fe,Lt==null?void 0:Lt.ref);return ne.createElement(ne.Fragment,null,ct&&ne.createElement("div",{className:"".concat(Pt,"-arrow")}),ne.cloneElement(Lt,{ref:y(Lt)?Ot:void 0}))}),pt=Ge,zt={adjustX:1,adjustY:1},kt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:zt,offset:[0,-4],targetOffset:kt},top:{points:["bc","tc"],overflow:zt,offset:[0,-4],targetOffset:kt},topRight:{points:["br","tr"],overflow:zt,offset:[0,-4],targetOffset:kt},bottomLeft:{points:["tl","bl"],overflow:zt,offset:[0,4],targetOffset:kt},bottom:{points:["tc","bc"],overflow:zt,offset:[0,4],targetOffset:kt},bottomRight:{points:["tr","br"],overflow:zt,offset:[0,4],targetOffset:kt}},Ie=Le,Ae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nt(ye,Fe){var Ve,ct=ye.arrow,Pt=ct===void 0?!1:ct,Lt=ye.prefixCls,Ot=Lt===void 0?"rc-dropdown":Lt,jt=ye.transitionName,wt=ye.animation,bt=ye.align,Mt=ye.placement,Vt=Mt===void 0?"bottomLeft":Mt,_t=ye.placements,Qt=_t===void 0?Ie:_t,pe=ye.getPopupContainer,Oe=ye.showAction,Je=ye.hideAction,St=ye.overlayClassName,ht=ye.overlayStyle,Tt=ye.visible,Dt=ye.trigger,Bt=Dt===void 0?["hover"]:Dt,It=ye.autoFocus,Kt=ye.overlay,Xt=ye.children,rn=ye.onVisibleChange,on=(0,He.Z)(ye,Ae),hn=ne.useState(),vn=(0,le.Z)(hn,2),an=vn[0],qt=vn[1],Sn="visible"in ye?Tt:an,pn=ne.useRef(null),yn=ne.useRef(null),cn=ne.useRef(null);ne.useImperativeHandle(Fe,function(){return pn.current});var Fn=function(dt){qt(dt),rn==null||rn(dt)};Ne({visible:Sn,triggerRef:cn,onVisibleChange:Fn,autoFocus:It,overlayRef:yn});var kn=function(dt){var Et=ye.onOverlayClick;qt(!1),Et&&Et(dt)},bn=function(){return ne.createElement(pt,{ref:yn,overlay:Kt,prefixCls:Ot,arrow:Pt})},Mn=function(){return typeof Kt=="function"?bn:bn()},Kn=function(){var dt=ye.minOverlayWidthMatchTrigger,Et=ye.alignPoint;return"minOverlayWidthMatchTrigger"in ye?dt:!Et},Zn=function(){var dt=ye.openClassName;return dt!==void 0?dt:"".concat(Ot,"-open")},fe=ne.cloneElement(Xt,{className:ze()((Ve=Xt.props)===null||Ve===void 0?void 0:Ve.className,Sn&&Zn()),ref:y(Xt)?ae(cn,Xt.ref):void 0}),we=Je;return!we&&Bt.indexOf("contextMenu")!==-1&&(we=["click"]),ne.createElement(xe.Z,(0,ue.Z)({builtinPlacements:Qt},on,{prefixCls:Ot,ref:pn,popupClassName:ze()(St,(0,Ce.Z)({},"".concat(Ot,"-show-arrow"),Pt)),popupStyle:ht,action:Bt,showAction:Oe,hideAction:we,popupPlacement:Vt,popupAlign:bt,popupTransitionName:jt,popupAnimation:wt,popupVisible:Sn,stretch:Kn()?"minWidth":"",popup:Mn(),onPopupVisibleChange:Fn,onPopupClick:kn,getPopupContainer:pe}),fe)}var gt=ne.forwardRef(nt),Ze=gt,Ye=oe(60276),at=oe(5663),xt=oe(10366),he=oe(80636),Be=oe(8745),et=oe(96159),yt=oe(53124),Ke=oe(68508),qe=oe(76529),de=oe(46605),tt=oe(66748);const ft=null,Ht=ye=>{const{menu:Fe,arrow:Ve,prefixCls:ct,children:Pt,trigger:Lt,disabled:Ot,dropdownRender:jt,getPopupContainer:wt,overlayClassName:bt,rootClassName:Mt,open:Vt,onOpenChange:_t,visible:Qt,onVisibleChange:pe,mouseEnterDelay:Oe=.15,mouseLeaveDelay:Je=.1,autoAdjustOverflow:St=!0,placement:ht="",overlay:Tt,transitionName:Dt}=ye,{getPopupContainer:Bt,getPrefixCls:It,direction:Kt}=ne.useContext(yt.E_),Xt=ne.useMemo(()=>{const fe=It();return Dt!==void 0?Dt:ht.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[It,ht,Dt]),rn=ne.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Kt==="rtl"?"bottomRight":"bottomLeft",[ht,Kt]),on=It("dropdown",ct),[hn,vn]=(0,tt.Z)(on),[,an]=(0,de.Z)(),qt=ne.Children.only(Pt),Sn=(0,et.Tm)(qt,{className:ze()(`${on}-trigger`,{[`${on}-rtl`]:Kt==="rtl"},qt.props.className),disabled:Ot}),pn=Ot?[]:Lt;let yn;pn&&pn.includes("contextMenu")&&(yn=!0);const[cn,Fn]=(0,at.Z)(!1,{value:Vt!=null?Vt:Qt}),kn=(0,Ye.useEvent)(fe=>{_t==null||_t(fe),pe==null||pe(fe),Fn(fe)}),bn=ze()(bt,Mt,vn,{[`${on}-rtl`]:Kt==="rtl"}),Mn=(0,he.Z)({arrowPointAtCenter:typeof Ve=="object"&&Ve.pointAtCenter,autoAdjustOverflow:St,offset:an.marginXXS,arrowWidth:Ve?an.sizePopupArrow:0,borderRadius:an.borderRadius}),Kn=ne.useCallback(()=>{Fn(!1)},[]),Zn=()=>{let fe;return Fe!=null&&Fe.items?fe=ne.createElement(Ke.default,Object.assign({},Fe)):typeof Tt=="function"?fe=Tt():fe=Tt,jt&&(fe=jt(fe)),fe=ne.Children.only(typeof fe=="string"?ne.createElement("span",null,fe):fe),ne.createElement(qe.J,{prefixCls:`${on}-menu`,expandIcon:ne.createElement("span",{className:`${on}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:we=>{let{mode:Pe}=we}},fe)};return hn(ne.createElement(Ze,Object.assign({alignPoint:yn},(0,xt.Z)(ye,["rootClassName"]),{mouseEnterDelay:Oe,mouseLeaveDelay:Je,visible:cn,builtinPlacements:Mn,arrow:!!Ve,overlayClassName:bn,prefixCls:on,getPopupContainer:wt||Bt,transitionName:Xt,trigger:pn,overlay:Zn,placement:rn,onVisibleChange:kn}),Sn))};function ut(ye){return Object.assign(Object.assign({},ye),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ee=(0,Be.Z)(Ht,"dropdown",ye=>ye,ut),be=ye=>ne.createElement(Ee,Object.assign({},ye),ne.createElement("span",null));Ht._InternalPanelDoNotUseOrYouWillBeFired=be;var ve=Ht},66748:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return _e}});var ne=oe(14747),ce=oe(67771),Xe=oe(33297),ze=oe(50438),ue=oe(97414),Ce=oe(67968),le=oe(45503),xe=ke=>{const{componentCls:je,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=ke=>{const{componentCls:je,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=ke;return[{[je]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${je}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${je}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topRight`]:{animationName:ce.ly}})},(0,ue.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${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}},[`${je}, ${je}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.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:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${je}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,ce.oN)(ke,"slide-up"),(0,ce.oN)(ke,"slide-down"),(0,Xe.Fm)(ke,"move-up"),(0,Xe.Fm)(ke,"move-down"),(0,ze._y)(ke,"zoom-big")]]};var _e=(0,Ce.Z)("Dropdown",(ke,je)=>{let{rootPrefixCls:ae}=je;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ue.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Te(ge),xe(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(Me,it,oe){"use strict";oe.d(it,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),Xe={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"},ze=Xe,ue=oe(74643),Ce=function(ie,ge){return ce.createElement(ue.Z,(0,ne.Z)({},ie,{ref:ge,icon:ze}))},le=ce.forwardRef(Ce),He=oe(22751),xe=oe(91034),Te=oe(94184),_e=oe.n(Te),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ge[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(re);se<me.length;se++)ie.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(re,me[se])&&(ge[me[se]]=re[me[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:me,trigger:se,children:Ne,defaultCollapsed:Ge=!1,theme:pt="dark",style:zt={},collapsible:kt=!1,reverseArrow:Le=!1,width:Ie=200,collapsedWidth:Ae=80,zeroWidthTriggerStyle:nt,breakpoint:gt,onCollapse:Ze,onBreakpoint:Ye}=re,at=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xt}=(0,ce.useContext)(y.Gs),[he,Be]=(0,ce.useState)("collapsed"in re?re.collapsed:Ge),[et,yt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Be(re.collapsed)},[re.collapsed]);const Ke=(ut,Ee)=>{"collapsed"in re||Be(ut),Ze==null||Ze(ut,Ee)},qe=(0,ce.useRef)();qe.current=ut=>{yt(ut.matches),Ye==null||Ye(ut.matches),he!==ut.matches&&Ke(ut.matches,"responsive")},(0,ce.useEffect)(()=>{function ut(be){return qe.current(be)}let Ee;if(typeof window!="undefined"){const{matchMedia:be}=window;if(be&>&> in b){Ee=be(`(max-width: ${b[gt]})`);try{Ee.addEventListener("change",ut)}catch(ve){Ee.addListener(ut)}ut(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",ut)}catch(be){Ee==null||Ee.removeListener(ut)}}},[gt]),(0,ce.useEffect)(()=>{const ut=z("ant-sider-");return xt.addSider(ut),()=>xt.removeSider(ut)},[]);const de=()=>{Ke(!he,"clickTrigger")},{getPrefixCls:tt}=(0,ce.useContext)(a.E_),ft=()=>{const ut=tt("layout-sider",ge),Ee=(0,ke.Z)(at,["collapsed"]),be=he?Ae:Ie,ve=ae(be)?`${be}px`:String(be),ye=parseFloat(String(Ae||0))===0?ce.createElement("span",{onClick:de,className:_e()(`${ut}-zero-width-trigger`,`${ut}-zero-width-trigger-${Le?"right":"left"}`),style:nt},se||ce.createElement(le,null)):null,ct={expanded:Le?ce.createElement(xe.Z,null):ce.createElement(He.Z,null),collapsed:Le?ce.createElement(He.Z,null):ce.createElement(xe.Z,null)}[he?"collapsed":"expanded"],Pt=se!==null?ye||ce.createElement("div",{className:`${ut}-trigger`,onClick:de,style:{width:ve}},se||ct):null,Lt=Object.assign(Object.assign({},zt),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),Ot=_e()(ut,`${ut}-${pt}`,{[`${ut}-collapsed`]:!!he,[`${ut}-has-trigger`]:kt&&se!==null&&!ye,[`${ut}-below`]:!!et,[`${ut}-zero-width`]:parseFloat(ve)===0},me);return ce.createElement("aside",Object.assign({className:Ot},Ee,{style:Lt,ref:ie}),ce.createElement("div",{className:`${ut}-children`},Ne),kt||et&&ye?Pt:null)},Ht=ce.useMemo(()=>({siderCollapsed:he}),[he]);return ce.createElement(x.Provider,{value:Ht},ft())})},84321:function(Me,it,oe){"use strict";oe.d(it,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),Xe=oe.n(ce),ze=oe(10366),ue=oe(67294),Ce=oe(53124),le=oe(67968),xe=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 Te=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Ne,headerHeight:Ge,headerPadding:pt,headerColor:zt,footerPadding:kt,triggerHeight:Le,zeroTriggerHeight:Ie,zeroTriggerWidth:Ae,motionDurationMid:nt,motionDurationSlow:gt,fontSize:Ze,borderRadius:Ye,bodyBg:at,headerBg:xt,siderBg:he}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:at,"&, *":{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:he,transition:`all ${nt}, 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:Ne,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-Ae,zIndex:1,width:Ae,height:Ie,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:Ye,borderEndEndRadius:Ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ae,borderStartStartRadius:Ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ye}}}}},xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ge,padding:pt,color:zt,lineHeight:`${Ge}px`,background:xt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:kt,color:ge,fontSize:Ze,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var _e=(0,le.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Ne,colorTextLightSolid:Ge,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+Ne*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=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 je=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ue.forwardRef((Ne,Ge)=>ue.createElement(me,Object.assign({ref:Ge,suffixCls:re,tagName:ie},Ne)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Ne=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=ue.useContext(Ce.E_),pt=Ge("layout",ie),[zt,kt]=_e(pt),Le=ge?`${pt}-${ge}`:pt;return zt(ue.createElement(se,Object.assign({className:Xe()(ie||Le,me,kt),ref:re},Ne)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Ce.E_),[ge,me]=ue.useState([]),{prefixCls:se,className:Ne,rootClassName:Ge,children:pt,hasSider:zt,tagName:kt,style:Le}=te,Ie=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ae=(0,ze.Z)(Ie,["suffixCls"]),{getPrefixCls:nt,layout:gt}=ue.useContext(Ce.E_),Ze=nt("layout",se),[Ye,at]=_e(Ze),xt=Xe()(Ze,{[`${Ze}-has-sider`]:typeof zt=="boolean"?zt:ge.length>0,[`${Ze}-rtl`]:ie==="rtl"},gt==null?void 0:gt.className,Ne,Ge,at),he=ue.useMemo(()=>({siderHook:{addSider:Be=>{me(et=>[].concat((0,ne.Z)(et),[Be]))},removeSider:Be=>{me(et=>et.filter(yt=>yt!==Be))}}}),[]);return Ye(ue.createElement(je.Provider,{value:he},ue.createElement(kt,Object.assign({ref:re,className:xt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Le)},Ae),pt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Me,it,oe){"use strict";oe.d(it,{J:function(){return Ce}});var ne=oe(67294),ce=oe(4173),Xe=oe(60276),ze=function(le,He){var xe={};for(var Te in le)Object.prototype.hasOwnProperty.call(le,Te)&&He.indexOf(Te)<0&&(xe[Te]=le[Te]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Te=Object.getOwnPropertySymbols(le);_e<Te.length;_e++)He.indexOf(Te[_e])<0&&Object.prototype.propertyIsEnumerable.call(le,Te[_e])&&(xe[Te[_e]]=le[Te[_e]]);return xe};const ue=ne.createContext(null),Ce=ne.forwardRef((le,He)=>{const{children:xe}=le,Te=ze(le,["children"]),_e=ne.useContext(ue),ke=ne.useMemo(()=>Object.assign(Object.assign({},_e),Te),[_e,Te.prefixCls,Te.mode,Te.selectable]);return ne.createElement(ue.Provider,{value:ke},ne.createElement(ce.BR,null,(0,Xe.supportNodeRef)(xe)?ne.cloneElement(xe,{ref:He}):xe))});it.Z=ue},68508:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return ut}});var ne=oe(78595),ce=oe(67294),Xe=oe(71322),ze=oe(94184),ue=oe.n(ze),Ce=oe(53124),le=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve},xe=Ee=>{const{prefixCls:be,className:ve,dashed:ye}=Ee,Fe=le(Ee,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=ce.useContext(Ce.E_),ct=Ve("menu",be),Pt=ue()({[`${ct}-item-divider-dashed`]:!!ye},ve);return ce.createElement(ne.iz,Object.assign({className:Pt},Fe))},Te=oe(37419),_e=oe(10366),ke=oe(83062),je=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ee=>{var be;const{className:ve,children:ye,icon:Fe,title:Ve,danger:ct}=Ee,{prefixCls:Pt,firstLevel:Lt,direction:Ot,disableMenuItemTitleTooltip:jt,inlineCollapsed:wt}=ce.useContext(a),bt=Oe=>{const Je=ce.createElement("span",{className:`${Pt}-title-content`},ye);return(!Fe||(0,je.l$)(ye)&&ye.type==="span")&&ye&&Oe&&Lt&&typeof ye=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},ye.charAt(0)):Je},{siderCollapsed:Mt}=ce.useContext(Xe.D);let Vt=Ve;typeof Ve=="undefined"?Vt=Lt?ye:"":Ve===!1&&(Vt="");const _t={title:Vt};!Mt&&!wt&&(_t.title=null,_t.open=!1);const Qt=(0,Te.Z)(ye).length;let pe=ce.createElement(ne.ck,Object.assign({},(0,_e.Z)(Ee,["title","icon","danger"]),{className:ue()({[`${Pt}-item-danger`]:ct,[`${Pt}-item-only-child`]:(Fe?Qt+1:Qt)===1},ve),title:typeof Ve=="string"?Ve:void 0}),(0,je.Tm)(Fe,{className:ue()((0,je.l$)(Fe)?(be=Fe.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),bt(wt));return jt||(pe=ce.createElement(ke.Z,Object.assign({},_t,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${Pt}-inline-collapsed-tooltip`}),pe)),pe},x=Ee=>{var be;const{popupClassName:ve,icon:ye,title:Fe,theme:Ve}=Ee,ct=ce.useContext(a),{prefixCls:Pt,inlineCollapsed:Lt,theme:Ot}=ct,jt=(0,ne.Xl)();let wt;if(!ye)wt=Lt&&!jt.length&&Fe&&typeof Fe=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Fe.charAt(0)):ce.createElement("span",{className:`${Pt}-title-content`},Fe);else{const Mt=(0,je.l$)(Fe)&&Fe.type==="span";wt=ce.createElement(ce.Fragment,null,(0,je.Tm)(ye,{className:ue()((0,je.l$)(ye)?(be=ye.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),Mt?Fe:ce.createElement("span",{className:`${Pt}-title-content`},Fe))}const bt=ce.useMemo(()=>Object.assign(Object.assign({},ct),{firstLevel:!1}),[ct]);return ce.createElement(a.Provider,{value:bt},ce.createElement(ne.Wd,Object.assign({},(0,_e.Z)(Ee,["icon"]),{title:wt,popupClassName:ue()(Pt,ve,`${Pt}-${Ve||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve};function ge(Ee){return(Ee||[]).map((be,ve)=>{if(be&&typeof be=="object"){const ye=be,{label:Fe,children:Ve,key:ct,type:Pt}=ye,Lt=ie(ye,["label","children","key","type"]),Ot=ct!=null?ct:`tmp-${ve}`;return Ve||Pt==="group"?Pt==="group"?ce.createElement(ne.BW,Object.assign({key:Ot},Lt,{title:Fe}),ge(Ve)):ce.createElement(x,Object.assign({key:Ot},Lt,{title:Fe}),ge(Ve)):Pt==="divider"?ce.createElement(xe,Object.assign({key:Ot},Lt)):ce.createElement(E,Object.assign({key:Ot},Lt),Fe)}return null}).filter(be=>be)}function me(Ee){return ce.useMemo(()=>Ee&&ge(Ee),[Ee])}var se=oe(84780),Ne=oe(14747),Ge=oe(33507),pt=oe(67771),zt=oe(50438),kt=oe(67968),Le=oe(45503),Ae=Ee=>{const{componentCls:be,motionDurationSlow:ve,horizontalLineHeight:ye,colorSplit:Fe,lineWidth:Ve,lineType:ct,itemPaddingInline:Pt}=Ee;return{[`${be}-horizontal`]:{lineHeight:ye,border:0,borderBottom:`${Ve}px ${ct} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pt},[`> ${be}-item:hover,
|
|
> ${be}-item-active,
|
|
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},gt=Ee=>{let{componentCls:be,menuArrowOffset:ve}=Ee;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
|
|
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Ze=Ee=>Object.assign({},(0,Ne.oN)(Ee));var at=(Ee,be)=>{const{componentCls:ve,itemColor:ye,itemSelectedColor:Fe,groupTitleColor:Ve,itemBg:ct,subMenuItemBg:Pt,itemSelectedBg:Lt,activeBarHeight:Ot,activeBarWidth:jt,activeBarBorderWidth:wt,motionDurationSlow:bt,motionEaseInOut:Mt,motionEaseOut:Vt,itemPaddingInline:_t,motionDurationMid:Qt,itemHoverColor:pe,lineType:Oe,colorSplit:Je,itemDisabledColor:St,dangerItemColor:ht,dangerItemHoverColor:Tt,dangerItemSelectedColor:Dt,dangerItemActiveBg:Bt,dangerItemSelectedBg:It,itemHoverBg:Kt,itemActiveBg:Xt,menuSubMenuBg:rn,horizontalItemSelectedColor:on,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:an,popupBg:qt}=Ee;return{[`${ve}-${be}, ${ve}-${be} > ${ve}`]:{color:ye,background:ct,[`&${ve}-root:focus-visible`]:Object.assign({},Ze(Ee)),[`${ve}-item-group-title`]:{color:Ve},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Fe}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${St} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:pe}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}}},[`${ve}-item-danger`]:{color:ht,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Tt}},[`&${ve}-item:active`]:{background:Bt}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Fe,[`&${ve}-item-danger`]:{color:Dt},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:Lt,[`&${ve}-item-danger`]:{backgroundColor:It}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Ze(Ee))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:rn},[`&${ve}-popup > ${ve}`]:{backgroundColor:qt},[`&${ve}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:wt,marginTop:-wt,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${bt} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:Ot,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:on}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${wt}px ${Oe} ${Je}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Pt},[`${ve}-item, ${ve}-submenu-title`]:wt&&jt?{width:`calc(100% + ${wt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qt} ${Vt}`,`opacity ${Qt} ${Vt}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Dt}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qt} ${Mt}`,`opacity ${Qt} ${Mt}`].join(",")}}}}}};const xt=Ee=>{const{componentCls:be,itemHeight:ve,itemMarginInline:ye,padding:Fe,menuArrowSize:Ve,marginXS:ct,itemMarginBlock:Pt}=Ee,Lt=Fe+Ve+ct;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ye,marginBlock:Pt,width:`calc(100% - ${ye*2}px)`},[`> ${be}-item,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${be}-item-group-list ${be}-submenu-title,
|
|
${be}-submenu-title`]:{paddingInlineEnd:Lt}}};var Be=Ee=>{const{componentCls:be,iconCls:ve,itemHeight:ye,colorTextLightSolid:Fe,dropdownWidth:Ve,controlHeightLG:ct,motionDurationMid:Pt,motionEaseOut:Lt,paddingXL:Ot,itemMarginInline:jt,fontSizeLG:wt,motionDurationSlow:bt,paddingXS:Mt,boxShadowSecondary:Vt,collapsedWidth:_t,collapsedIconSize:Qt}=Ee,pe={height:ye,lineHeight:`${ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},xt(Ee))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},xt(Ee)),{boxShadow:Vt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${ct*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bt}`,`background ${bt}`,`padding ${Pt} ${Lt}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:pe,[`& ${be}-item-group-title`]:{paddingInlineStart:Ot}},[`${be}-item`]:pe}},{[`${be}-inline-collapsed`]:{width:_t,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:wt,textAlign:"center"}}},[`> ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${wt/2}px - ${jt}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${ve}`]:{margin:0,fontSize:Qt,lineHeight:`${ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Fe}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:Mt})}}]};const et=Ee=>{const{componentCls:be,motionDurationSlow:ve,motionDurationMid:ye,motionEaseInOut:Fe,motionEaseOut:Ve,iconCls:ct,iconSize:Pt,iconMarginInlineEnd:Lt}=Ee;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Fe}`].join(","),[`${be}-item-icon, ${ct}`]:{minWidth:Pt,fontSize:Pt,transition:[`font-size ${ye} ${Ve}`,`margin ${ve} ${Fe}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${ve} ${Fe}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${be}-item-only-child`]:{[`> ${ct}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yt=Ee=>{const{componentCls:be,motionDurationSlow:ve,motionEaseInOut:ye,borderRadius:Fe,menuArrowSize:Ve,menuArrowOffset:ct}=Ee;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ee.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${ye}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ve*.6,height:Ve*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${ve} ${ye}`,`transform ${ve} ${ye}`,`top ${ve} ${ye}`,`color ${ve} ${ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ct})`},"&::after":{transform:`rotate(-45deg) translateY(${ct})`}}}}},Ke=Ee=>{const{antCls:be,componentCls:ve,fontSize:ye,motionDurationSlow:Fe,motionDurationMid:Ve,motionEaseInOut:ct,paddingXS:Pt,padding:Lt,colorSplit:Ot,lineWidth:jt,zIndexPopup:wt,borderRadiusLG:bt,subMenuItemBorderRadius:Mt,menuArrowSize:Vt,menuArrowOffset:_t,lineType:Qt,menuPanelMaskInset:pe,groupTitleLineHeight:Oe,groupTitleFontSize:Je}=Ee;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,Ne.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(Ee)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Ee.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Pt}px ${Lt}px`,fontSize:Je,lineHeight:Oe,transition:`all ${Fe}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Fe} ${ct}`,`background ${Fe} ${ct}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Fe} ${ct}`,`background ${Fe} ${ct}`,`padding ${Ve} ${ct}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${ct}`,`padding ${Fe} ${ct}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Fe}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:Qt,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(Ee)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${ye*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:wt,borderRadius:bt,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-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:Ee.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ee.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ee.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ee.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:bt},et(Ee)),yt(Ee)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:Mt},[`${ve}-submenu-title::after`]:{transition:`transform ${Fe} ${ct}`}})}}),yt(Ee)),{[`&-inline-collapsed ${ve}-submenu-arrow,
|
|
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_t})`},"&::after":{transform:`rotate(45deg) translateX(-${_t})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${Vt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_t})`},"&::before":{transform:`rotate(45deg) translateX(${_t})`}}})},{[`${be}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var qe=(Ee,be)=>(0,kt.Z)("Menu",ye=>{if(be===!1)return[];const{colorBgElevated:Fe,colorPrimary:Ve,colorTextLightSolid:ct,controlHeightLG:Pt,fontSize:Lt,darkItemColor:Ot,darkDangerItemColor:jt,darkItemBg:wt,darkSubMenuItemBg:bt,darkItemSelectedColor:Mt,darkItemSelectedBg:Vt,darkDangerItemSelectedBg:_t,darkItemHoverBg:Qt,darkGroupTitleColor:pe,darkItemHoverColor:Oe,darkItemDisabledColor:Je,darkDangerItemHoverColor:St,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Tt}=ye,Dt=Lt/7*5,Bt=(0,Le.TS)(ye,{menuArrowSize:Dt,menuHorizontalHeight:Pt*1.15,menuArrowOffset:`${Dt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),It=(0,Le.TS)(Bt,{itemColor:Ot,itemHoverColor:Oe,groupTitleColor:pe,itemSelectedColor:Mt,itemBg:wt,popupBg:wt,subMenuItemBg:bt,itemActiveBg:"transparent",itemSelectedBg:Vt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qt,itemDisabledColor:Je,dangerItemColor:jt,dangerItemHoverColor:St,dangerItemSelectedColor:ht,dangerItemActiveBg:Tt,dangerItemSelectedBg:_t,menuSubMenuBg:bt,horizontalItemSelectedColor:ct,horizontalItemSelectedBg:Ve});return[Ke(Bt),Ae(Bt),Be(Bt),at(Bt,"light"),at(It,"dark"),gt(Bt),(0,Ge.Z)(Bt),(0,pt.oN)(Bt,"slide-up"),(0,pt.oN)(Bt,"slide-down"),(0,zt._y)(Bt,"zoom-big")]},ye=>{const{colorPrimary:Fe,colorError:Ve,colorTextDisabled:ct,colorErrorBg:Pt,colorText:Lt,colorTextDescription:Ot,colorBgContainer:jt,colorFillAlter:wt,colorFillContent:bt,lineWidth:Mt,lineWidthBold:Vt,controlItemBgActive:_t,colorBgTextHover:Qt,controlHeightLG:pe,lineHeight:Oe,colorBgElevated:Je,marginXXS:St,padding:ht,fontSize:Tt,controlHeightSM:Dt,fontSizeLG:Bt,colorTextLightSolid:It,colorErrorHover:Kt}=ye,Xt=new se.C(It).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ye.zIndexPopupBase+50,radiusItem:ye.borderRadiusLG,itemBorderRadius:ye.borderRadiusLG,radiusSubMenuItem:ye.borderRadiusSM,subMenuItemBorderRadius:ye.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:jt,itemBg:jt,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:bt,itemActiveBg:_t,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Vt,activeBarHeight:Vt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:ct,itemDisabledColor:ct,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Pt,dangerItemActiveBg:Pt,colorDangerItemBgSelected:Pt,dangerItemSelectedBg:Pt,itemMarginInline:ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Oe,collapsedWidth:pe*2,popupBg:Je,itemMarginBlock:St,itemPaddingInline:ht,horizontalLineHeight:`${pe*1.15}px`,iconSize:Tt,iconMarginInlineEnd:Dt-Tt,collapsedIconSize:Bt,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(It).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:Ve,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:It,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:Ve}},{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"]]})(Ee),de=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve},ft=(0,ce.forwardRef)((Ee,be)=>{var ve,ye;const Fe=ce.useContext(re.Z),Ve=Fe||{},{getPrefixCls:ct,getPopupContainer:Pt,direction:Lt,menu:Ot}=ce.useContext(Ce.E_),jt=ct(),{prefixCls:wt,className:bt,style:Mt,theme:Vt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:Qt,inlineCollapsed:pe,siderCollapsed:Oe,items:Je,children:St,rootClassName:ht,mode:Tt,selectable:Dt,onClick:Bt,overflowedIndicatorPopupClassName:It}=Ee,Kt=de(Ee,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,_e.Z)(Kt,["collapsedWidth"]),rn=me(Je)||St;(ve=Ve.validator)===null||ve===void 0||ve.call(Ve,{mode:Tt});const on=(0,ee.useEvent)(function(){var bn;Bt==null||Bt.apply(void 0,arguments),(bn=Ve.onClick)===null||bn===void 0||bn.call(Ve)}),hn=Ve.mode||Tt,vn=Dt!=null?Dt:Ve.selectable,an=ce.useMemo(()=>Oe!==void 0?Oe:pe,[pe,Oe]),qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},Sn=ct("menu",wt||Ve.prefixCls),[pn,yn]=qe(Sn,!Fe),cn=ue()(`${Sn}-${Vt}`,Ot==null?void 0:Ot.className,bt);let Fn;if(typeof _t=="function")Fn=_t;else if(_t===null||_t===!1)Fn=null;else if(Ve.expandIcon===null||Ve.expandIcon===!1)Fn=null;else{const bn=_t!=null?_t:Ve.expandIcon;Fn=(0,je.Tm)(bn,{className:ue()(`${Sn}-submenu-expand-icon`,(0,je.l$)(bn)?(ye=bn.props)===null||ye===void 0?void 0:ye.className:"")})}const kn=ce.useMemo(()=>({prefixCls:Sn,inlineCollapsed:an||!1,direction:Lt,firstLevel:!0,theme:Vt,mode:hn,disableMenuItemTitleTooltip:Qt}),[Sn,an,Lt,Qt,Vt]);return pn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:kn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:Pt,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(Sn,`${Sn}-${Vt}`,It),mode:hn,selectable:vn,onClick:on},Xt,{inlineCollapsed:an,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Mt),className:cn,prefixCls:Sn,direction:Lt,defaultMotions:qt,expandIcon:Fn,ref:be,rootClassName:ue()(ht,yn)}),rn))))});const Ht=(0,ce.forwardRef)((Ee,be)=>{const ve=(0,ce.useRef)(null),ye=ce.useContext(Xe.D);return(0,ce.useImperativeHandle)(be,()=>({menu:ve.current,focus:Fe=>{var Ve;(Ve=ve.current)===null||Ve===void 0||Ve.focus(Fe)}})),ce.createElement(ft,Object.assign({ref:ve},Ee,ye))});Ht.Item=E,Ht.SubMenu=x,Ht.Divider=xe,Ht.ItemGroup=ne.BW;var ut=Ht},38703:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return Qt}});var ne=oe(67294),ce=oe(87725),Xe=oe(18299),ze=oe(16646),ue=oe(73475),Ce=oe(94184),le=oe.n(Ce),He=oe(10366),xe=oe(53124),Te=oe(87462),_e=oe(1413),ke=oe(45987),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,ne.useRef)([]),Je=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var St=Date.now(),ht=!1;Oe.current.forEach(function(Tt){if(Tt){ht=!0;var Dt=Tt.style;Dt.transitionDuration=".3s, .3s, .3s, .06s",Je.current&&St-Je.current<100&&(Dt.transitionDuration="0s, 0s")}}),ht&&(Je.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var Je=(0,_e.Z)((0,_e.Z)({},je),Oe),St=Je.className,ht=Je.percent,Tt=Je.prefixCls,Dt=Je.strokeColor,Bt=Je.strokeLinecap,It=Je.strokeWidth,Kt=Je.style,Xt=Je.trailColor,rn=Je.trailWidth,on=Je.transition,hn=(0,ke.Z)(Je,a);delete hn.gapPosition;var vn=Array.isArray(ht)?ht:[ht],an=Array.isArray(Dt)?Dt:[Dt],qt=ae(),Sn=It/2,pn=100-It/2,yn="M ".concat(Bt==="round"?Sn:0,",").concat(Sn,`
|
|
L `).concat(Bt==="round"?pn:100,",").concat(Sn),cn="0 0 100 ".concat(It),Fn=0;return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(Tt,"-line"),St),viewBox:cn,preserveAspectRatio:"none",style:Kt},hn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:yn,strokeLinecap:Bt,stroke:Xt,strokeWidth:rn||It,fillOpacity:"0"}),vn.map(function(kn,bn){var Mn=1;switch(Bt){case"round":Mn=1-It/100;break;case"square":Mn=1-It/2/100;break;default:Mn=1;break}var Kn={strokeDasharray:"".concat(kn*Mn,"px, 100px"),strokeDashoffset:"-".concat(Fn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=an[bn]||an[an.length-1];return Fn+=kn,ne.createElement("path",{key:bn,className:"".concat(Tt,"-line-path"),d:yn,strokeLinecap:Bt,stroke:Zn,strokeWidth:It,fillOpacity:"0",ref:function(we){qt[bn]=we},style:Kn})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),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 Oe=ne.useState(),Je=(0,x.Z)(Oe,2),St=Je[0],ht=Je[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),pe||St},ge=function(Oe){var Je=Oe.bg,St=Oe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Je}},St)};function me(pe,Oe){return Object.keys(pe).map(function(Je){var St=parseFloat(Je),ht="".concat(Math.floor(St*Oe),"%");return"".concat(pe[Je]," ").concat(ht)})}var se=ne.forwardRef(function(pe,Oe){var Je=pe.prefixCls,St=pe.color,ht=pe.gradientId,Tt=pe.radius,Dt=pe.style,Bt=pe.ptg,It=pe.strokeLinecap,Kt=pe.strokeWidth,Xt=pe.size,rn=pe.gapDegree,on=St&&(0,b.Z)(St)==="object",hn=on?"#FFF":void 0,vn=Xt/2,an=ne.createElement("circle",{className:"".concat(Je,"-circle-path"),r:Tt,cx:vn,cy:vn,stroke:hn,strokeLinecap:It,strokeWidth:Kt,opacity:Bt===0?0:1,style:Dt,ref:Oe});if(!on)return an;var qt="".concat(ht,"-conic"),Sn=rn?"".concat(180+rn/2,"deg"):"0deg",pn=me(St,(360-rn)/360),yn=me(St,1),cn="conic-gradient(from ".concat(Sn,", ").concat(pn.join(", "),")"),Fn="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(yn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:qt},an),ne.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(qt,")")},ne.createElement(ge,{bg:Fn},ne.createElement(ge,{bg:cn}))))}),Ne=se,Ge=100,pt=function(Oe,Je,St,ht,Tt,Dt,Bt,It,Kt,Xt){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=St/100*360*((360-Dt)/360),hn=Dt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],vn=(100-ht)/100*Je;Kt==="round"&&ht!==100&&(vn+=Xt/2,vn>=Je&&(vn=Je-.01));var an=Ge/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(Je,"px ").concat(Oe),strokeDashoffset:vn+rn,transform:"rotate(".concat(Tt+on+hn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"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 Oe=pe!=null?pe:[];return Array.isArray(Oe)?Oe:[Oe]}var Le=function(Oe){var Je=(0,_e.Z)((0,_e.Z)({},je),Oe),St=Je.id,ht=Je.prefixCls,Tt=Je.steps,Dt=Je.strokeWidth,Bt=Je.trailWidth,It=Je.gapDegree,Kt=It===void 0?0:It,Xt=Je.gapPosition,rn=Je.trailColor,on=Je.strokeLinecap,hn=Je.style,vn=Je.className,an=Je.strokeColor,qt=Je.percent,Sn=(0,ke.Z)(Je,zt),pn=Ge/2,yn=ie(St),cn="".concat(yn,"-gradient"),Fn=pn-Dt/2,kn=Math.PI*2*Fn,bn=Kt>0?90+Kt/2:-90,Mn=kn*((360-Kt)/360),Kn=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},Zn=Kn.count,fe=Kn.space,we=kt(qt),Pe=kt(an),dt=Pe.find(function(Un){return Un&&(0,b.Z)(Un)==="object"}),Et=dt&&(0,b.Z)(dt)==="object",Gt=Et?"butt":on,Pn=pt(kn,Mn,0,100,bn,Kt,Xt,rn,Gt,Dt),Jt=ae(),sn=function(){var lt=0;return we.map(function(gn,Se){var De=Pe[Se]||Pe[Pe.length-1],$e=pt(kn,Mn,lt,gn,bn,Kt,Xt,De,Gt,Dt);return lt+=gn,ne.createElement(Ne,{key:Se,color:De,ptg:gn,radius:Fn,prefixCls:ht,gradientId:cn,style:$e,strokeLinecap:Gt,strokeWidth:Dt,gapDegree:Kt,ref:function(st){Jt[Se]=st},size:Ge})}).reverse()},Cn=function(){var lt=Math.round(Zn*(we[0]/100)),gn=100/Zn,Se=0;return new Array(Zn).fill(null).map(function(De,$e){var Re=$e<=lt-1?Pe[0]:rn,st=Re&&(0,b.Z)(Re)==="object"?"url(#".concat(cn,")"):void 0,Qe=pt(kn,Mn,Se,gn,bn,Kt,Xt,Re,"butt",Dt,fe);return Se+=(Mn-Qe.strokeDashoffset+fe)*100/Mn,ne.createElement("circle",{key:$e,className:"".concat(ht,"-circle-path"),r:Fn,cx:pn,cy:pn,stroke:st,strokeWidth:Dt,opacity:1,style:Qe,ref:function(Ue){Jt[$e]=Ue}})})};return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(ht,"-circle"),vn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:hn,id:St,role:"presentation"},Sn),!Zn&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:Fn,cx:pn,cy:pn,stroke:rn,strokeLinecap:Gt,strokeWidth:Bt||Dt,style:Pn}),Zn?Cn():sn())},Ie=Le,Ae={Line:E,Circle:Ie},nt=oe(83062),gt=oe(47448);function Ze(pe){return!pe||pe<0?0:pe>100?100:pe}function Ye(pe){let{success:Oe,successPercent:Je}=pe,St=Je;return Oe&&"progress"in Oe&&(St=Oe.progress),Oe&&"percent"in Oe&&(St=Oe.percent),St}const at=pe=>{let{percent:Oe,success:Je,successPercent:St}=pe;const ht=Ze(Ye({success:Je,successPercent:St}));return[ht,Ze(Ze(Oe)-ht)]},xt=pe=>{let{success:Oe={},strokeColor:Je}=pe;const{strokeColor:St}=Oe;return[St||gt.presetPrimaryColors.green,Je||null]},he=(pe,Oe,Je)=>{var St,ht,Tt,Dt;let Bt=-1,It=-1;if(Oe==="step"){const Kt=Je.steps,Xt=Je.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Bt=pe==="small"?2:14,It=Xt!=null?Xt:8):typeof pe=="number"?[Bt,It]=[pe,pe]:[Bt=14,It=8]=pe,Bt*=Kt}else if(Oe==="line"){const Kt=Je==null?void 0:Je.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?It=Kt||(pe==="small"?6:8):typeof pe=="number"?[Bt,It]=[pe,pe]:[Bt=-1,It=8]=pe}else(Oe==="circle"||Oe==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Bt,It]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Bt,It]=[pe,pe]:(Bt=(ht=(St=pe[0])!==null&&St!==void 0?St:pe[1])!==null&&ht!==void 0?ht:120,It=(Dt=(Tt=pe[0])!==null&&Tt!==void 0?Tt:pe[1])!==null&&Dt!==void 0?Dt:120));return[Bt,It]},Be=3,et=pe=>Be/pe*100;var Ke=pe=>{const{prefixCls:Oe,trailColor:Je=null,strokeLinecap:St="round",gapPosition:ht,gapDegree:Tt,width:Dt=120,type:Bt,children:It,success:Kt,size:Xt=Dt}=pe,[rn,on]=he(Xt,"circle");let{strokeWidth:hn}=pe;hn===void 0&&(hn=Math.max(et(rn),6));const vn={width:rn,height:on,fontSize:rn*.15+6},an=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if(Bt==="dashboard")return 75},[Tt,Bt]),qt=ht||Bt==="dashboard"&&"bottom"||void 0,Sn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",pn=xt({success:Kt,strokeColor:pe.strokeColor}),yn=le()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:Sn}),cn=ne.createElement(Ie,{percent:at(pe),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:St,trailColor:Je,prefixCls:Oe,gapDegree:an,gapPosition:qt});return ne.createElement("div",{className:yn,style:vn},rn<=20?ne.createElement(nt.Z,{title:It},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,It))},qe=function(pe,Oe){var Je={};for(var St in pe)Object.prototype.hasOwnProperty.call(pe,St)&&Oe.indexOf(St)<0&&(Je[St]=pe[St]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,St=Object.getOwnPropertySymbols(pe);ht<St.length;ht++)Oe.indexOf(St[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,St[ht])&&(Je[St[ht]]=pe[St[ht]]);return Je};const de=pe=>{let Oe=[];return Object.keys(pe).forEach(Je=>{const St=parseFloat(Je.replace(/%/g,""));isNaN(St)||Oe.push({key:St,value:pe[Je]})}),Oe=Oe.sort((Je,St)=>Je.key-St.key),Oe.map(Je=>{let{key:St,value:ht}=Je;return`${ht} ${St}%`}).join(", ")},tt=(pe,Oe)=>{const{from:Je=gt.presetPrimaryColors.blue,to:St=gt.presetPrimaryColors.blue,direction:ht=Oe==="rtl"?"to left":"to right"}=pe,Tt=qe(pe,["from","to","direction"]);if(Object.keys(Tt).length!==0){const Dt=de(Tt);return{backgroundImage:`linear-gradient(${ht}, ${Dt})`}}return{backgroundImage:`linear-gradient(${ht}, ${Je}, ${St})`}};var Ht=pe=>{const{prefixCls:Oe,direction:Je,percent:St,size:ht,strokeWidth:Tt,strokeColor:Dt,strokeLinecap:Bt="round",children:It,trailColor:Kt=null,success:Xt}=pe,rn=Dt&&typeof Dt!="string"?tt(Dt,Je):{backgroundColor:Dt},on=Bt==="square"||Bt==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:on},vn=ht!=null?ht:[-1,Tt||(ht==="small"?6:8)],[an,qt]=he(vn,"line",{strokeWidth:Tt}),Sn=Object.assign({width:`${Ze(St)}%`,height:qt,borderRadius:on},rn),pn=Ye(pe),yn={width:`${Ze(pn)}%`,height:qt,borderRadius:on,backgroundColor:Xt==null?void 0:Xt.strokeColor},cn={width:an<0?"100%":an,height:qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Oe}-outer`,style:cn},ne.createElement("div",{className:`${Oe}-inner`,style:hn},ne.createElement("div",{className:`${Oe}-bg`,style:Sn}),pn!==void 0?ne.createElement("div",{className:`${Oe}-success-bg`,style:yn}):null)),It)},Ee=pe=>{const{size:Oe,steps:Je,percent:St=0,strokeWidth:ht=8,strokeColor:Tt,trailColor:Dt=null,prefixCls:Bt,children:It}=pe,Kt=Math.round(Je*(St/100)),Xt=Oe==="small"?2:14,rn=Oe!=null?Oe:[Xt,ht],[on,hn]=he(rn,"step",{steps:Je,strokeWidth:ht}),vn=on/Je,an=new Array(Je);for(let qt=0;qt<Je;qt++){const Sn=Array.isArray(Tt)?Tt[qt]:Tt;an[qt]=ne.createElement("div",{key:qt,className:le()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:qt<=Kt-1}),style:{backgroundColor:qt<=Kt-1?Sn:Dt,width:vn,height:hn}})}return ne.createElement("div",{className:`${Bt}-steps-outer`},an,It)},be=oe(45930),ve=oe(14747),ye=oe(67968),Fe=oe(45503);const Ve=pe=>{const Oe=pe?"100%":"-100%";return new be.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ct=pe=>{const{componentCls:Oe,iconCls:Je}=pe;return{[Oe]:Object.assign(Object.assign({},(0,ve.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Je]:{fontSize:pe.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:Ve(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:Ve(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:pe.colorError},[`${Oe}-text`]:{color:pe.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:pe.colorSuccess},[`${Oe}-text`]:{color:pe.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.colorSuccess}}})}},Pt=pe=>{const{componentCls:Oe,iconCls:Je}=pe;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:pe.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-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%)",[Je]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:pe.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:pe.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},Lt=pe=>{const{componentCls:Oe}=pe;return{[Oe]:{[`${Oe}-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}}}}}},Ot=pe=>{const{componentCls:Oe,iconCls:Je}=pe;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${Je}`]:{fontSize:pe.fontSizeSM}}}};var jt=(0,ye.Z)("Progress",pe=>{const Oe=pe.marginXXS/2,Je=(0,Fe.TS)(pe,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[ct(Je),Pt(Je),Lt(Je),Ot(Je)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),wt=function(pe,Oe){var Je={};for(var St in pe)Object.prototype.hasOwnProperty.call(pe,St)&&Oe.indexOf(St)<0&&(Je[St]=pe[St]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,St=Object.getOwnPropertySymbols(pe);ht<St.length;ht++)Oe.indexOf(St[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,St[ht])&&(Je[St[ht]]=pe[St[ht]]);return Je};const bt=null,Mt=["normal","exception","active","success"];var _t=ne.forwardRef((pe,Oe)=>{const{prefixCls:Je,className:St,rootClassName:ht,steps:Tt,strokeColor:Dt,percent:Bt=0,size:It="default",showInfo:Kt=!0,type:Xt="line",status:rn,format:on,style:hn}=pe,vn=wt(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=ne.useMemo(()=>{var we,Pe;const dt=Ye(pe);return parseInt(dt!==void 0?(we=dt!=null?dt:0)===null||we===void 0?void 0:we.toString():(Pe=Bt!=null?Bt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[Bt,pe.success,pe.successPercent]),qt=ne.useMemo(()=>!Mt.includes(rn)&&an>=100?"success":rn||"normal",[rn,an]),{getPrefixCls:Sn,direction:pn,progress:yn}=ne.useContext(xe.E_),cn=Sn("progress",Je),[Fn,kn]=jt(cn),bn=ne.useMemo(()=>{if(!Kt)return null;const we=Ye(pe);let Pe;const dt=on||(Gt=>`${Gt}%`),Et=Xt==="line";return on||qt!=="exception"&&qt!=="success"?Pe=dt(Ze(Bt),Ze(we)):qt==="exception"?Pe=Et?ne.createElement(ze.Z,null):ne.createElement(ue.Z,null):qt==="success"&&(Pe=Et?ne.createElement(ce.Z,null):ne.createElement(Xe.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Kt,Bt,an,qt,Xt,cn,on]),Mn=Array.isArray(Dt)?Dt[0]:Dt,Kn=typeof Dt=="string"||Array.isArray(Dt)?Dt:void 0;let Zn;Xt==="line"?Zn=Tt?ne.createElement(Ee,Object.assign({},pe,{strokeColor:Kn,prefixCls:cn,steps:Tt}),bn):ne.createElement(Ht,Object.assign({},pe,{strokeColor:Mn,prefixCls:cn,direction:pn}),bn):(Xt==="circle"||Xt==="dashboard")&&(Zn=ne.createElement(Ke,Object.assign({},pe,{strokeColor:Mn,prefixCls:cn,progressStatus:qt}),bn));const fe=le()(cn,`${cn}-status-${qt}`,`${cn}-${Xt==="dashboard"&&"circle"||Tt&&"steps"||Xt}`,{[`${cn}-inline-circle`]:Xt==="circle"&&he(It,"circle")[0]<=20,[`${cn}-show-info`]:Kt,[`${cn}-${It}`]:typeof It=="string",[`${cn}-rtl`]:pn==="rtl"},yn==null?void 0:yn.className,St,ht,kn);return Fn(ne.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),hn),className:fe,role:"progressbar","aria-valuenow":an},(0,He.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),Qt=_t},59810:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return gn}});var ne=oe(67294),ce=oe(74902),Xe=oe(94184),ze=oe.n(Xe),ue=oe(87462),Ce=oe(15671),le=oe(43144),He=oe(60136),xe=oe(51630),Te=oe(4942),_e=oe(45987),ke=oe(74165),je=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,De){var $e="cannot ".concat(Se.method," ").concat(Se.action," ").concat(De.status,"'"),Re=new Error($e);return Re.status=De.status,Re.method=Se.method,Re.url=Se.action,Re}function E(Se){var De=Se.responseText||Se.response;if(!De)return De;try{return JSON.parse(De)}catch($e){return De}}function b(Se){var De=new XMLHttpRequest;Se.onProgress&&De.upload&&(De.upload.onprogress=function(Qe){Qe.total>0&&(Qe.percent=Qe.loaded/Qe.total*100),Se.onProgress(Qe)});var $e=new FormData;Se.data&&Object.keys(Se.data).forEach(function(st){var Qe=Se.data[st];if(Array.isArray(Qe)){Qe.forEach(function(ot){$e.append("".concat(st,"[]"),ot)});return}$e.append(st,Qe)}),Se.file instanceof Blob?$e.append(Se.filename,Se.file,Se.file.name):$e.append(Se.filename,Se.file),De.onerror=function(Qe){Se.onError(Qe)},De.onload=function(){return De.status<200||De.status>=300?Se.onError(y(Se,De),E(De)):Se.onSuccess(E(De),De)},De.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in De&&(De.withCredentials=!0);var Re=Se.headers||{};return Re["X-Requested-With"]!==null&&De.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(st){Re[st]!==null&&De.setRequestHeader(st,Re[st])}),De.send($e),{abort:function(){De.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,De){if(Se&&De){var $e=Array.isArray(De)?De:De.split(","),Re=Se.name||"",st=Se.type||"",Qe=st.replace(/\/.*$/,"");return $e.some(function(ot){var Ue=ot.trim();if(/^\*(\/\*)?$/.test(ot))return!0;if(Ue.charAt(0)==="."){var Wt=Re.toLowerCase(),$t=Ue.toLowerCase(),Ut=[$t];return($t===".jpg"||$t===".jpeg")&&(Ut=[".jpg",".jpeg"]),Ut.some(function(en){return Wt.endsWith(en)})}return/\/\*$/.test(Ue)?Qe===Ue.replace(/\/.*$/,""):st===Ue?!0:/^\w+$/.test(Ue)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ue,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,De){var $e=Se.createReader(),Re=[];function st(){$e.readEntries(function(Qe){var ot=Array.prototype.slice.apply(Qe);Re=Re.concat(ot);var Ue=!ot.length;Ue?De(Re):st()})}st()}var ge=function(De,$e,Re){var st=function Qe(ot,Ue){ot&&(ot.path=Ue||"",ot.isFile?ot.file(function(Wt){Re(Wt)&&(ot.fullPath&&!Wt.webkitRelativePath&&(Object.defineProperties(Wt,{webkitRelativePath:{writable:!0}}),Wt.webkitRelativePath=ot.fullPath.replace(/^\//,""),Object.defineProperties(Wt,{webkitRelativePath:{writable:!1}})),$e([Wt]))}):ot.isDirectory&&ie(ot,function(Wt){Wt.forEach(function($t){Qe($t,"".concat(Ue).concat(ot.name,"/"))})}))};De.forEach(function(Qe){st(Qe.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ne=function(Se){(0,He.Z)($e,Se);var De=(0,xe.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Qe=new Array(st),ot=0;ot<st;ot++)Qe[ot]=arguments[ot];return Re=De.call.apply(De,[this].concat(Qe)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(Ue){var Wt=Re.props,$t=Wt.accept,Ut=Wt.directory,en=Ue.target.files,mn=(0,ce.Z)(en).filter(function(We){return!Ut||re(We,$t)});Re.uploadFiles(mn),Re.reset()},Re.onClick=function(Ue){var Wt=Re.fileInput;if(Wt){var $t=Re.props,Ut=$t.children,en=$t.onClick;if(Ut&&Ut.type==="button"){var mn=Wt.parentNode;mn.focus(),mn.querySelector("button").blur()}Wt.click(),en&&en(Ue)}},Re.onKeyDown=function(Ue){Ue.key==="Enter"&&Re.onClick(Ue)},Re.onFileDrop=function(Ue){var Wt=Re.props.multiple;if(Ue.preventDefault(),Ue.type!=="dragover")if(Re.props.directory)me(Array.prototype.slice.call(Ue.dataTransfer.items),Re.uploadFiles,function(Ut){return re(Ut,Re.props.accept)});else{var $t=(0,ce.Z)(Ue.dataTransfer.files).filter(function(Ut){return re(Ut,Re.props.accept)});Wt===!1&&($t=$t.slice(0,1)),Re.uploadFiles($t)}},Re.uploadFiles=function(Ue){var Wt=(0,ce.Z)(Ue),$t=Wt.map(function(Ut){return Ut.uid=ee(),Re.processFile(Ut,Wt)});Promise.all($t).then(function(Ut){var en=Re.props.onBatchStart;en==null||en(Ut.map(function(mn){var We=mn.origin,Hn=mn.parsedFile;return{file:We,parsedFile:Hn}})),Ut.filter(function(mn){return mn.parsedFile!==null}).forEach(function(mn){Re.post(mn)})})},Re.processFile=function(){var Ue=(0,ae.Z)((0,ke.Z)().mark(function Wt($t,Ut){var en,mn,We,Hn,In,Wn,wn,rt,Ft;return(0,ke.Z)().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(en=Re.props.beforeUpload,mn=$t,!en){mt.next=14;break}return mt.prev=3,mt.next=6,en($t,Ut);case 6:mn=mt.sent,mt.next=12;break;case 9:mt.prev=9,mt.t0=mt.catch(3),mn=!1;case 12:if(mn!==!1){mt.next=14;break}return mt.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(We=Re.props.action,typeof We!="function"){mt.next=21;break}return mt.next=18,We($t);case 18:Hn=mt.sent,mt.next=22;break;case 21:Hn=We;case 22:if(In=Re.props.data,typeof In!="function"){mt.next=29;break}return mt.next=26,In($t);case 26:Wn=mt.sent,mt.next=30;break;case 29:Wn=In;case 30:return wn=((0,je.Z)(mn)==="object"||typeof mn=="string")&&mn?mn:$t,wn instanceof File?rt=wn:rt=new File([wn],$t.name,{type:$t.type}),Ft=rt,Ft.uid=$t.uid,mt.abrupt("return",{origin:$t,data:Wn,parsedFile:Ft,action:Hn});case 35:case"end":return mt.stop()}},Wt,null,[[3,9]])}));return function(Wt,$t){return Ue.apply(this,arguments)}}(),Re.saveFileInput=function(Ue){Re.fileInput=Ue},Re}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(st){var Qe=this,ot=st.data,Ue=st.origin,Wt=st.action,$t=st.parsedFile;if(this._isMounted){var Ut=this.props,en=Ut.onStart,mn=Ut.customRequest,We=Ut.name,Hn=Ut.headers,In=Ut.withCredentials,Wn=Ut.method,wn=Ue.uid,rt=mn||b,Ft={action:Wt,filename:We,data:ot,file:$t,headers:Hn,withCredentials:In,method:Wn||"post",onProgress:function(mt){var tn=Qe.props.onProgress;tn==null||tn(mt,$t)},onSuccess:function(mt,tn){var nn=Qe.props.onSuccess;nn==null||nn(mt,$t,tn),delete Qe.reqs[wn]},onError:function(mt,tn){var nn=Qe.props.onError;nn==null||nn(mt,tn,$t),delete Qe.reqs[wn]}};en(Ue),this.reqs[wn]=rt(Ft)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(st){var Qe=this.reqs;if(st){var ot=st.uid?st.uid:st;Qe[ot]&&Qe[ot].abort&&Qe[ot].abort(),delete Qe[ot]}else Object.keys(Qe).forEach(function(Ue){Qe[Ue]&&Qe[Ue].abort&&Qe[Ue].abort(),delete Qe[Ue]})}},{key:"render",value:function(){var st,Qe=this.props,ot=Qe.component,Ue=Qe.prefixCls,Wt=Qe.className,$t=Qe.disabled,Ut=Qe.id,en=Qe.style,mn=Qe.multiple,We=Qe.accept,Hn=Qe.capture,In=Qe.children,Wn=Qe.directory,wn=Qe.openFileDialogOnClick,rt=Qe.onMouseEnter,Ft=Qe.onMouseLeave,Rt=(0,_e.Z)(Qe,se),mt=ze()((st={},(0,Te.Z)(st,Ue,!0),(0,Te.Z)(st,"".concat(Ue,"-disabled"),$t),(0,Te.Z)(st,Wt,Wt),st)),tn=Wn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},nn=$t?{}:{onClick:wn?this.onClick:function(){},onKeyDown:wn?this.onKeyDown:function(){},onMouseEnter:rt,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(ot,(0,ue.Z)({},nn,{className:mt,role:"button",style:en}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:Ut,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function(xn){return xn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:We},tn,{multiple:mn,onChange:this.onChange},Hn!=null?{capture:Hn}:{})),In)}}]),$e}(ne.Component),Ge=Ne;function pt(){}var zt=function(Se){(0,He.Z)($e,Se);var De=(0,xe.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Qe=new Array(st),ot=0;ot<st;ot++)Qe[ot]=arguments[ot];return Re=De.call.apply(De,[this].concat(Qe)),Re.uploader=void 0,Re.saveUploader=function(Ue){Re.uploader=Ue},Re}return(0,le.Z)($e,[{key:"abort",value:function(st){this.uploader.abort(st)}},{key:"render",value:function(){return ne.createElement(Ge,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(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,Ie=oe(5663),Ae=oe(73935),nt=oe(53124),gt=oe(98866),Ze=oe(10110),Ye=oe(24457),at={icon:function(De,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{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:De}}]}},name:"file",theme:"twotone"},xt=at,he=oe(74643),Be=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:xt}))},et=ne.forwardRef(Be),yt=oe(3407),Ke={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"},qe=Ke,de=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:qe}))},tt=ne.forwardRef(de),ft={icon:function(De,$e){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:De}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{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:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{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:De}}]}},name:"picture",theme:"twotone"},Ht=ft,ut=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:Ht}))},Ee=ne.forwardRef(ut),be=oe(38379),ve=oe(57838),ye=oe(33603),Fe=oe(96159),Ve=oe(71577);function ct(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function Pt(Se,De){const $e=(0,ce.Z)(De),Re=$e.findIndex(st=>{let{uid:Qe}=st;return Qe===Se.uid});return Re===-1?$e.push(Se):$e[Re]=Se,$e}function Lt(Se,De){const $e=Se.uid!==void 0?"uid":"name";return De.filter(Re=>Re[$e]===Se[$e])[0]}function Ot(Se,De){const $e=Se.uid!==void 0?"uid":"name",Re=De.filter(st=>st[$e]!==Se[$e]);return Re.length===De.length?null:Re}const jt=function(){const De=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=De[De.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},wt=Se=>Se.indexOf("image/")===0,bt=Se=>{if(Se.type&&!Se.thumbUrl)return wt(Se.type);const De=Se.thumbUrl||Se.url||"",$e=jt(De);return/^data:image\//.test(De)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(De)||$e)},Mt=200;function Vt(Se){return new Promise(De=>{if(!Se.type||!wt(Se.type)){De("");return}const $e=document.createElement("canvas");$e.width=Mt,$e.height=Mt,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mt}px; height: ${Mt}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Re=$e.getContext("2d"),st=new Image;if(st.onload=()=>{const{width:Qe,height:ot}=st;let Ue=Mt,Wt=Mt,$t=0,Ut=0;Qe>ot?(Wt=ot*(Mt/Qe),Ut=-(Wt-Ue)/2):(Ue=Qe*(Mt/ot),$t=-(Ue-Wt)/2),Re.drawImage(st,$t,Ut,Ue,Wt);const en=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(st.src),De(en)},st.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&(st.src=Qe.result)},Qe.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&De(Qe.result)},Qe.readAsDataURL(Se)}else st.src=window.URL.createObjectURL(Se)})}var _t=oe(84249),Qt=oe(90674),pe=oe(99569),Oe=oe(38703),Je=oe(83062),ht=ne.forwardRef((Se,De)=>{let{prefixCls:$e,className:Re,style:st,locale:Qe,listType:ot,file:Ue,items:Wt,progress:$t,iconRender:Ut,actionIconRender:en,itemRender:mn,isImgUrl:We,showPreviewIcon:Hn,showRemoveIcon:In,showDownloadIcon:Wn,previewIcon:wn,removeIcon:rt,downloadIcon:Ft,onPreview:Rt,onDownload:mt,onClose:tn}=Se;var nn,En;const{status:xn}=Ue,[Bn,ga]=ne.useState(xn);ne.useEffect(()=>{xn!=="removed"&&ga(xn)},[xn]);const[ta,ca]=ne.useState(!1);ne.useEffect(()=>{const On=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(On)}},[]);const da=Ut(Ue);let Yn=ne.createElement("div",{className:`${$e}-icon`},da);if(ot==="picture"||ot==="picture-card"||ot==="picture-circle")if(Bn==="uploading"||!Ue.thumbUrl&&!Ue.url){const On=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Bn!=="uploading"});Yn=ne.createElement("div",{className:On},da)}else{const On=We!=null&&We(Ue)?ne.createElement("img",{src:Ue.thumbUrl||Ue.url,alt:Ue.name,className:`${$e}-list-item-image`,crossOrigin:Ue.crossOrigin}):da,Nn=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:We&&!We(Ue)});Yn=ne.createElement("a",{className:Nn,onClick:aa=>Rt(Ue,aa),href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer"},On)}const $n=ze()(`${$e}-list-item`,`${$e}-list-item-${Bn}`),la=typeof Ue.linkProps=="string"?JSON.parse(Ue.linkProps):Ue.linkProps,sa=In?en((typeof rt=="function"?rt(Ue):rt)||ne.createElement(_t.Z,null),()=>tn(Ue),$e,Qe.removeFile):null,ma=Wn&&Bn==="done"?en((typeof Ft=="function"?Ft(Ue):Ft)||ne.createElement(Qt.Z,null),()=>mt(Ue),$e,Qe.downloadFile):null,Jn=ot!=="picture-card"&&ot!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:ze()(`${$e}-list-item-actions`,{picture:ot==="picture"})},ma,sa),_n=ze()(`${$e}-list-item-name`),oa=Ue.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_n,title:Ue.name},la,{href:Ue.url,onClick:On=>Rt(Ue,On)}),Ue.name),Jn]:[ne.createElement("span",{key:"view",className:_n,onClick:On=>Rt(Ue,On),title:Ue.name},Ue.name),Jn],Yt={pointerEvents:"none",opacity:.5},zn=Hn?ne.createElement("a",{href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ue.url||Ue.thumbUrl?void 0:Yt,onClick:On=>Rt(Ue,On),title:Qe.previewFile},typeof wn=="function"?wn(Ue):wn||ne.createElement(pe.Z,null)):null,Qn=(ot==="picture-card"||ot==="picture-circle")&&Bn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},zn,Bn==="done"&&ma,sa),{getPrefixCls:Vn}=ne.useContext(nt.E_),na=Vn(),An=ne.createElement("div",{className:$n},Yn,oa,Qn,ta&&ne.createElement(be.default,{motionName:`${na}-fade`,visible:Bn==="uploading",motionDeadline:2e3},On=>{let{className:Nn}=On;const aa="percent"in Ue?ne.createElement(Oe.Z,Object.assign({},$t,{type:"line",percent:Ue.percent,"aria-label":Ue["aria-label"],"aria-labelledby":Ue["aria-labelledby"]})):null;return ne.createElement("div",{className:ze()(`${$e}-list-item-progress`,Nn)},aa)})),Sa=Ue.response&&typeof Ue.response=="string"?Ue.response:((nn=Ue.error)===null||nn===void 0?void 0:nn.statusText)||((En=Ue.error)===null||En===void 0?void 0:En.message)||Qe.uploadError,qn=Bn==="error"?ne.createElement(Je.Z,{title:Sa,getPopupContainer:On=>On.parentNode},An):An;return ne.createElement("div",{className:ze()(`${$e}-list-item-container`,Re),style:st,ref:De},mn?mn(qn,Ue,Wt,{download:mt.bind(null,Ue),preview:Rt.bind(null,Ue),remove:tn.bind(null,Ue)}):qn)});const Tt=(Se,De)=>{const{listType:$e="text",previewFile:Re=Vt,onPreview:st,onDownload:Qe,onRemove:ot,locale:Ue,iconRender:Wt,isImageUrl:$t=bt,prefixCls:Ut,items:en=[],showPreviewIcon:mn=!0,showRemoveIcon:We=!0,showDownloadIcon:Hn=!1,removeIcon:In,previewIcon:Wn,downloadIcon:wn,progress:rt={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Rt=!0,itemRender:mt,disabled:tn}=Se,nn=(0,ve.Z)(),[En,xn]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(en||[]).forEach(Yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Yt.originFileObj instanceof File||Yt.originFileObj instanceof Blob)||Yt.thumbUrl!==void 0||(Yt.thumbUrl="",Re&&Re(Yt.originFileObj).then(zn=>{Yt.thumbUrl=zn||"",nn()}))})},[$e,en,Re]),ne.useEffect(()=>{xn(!0)},[]);const Bn=(Yt,zn)=>{if(st)return zn==null||zn.preventDefault(),st(Yt)},ga=Yt=>{typeof Qe=="function"?Qe(Yt):Yt.url&&window.open(Yt.url)},ta=Yt=>{ot==null||ot(Yt)},ca=Yt=>{if(Wt)return Wt(Yt,$e);const zn=Yt.status==="uploading",Qn=$t&&$t(Yt)?ne.createElement(Ee,null):ne.createElement(et,null);let Vn=zn?ne.createElement(yt.Z,null):ne.createElement(tt,null);return $e==="picture"?Vn=zn?ne.createElement(yt.Z,null):Qn:($e==="picture-card"||$e==="picture-circle")&&(Vn=zn?Ue.uploading:Qn),Vn},da=(Yt,zn,Qn,Vn)=>{const na={type:"text",size:"small",title:Vn,onClick:An=>{zn(),(0,Fe.l$)(Yt)&&Yt.props.onClick&&Yt.props.onClick(An)},className:`${Qn}-list-item-action`,disabled:tn};if((0,Fe.l$)(Yt)){const An=(0,Fe.Tm)(Yt,Object.assign(Object.assign({},Yt.props),{onClick:()=>{}}));return ne.createElement(Ve.ZP,Object.assign({},na,{icon:An}))}return ne.createElement(Ve.ZP,Object.assign({},na),ne.createElement("span",null,Yt))};ne.useImperativeHandle(De,()=>({handlePreview:Bn,handleDownload:ga}));const{getPrefixCls:Yn}=ne.useContext(nt.E_),$n=Yn("upload",Ut),la=Yn(),sa=ze()(`${$n}-list`,`${$n}-list-${$e}`),ma=(0,ce.Z)(en.map(Yt=>({key:Yt.uid,file:Yt})));let _n={motionDeadline:2e3,motionName:`${$n}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:ma,motionAppear:En};const oa=ne.useMemo(()=>{const Yt=Object.assign({},(0,ye.Z)(la));return delete Yt.onAppearEnd,delete Yt.onEnterEnd,delete Yt.onLeaveEnd,Yt},[la]);return $e!=="picture-card"&&$e!=="picture-circle"&&(_n=Object.assign(Object.assign({},oa),_n)),ne.createElement("div",{className:sa},ne.createElement(be.CSSMotionList,Object.assign({},_n,{component:!1}),Yt=>{let{key:zn,file:Qn,className:Vn,style:na}=Yt;return ne.createElement(ht,{key:zn,locale:Ue,prefixCls:$n,className:Vn,style:na,file:Qn,items:en,progress:rt,listType:$e,isImgUrl:$t,showPreviewIcon:mn,showRemoveIcon:We,showDownloadIcon:Hn,removeIcon:In,previewIcon:Wn,downloadIcon:wn,iconRender:ca,actionIconRender:da,itemRender:mt,onPreview:Bn,onDownload:ga,onClose:ta})}),Ft&&ne.createElement(be.default,Object.assign({},_n,{visible:Rt,forceRender:!0}),Yt=>{let{className:zn,style:Qn}=Yt;return(0,Fe.Tm)(Ft,Vn=>({className:ze()(Vn.className,zn),style:Object.assign(Object.assign(Object.assign({},Qn),{pointerEvents:zn?"none":void 0}),Vn.style)}))}))};var Bt=ne.forwardRef(Tt),It=oe(14747),Kt=oe(33507),Xt=oe(67968),rn=oe(45503),hn=Se=>{const{componentCls:De,iconCls:$e}=Se;return{[`${De}-wrapper`]:{[`${De}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[De]:{padding:`${Se.padding}px 0`},[`${De}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${De}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${De}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${De}-drag-icon`]:{marginBottom:Se.margin,[$e]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${De}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${De}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${De}-disabled`]:{cursor:"not-allowed",[`p${De}-drag-icon ${$e},
|
|
p${De}-text,
|
|
p${De}-hint
|
|
`]:{color:Se.colorTextDisabled}}}}}},an=Se=>{const{componentCls:De,antCls:$e,iconCls:Re,fontSize:st,lineHeight:Qe}=Se,ot=`${De}-list-item`,Ue=`${ot}-actions`,Wt=`${ot}-action`,$t=Math.round(st*Qe);return{[`${De}-wrapper`]:{[`${De}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:Se.lineHeight,[ot]:{position:"relative",height:Se.lineHeight*st,marginTop:Se.marginXS,fontSize:st,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${ot}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Qe,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ue]:{[Wt]:{opacity:0},[`${Wt}${$e}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Wt}:focus-visible,
|
|
&.picture ${Wt}
|
|
`]:{opacity:1},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Re}`]:{color:Se.colorText}},[`${De}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:st},[`${ot}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:st+Se.paddingXS,fontSize:st,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ot}:hover ${Wt}`]:{opacity:1,color:Se.colorText},[`${ot}-error`]:{color:Se.colorError,[`${ot}-name, ${De}-icon ${Re}`]:{color:Se.colorError},[Ue]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Wt]:{opacity:1}}},[`${De}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qt=oe(45930),Sn=oe(16932);const pn=new qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Fn=Se=>{const{componentCls:De}=Se,$e=`${De}-animate-inline`;return[{[`${De}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:pn},[`${$e}-leave`]:{animationName:yn}}},{[`${De}-wrapper`]:(0,Sn.J$)(Se)},pn,yn]},kn=oe(47448),bn=oe(84780);const Mn=Se=>{const{componentCls:De,iconCls:$e,uploadThumbnailSize:Re,uploadProgressOffset:st}=Se,Qe=`${De}-list`,ot=`${Qe}-item`;return{[`${De}-wrapper`]:{[`
|
|
${Qe}${Qe}-picture,
|
|
${Qe}${Qe}-picture-card,
|
|
${Qe}${Qe}-picture-circle
|
|
`]:{[ot]:{position:"relative",height:Re+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${ot}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Re,height:Re,lineHeight:`${Re+Se.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ot}-progress`]:{bottom:st,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+Se.paddingXS}},[`${ot}-error`]:{borderColor:Se.colorError,[`${ot}-thumbnail ${$e}`]:{[`svg path[fill='${kn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${kn.blue.primary}']`]:{fill:Se.colorError}}},[`${ot}-uploading`]:{borderStyle:"dashed",[`${ot}-name`]:{marginBottom:st}}},[`${Qe}${Qe}-picture-circle ${ot}`]:{[`&, &::before, ${ot}-thumbnail`]:{borderRadius:"50%"}}}}},Kn=Se=>{const{componentCls:De,iconCls:$e,fontSizeLG:Re,colorTextLightSolid:st}=Se,Qe=`${De}-list`,ot=`${Qe}-item`,Ue=Se.uploadPicCardSize;return{[`
|
|
${De}-wrapper${De}-picture-card-wrapper,
|
|
${De}-wrapper${De}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${De}${De}-select`]:{width:Ue,height:Ue,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${De}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${De}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Qe}${Qe}-picture-card, ${Qe}${Qe}-picture-circle`]:{[`${Qe}-item-container`]:{display:"inline-block",width:Ue,height:Ue,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ot]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${ot}:hover`]:{[`&::before, ${ot}-actions`]:{opacity:1}},[`${ot}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Re,margin:`0 ${Se.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ot}-actions, ${ot}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new bn.C(st).setAlpha(.65).toRgbString(),"&:hover":{color:st}}},[`${ot}-thumbnail, ${ot}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ot}-name`]:{display:"none",textAlign:"center"},[`${ot}-file + ${ot}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${ot}-uploading`]:{[`&${ot}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${ot}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${De}-wrapper${De}-picture-circle-wrapper`]:{[`${De}${De}-select`]:{borderRadius:"50%"}}}};var fe=Se=>{const{componentCls:De}=Se;return{[`${De}-rtl`]:{direction:"rtl"}}};const we=Se=>{const{componentCls:De,colorTextDisabled:$e}=Se;return{[`${De}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(Se)),{[De]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${De}-select`]:{display:"inline-block"},[`${De}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var Pe=(0,Xt.Z)("Upload",Se=>{const{fontSizeHeading3:De,fontSize:$e,lineHeight:Re,lineWidth:st,controlHeightLG:Qe}=Se,ot=Math.round($e*Re),Ue=(0,rn.TS)(Se,{uploadThumbnailSize:De*2,uploadProgressOffset:ot/2+st,uploadPicCardSize:Qe*2.55});return[we(Ue),hn(Ue),Mn(Ue),Kn(Ue),an(Ue),Fn(Ue),fe(Ue),(0,Kt.Z)(Ue)]},Se=>({actionsColor:Se.colorTextDescription})),dt=function(Se,De,$e,Re){function st(Qe){return Qe instanceof $e?Qe:new $e(function(ot){ot(Qe)})}return new($e||($e=Promise))(function(Qe,ot){function Ue(Ut){try{$t(Re.next(Ut))}catch(en){ot(en)}}function Wt(Ut){try{$t(Re.throw(Ut))}catch(en){ot(en)}}function $t(Ut){Ut.done?Qe(Ut.value):st(Ut.value).then(Ue,Wt)}$t((Re=Re.apply(Se,De||[])).next())})};const Et=`__LIST_IGNORE_${Date.now()}__`,Gt=(Se,De)=>{const{fileList:$e,defaultFileList:Re,onRemove:st,showUploadList:Qe=!0,listType:ot="text",onPreview:Ue,onDownload:Wt,onChange:$t,onDrop:Ut,previewFile:en,disabled:mn,locale:We,iconRender:Hn,isImageUrl:In,progress:Wn,prefixCls:wn,className:rt,type:Ft="select",children:Rt,style:mt,itemRender:tn,maxCount:nn,data:En={},multiple:xn=!1,action:Bn="",accept:ga="",supportServerRender:ta=!0,rootClassName:ca}=Se,da=ne.useContext(gt.Z),Yn=mn!=null?mn:da,[$n,la]=(0,Ie.Z)(Re||[],{value:$e,postState:Zt=>Zt!=null?Zt:[]}),[sa,ma]=ne.useState("drop"),Jn=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();($e||[]).forEach((dn,un)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Zt}_${un}__`)})},[$e]);const _n=(Zt,dn,un)=>{let ln=(0,ce.Z)(dn),Ln=!1;nn===1?ln=ln.slice(-1):nn&&(Ln=ln.length>nn,ln=ln.slice(0,nn)),(0,Ae.flushSync)(()=>{la(ln)});const Rn={file:Zt,fileList:ln};un&&(Rn.event=un),(!Ln||ln.some(ua=>ua.uid===Zt.uid))&&(0,Ae.flushSync)(()=>{$t==null||$t(Rn)})},oa=(Zt,dn)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:un,transformFile:ln}=Se;let Ln=Zt;if(un){const Rn=yield un(Zt,dn);if(Rn===!1)return!1;if(delete Zt[Et],Rn===Et)return Object.defineProperty(Zt,Et,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(Ln=Rn)}return ln&&(Ln=yield ln(Ln)),Ln}),Yt=Zt=>{const dn=Zt.filter(Ln=>!Ln.file[Et]);if(!dn.length)return;const un=dn.map(Ln=>ct(Ln.file));let ln=(0,ce.Z)($n);un.forEach(Ln=>{ln=Pt(Ln,ln)}),un.forEach((Ln,Rn)=>{let ua=Ln;if(dn[Rn].parsedFile)Ln.status="uploading";else{const{originFileObj:ea}=Ln;let ra;try{ra=new File([ea],ea.name,{type:ea.type})}catch(jn){ra=new Blob([ea],{type:ea.type}),ra.name=ea.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=Ln.uid,ua=ra}_n(ua,ln)})},zn=(Zt,dn,un)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(Rn){}if(!Lt(dn,$n))return;const ln=ct(dn);ln.status="done",ln.percent=100,ln.response=Zt,ln.xhr=un;const Ln=Pt(ln,$n);_n(ln,Ln)},Qn=(Zt,dn)=>{if(!Lt(dn,$n))return;const un=ct(dn);un.status="uploading",un.percent=Zt.percent;const ln=Pt(un,$n);_n(un,ln,Zt)},Vn=(Zt,dn,un)=>{if(!Lt(un,$n))return;const ln=ct(un);ln.error=Zt,ln.response=dn,ln.status="error";const Ln=Pt(ln,$n);_n(ln,Ln)},na=Zt=>{let dn;Promise.resolve(typeof st=="function"?st(Zt):st).then(un=>{var ln;if(un===!1)return;const Ln=Ot(Zt,$n);Ln&&(dn=Object.assign(Object.assign({},Zt),{status:"removed"}),$n==null||$n.forEach(Rn=>{const ua=dn.uid!==void 0?"uid":"name";Rn[ua]===dn[ua]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(ln=Jn.current)===null||ln===void 0||ln.abort(dn),_n(dn,Ln))})},An=Zt=>{ma(Zt.type),Zt.type==="drop"&&(Ut==null||Ut(Zt))};ne.useImperativeHandle(De,()=>({onBatchStart:Yt,onSuccess:zn,onProgress:Qn,onError:Vn,fileList:$n,upload:Jn.current}));const{getPrefixCls:Sa,direction:qn,upload:On}=ne.useContext(nt.E_),Nn=Sa("upload",wn),aa=Object.assign(Object.assign({onBatchStart:Yt,onError:Vn,onProgress:Qn,onSuccess:zn},Se),{data:En,multiple:xn,action:Bn,accept:ga,supportServerRender:ta,prefixCls:Nn,disabled:Yn,beforeUpload:oa,onChange:void 0});delete aa.className,delete aa.style,(!Rt||Yn)&&delete aa.id;const[fa,Pa]=Pe(Nn),[ya]=(0,Ze.Z)("Upload",Ye.Z.Upload),{showRemoveIcon:La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:At,previewIcon:vt,downloadIcon:Ct}=typeof Qe=="boolean"?{}:Qe,Nt=(Zt,dn)=>Qe?ne.createElement(Bt,{prefixCls:Nn,listType:ot,items:$n,previewFile:en,onPreview:Ue,onDownload:Wt,onRemove:na,showRemoveIcon:!Yn&&La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:At,previewIcon:vt,downloadIcon:Ct,iconRender:Hn,locale:Object.assign(Object.assign({},ya),We),isImageUrl:In,progress:Wn,appendAction:Zt,appendActionVisible:dn,itemRender:tn,disabled:Yn}):Zt,fn=ze()(`${Nn}-wrapper`,rt,ca,Pa,On==null?void 0:On.className,{[`${Nn}-rtl`]:qn==="rtl",[`${Nn}-picture-card-wrapper`]:ot==="picture-card",[`${Nn}-picture-circle-wrapper`]:ot==="picture-circle"}),Gn=Object.assign(Object.assign({},On==null?void 0:On.style),mt);if(Ft==="drag"){const Zt=ze()(Pa,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Nn}-drag-hover`]:sa==="dragover",[`${Nn}-disabled`]:Yn,[`${Nn}-rtl`]:qn==="rtl"});return fa(ne.createElement("span",{className:fn},ne.createElement("div",{className:Zt,style:Gn,onDrop:An,onDragOver:An,onDragLeave:An},ne.createElement(Le,Object.assign({},aa,{ref:Jn,className:`${Nn}-btn`}),ne.createElement("div",{className:`${Nn}-drag-container`},Rt))),Nt()))}const Xn=ze()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:Yn}),Dn=(Zt=>ne.createElement("div",{className:Xn,style:Zt},ne.createElement(Le,Object.assign({},aa,{ref:Jn}))))(Rt?void 0:{display:"none"});return fa(ot==="picture-card"||ot==="picture-circle"?ne.createElement("span",{className:fn},Nt(Dn,!!Rt)):ne.createElement("span",{className:fn},Dn,Nt()))};var Jt=ne.forwardRef(Gt),sn=function(Se,De){var $e={};for(var Re in Se)Object.prototype.hasOwnProperty.call(Se,Re)&&De.indexOf(Re)<0&&($e[Re]=Se[Re]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Re=Object.getOwnPropertySymbols(Se);st<Re.length;st++)De.indexOf(Re[st])<0&&Object.prototype.propertyIsEnumerable.call(Se,Re[st])&&($e[Re[st]]=Se[Re[st]]);return $e},Un=ne.forwardRef((Se,De)=>{var{style:$e,height:Re}=Se,st=sn(Se,["style","height"]);return ne.createElement(Jt,Object.assign({ref:De},st,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Re})}))});const lt=Jt;lt.Dragger=Un,lt.LIST_IGNORE=Et;var gn=lt},72665:function(Me,it){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,Xe=ne?Symbol.for("react.portal"):60106,ze=ne?Symbol.for("react.fragment"):60107,ue=ne?Symbol.for("react.strict_mode"):60108,Ce=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,xe=ne?Symbol.for("react.async_mode"):60111,Te=ne?Symbol.for("react.concurrent_mode"):60111,_e=ne?Symbol.for("react.forward_ref"):60112,ke=ne?Symbol.for("react.suspense"):60113,je=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case xe:case Te:case ze:case Ce:case ue:case ke:return te;default:switch(te=te&&te.$$typeof,te){case He:case _e:case a:case ae:case le:return te;default:return re}}case Xe:return re}}}function ee(te){return z(te)===Te}oe=xe,oe=Te,oe=He,oe=le,oe=ce,oe=_e,oe=ze,oe=a,oe=ae,oe=Xe,oe=Ce,oe=ue,oe=ke,oe=function(te){return ee(te)||z(te)===xe},oe=ee,oe=function(te){return z(te)===He},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===_e},oe=function(te){return z(te)===ze},oe=function(te){return z(te)===a},it.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===Xe},oe=function(te){return z(te)===Ce},oe=function(te){return z(te)===ue},oe=function(te){return z(te)===ke},oe=function(te){return typeof te=="string"||typeof te=="function"||te===ze||te===Te||te===Ce||te===ue||te===ke||te===je||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===_e||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Me,it,oe){"use strict";Me.exports=oe(72665)},64217:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return He}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ze="".concat(ce," ").concat(Xe).split(/[\s\n]+/),ue="aria-",Ce="data-";function le(xe,Te){return xe.indexOf(Te)===0}function He(xe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e;Te===!1?_e={aria:!0,data:!0,attr:!0}:Te===!0?_e={aria:!0}:_e=(0,ne.Z)({},Te);var ke={};return Object.keys(xe).forEach(function(je){(_e.aria&&(je==="role"||le(je,ue))||_e.data&&le(je,Ce)||_e.attr&&ze.includes(je))&&(ke[je]=xe[je])}),ke}}}]);
|