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.
150 lines
411 KiB
150 lines
411 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[9715],{26227:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},41464:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},61481:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},33853:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},12893:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},32134:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},38819:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Te}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(Ae,je){return Se.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Ie}))},se=Se.forwardRef(Fe),Te=se},21697:function(Ge,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function Ge(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Ge))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[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var ot=[];function re(ne,a){var y=ot.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=ot.pop();return ne===void 0?new go.Point:ne}function Se(ne){ot.push(ne)}function Ze(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ie=b-z,ge=NaN,me=NaN;if(oe===0)if(ie===0)ne===y&&(ge=ne,me=a);else{var le=(x-ee)/ie,Ce=x-le*b;ge=ne,me=le*ge+Ce}else if(ie===0){var Be=(a-E)/oe,lt=a-Be*ne;ge=b,me=Be*ge+lt}else{var Be=(a-E)/oe,le=(x-ee)/ie,lt=a-Be*ne,Ce=x-le*b;ge=(Ce-lt)/(Be-le),me=Be*ge+lt}return te.x=ge,te.y=me,te}function Ie(ne,a,y,E,b,x,z,ee,te,oe,ie,ge,me,le){var Ce=1-te,Be=te,lt=ne*Ce+y*Be,Gt=a*Ce+E*Be,_t=y*Ce+b*Be,he=E*Ce+x*Be,$e=b*Ce+z*Be,Oe=x*Ce+ee*Be,Xe=lt*Ce+_t*Be,rt=Gt*Ce+he*Be,mt=_t*Ce+$e*Be,St=he*Ce+Oe*Be,Ft=Xe*Ce+mt*Be,st=rt*Ce+St*Be;oe.x=lt,oe.y=Gt,ie.x=Xe,ie.y=rt,ge.x=Ft,ge.y=st,me.x=mt,me.y=St,le.x=$e,le.y=Oe}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,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(ne,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(ne,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(ne,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 Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.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 Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.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 Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.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 Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.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 Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.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 Te=[];function ze(){var ne=Te.pop();return ne===void 0?[]:ne}function Ae(ne){ne.length=0,Te.push(ne)}function je(ne){for(var a=ze(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function _e(ne){var a=Re(ne),y=ze();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 Ae(a),y}function Re(ne){for(var a=je(ne),y=ze(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ze(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,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<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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Re(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()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,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<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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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 Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.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=ce,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,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(ne,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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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(ne,a,y){var E=se/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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.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 Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.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),oe=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,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),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-oe)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.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 Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.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 Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,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(ne,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(ne,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(ne,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*se;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*se,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*se,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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=se*.4;var oe=ae(),ie=ae(),ge=ae(),me=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ie,ge,me,me);var le=ae(),Ce=ae(),Be=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Be,le,Ce);var lt=ae(),Gt=ae(),_t=ae();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,lt,Gt,_t,me,me);var he=ae(),$e=ae(),Oe=ae();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Oe,he,$e),te.add(new go.PathSegment(go.PathSegment.Move,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,he.x*a,he.y*y,$e.x*a,$e.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,oe.x*a,oe.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,_t.x*a,_t.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,Ce.x*a,Ce.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,_t.x*a,_t.y*y,lt.x*a,lt.y*y,Gt.x*a,Gt.y*y).close()),Se(oe),Se(ie),Se(ge),Se(me),Se(le),Se(Ce),Se(Be),Se(lt),Se(Gt),Se(_t),Se(he),Se($e),Se(Oe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ie=ae(),ge=ae(),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)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var le=re(oe.x,oe.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ie,ge);var Ce=re(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+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=se*.35;var Be=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Be.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 lt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(lt),Se(te),Se(oe),Se(ie),Se(ge),Se(le),Se(Ce),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,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*se;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(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*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(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.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,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.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,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,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(ne,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 Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.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=Ze(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ze(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.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 oe=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);oe.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=Ze(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ge.x,ge.y),ge=Ze(.7,te/y,1,.5,0,z/y,1,z/y,ge),oe.spot2=new go.Spot(ge.x,ge.y),Se(ge),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.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 oe=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);oe.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()),oe.spot1=new go.Spot(0,x/y);var ge=Ze(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ge.x,ge.y),Se(ge),oe}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.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=Ze(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.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=Ze(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.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=Ze(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,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(ne,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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*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-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*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-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.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,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*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-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*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-se*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-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.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-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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-se*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-se*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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,te=.5,oe=.1,ie=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ge=.05,me=se*ge;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,oe*y,(te+me)*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=se*ge,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=se*ge,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=se*ge,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=se*ge,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y,(te-me)*a,(oe-ge)*y)),le.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 Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.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 oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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 oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,te=.9,oe=.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,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=se*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=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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(ne,a,y){var E=new go.Geometry,b=.5,x=se*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(ne,a,y){var E=new go.Geometry,b=.5,x=se*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 oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.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=se*.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(ne,a,y){var E=new go.Geometry,b=.5,x=se*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 oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,oe=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(oe+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,oe*y+ge,te*a+ie,(oe-ee)*y+ge,(te-ee+z*.5)*a+ie,(oe-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te-ee+z*.5)*a+ie,(oe+z)*y+ge,te*a+ie,(oe+ee)*y+ge).close()),z=se*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ie,(oe+ee)*y+ge,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,oe*y+ge,te*a+ie,(oe-ee)*y+ge,(te-ee+z*.5)*a+ie,(oe-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te-ee+z*.5)*a+ie,(oe+z)*y+ge,te*a+ie,(oe+ee)*y+ge).close()),z=se*.2,ee=.2,te=.5,oe=.5;var Ce=new go.PathFigure((te-ee)*a+ie,oe*y+ge,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),z=se*.4,ee=.4,te=.8,oe=.5;var Be=new go.PathFigure(te*a+ie,(oe-ee)*y+ge,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,oe*y+ge,te*a+ie,(oe+ee)*y+ge,(te+ee-z*.5)*a+ie,(oe+z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te+ee-z*.5)*a+ie,(oe-z)*y+ge,te*a+ie,(oe-ee)*y+ge).close()),z=se*.8,ee=.8,te=1,oe=.5;var lt=new go.PathFigure(te*a+ie,(oe-ee)*y+ge,!0);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,oe*y+ge,te*a+ie,(oe+ee)*y+ge,(te+ee-z*.5)*a+ie,(oe+z)*y+ge)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te+ee-z*.5)*a+ie,(oe-z)*y+ge,te*a+ie,(oe-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ie=ae(),ge=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ie,ge);var me=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=se*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ie,ge),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(oe),Se(ie),Se(ge),Se(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,le=0,Ce=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ce.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)),Ce.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)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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,oe=Math.PI/4,ie=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ge=ie*.5,me=z,le=z,Ce=ie*me,Be=ie*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ce+me)/2)*a,(te+(le+Be)/2)*y,(ee-me)*a,(te+Be)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-me)*a,(te-Be)*y,(ee-Ce)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ce)*a,(te-le)*y,(ee+me)*a,(te-Be)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Be)*y,(ee+(Ce+me)/2)*a,(te+(le+Be)/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 lt=new go.PathFigure(.2*a,y,!1);E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Gt=new go.PathFigure(.8*a,y,!1);return E.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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=se*.1,te=.2,oe=.9,ie=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,te=.8,oe=.9;var ge=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,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(ne,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,oe=se*.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-oe)*y,(ie-oe)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+oe)*a,(ge-te)*y,(ie+te)*a,(ge-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+oe)*y,(ie+oe)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-oe)*a,(ge+te)*y,(ie-te)*a,(ge+oe)*y)),te=.1,oe=se*.1,ie=.4,ge=.9;var le=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-oe)*y,(ie-oe)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+oe)*a,(ge-te)*y,(ie+te)*a,(ge-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+oe)*y,(ie+oe)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-oe)*a,(ge+te)*y,(ie-te)*a,(ge+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,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=se*.05,me=.175,le=.95,ee=new go.PathFigure((me-ie)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.375,le=.95,te=new go.PathFigure((me-ie)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.625,le=.95,oe=new go.PathFigure((me-ie)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.825,le=.95,Ce=new go.PathFigure((me-ie)*a,le*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y).close());var Be=new go.PathFigure(0,y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,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=se*.05,oe=.35,ie=.775,ge=new go.PathFigure((oe-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-ee)*y,(oe-ee)*a,(ie-te)*y,(oe-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ie*y,(oe+te)*a,(ie-ee)*y,(oe+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie+ee)*y,(oe+ee)*a,(ie+te)*y,(oe+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ie*y,(oe-te)*a,(ie+ee)*y,(oe-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.3,x=se*.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 oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.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 oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.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=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.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()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=8,x=b*se,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 oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=15,x=b*se,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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")},11081: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 Ge={},ot="5.0",re={},ae=null,Se=!1,Ze=!1,Ie=null,ce=!1,Fe=null,se=null,Te=0;Te<arguments.length;Te++){var ze=arguments[Te];if(ze!==null)switch(typeof ze){case"number":ot=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=ze:Ie=ze;break;case"object":typeof ze.is3D!="undefined"?ae=ze:re=ze;break;case"boolean":Se=ze,Ze=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Ze&&(Se=!0)),Ie!==null&&re.id===void 0&&(re.id=Ie);var Ae="",je="",_e=!1,Re=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Ge.setHTML5Codebase=function(ye,xe){se=ye,St(ye,xe)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(ye,xe){var Ye=parseFloat(ye);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Fe=ye,mt(ye,xe)},Ge.getHTML5CodebaseVersion=function(){return ne},Ge.getParameters=function(){return re},Ge.setFontsCSSURL=function(ye){z=ye},Ge.setGiacJSURL=function(ye){},Ge.setJNLPFile=function(ye){Ae=ye},Ge.setJNLPBaseDir=function(ye){},Ge.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var xe="auto",Ye=re.id,yt,et=!1,it=0;it<arguments.length;it++){var de=arguments[it];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?xe=de:Ye=arguments[it]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(yt=de)}Je();function Je(){if(!ce){setTimeout(Je,200);return}xe=Xe(xe);var tt=yt||document.getElementById(Ye);if(!tt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(tt,!1),re.width===void 0&&tt.clientWidth&&(re.width=tt.clientWidth),re.height===void 0&&tt.clientHeight&&(re.height=tt.clientHeight),!(re.width&&re.height)&&xe==="html5"&&(delete re.width,delete re.height),Re=xe,xe==="screenshot")Gt(tt,re);else{var zt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?zt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(zt=(!oe()||ye())&&ie()),zt?(Re="screenshot",he(tt,re,et,xe)):lt(tt,re,et)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function ie(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ae},Ge.isJavaInstalled=function(){return!1};var ge=function(ye){var xe=function(it){var de=JSON.parse(it),Je=function(pt){return pt.type=="G"||pt.type=="E"},tt=de.elements?de.elements.filter(Je)[0]:de;if(!tt||!tt.url){Ye();return}re.fileName=tt.url,me(tt.settings||{}),ae.is3D=!0;var zt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||tt.previewUrl,zt+"GeoGebra_loading.png",zt+"applet_play.png"),ye()},Ye=function(){re.onError&&re.onError(),Ft("Error: Fetching material (id "+re.material_id+") failed.",re)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+re.material_id+"?scope=basic";le("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(et),xe,Ye)};function me(ye){var xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){ye[Ye]=!!ye[Ye]}),xe.forEach(function(Ye){re[Ye]===void 0&&ye[Ye]!==void 0&&(re[Ye]=ye[Ye])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(ye,xe,Ye){var yt=new XMLHttpRequest;yt.open("GET",ye),yt.onload=function(){xe(yt.responseText)},yt.onerror=Ye,yt.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Re},Ge.setPreviewImage=function(ye,xe,Ye){E=ye,b=xe,x=Ye},Ge.removeExistingApplet=function(ye,xe){var Ye;typeof ye=="string"&&(ye=document.getElementById(ye)),Re=null;var yt=null;for(Ye=0;Ye<ye.childNodes.length;Ye++){var et=ye.childNodes[Ye],it=et.className;it==="applet_screenshot"?xe?(et.style.display="block",Re="screenshot"):et.style.display="none":it!=="applet_scaler prerender"&&(ye.removeChild(et),yt=it&&it.indexOf("appletParameters")!=-1?et.id:null,Ye--)}var de=re.id!==void 0?re.id:yt,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Ge.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var ye=Ge.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Ge.stopAnimation=function(){var ye=Ge.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var ye=re.id!==void 0?re.id:"ggbApplet";return window[ye]},Ge.resize=function(){};var Ce=function(ye,xe,Ye){var yt=document.createElement("param");yt.setAttribute("name",xe),yt.setAttribute("value",Ye),ye.appendChild(yt)},Be=function(ye){return ye&&ye!=="false"},lt=function(ye,xe,Ye){te(ne)<=4.2&&(Ye=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var it=xe.width,de=xe.height;if(xe.disableAutoScale=xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():xe.disableAutoScale,xe.width!==void 0)if(te(ne)<=4.4)Be(xe.showToolBar)&&(xe.height-=7),Be(xe.showAlgebraInput)&&(xe.height-=37),xe.width<605&&Be(xe.showToolBar)&&(xe.width=605,it=605);else{var Je=100;(Be(xe.showToolBar)||Be(xe.showMenuBar))&&(xe.hasOwnProperty("customToolBar")&&(xe.customToolbar=xe.customToolBar),Je=Be(xe.showMenuBar)?245:155),it<Je&&(xe.width=Je,it=Je)}et.style.border="none",et.style.display="inline-block";for(var tt in xe)xe.hasOwnProperty(tt)&&tt!=="appletOnLoad"&&et.setAttribute("data-param-"+tt,xe[tt]);z&&et.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(ye,xe)},window.addEventListener("resize",function(bt){Ge.resize()});var zt=typeof xe.appletOnLoad=="function"?xe.appletOnLoad:function(){};if(!Ye&&xe.width!==void 0){xe.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var pt=ye.querySelector(".applet_scaler.prerender"),we=pt!==null;if(we)var ve=pt.querySelector(".ggb_preview");else{var ve=Oe(it,de,xe.borderColor,!1);pt=document.createElement("div"),pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.style.width=it+"px",pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),te(ne)>=5?(xe.appletOnLoad=function(bt){var Ht=ye.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),zt(bt)},we||pt.appendChild(ve)):et.appendChild(ve),pt.appendChild(et),we||ye.appendChild(pt),setTimeout(function(){Ge.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(et),ye.appendChild(Pe),xe.appletOnLoad=function(bt){Ge.resize(),zt(bt)}}function ke(bt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(bt,Ht.appletOnLoad):renderGGBElement(bt),Ft("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function Ke(bt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:bt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){ke(Et.article,Et.params)}),html5AppletsToProcess=null)},te(ne)<5&&(bt.className+=" geogebraweb")):ke(bt,Ht)}if(yt){scriptLoadStarted=!0;for(var ut=0;ut<et.childNodes.length;ut++){var $t=et.childNodes[ut].tagName;$t==="TABLE"&&(et.removeChild(et.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Lt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Lt!=null&&Lt.parentNode.removeChild(Lt)}var At=document.createElement("script"),kt=function(){Ke(et,xe)};At.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=At.src,Ft("GeoGebra HTML5 codebase loaded: '"+je+"'.",xe),!se&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kt()):je.requirejs?__webpack_require__.e(981).then(function(){var bt=[__webpack_require__(60981)];kt.apply(null,bt)}.bind(this)).catch(__webpack_require__.oe):(At.onload=kt,ye.appendChild(At))}else Ke(et,xe);xe.height=de,xe.width=it},Gt=function(ye,xe,Ye){var yt=Oe(xe.width,xe.height,xe.borderColor,Ye),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=xe.width+"px",et.style.height=xe.height+"px",et.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),et.appendChild(yt);var it=GGBAppletUtils.getScale(xe,ye,Ye);Ye?(ye.appendChild($e()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),ye.appendChild(et),it!==1&&!isNaN(it)&&(GGBAppletUtils.scaleElement(et,it),et.style.width=xe.width+"px",et.style.height=xe.height+"px",et.parentNode.style.width=xe.width*it+"px",et.parentNode.style.height=xe.height*it+"px"),Ge.resize=function(){_t(ye,yt,et,Ye)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function _t(ye,xe,Ye,yt){if(ye.contains(xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var et=GGBAppletUtils.getScale(re,ye,yt);Ye.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(Ye,et),Ye.parentNode.style.width=re.width*et+"px",Ye.parentNode.style.height=re.height*et+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=re.width+"px",Ye.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(ye,xe){xe.appendChild(ye)};var he=function(ye,xe,Ye,yt){Gt(ye,xe,!0);for(var et=function(){var Je=[];for(de=0;de<ye.childNodes.length;de++)Je.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var tt=window.GGBT_wsf_view.renderFullScreen(ye,xe.id),zt=document.getElementById("fullscreencontainer"),pt=jQuery(ye).find(".fullscreencontent");pt.length>0?(tt.remove(),pt.attr("id","fullscreencontent").show(),jQuery(zt).append(pt),window.dispatchEvent(new Event("resize"))):lt(tt,xe,!1),window.GGBT_wsf_view.launchFullScreen(zt)}else Re=yt,lt(ye,xe,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)ye.removeChild(Je[de])},it=ye.getElementsByClassName("ggb_preview_play"),de=0;de<it.length;de++)it[de].addEventListener("click",et,!1),it[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},$e=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var xe='.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=xe:Ye.appendChild(document.createTextNode(xe)),document.getElementsByTagName("head")[0].appendChild(Ye)}return ye},Oe=function(ye,xe,Ye,yt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=ye-2+"px",et.style.height=xe-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var it="lightgrey";Ye!==void 0&&(Ye==="none"?it="transparent":it=Ye),et.style.border="1px solid "+it;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 Je,tt,zt;if(!yt){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,tt=360,tt>ye/4*3&&(tt=ye/4*3),zt=tt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",tt),Je.setAttribute("height",zt);var pt=(ye-tt)/2,we=(xe-zt)/2;Je.style.left=pt+"px",Je.style.top=we+"px",et.appendChild(Je)}}return et.appendChild(de),et},Xe=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],mt=function(ye,xe){if(ne=ye,xe){St(ne,!0);return}var Ye=!Se;if(Ye){var yt=te(ne);!isNaN(yt)&&yt<4.4&&(Ye=!1)}var et,it;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?it=ne:de===0?it=et+ne:it="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in rt)if(ne.slice(rt[Je].length*-1)===rt[Je]||ne.slice((rt[Je].length+1)*-1)===rt[Je]+"/"){St(it,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Be(re.showToolBar)&&!Be(re.showMenuBar)&&!Be(re.showAlgebraInput)&&!Be(re.enableRightClick)&&(!re.appName||re.appName=="classic")?it+="webSimple/":it+="web3d/",St(it,!1)},St=function(ye,xe){if(ye.requirejs){je=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),je=ye,xe===null&&(xe=ye.indexOf("http")===-1),_e=xe,a="web.nocache.js",y=!1;var Ye=je.split("/");Ye.length>1&&(!xe&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):rt.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=ye.split("/"),ne=Ye[Ye.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var yt=parseFloat(ne);yt!==NaN&&yt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),mt("5.0",xe))},Ft=function(ye,xe){window.console&&window.console.log&&(!xe||typeof xe.showLogging=="undefined"||xe.showLogging&&xe.showLogging!=="false")&&console.log(ye)};re.material_id!==void 0?ge(st):st();function st(){var ye=ot;Fe!==null?ye=Fe:parseFloat(ye)<5&&(ye="5.0"),mt(ye,!1),se!==null&&St(se,_e),ce=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function ot(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,Fe,se,Te,ze,Ae){var je=null;if(Ae!=null&&Ae!="")for(var _e=ce.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Ae+" ")>-1){je=_e;break}else _e=_e.parentNode;var Re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(je)Re=je.offsetWidth,ne=Math.max(Te?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Re&&(ze===void 0||!ze)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((se===void 0||!se)&&Fe>0&&Fe+y<Re?Re=Fe:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ne-=x)),{width:Re,height:ne}}function ae(ce,Fe,se,Te,ze){if(ce.isScreenshoGenerator)return 1;var Ae=Te!==void 0&&Te,je=ce.noScaleMargin!=null&&ce.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},Re=_e(ce.autoHeight),ne=re(Fe,ce.width,se,Re,Ae&&window.GGBT_wsf_view||je,ze),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ae?1:ne.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(ce,Fe,se){var Te=1,ze,Ae=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ae=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Te=parseFloat(ce.scale),(isNaN(Te)||Te===null||Te===0)&&(Te=1),Te>1&&(Ae=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))ze=ae(ce,Fe,Ae,se,ce.scaleContainerClass);else return Te;return Ae&&(!ce.hasOwnProperty("scale")||Te===1)?ze:Math.min(Te,ze)}function Ze(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=ce.getBoundingClientRect(),ze=(Fe-Te.width)/2,Ae=(se-Te.height)/2;Ae<0&&(Ae=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?ce.style.left="40px":ce.style.left=ze+"px",ce.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?ce.style.top="40px":ce.style.top=Ae+"px",ce.style.left=ze+"px")}function Ie(ce,Fe){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Te=Se(Fe,ce);Ge()&&se.setAttribute("data-param-scale",Te);for(var ze=null,Ae=0;Ae<ce.childNodes.length;Ae++)if(ce.childNodes[Ae].className!==void 0&&ce.childNodes[Ae].className.match(/^applet_scaler/)){ze=ce.childNodes[Ae];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var je=Fe.id!==void 0?Fe.id:"ggbApplet",_e=window[je];(_e==null||!_e.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(Te)&&Te!==1?(ze.parentNode.style.width=Fe.width*Te+"px",ze.parentNode.style.height=Fe.height*Te+"px",ot(ze,Te)):(ot(ze,1),ze.parentNode.style.width=Fe.width+"px",ze.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Ge,positionCenter:Ze,getScale:Se,scaleElement:ot}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,ot){}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(Ge){var ot=s[L].bindings;s[L].bindings=function(){for(var re=ot?ot():{},ae=Ge[webModule.__softPermutationId],Se=O;Se<ae.length;Se++){var Ze=ae[Se];re[Ze[O]]=Ze[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(Ge){function ot(ae){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=Se();if(Ze){ae();return}function Ie(){if(!Ze){if(!Se())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ce=setInterval(function(){Ie()},$)}function re(ae){var Se=u(),Ze=Se.body,Ie=Se.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ae,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(Ie)}ot(function(){re(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var ot=u(),re=ot.body,ae=ot.createElement(_);ae.language=ab,ae.text=Ge,re.appendChild(ae),re.removeChild(ae)};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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var ot=c[Ge];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function Ge(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var Te=ce.lastIndexOf(tb,Math.min(se,Fe));return Te>=O?ce.substring(O,Te+P):W}function ot(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Ge(Fe.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),Fe=O;Fe<ce.length;++Fe)if(ce[Fe].src.indexOf(xb)!=-1)return Ge(ce[Fe].src);return W}function Se(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ze(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ie=re();return Ie==W&&(Ie=ae()),Ie==W&&(Ie=Se()),Ie==W&&Ze()&&(Ie=Ge(o.location.href)),Ie=ot(Ie),Ie}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],ot=O,re=[],ae=[];function Se(ce){var Fe=ae[ce](),se=re[ce];if(Fe in se)return Fe;var Te=[];for(var ze in se)Te[se[ze]]=ze;throw r&&r(ce,Te,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in re)re.hasOwnProperty(Fe)&&(ce[Fe]=Se(Fe));return ce},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var Ie=Ze.indexOf(Db);Ie!=-1&&(ot=parseInt(Ze.substring(Ie+P),$),Ze=Ze.substring(O,Ie))}catch(ce){}return webModule.__softPermutationId=ot,C(Ze+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})()},67303:function(Ge,ot,re){"use strict";re.d(ot,{Ax:function(){return Ie},Ds:function(){return ce},KI:function(){return se},SI:function(){return Ze},f1:function(){return Se}});var ae=re(90524);function Se(Te){let ze=!0;if(Te.length>0){for(let Ae=0;Ae<Te.length;Ae++)if(Te[Ae].compile_success==0||!Te[Ae].compile_success){ze=!1;break}}else ze=!1;return ze}function Ze(Te,ze=""){let Ae=[];for(let je=0;je<Te.length;je++){let _e=Te[je],Re=ze?`${ze}/${_e.name}`:`${_e.name}`;Ae.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:Re})}return Ae}function Ie(Te,ze,Ae){for(let je=0;je<Te.length;je++){let _e=Te[je];if(_e.key===ze){_e.children=Ae;break}_e.children&&Ie(_e.children,ze,Ae)}return Te}function ce(Te,ze,Ae){let je;return function(){let _e=this,Re=arguments,ne=function(){je=null,Ae||Te.apply(_e,Re)},a=Ae&&!je;clearTimeout(je),je=setTimeout(ne,ze),a&&Te.apply(_e,Re)}}const Fe=!0,se=ae.Z.API_SERVER},50111:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return _t}});var ae=re(59301),Se=re(76560),Ze=re(24905),Ie=re(12893),ce=re(32134),Fe=re(82093),se=re(78241),Te=re(57809),ze={},Ae=Object.defineProperty,je=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ne=(he,$e,Oe)=>$e in he?Ae(he,$e,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):he[$e]=Oe,a=(he,$e)=>{for(var Oe in $e||($e={}))_e.call($e,Oe)&&ne(he,Oe,$e[Oe]);if(je)for(var Oe of je($e))Re.call($e,Oe)&&ne(he,Oe,$e[Oe]);return he},y=(he,$e,Oe)=>new Promise((Xe,rt)=>{var mt=st=>{try{Ft(Oe.next(st))}catch(ye){rt(ye)}},St=st=>{try{Ft(Oe.throw(st))}catch(ye){rt(ye)}},Ft=st=>st.done?Xe(st.value):Promise.resolve(st.value).then(mt,St);Ft((Oe=Oe.apply(he,$e)).next())});const E=Ze.default.Group,b=({classroomList:he,loading:$e,user:Oe,exercise_id:Xe=null,homework_common_id:rt=null,setitem:mt,item:St,type:Ft,rz:st,dispatch:ye})=>{var xe,Ye,yt,et,it,de,Je,tt;const[zt,pt]=(0,ae.useState)([]);let[we,ve]=(0,ae.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[ke,Ke]=(0,ae.useState)(!1),[ut,$t]=(0,ae.useState)(!1),[Lt]=se.default.useForm();(0,ae.useEffect)(()=>{st&&(we.zydatas=st,ve(a({},we)),St!=null&&St.ec_course_id&&At())},[St,st]);function At(){return y(this,null,function*(){console.log("----",St),yield kt(St==null?void 0:St.ec_major_school_id),yield bt(St==null?void 0:St.ec_year_id),yield Ht(St==null?void 0:St.ec_course_id),Lt.setFieldsValue({ec_course_id:St==null?void 0:St.ec_course_id,ec_major_school_id:St==null?void 0:St.ec_major_school_id,ec_point_ids:St==null?void 0:St.ec_point_ids,ec_year_id:St==null?void 0:St.ec_year_id})})}function kt(Et){return y(this,null,function*(){const Kt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Et}/ec_years/get_year_list.json`,{method:"get"});we.jbdatas=Kt==null?void 0:Kt.data,ve(a({},we)),Lt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function bt(Et){return y(this,null,function*(){const Kt=yield(0,Fe.ZP)(`/api/ec_years/${Et}/ec_courses/get_courses.json`,{method:"get"});we.kcdatas=Kt==null?void 0:Kt.data,ve(a({},we)),Lt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Ht=Et=>y(void 0,null,function*(){const Kt=yield(0,Fe.ZP)(`/api/ec_courses/${Et}/ec_points.json`,{method:"get",params:{ec_course_id:Et}});we.zsdatas=Kt==null?void 0:Kt.data,ve(a({},we))});return ae.createElement("div",{className:ze.from},ae.createElement(se.default,{form:Lt,layout:"inline",onValuesChange:Et=>{console.log("----",Et),Et.ec_major_school_id&&(we.jbdatas=[],we.kcdatas=[],we.zsdatas=[],ve(a({},we)),kt(Et.ec_major_school_id)),Et.ec_year_id&&(we.kcdatas=[],we.zsdatas=[],ve(a({},we)),bt(Et.ec_year_id)),Et.ec_course_id&&(we.zsdatas=[],ve(a({},we)),Ht(Et.ec_course_id))},onFinish:Et=>y(void 0,null,function*(){mt(Et)})},ae.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ae.createElement(Te.default,{style:{width:150},disabled:((xe=we.zydatas)==null?void 0:xe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ye=we==null?void 0:we.zydatas)==null?void 0:Ye.map((Et,Kt)=>ae.createElement(Te.default.Option,{key:Kt,value:Et==null?void 0:Et.ec_major_school_id},Et==null?void 0:Et.name)))),ae.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ae.createElement(Te.default,{style:{width:150},disabled:((yt=we.jbdatas)==null?void 0:yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(et=we==null?void 0:we.jbdatas)==null?void 0:et.map((Et,Kt)=>ae.createElement(Te.default.Option,{key:Kt,value:Et==null?void 0:Et.ec_year_id},Et==null?void 0:Et.year)))),ae.createElement(se.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ae.createElement(Te.default,{style:{width:150},disabled:((it=we.kcdatas)==null?void 0:it.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=we==null?void 0:we.kcdatas)==null?void 0:de.map((Et,Kt)=>ae.createElement(Te.default.Option,{key:Kt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name)))),ae.createElement(se.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ae.createElement(Te.default,{onChange:()=>{Lt.submit()},style:{width:150},mode:"multiple",disabled:((Je=we.zsdatas)==null?void 0:Je.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(tt=we==null?void 0:we.zsdatas)==null?void 0:tt.map((Et,Kt)=>ae.createElement(Te.default.Option,{key:Kt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name))))))};var x=(0,Se.connect)(({classroomList:he,loading:$e,globalSetting:Oe,user:Xe})=>({classroomList:he,globalSetting:Oe,loading:$e.effects,user:Xe}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(he,$e,Oe)=>$e in he?z(he,$e,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):he[$e]=Oe,le=(he,$e)=>{for(var Oe in $e||($e={}))ie.call($e,Oe)&&me(he,Oe,$e[Oe]);if(oe)for(var Oe of oe($e))ge.call($e,Oe)&&me(he,Oe,$e[Oe]);return he},Ce=(he,$e)=>ee(he,te($e)),Be=(he,$e,Oe)=>new Promise((Xe,rt)=>{var mt=st=>{try{Ft(Oe.next(st))}catch(ye){rt(ye)}},St=st=>{try{Ft(Oe.throw(st))}catch(ye){rt(ye)}},Ft=st=>st.done?Xe(st.value):Promise.resolve(st.value).then(mt,St);Ft((Oe=Oe.apply(he,$e)).next())});const lt=Ze.default.Group,Gt=({classroomList:he,loading:$e,user:Oe,exercise_id:Xe=null,homework_common_id:rt=null,setitem:mt,type:St,dispatch:Ft})=>{var st,ye;let[xe,Ye]=(0,ae.useState)([{}]),[yt,et]=(0,ae.useState)([]);function it(){return Be(this,null,function*(){var Je,tt,zt;let pt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Xe,homework_common_id:rt}});if(((Je=pt==null?void 0:pt.data)==null?void 0:Je.length)>0){let we=[];(tt=pt==null?void 0:pt.data)==null||tt.map(ve=>{var Pe;(Pe=ve==null?void 0:ve.ec_point_ids)==null||Pe.map(ke=>{we.push(ke)})}),mt(Ce(le({},(zt=pt==null?void 0:pt.data)==null?void 0:zt[0]),{ec_point_ids:we})),Ye(pt==null?void 0:pt.data)}})}(0,ae.useEffect)(()=>{var Je,tt;(tt=(Je=Oe==null?void 0:Oe.userInfo)==null?void 0:Je.course)!=null&&tt.course_school_id&&de()},[(ye=(st=Oe==null?void 0:Oe.userInfo)==null?void 0:st.course)==null?void 0:ye.course_school_id]);function de(){return Be(this,null,function*(){var Je,tt;const zt=yield(0,Fe.ZP)(`/api/schools/${(tt=(Je=Oe==null?void 0:Oe.userInfo)==null?void 0:Je.course)==null?void 0:tt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});et(zt==null?void 0:zt.data),(rt||Xe)&&it()})}return ae.createElement("div",null,ae.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),xe==null?void 0:xe.map((Je,tt)=>ae.createElement("div",{key:tt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ae.createElement(x,{rz:yt,item:Je,type:tt,setitem:zt=>{xe.splice(tt,1,zt),Ye([...xe]);let pt=[];xe==null||xe.map(we=>{var ve;(ve=we==null?void 0:we.ec_point_ids)==null||ve.map(Pe=>{pt.push(Pe)})}),mt(Ce(le({},zt),{ec_point_ids:pt}))}}),tt!=0&&ae.createElement(Ie.Z,{onClick:()=>{xe.splice(tt,1),Ye([...xe])},style:{marginLeft:10,fontSize:"20px"}}),ae.createElement(ce.Z,{onClick:()=>{xe.push({}),Ye([...xe])},style:{marginLeft:10,fontSize:"20px"}}))))};var _t=(0,Se.connect)(({classroomList:he,loading:$e,globalSetting:Oe,user:Xe})=>({classroomList:he,globalSetting:Oe,loading:$e.effects,user:Xe}))(Gt)},6077:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return je}});var ae=re(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=re(92310),Ie=re.n(Ze),ce=re(71418),Fe=re(2859),se=re(82093),Te=re(49661),ze=(_e,Re,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(_e,Re)).next())}),je=({data:_e,className:Re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ie,ge]=(0,ae.useState)(!1),[me,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[_e==null?void 0:_e.visible]);const Ce=()=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,Te.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=he,z.current.onload=function(){_t()},ge(!1),le("")}),Be=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},lt=he=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const $e=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:he.dataUrl}});$e!=null&&$e.id&&!x?(yield(0,se.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:$e==null?void 0:$e.id,settings:JSON.stringify(he.state)}})).status===0&&E():$e!=null&&$e.id&&E($e),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),Gt=()=>{const he=document.querySelector('a[href="https://markerjs.com/"]');he&&he.parentNode&&(he.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Oe=>{const Xe=document.querySelector(Oe.name);Xe&&Xe.setAttribute("title",Oe.title)})},_t=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",lt),ee.current.addEventListener("beforeclose",Be),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return ae.createElement(ae.Fragment,null,(_e==null?void 0:_e.visible)&&ae.createElement(ce.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ie()(Se.imageDimensions,Re,ne?Se.fullWidth:""),style:a},ae.createElement("img",{className:Se.img,ref:z}))))}},88615:function(Ge,ot,re){"use strict";var ae=re(59301),Se=re(95237),Ze=re(43604),Ie=re(99313),ce=re(3113),Fe=re(7664),se=re(21697),Te=re(48136),ze=re(59301);const Ae=(0,ae.forwardRef)(({callback:je,showSaveButton:_e,value:Re=""},ne)=>{const a=(0,ae.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:ze.createElement(Se.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>ze.createElement(Ze.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((oe,ie)=>ze.createElement("div",{key:ie},ze.createElement("h1",null,oe.name),ze.createElement(Se.Z,{gutter:[10,10]},oe.data.map((ge,me)=>ze.createElement(Ze.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(Se.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,te)=>ze.createElement(Ze.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((oe,ie)=>ze.createElement("div",{key:ie},oe.name&&ze.createElement("h1",null,oe.name),ze.createElement(Se.Z,{gutter:[10,10]},oe.data.map((ge,me)=>ze.createElement(Ze.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return je&&je(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),ze.createElement("div",{className:se.Z.mathWrap},ze.createElement(Ie.default,{defaultActiveKey:"1",items:x}),ze.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),_e&&ze.createElement("div",{className:se.Z.button},ze.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Ae},42525:function(Ge,ot,re){"use strict";re.d(ot,{z:function(){return x},Z:function(){return z}});var ae=re(59301),Se=re(54580),Ze=re(8591),Ie=re(43418),ce=re(3113),Fe=re(90524),se=re(92725),Te=re(67131),ze=re(61481),Ae=re(89392),je=Object.defineProperty,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ee,te,oe)=>te in ee?je(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[te]=oe,y=(ee,te)=>{for(var oe in te||(te={}))Re.call(te,oe)&&a(ee,oe,te[oe]);if(_e)for(var oe of _e(te))ne.call(te,oe)&&a(ee,oe,te[oe]);return ee},E=(ee,te,oe)=>new Promise((ie,ge)=>{var me=Be=>{try{Ce(oe.next(Be))}catch(lt){ge(lt)}},le=Be=>{try{Ce(oe.throw(Be))}catch(lt){ge(lt)}},Ce=Be=>Be.done?ie(Be.value):Promise.resolve(Be.value).then(me,le);Ce((oe=oe.apply(ee,te)).next())});const{Dragger:b}=Se.default;function x(ee){let te=[];return ee&&ee.length>0&&(te=ee.map(oe=>({uid:oe.id,id:oe.id,name:oe.title+Te.sX+oe.filesize,url:oe.url,filesize:oe.filesize,status:"done",response:{id:oe.id}}))),te}var z=({value:ee,onChange:te,action:oe,data:ie,className:ge,maxSize:me=150,title:le="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Ce=!1,accept:Be="",additionalText:lt,isDragger:Gt,number:_t=1e3,aloneClear:he=!1,realTimeRemove:$e=!0,uploadText:Oe,setFileProgress:Xe,showFileProgress:rt,setIsUpload:mt=()=>{}})=>{const[St,Ft]=(0,ae.useState)(!1);let[st,ye]=(0,ae.useState)(ee||[]),[xe,Ye]=(0,ae.useState)(1);const[yt,et]=(0,ae.useState)(0);(0,ae.useEffect)(()=>{ee&&(xe===1&&ye([...ee]),Ye(2),_t===(ee==null?void 0:ee.length)&&Ft(!0))},[ee]);const it=()=>{setTimeout(()=>{st.pop(),ye([...st])},500)};(0,ae.useEffect)(()=>{(st==null?void 0:st.length)==0&&Ft(!1)},[st==null?void 0:st.length]),rt&&Xe(st.some(tt=>tt.status==="uploading"));const de={multiple:!0,disabled:St,accept:Be,withCredentials:!0,fileList:st,beforeUpload:(tt,zt)=>{const pt=tt.size/1024/1024;return st.concat(zt).length>_t?(st.pop(),ye([...st]),Ze.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${_t}\u4E2A\u6587\u4EF6`),he?Promise.reject():(it(),!1)):pt<me?!0:(Ze.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${me}MB).`),he?Promise.reject():(it(),!1))},data:ie,action:oe||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(tt){var zt,pt,we,ve;if(tt.file.status==="removed"?st=tt.fileList:st=(0,Ae.uniqBy)([...tt.fileList,...st],"uid"),tt.file.status==="done"&&((pt=(zt=tt.file)==null?void 0:zt.response)==null?void 0:pt.status)===-1){Ze.ZP.error((ve=(we=tt.file)==null?void 0:we.response)==null?void 0:ve.message);return}tt.file.status==="uploading"?mt(!0):mt(!1),st.length>=_t?Ft(!0):Ft(!1),ye([...st]),st=st.map(Pe=>{var ke,Ke;return(ke=Pe==null?void 0:Pe.response)!=null&&ke.id&&(Pe.url=(Ke=Pe==null?void 0:Pe.response)==null?void 0:Ke.url),Pe.name.indexOf(Te.sX)===-1&&(Pe.name=`${Pe.name}${Te.sX}${(0,Te.RD)(Pe.size)}`),y({},Pe)}),console.log("info:",tt,st),te(st)},onRemove:tt=>E(void 0,null,function*(){if(!$e)return!0;const zt=()=>E(void 0,null,function*(){if(tt.response?tt.response.id:tt.id){let we=yield(0,se.JZ)(tt.response?tt.response.id:tt.uid);return Promise.resolve(we)}else return!0});return Ce?new Promise((pt,we)=>{Ie.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>E(void 0,null,function*(){const ve=yield zt();Ze.ZP.success("\u5220\u9664\u6210\u529F"),pt(!0)}),onCancel:()=>pt(!1)})}):yield zt()})};function Je(tt){tt.preventDefault(),tt.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${ge||""}`},Gt&&ae.createElement(b,y({},de),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(ze.Z,null)),ae.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",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",me,"MB)"," "),lt),!Gt&&ae.createElement(Se.default,y({},de),ae.createElement(ce.ZP,{disabled:St,key:yt,className:"upload_button"},ae.createElement("i",{className:"iconfont icon-shangchuanfujian mr5 font14"}),le),ae.createElement("span",{onClick:Je,className:"upload_text"},Oe||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${me}MB)`)))}},67131:function(Ge,ot,re){"use strict";re.d(ot,{RD:function(){return _e},sX:function(){return je}});var ae=re(59301),Se=re(90524),Ze=re(92725),Ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,Te=(ne,a,y)=>a in ne?Ie(ne,a,{enumerable:!0,configurable:!0,writable:!0,value:y}):ne[a]=y,ze=(ne,a)=>{for(var y in a||(a={}))Fe.call(a,y)&&Te(ne,y,a[y]);if(ce)for(var y of ce(a))se.call(a,y)&&Te(ne,y,a[y]);return ne},Ae=(ne,a,y)=>new Promise((E,b)=>{var x=te=>{try{ee(y.next(te))}catch(oe){b(oe)}},z=te=>{try{ee(y.throw(te))}catch(oe){b(oe)}},ee=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,z);ee((y=y.apply(ne,a)).next())});const je="\u3000\u3000";function _e(ne){var a=["Bytes","KB","MB","GB","TB"];if(ne==0)return"0 Byte";var y=parseInt(""+Math.floor(Math.log(ne)/Math.log(1024)),10);return(ne/Math.pow(1024,y)).toFixed(1)+" "+a[y]}var Re=({value:ne=[],action:a,onChange:y,className:E,maxSize:b=150,title:x="\u6587\u4EF6\u4E0A\u4F20",accept:z=null})=>{const ee={multiple:!1,fileList:ne,accept:z,withCredentials:!0,beforeUpload:oe=>oe.size/1024/1024<b?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${b}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(oe){var ie,ge,me,le;let Ce=[...oe.fileList];if(Ce=Ce.map(Be=>(Be.name.indexOf(je)===-1&&(Be.name=`${Be.name}${je}${_e(Be.size)}`),ze({},Be))),oe.file.status==="done"&&((ge=(ie=oe.file)==null?void 0:ie.response)==null?void 0:ge.status)===-1){message.error((le=(me=oe.file)==null?void 0:me.response)==null?void 0:le.message),y([]);return}y(Ce)},onRemove:oe=>Ae(void 0,null,function*(){const ie=oe.size/1024/1024;return oe.status==="uploading"?!0:ie<b&&(oe.response?oe.response.id:oe.uid)?yield removeAttachment(oe.response?oe.response.id:oe.id):!0})};function te(oe){oe.preventDefault(),oe.stopPropagation()}return React.createElement("div",{className:`single-upload ${E||""}`},React.createElement(Upload,ze({},ee),React.createElement(Button,{type:"primary",title:ne.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:ne.length>0,ghost:!0},x),React.createElement("span",{onClick:te,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",b,"M)"," ")))}},44905:function(Ge,ot,re){"use strict";re.d(ot,{h:function(){return ee}});var ae=re(59301),Se=re(57809),Ze=re(78241),Ie=re(3113),ce=re(89780),Fe=re.n(ce),se=re(66543),Te=re(59598),ze=Object.defineProperty,Ae=Object.defineProperties,je=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ie)=>oe in te?ze(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[oe]=ie,y=(te,oe)=>{for(var ie in oe||(oe={}))Re.call(oe,ie)&&a(te,ie,oe[ie]);if(_e)for(var ie of _e(oe))ne.call(oe,ie)&&a(te,ie,oe[ie]);return te},E=(te,oe)=>Ae(te,je(oe));const b=Se.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"]};ot.Z=({callback:te,onCancel:oe})=>{const[ie,ge]=(0,ae.useState)("python");function me(Ce){ge(z[Ce][1])}function le(Ce){te(Ce)}return ae.createElement(Ze.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Se.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:me},Object.keys(z).map(Ce=>ae.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ie,options:ge={}}){const me=(0,ae.useRef)(),[le,Ce]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Be=function(lt){const Gt=lt.getValue();oe&&oe(Gt)};return le.on("change",Be),()=>{le.off("change",Be)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ie)},[le,ie]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(me.current&&!le){const Be=Fe().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ce(Be)}},[me.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:me}))}},89389:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Jn}});var ae=re(59301),Se=re(89780),Ze=re.n(Se),Ie=re(76374),ce=re(66543),Fe=re(6313),se=re(25717),Te=re(99498),ze=re(25419),Ae=re(67549),je=re(7664),_e=({value:Le="",className:be,showTextOnly:fe,showLines:gt,style:Ot={}})=>{const wt=(0,ae.useMemo)(()=>"",[Le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:wt}}))},Re=re(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,be,fe)=>be in Le?ne(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Le[be]=fe,ee=(Le,be)=>{for(var fe in be||(be={}))b.call(be,fe)&&z(Le,fe,be[fe]);if(E)for(var fe of E(be))x.call(be,fe)&&z(Le,fe,be[fe]);return Le},te=(Le,be)=>a(Le,y(be));let oe=[{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:Le,title:be,icon:fe,actionName:gt,className:Ot="",children:wt}){function ln(){Le(gt)}return Re.createElement("a",{title:be,className:Ot,onClick:ln},Re.createElement("i",{className:`${fe}`}),wt)}var ge=({watch:Le,showNullButton:be,showNullProgramButton:fe,onActionCallback:gt,fullScreen:Ot,insertTemp:wt,hidetoolBar:ln,extraUse:Wt})=>{const Qt=[...oe,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&Qt.map((yn,_n)=>Re.createElement("li",{key:_n},yn.actionName?Re.createElement(ie,te(ee({},yn),{onActionCallback:gt})):Re.createElement("span",{className:"v-line"}))),be?Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,fe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,wt&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wt}`,onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Wt&&Re.createElement("li",null,Wt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gt})))},me=re(75790),le=re(78241),Ce=re(92832),Be=re(3113),lt=Object.defineProperty,Gt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Xe=(Le,be,fe)=>be in Le?lt(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Le[be]=fe,rt=(Le,be)=>{for(var fe in be||(be={}))$e.call(be,fe)&&Xe(Le,fe,be[fe]);if(he)for(var fe of he(be))Oe.call(be,fe)&&Xe(Le,fe,be[fe]);return Le},mt=(Le,be)=>Gt(Le,_t(be));const St={labelCol:{span:4},wrapperCol:{span:20}};var Ft=({callback:Le,onCancel:be})=>{function fe(gt){Le(gt)}return ae.createElement(le.default,mt(rt({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fe,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ce.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ce.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Be.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},st=re(44905),ye=re(45596),xe=re(43418),Ye=re(95237),yt=re(6077),et=re(59301),it=({callback:Le,onCancel:be})=>{const fe=document.createElement("canvas"),gt=fe.getContext("2d");fe.width=1e3,fe.height=800,gt.fillStyle="#ffffff",gt.fillRect(0,0,fe.width,fe.height);const Ot=fe.toDataURL("image/png");return et.createElement(xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(Ye.Z,{style:{height:"100vh"}},et.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ot,visible:!0,title:String(Date.now())},onOk:wt=>{Le({src:wt.url})},onClose:be})))},de=re(12378);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Je.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var be=1/0;Le.selection.each(function(fe){fe instanceof go.Link||(be=Math.min(fe.position.x,be))}),Le.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(be,fe.position.y))}),Le.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var be=-1/0;Le.selection.each(function(fe){if(!(fe instanceof go.Link)){var gt=fe.actualBounds.x+fe.actualBounds.width;be=Math.max(gt,be)}}),Le.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(be-fe.actualBounds.width,fe.position.y))}),Le.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var be=1/0;Le.selection.each(function(fe){fe instanceof go.Link||(be=Math.min(fe.position.y,be))}),Le.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.position.x,be))}),Le.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var be=-1/0;Le.selection.each(function(fe){if(!(fe instanceof go.Link)){var gt=fe.actualBounds.y+fe.actualBounds.height;be=Math.max(gt,be)}}),Le.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,be-fe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center X");var fe=be.actualBounds.x+be.actualBounds.width/2;Le.selection.each(function(gt){gt instanceof go.Link||gt.move(new go.Point(fe-gt.actualBounds.width/2,gt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center Y");var fe=be.actualBounds.y+be.actualBounds.height/2;Le.selection.each(function(gt){gt instanceof go.Link||gt.move(new go.Point(gt.actualBounds.x,fe-gt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(Le){var be=this.diagram;be.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var fe=new Array;be.selection.each(function(Wt){Wt instanceof go.Link||fe.push(Wt)});for(var gt=0;gt<fe.length-1;gt++){var Ot=fe[gt],wt=Ot.actualBounds.y+Ot.actualBounds.height+Le,ln=fe[gt+1];ln.move(new go.Point(Ot.actualBounds.x,wt))}be.commitTransaction("align Column")},Je.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var be=this.diagram;be.startTransaction("align Row");var fe=new Array;be.selection.each(function(Wt){Wt instanceof go.Link||fe.push(Wt)});for(var gt=0;gt<fe.length-1;gt++){var Ot=fe[gt],wt=Ot.actualBounds.x+Ot.actualBounds.width+Le,ln=fe[gt+1];ln.move(new go.Point(wt,Ot.actualBounds.y))}be.commitTransaction("align Row")},Je.prototype.canRotate=function(Le){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},Je.prototype.rotate=function(Le){Le===void 0&&(Le=90);var be=this.diagram;be.startTransaction("rotate "+Le.toString());var be=this.diagram;be.selection.each(function(fe){fe instanceof go.Link||fe instanceof go.Group||(fe.angle+=Le)}),be.commitTransaction("rotate "+Le.toString())},Je.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var be=new go.Map;Le.selection.each(function(fe){be.set(fe.layer,0)}),be.iteratorKeys.each(function(fe){var gt=0;fe.parts.each(function(Ot){if(!Ot.isSelected){var wt=Ot.zOrder;isNaN(wt)?Ot.zOrder=0:gt=Math.max(gt,wt)}}),be.set(fe,gt)}),Le.selection.each(function(fe){Je._assignZOrder(fe,be.get(fe.layer)+1)}),Le.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var be=new go.Map;Le.selection.each(function(fe){be.set(fe.layer,0)}),be.iteratorKeys.each(function(fe){var gt=0;fe.parts.each(function(Ot){if(!Ot.isSelected){var wt=Ot.zOrder;isNaN(wt)?Ot.zOrder=0:gt=Math.min(gt,wt)}}),be.set(fe,gt)}),Le.selection.each(function(fe){Je._assignZOrder(fe,be.get(fe.layer)-1-Je._findGroupDepth(fe))}),Le.commitTransaction("pushToBack")},Je._assignZOrder=function(Le,be,fe){fe===void 0&&(fe=Le),Le.layer===fe.layer&&(Le.zOrder=be),Le instanceof go.Group&&Le.memberParts.each(function(gt){Je._assignZOrder(gt,be+1,fe)})},Je._findGroupDepth=function(Le){if(Le instanceof go.Group){var be=0;return Le.memberParts.each(function(fe){be=Math.max(be,Je._findGroupDepth(fe))}),be+1}else return 0},Je.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var be=Le.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var fe=this.arrowKeyBehavior;if(fe==="none")return;if(fe==="select"){this._arrowKeySelect();return}else if(fe==="move"){this._arrowKeyMove();return}else if(fe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(be){Le.push(be)}),this.diagram.parts.each(function(be){Le.push(be)}),Le},Je.prototype._arrowKeyMove=function(){var Le=this.diagram,be=Le.lastInput,fe=0,gt=0;if(be.control||be.meta)fe=1,gt=1;else if(Le.grid!==null){var Ot=Le.grid.gridCellSize;gt=Ot.width,fe=Ot.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(wt){be.key==="Up"?wt.move(new go.Point(wt.actualBounds.x,wt.actualBounds.y-fe)):be.key==="Down"?wt.move(new go.Point(wt.actualBounds.x,wt.actualBounds.y+fe)):be.key==="Left"?wt.move(new go.Point(wt.actualBounds.x-gt,wt.actualBounds.y)):be.key==="Right"&&wt.move(new go.Point(wt.actualBounds.x+gt,wt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var Le=this.diagram,be=Le.lastInput,fe=null;be.key==="Up"?fe=this._findNearestPartTowards(270):be.key==="Down"?fe=this._findNearestPartTowards(90):be.key==="Left"?fe=this._findNearestPartTowards(180):be.key==="Right"&&(fe=this._findNearestPartTowards(0)),fe!==null&&(be.shift?fe.isSelected=!0:be.control||be.meta?fe.isSelected=!fe.isSelected:Le.select(fe))},Je.prototype._findNearestPartTowards=function(Le){var be=this.diagram.selection.first();if(be===null)return null;for(var fe=be.actualBounds.center,gt=this._getAllParts(),Ot=1/0,wt=be,ln=0;ln<gt.length;ln++){var Wt=gt[ln];if(Wt!==be&&Wt.canSelect()){var Qt=Wt.actualBounds.center,yn=fe.directionPoint(Qt),_n=this._angleCloseness(yn,Le);if(_n<=45){var at=fe.distanceSquaredPoint(Qt);at*=1+Math.sin(_n*Math.PI/180),at<Ot&&(Ot=at,wt=Wt)}}}return wt},Je.prototype._angleCloseness=function(Le,be){return Math.min(Math.abs(be-Le),Math.min(Math.abs(be+360-Le),Math.abs(be-360-Le)))},Je.prototype._arrowKeyTree=function(){var Le=this.diagram,be=Le.selection.first();if(be instanceof go.Node){var fe=Le.lastInput;if(fe.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)Le.commandHandler.canExpandTree(be)&&Le.commandHandler.expandTree(be);else{var gt=this._sortTreeChildrenByY(be).first();gt!==null&&Le.select(gt)}}else if(fe.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)Le.commandHandler.canCollapseTree(be)&&Le.commandHandler.collapseTree(be);else{var Ot=be.findTreeParentNode();Ot!==null&&Le.select(Ot)}else if(fe.key==="Up"){var Ot=be.findTreeParentNode();if(Ot!==null){var wt=this._sortTreeChildrenByY(Ot),ln=wt.indexOf(be);if(ln>0){for(var Wt=wt.elt(ln-1);Wt!==null&&Wt.isTreeExpanded&&!Wt.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(Wt);Wt=Qt.last()}Wt!==null&&Le.select(Wt)}else Le.select(Ot)}}else if(fe.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var gt=this._sortTreeChildrenByY(be).first();gt!==null&&Le.select(gt)}else for(;be!==null;){var Ot=be.findTreeParentNode();if(Ot===null)break;var wt=this._sortTreeChildrenByY(Ot),ln=wt.indexOf(be);if(ln<wt.length-1){Le.select(wt.elt(ln+1));break}else be=Ot}var yn=Le.selection.first();yn!==null&&Le.scrollToRect(yn.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(Le){var be=new go.List().addAll(Le.findTreeChildrenNodes());return be.sort(function(fe,gt){var Ot=fe.location,wt=gt.location;return Ot.y<wt.y?-1:Ot.y>wt.y?1:Ot.x<wt.x?-1:Ot.x>wt.x?1:0}),be},Je.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var tt=Je,zt=re(20397),pt=re(43604),we=re(82093),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=re(59301),ke=(Le,be,fe)=>new Promise((gt,Ot)=>{var wt=Qt=>{try{Wt(fe.next(Qt))}catch(yn){Ot(yn)}},ln=Qt=>{try{Wt(fe.throw(Qt))}catch(yn){Ot(yn)}},Wt=Qt=>Qt.done?gt(Qt.value):Promise.resolve(Qt.value).then(wt,ln);Wt((fe=fe.apply(Le,be)).next())});function Ke({onCancel:Le,callback:be}){let fe=(0,ae.useRef)(),gt=(0,ae.useRef)(),Ot=(0,ae.useRef)(),wt=(0,ae.useRef)(!1);const ln=(0,ae.useRef)(!1),[Wt,Qt]=(0,ae.useState)(0);function yn(){const at=de.bx.make,qt={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"};fe.current=new de.S0(gt.current,{padding:20,grid:at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var ht=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);ht||qe.diagram.currentTool.doCancel()},commandHandler:at(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var ht=qe.subject;ht.location=ht.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var ht=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var ht=qe.parameter.part;ht.invalidateConnectedLinks();var Nt=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),fe.current.nodeTemplate=at(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),at(de.bn,{name:"SHAPE",fill:qt.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")),at(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.nodeTemplate.toolTip=at("ToolTip",at(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},at(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),at(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(qe,ht){var Nt=(ft,Vt)=>{ft.handled=!0,ft.diagram.model.commit(Jt=>{var jt=Vt.part.adornedPart,Sn=new de.E9().setRectSpot(jt.actualBounds,qe);Sn.subtract(jt.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(jt.location),Sn.snapToGridPoint(ft.diagram.grid.gridOrigin,ft.diagram.grid.gridCellSize);var Pn=Jt.copyNodeData(jt.data);Jt.setGroupKeyForNodeData(Pn,Jt.getGroupKeyForNodeData(jt.data)),Jt.addNodeData(Pn);var oa={from:jt.key,to:Jt.getKeyForNodeData(Pn)};Jt.addLinkData(oa);var Qn=ft.diagram.findNodeForData(Pn);Qn.location=Sn,ft.diagram.select(Qn),setTimeout(()=>{ft.diagram.commandHandler.editTextBlock()},20)})};return at(de.bn,{figure:ht,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(de.z6.Top)||qe.equals(de.z6.Bottom)?25:18,height:qe.equals(de.z6.Top)||qe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(ft,Vt)=>Vt.fill="dodgerblue",mouseLeave:(ft,Vt)=>Vt.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function Zn(qe){return at(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:(ht,Nt)=>Nt.fill="dodgerblue",mouseLeave:(ht,Nt)=>Nt.fill="orange",click:(ht,Nt)=>{ht.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},qe||{})}fe.current.nodeTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Cn(qe,ht){return(Nt,ft)=>{Nt.handled=!0,Nt.diagram.model.commit(Vt=>{Vt.set(ft.part.adornedPart.data,qe,ht)})}}function ue(qe,ht){return ht||(ht="color"),at(de.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.stroke="dodgerblue",mouseLeave:(Nt,ft)=>ft.stroke="lightgray",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function De(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.white,"fill"),ue(qt.beige,"fill"),ue(qt.extralightblue,"fill"),ue(qt.extralightred,"fill"))),at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.lightgray,"fill"),ue(qt.lightgreen,"fill"),ue(qt.lightblue,"fill"),ue(qt.lightred,"fill")))]}function Me(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.black),ue(qt.green),ue(qt.blue),ue(qt.red))),at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.white),ue(qt.magenta),ue(qt.purple),ue(qt.orange)))]}function He(qe,ht){return ht||(ht="thickness"),at(de.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function Qe(qe,ht){return ht||(ht="dash"),at(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function nt(){return[at("ContextMenuButton",at(de.s_,"Horizontal",He(1),He(2),He(3),He(4))),at("ContextMenuButton",at(de.s_,"Horizontal",Qe(null),Qe([2,4]),Qe([4,4])))]}function Ve(qe,ht){return ht||(ht="figure"),at(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.fill="dodgerblue",mouseLeave:(Nt,ft)=>ft.fill="lightgray",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}fe.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(de.s_,"Horizontal",Ve("Rectangle"),Ve("RoundedRectangle"),Ve("Ellipse"),Ve("Diamond"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ve("Parallelogram2"),Ve("ManualOperation"),Ve("Procedure"),Ve("Cylinder1"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ve("Terminator"),Ve("CreateRequest"),Ve("Document"),Ve("TriangleDown"))),De(),Me(),nt()),fe.current.groupTemplate=at(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,ht)=>{var Nt=ht.addMembers(ht.diagram.selection,!0);Nt||ht.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),at(de.s_,"Auto",{name:"BODY"},at(de.bn,{parameter1:10,fill:qt.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")),at(de.Vm,{background:"transparent",margin:20})),at(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"))),fe.current.groupTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.s_,"Auto",at(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),fe.current.groupTemplate.contextMenu=at("ContextMenu",De(),Me(),nt()),fe.current.linkTemplate=at(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",qe=>qe>=1?10:0),new de.KX("toShortLength","dir",qe=>qe>=1?10:0),new de.KX("points").makeTwoWay(),at(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(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",qe=>qe===1)),at(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",qe=>qe>=1),new de.KX("width","thickness",qe=>7+3*qe),new de.KX("height","thickness",qe=>7+3*qe),new de.KX("segmentOffset","thickness",qe=>new de.E9(-15,4+1.5*qe))),at(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",qe=>qe===2),new de.KX("width","thickness",qe=>7+3*qe),new de.KX("height","thickness",qe=>7+3*qe),new de.KX("segmentOffset","thickness",qe=>new de.E9(-15,4+1.5*qe))),at(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.linkTemplate.selectionAdornmentTemplate=at(de.uz,at(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:We(2)},new de.KX("pathPattern","thickness",We)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function We(qe){return at(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function It(qe){var ht="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?ht="M0 0 M16 16 M0 8 L16 8":qe===2&&(ht="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(de.bn,{geometryString:ht,margin:2,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn("dir",qe),contextClick:Cn("dir",qe)})}function Mt(qe){var ht=(Nt,ft)=>{Nt.handled=!0,Nt.diagram.model.commit(Vt=>{var Jt=ft.part.adornedPart;Vt.set(Jt.data,qe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(qe?Jt.toNode:Jt.fromNode).invalidateConnectedLinks()})};return at(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:ht,contextClick:ht})}function Ee(qe,ht){var Nt=0,ft=de.z6.RightSide;qe.equals(de.z6.Top)?(Nt=270,ft=de.z6.TopSide):qe.equals(de.z6.Left)?(Nt=180,ft=de.z6.LeftSide):qe.equals(de.z6.Bottom)&&(Nt=90,ft=de.z6.BottomSide),ht||(Nt-=180);var Vt=(Jt,jt)=>{Jt.handled=!0,Jt.diagram.model.commit(Sn=>{var Pn=jt.part.adornedPart;Sn.set(Pn.data,ht?"toSpot":"fromSpot",de.z6.stringify(ft)),(ht?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return at(de.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(Jt,jt)=>jt.background="dodgerblue",mouseLeave:(Jt,jt)=>jt.background="transparent",click:Vt,contextClick:Vt})}fe.current.linkTemplate.contextMenu=at("ContextMenu",Me(),nt(),at("ContextMenuButton",at(de.s_,"Horizontal",It(0),It(1),It(2))),at("ContextMenuButton",at(de.s_,"Horizontal",at(de.s_,"Spot",Mt(!1),Ee(de.z6.Top,!1),Ee(de.z6.Left,!1),Ee(de.z6.Right,!1),Ee(de.z6.Bottom,!1)),at(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Mt(!0),Ee(de.z6.Top,!0),Ee(de.z6.Left,!0),Ee(de.z6.Right,!0),Ee(de.z6.Bottom,!0)))));const on=`{ "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 tn=["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 hn(qe){return console.log("shapeName:",qe),tn.indexOf(qe)>=0}var Bn=new de.YI(Ot.current,{maxSelectionCount:1,linkTemplate:at(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:at(de.uz,"Link",{locationSpot:de.z6.Center},at(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),at(de.bn,{isPanelMain:!0,strokeWidth:2}),at(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(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(qe){var ht;const Nt=qe.subject.part;var ft=(ht=document.activeElement)==null?void 0:ht.value;typeof ft=="string"&&ft.trim()===""&&fe.current.model.commit(function(Vt){Vt.set(Nt.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),Bn.nodeTemplate=at(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),at(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")),at(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(()=>{fe.current.grid=at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const _n=()=>ke(this,null,function*(){var at=fe.current.makeImage();const qt=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:at.src}});be({src:qt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{yn()},500),Qt(Wt+1),()=>{fe.current=null}),[]),Pe.createElement("div",{ref:ln,className:wt.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ye.Z,null,Pe.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(pt.Z,{onClick:()=>{var at,qt,Tn=fe.current.selection.first();if(wt.current=!wt.current,document.activeElement&&Tn){let Zn=(qt=(at=document.activeElement)==null?void 0:at.value)==null?void 0:qt.trim();typeof Zn=="string"&&fe.current.model.commit(function(Cn){Cn.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}Qt(Wt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:Ot})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:gt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(Be.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ut=Ke,$t=re(5112),Lt=re(5871);const At=$t.ZP.Group,kt={margin:"0 8px"};var bt=({callback:Le,onCancel:be})=>{function fe(gt){Le(gt)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:kt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:kt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Lt.Z,null)),ae.createElement("span",{style:kt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Lt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(At,null,ae.createElement($t.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement($t.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement($t.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement($t.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Be.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},Ht=re(78673),Et=re(11081),Kt=re.n(Et),gn=(0,ae.forwardRef)(({use3d:Le,width:be,height:fe,callback:gt,showSaveButton:Ot},wt)=>{const ln=(0,ae.useRef)(),Wt=(0,ae.useRef)(),[Qt,yn]=(0,ae.useState)(!1),_n=(0,ae.useRef)({id:ln,appName:"graphing",width:be||1e3,height:fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Wt.current=new(Kt())(_n.current,!0),window.onload=function(){Wt.current.inject("applet_container")}},[]);const at=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return gt&>(qt),qt};return(0,ae.useEffect)(()=>{_n.current.appName=Qt?"3D":"graphing",Wt.current.inject("applet_container")},[Qt]),(0,ae.useEffect)(()=>{yn(Le)},[Le]),(0,ae.useImperativeHandle)(wt,()=>({getImgData:at})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ae.createElement(Ye.Z,{align:"middle"},ae.createElement(pt.Z,{flex:1},ae.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qt,onChange:qt=>yn(qt)})),ae.createElement(pt.Z,null,ae.createElement(Be.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=re(88615),pe=re(1012),Ne=re(8591);const Ue="link",dt="upload-image",Pt="add-flowchart",Dt="draw-image",Rt="add-flowchart",Bt="code-block",Tt="add-table",Yt="------------",Xt={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var en=re(17904),fn=(Le,be,fe)=>new Promise((gt,Ot)=>{var wt=Qt=>{try{Wt(fe.next(Qt))}catch(yn){Ot(yn)}},ln=Qt=>{try{Wt(fe.throw(Qt))}catch(yn){Ot(yn)}},Wt=Qt=>Qt.done?gt(Qt.value):Promise.resolve(Qt.value).then(wt,ln);Wt((fe=fe.apply(Le,be)).next())});function pn(){}let Fn=0;const dn=1e4,an="\u2581",vn="@\u2581\u2581@",En="@\u2581@",xn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,un=["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 Nn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[Ue]:"\u6DFB\u52A0\u94FE\u63A5",[Bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dt]:"\u6DFB\u52A0\u56FE\u7247",[Dt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:be,width:fe="100%",height:gt=400,miniToolbar:Ot=!1,isFocus:wt=!1,watch:ln,insertTemp:Wt,mode:Qt="markdown",id:yn="markdown-editor-id",showResizeBar:_n=!1,noStorage:at=!1,showNullButton:qt=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:Cn=!1,onBlur:ue,onCMBeforeChange:De,onFullScreen:Me,className:He="",disablePaste:Qe=!1,disabled:nt=!1,disabledFill:Ve=!1,placeholder:We="",values:It="",extraUse:Mt})=>{const[Ee,on]=(0,ae.useState)(null),[tn,hn]=(0,ae.useState)(Le),[Bn,qe]=(0,ae.useState)(ln),[ht,Nt]=(0,ae.useState)(Cn),[ft,Vt]=(0,ae.useState)(""),[Jt,jt]=(0,ae.useState)(0),[Sn,Pn]=(0,ae.useState)(gt),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,pe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ia=(0,ae.useRef)(),ga=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>fn(void 0,null,function*(){var xt;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(xt=ct==null?void 0:ct.attachments)!=null&&xt.length&&(console.log("cm:",Ee,ta),ct.attachments.map(vt=>{vt.content_type.indexOf("image")>-1?Ee.replaceSelection(``):vt.content_type.indexOf("video")>-1?Ee.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):vt.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${vt.id}?type=${vt.content_type}&disposition=inline" target="_blank">${vt.name}</a>`):Ee.replaceSelection(`[${vt.name}](${ENV.API_SERVER}/api/attachments/${vt.id}?type=${vt.content_type})`)}))});(0,ae.useEffect)(()=>{const xt=window.scrollY||window.pageYOffset;hn(It),Ee==null||Ee.setValue(It),window.scrollTo(0,xt)},[It]),(0,ae.useEffect)(()=>{Me==null||Me(ht)},[ht]),(0,ae.useEffect)(()=>{if(ta.current){let xt=function(vt,Ct){var mn;if(Qe){Ct.preventDefault();return}const zn=Ct.clipboardData;if(zn){const Rn=zn.types.toString(),An=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(Ct.preventDefault(),Qt=="stex")return;try{let jn=An[1];((mn=An[0])==null?void 0:mn.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,ye.I)(kn,Kn=>{var Ut,sn,bn;Kn.id?((Ut=kn==null?void 0:kn.type)==null?void 0:Ut.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):un.includes(sa)?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ct.replaceSelection(`[${kn.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Ne.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=Ze().fromTextArea(ta.current,{mode:Qt,lineNumbers:!Ot,lineWrapping:!0,value:Le,autoCloseTags:!Tn,autoCloseBrackets:!0});return ct.on("keyup",function(vt,Ct){Ct.keyCode===8&&(vt.getValue()==""?ct.setOption("placeholder",We):ct.setOption("placeholder",null))}),ct.on("keydown",function(vt,Ct){if(Ct.keyCode===8){var mn=Zt(vt);mn&&Ct.preventDefault()}}),wt&&ct.focus(),ct.on("paste",xt),ct.on("dragleave",function(vt,Ct){ia.current.classList.remove("mouse-hover-md")}),nt&&ct.on("beforeChange",function(vt,Ct){(Ct.origin==="paste"||Ct.origin==="+input")&&Ct.cancel()}),on(ct),()=>{ct.off("paste",xt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ia.current)try{}catch(xt){console.log(xt,"---- to set md editor body height")}},[Sn,ia,ht]);(0,ae.useEffect)(()=>{function xt(){let ct=new Ie.Z(vt=>{for(let Ct of vt)(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&(fa(),Ee.setSize("100%","100%"),Ee.refresh())});return ct.observe(ta.current.parentElement),ct}if(Ee){const ct=xt();return()=>{var vt,Ct;(vt=ta.current)!=null&&vt.parentElement&&ct.unobserve((Ct=ta.current)==null?void 0:Ct.parentElement)}}},[Ee,fa]),(0,ae.useEffect)(()=>{if(Ee){let xt=[];for(const[ct,vt]of Object.entries(Wn)){let Ct={[ct]:()=>{On(vt)}};xt.push(Ct),Ee.addKeyMap(Ct)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ct of xt)Ee.removeKeyMap(ct)}}},[Ee]),(0,ae.useEffect)(()=>{Cn!==ht&&Nt(Cn)},[Cn]),(0,en.Z)(()=>{if(!at&&Jt>0){let xt=new Date().getTime(),ct=window.sessionStorage.getItem(yn);xt>=Jt+dn&&(!ct||ct!==tn)&&(window.sessionStorage.setItem(yn,tn),Qn(!0))}},dn),(0,ae.useEffect)(()=>{qe(ln)},[Ee,ln]),(0,ae.useEffect)(()=>{Ee&&wt&&Ee.focus()},[Ee,wt]),(0,ae.useEffect)(()=>{if(Bn&&Ee){let xt=function(vt){let Ct=vt.target;if(aa.current){let mn=Ct.scrollTop/Ct.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*mn}};const ct=Ee.getScrollerElement();return ct.addEventListener("scroll",xt),()=>{ct.removeEventListener("scroll",xt)}}},[Ee,Bn]),(0,ae.useEffect)(()=>{if(Ee&&De){let xt=function(ct,vt){De(ct,vt)};return Ee.on("beforeChange",xt),()=>{Ee.off("beforeChange",xt)}}},[Ee,De]),(0,ae.useEffect)(()=>{if(Ee&&ue){let xt=function(){ue(Ee.getValue())};return Ee.on("blur",xt),()=>{Ee.off("blur",xt)}}},[Ee,ue]);function Zt(xt,ct){var vt=xt.getDoc(),Ct=vt.getCursor(),mn=vt.getLine(Ct.line),zn=mn.charAt(Ct.ch-1),Rn=mn.lastIndexOf("@\u2581@",Ct.ch),An=mn.lastIndexOf("@\u2581\u2581@",Ct.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(vn.indexOf(zn)===-1)return null;if(console.log("change1:",ct,xt,mn,Ct,jn,Rn,An,zn),jn>=0&&Ct.ch-jn<5){var sa=jn+kn;return vt.replaceRange("",{line:Ct.line,ch:jn},{line:Ct.line,ch:sa}),{line:Ct.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(Ee){let xt=function(ct,vt){const Ct=ct.getValue();hn(Ct),jt(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(Tn?be(Ct,Gn(Ct)):be(Ct))};return Ee.on("change",xt),()=>{Ee.off("change",xt)}}},[Ee,be]),(0,ae.useEffect)(()=>{if(Ee)if(Le==null)Ee.setValue(""),hn("");else{const xt=window.scrollY||window.pageYOffset;Le!==Ee.getValue()&&(Ee.setValue(Le),hn(Le),Ee.setCursor(nt?1:Ee.lineCount(),0),window.scrollTo(0,xt))}},[Ee,Le]);const On=(0,ae.useCallback)(xt=>{const ct=Ee.getCursor(),vt=Ee.getSelection();let Ct=vt.split(`
|
|
`);switch(xt){case"bold":return Ee.replaceSelection("**"+vt+"**"),vt===""&&Ee.setCursor(ct.line,ct.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+vt+"*"),vt===""&&Ee.setCursor(ct.line,ct.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+vt+"`"),vt===""&&Ee.setCursor(ct.line,ct.ch+1),Ee.focus();case"inline-latex":return Vt("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+vt+"\n```"),Ee.setCursor(ct.line+1,vt.length+1),Ee.focus();case"line-break":return Ee.replaceSelection(`<br/>
|
|
`),Ee.focus();case"list-ul":return vt===""?Ee.replaceSelection("- "+vt):Ee.replaceSelection(Ct.map(mn=>mn===""?"":`- ${mn}`).join(`
|
|
`)),Ee.focus();case"list-ol":return vt===""?Ee.replaceSelection("1. "+vt):Ee.replaceSelection(Ct.map((mn,zn)=>mn===""?"":`${zn+1}. ${mn}`).join(`
|
|
`)),Ee.focus();case"add-null-ch":return vt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(an),Ee.focus();case"add-signal":return vt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(En),Ee.focus();case"add-multiple":return vt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(vn),Ee.focus();case"inster-template-1":return vt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(xn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return qe(!Bn),Ee.focus();case"trigger-full-screen":return Nt(!ht),Ee.focus();case Ue:Vt(Ue);return;case Bt:Vt(Bt);return;case dt:Vt(dt);return;case Dt:Vt(Dt);return;case"maths-latex":Vt("maths-latex");return;case Pt:Vt(Pt);return;case Tt:Vt(Tt);return;default:throw new Error}},[Ee,Bn,ht]),Mn=(0,ae.useCallback)((xt,ct)=>{var vt,Ct,mn,zn,Rn,An;switch(Vt(""),ft){case Ue:const{title:Ut,link:sn}=xt;return Ee.replaceSelection(`[${Ut}](${sn})`),Ee.focus();case Bt:const{language:bn,content:rn}=xt;return Ee.replaceSelection(["```"+bn,rn,"```"].join(`
|
|
`)),Ee.focus();case"maths-latex":for(var jn=atob(xt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Kn=new Blob([kn],{type:"image/png"});(0,ye.I)(Kn,ma=>{ma.id?Ee.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ee.replaceSelection("`$$"+xt+"$$`");break;case dt:case Dt:case Rt:const{src:cn,alt:Hn}=xt,wn=ct,ha=(mn=(Ct=(vt=wn==null?void 0:wn.name)==null?void 0:vt.split("."))==null?void 0:Ct.pop)==null?void 0:mn.call(Ct);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?Ee.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${cn}" alt="${Hn||""}" /></p>`):Ee.replaceSelection(`<img width="100%" src="${cn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?Ee.replaceSelection(`<video width="100%" controls src="${cn}"></video>`):((An=wn==null?void 0:wn.type)==null?void 0:An.indexOf("pdf"))>-1?Ee.replaceSelection(`<a href="${cn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):un.includes(ha)?Ee.replaceSelection(`<a href="${cn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):Ee.replaceSelection(`[${wn.name}](${cn})`),Ee.focus();case Tt:const{row:ua,col:wa,align:xa}=xt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ca=[],Ba=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&Ba.push(Xt[xa]),Ca.push(" ");ma===1&&(Fa+=`| ${Ba.join(" | ")} |
|
|
`),Fa+=`| ${Ca.join(wa===1?"":" | ")} |
|
|
`}return Ee.replaceSelection(Fa+`
|
|
`),Ee.focus();default:throw new Error}},[Ee,ft]),Un=(0,ae.useMemo)(()=>{switch(ft){case Ue:return ae.createElement(Ft,{callback:Mn,onCancel:Xn});case Bt:return ae.createElement(st.Z,{callback:Mn,onCancel:Xn});case dt:return ae.createElement(ye.Z,{callback:Mn,onCancel:Xn});case Pt:return ae.createElement(ut,{callback:Mn,onCancel:Xn});case Tt:return ae.createElement(bt,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(gn,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(nn.Z,{showSaveButton:!0,callback:Mn});default:return null}},[ft]);function Xn(){Vt("")}(0,ae.useEffect)(()=>{if(ga.current){let xt=function(Rn){mn=!0,zn=Rn.pageY},ct=function(){mn=!1},vt=function(Rn){if(mn){let An=Rn.pageY-zn;An<0&&(An=0),An>300&&(An=300);let jn=gt+An+"px";Pn(jn)}},Ct=ga.current,mn=!1,zn=0;return Ct.addEventListener("mousedown",xt),document.addEventListener("mousemove",vt),document.addEventListener("mouseup",ct),()=>{Ct.removeEventListener("mousedown",xt),document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",ct)}}},[Ee,ga]),(0,ae.useEffect)(()=>{Pn(gt)},[gt]);const ra=Nn(fe),va=Nn(Sn),pa={width:ra,height:va},Dn=(0,ae.useMemo)(()=>{if(Jt){let xt=new Date(Jt),ct=xt.getHours(),vt=xt.getMinutes(),Ct=xt.getSeconds();return ct=ct<10?"0"+ct:ct,vt=vt<10?"0"+vt:vt,Ct=Ct<10?"0"+Ct:Ct,`${ct}:${vt}:${Ct}`}return 0},[Jt]),Gn=xt=>{const ct=[];if(Tn){let vt=-1;xt=xt.replace(/(@▁▁@|@▁@)/g,function(Ct,mn,zn){ct.push({multiLine:Ct!==En})})}return ct};function la(){window.sessionStorage.removeItem(yn),Qn(!1),jt(0)}function ya(){Qn(!1),jt(0),Ee.setValue(window.sessionStorage.getItem(yn))}(0,ae.useEffect)(()=>{na[ft]&&ft!==Dt&&ft!==Pt&&setTimeout(()=>{const xt=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-xt.offsetWidth/2,vt=window.innerHeight/2-xt.offsetHeight/2;da(ct),$n(vt)},0)},[ft]);const La=xt=>{xt.preventDefault();const ct=xt.clientX-Pa,vt=xt.clientY-Vn;document.body.onmousemove=Ct=>{let mn=Ct.clientX-ct,zn=Ct.clientY-vt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;mn=Math.max(0,Math.min(mn,An)),zn=Math.max(0,Math.min(zn,jn)),ba(Ct.clientX,Ct.clientY,ct,vt)&&(da(mn),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(xt,ct,vt,Ct)=>{const mn=document.body.clientHeight,zn=document.body.clientWidth;return xt<20&&vt>xt||xt>zn-20&&vt<xt||ct<20&&Ct>ct||ct>mn-20&&Ct<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ia},ae.createElement("div",{className:`markdown-editor-container ${He} ${Bn?"on-preview":""} ${Ot?"mini":""} ${ht?"full-screen":""}`,style:pa},ae.createElement(ge,{insertTemp:Wt,watch:Bn,fullScreen:ht,showNullButton:qt,showNullProgramButton:Tn,onActionCallback:On,hidetoolBar:Zn,extraUse:Mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:We})),Bn?ae.createElement("div",{ref:aa,className:"preview-container"},Qt==="stex"&&ae.createElement(_e,{value:tn}),Qt!=="stex"&&ae.createElement(je.Z,{disabledFill:Ve,showProgramFill:Tn,value:tn})):null))),_n?ae.createElement("a",{ref:ga,className:"editor-resize"}):null,ft===Dt&&ae.createElement(it,{callback:Mn,onCancel:Xn}),ft===Pt&&ae.createElement(ut,{callback:Mn,onCancel:Xn}),ae.createElement(me.Z,null,na[ft]&&ft!==Dt&&ft!==Pt?ae.createElement(xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ft]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ft===Pt?"1200px":null,height:ft===Pt?"80vh":null,className:"markdown-popup-form"},Un):null))}},45596:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return ie},I:function(){return me}});var ae=re(78241),Se=re(8591),Ze=re(92832),Ie=re(81327),ce=re(5871),Fe=re(5112),se=re(3113),Te=re(67303),ze=re(59301),Ae=re(34055),je=re(59301),_e=Object.defineProperty,Re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,Ce,Be)=>Ce in le?_e(le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Be}):le[Ce]=Be,x=(le,Ce)=>{for(var Be in Ce||(Ce={}))y.call(Ce,Be)&&b(le,Be,Ce[Be]);if(a)for(var Be of a(Ce))E.call(Ce,Be)&&b(le,Be,Ce[Be]);return le},z=(le,Ce)=>Re(le,ne(Ce));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:le,onCancel:Ce})=>{const[Be]=ee();let lt=(0,ze.useRef)();function Gt($e){lt.current.width=Be.getFieldValue("width"),lt.current.align=Be.getFieldValue("align"),le($e,lt.current)}function _t($e,Oe){if($e.status===-1){Se.ZP.error($e.message);return}Be.setFieldsValue({src:`/api/attachments/${$e.id}`,type:Oe.type})}function he($e){let Oe=$e.target.files[0];lt.current=Oe,me(Oe,_t)}return je.createElement(ae.default,z(x({form:Be},oe),{className:"upload-image-panel",onFinish:Gt,style:{width:470,overflow:"hidden"}}),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Ze.default,{style:te})),je.createElement(ge,{onFileChange:he}))),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Ze.default,{style:{width:264}})),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(Ie.Z,null,je.createElement(ae.default.Item,{name:"width",style:{margin:0}},je.createElement(ce.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(Fe.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"}]})),je.createElement("aside",null,je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(se.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function ge({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function me(le,Ce){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Be=new FormData;Be.append("editormd-image-file",le),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(Gt){Ce(JSON.parse(Gt.target.responseText),le)},!1),lt.addEventListener("error",function(Gt){console.error(Gt)},!1),lt.open("POST",`${Te.KI}/api/attachments.json`),lt.send(Be)}},75790:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Ze}});var ae=re(59301),Se=re(4676);class Ze extends ae.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Se.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Se}});var ae=re(59301);function Se(Ze,Ie){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Ze}),(0,ae.useEffect)(()=>{function Fe(){ce.current()}if(Ie!==null){let se=setInterval(Fe,Ie);return()=>clearInterval(se)}},[Ie])}},96377:function(Ge,ot,re){"use strict";re.r(ot),re.d(ot,{default:function(){return ie}});var ae=re(59301),Se=re(76560),Ze=re(78241),Ie=re(66104),ce=re(92832),Fe=re(3113),se=re(89389),Te=re(45278),ze={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"},Ae=re(42525),je=re(50111),_e=re(82093),Re=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ge,me,le)=>me in ge?Re(ge,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[me]=le,z=(ge,me)=>{for(var le in me||(me={}))E.call(me,le)&&x(ge,le,me[le]);if(y)for(var le of y(me))b.call(me,le)&&x(ge,le,me[le]);return ge},ee=(ge,me)=>ne(ge,a(me)),te=(ge,me,le)=>new Promise((Ce,Be)=>{var lt=he=>{try{_t(le.next(he))}catch($e){Be($e)}},Gt=he=>{try{_t(le.throw(he))}catch($e){Be($e)}},_t=he=>he.done?Ce(he.value):Promise.resolve(he.value).then(lt,Gt);_t((le=le.apply(ge,me)).next())});const oe=({shixunHomeworks:ge,newCourse:me,globalSetting:le,user:Ce,loading:Be,dispatch:lt})=>{var Gt,_t,he;const $e=(0,Se.useParams)(),[Oe]=Ze.default.useForm(),[Xe,rt]=(0,ae.useState)({}),[mt,St]=(0,ae.useState)(!1);let[Ft,st]=(0,ae.useState)({});const ye=(0,ae.useRef)(),{commonHomeWorkEditDefaultData:xe}=ge;(0,ae.useEffect)(()=>{Ye()},[$e.categoryId]);const Ye=()=>te(void 0,null,function*(){const it=yield lt({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},$e),{type:1})});if(it){const de={name:it.name,description:it.description,reference_answer:it.reference_answer,attachment_ids:(0,Ae.z)(it.attachments),reference_attachment_ids:(0,Ae.z)(it.ref_attachments)};Oe.setFieldsValue(z({},de)),rt(z({},de)),St(!0)}});function yt(it){return te(this,null,function*(){if(!(Ft!=null&&Ft.ec_point_ids))return;let de=yield(0,_e.ZP)(`/api/ec_courses/${Ft==null?void 0:Ft.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:it},Ft)})})}const et=it=>te(void 0,null,function*(){var de,Je;const tt=z({},Xe);tt.attachment_ids&&(tt.attachment_ids=(de=tt==null?void 0:tt.attachment_ids)==null?void 0:de.map(pt=>{var we;return(we=pt.response)==null?void 0:we.id})),tt.reference_attachment_ids&&(tt.reference_attachment_ids=(Je=tt==null?void 0:tt.reference_attachment_ids)==null?void 0:Je.map(pt=>{var we;return(we=pt.response)==null?void 0:we.id}));const zt=yield(0,Te.Ar)(ee(z(z({},$e),tt),{base_on_project:!0,type:1}));yt($e.categoryId),zt&&Se.history.push(`/classrooms/${$e.coursesId}/common_homework/${$e.categoryId}/detail`)});return ae.createElement("section",{className:ze.bg},xe.course_name&&ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},xe.category&&ae.createElement(Ie.Z,{separator:">"},ae.createElement(Ie.Z.Item,null,ae.createElement(Se.Link,{to:`/classrooms/${$e.coursesId}/common_homework`},xe.course_name)),ae.createElement(Ie.Z.Item,null,ae.createElement(Se.Link,{to:`/classrooms/${$e.coursesId}/common_homework`},xe.category.category_name)),ae.createElement(Ie.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),ae.createElement(Ze.default,{form:Oe,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{rt(z({},Oe.getFieldsValue()))},onFinish:et},ae.createElement("div",{className:ze.fieldWrap},ae.createElement(Ze.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ce.default,{maxLength:60,suffix:`${((Gt=Xe.name)==null?void 0:Gt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Ze.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"}]},ae.createElement(se.Z,{watch:!0,defaultValue:xe.description})),ae.createElement("div",null,ae.createElement(Ze.default.Item,{name:"attachment_ids"},mt&&ae.createElement(Ae.Z,null)))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Ze.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(se.Z,{defaultValue:xe.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Ze.default.Item,{name:"reference_attachment_ids"},mt&&ae.createElement(Ae.Z,null))))),ae.createElement("div",{className:ze.mdWrap,style:{display:(_t=le==null?void 0:le.setting)!=null&&_t.hide_ec?"none":(he=Ce.userInfo.course)!=null&&he.is_openengineering?"":"none"}},ae.createElement(je.Z,{setitem:it=>st(z({},it)),homework_common_id:$e.categoryId})),ae.createElement("div",{className:ze.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ze.default.Item,null,ae.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit",onClick:()=>{Oe.submit()},loading:Be["newCourse/editCourse"]||Be["newCourse/submitCourse"]},"\u63D0\u4EA4"),ae.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:ze.button,onClick:()=>Se.history.push(`/classrooms/${$e.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ie=(0,Se.connect)(({shixunHomeworks:ge,newCourse:me,loading:le,user:Ce,globalSetting:Be})=>({shixunHomeworks:ge,newCourse:me,globalSetting:Be,user:Ce,loading:le.effects}))(oe)},92725:function(Ge,ot,re){"use strict";re.d(ot,{$J:function(){return Ze},JZ:function(){return ce},bN:function(){return se},jP:function(){return Fe},rO:function(){return Ie}});var ae=re(82093),Se=(Te,ze,Ae)=>new Promise((je,_e)=>{var Re=y=>{try{a(Ae.next(y))}catch(E){_e(E)}},ne=y=>{try{a(Ae.throw(y))}catch(E){_e(E)}},a=y=>y.done?je(y.value):Promise.resolve(y.value).then(Re,ne);a((Ae=Ae.apply(Te,ze)).next())});function Ze(Te){return(0,ae.U2)(`libraries/${Te}.json`)}function Ie(Te){return(0,ae.U2)("library_tags.json",Te)}function ce(Te){return Se(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Te}.json`)).status===0})}function Fe(Te){return(0,ae.v_)("libraries.json",Te)}function se(Te,ze){return(0,ae.gz)(`libraries/${Te}.json`,ze)}},56762:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Se}});var ae=re(59301);function Se(){const[,Ze]=ae.useReducer(Ie=>Ie+1,0);return Ze}},66104:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return _t}});var ae=re(92310),Se=re.n(ae),Ze=re(11592),Ie=re(26112),ce=re(59301),Fe=re(92343),se=re(36355),Te=re(84105),ze=re(91857);const Ae=he=>{let{children:$e}=he;const{getPrefixCls:Oe}=ce.useContext(se.E_),Xe=Oe("breadcrumb");return ce.createElement("li",{className:`${Xe}-separator`,"aria-hidden":"true"},$e===""?$e:$e||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Ae,_e=function(he,$e){var Oe={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&$e.indexOf(Xe)<0&&(Oe[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xe=Object.getOwnPropertySymbols(he);rt<Xe.length;rt++)$e.indexOf(Xe[rt])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[rt])&&(Oe[Xe[rt]]=he[Xe[rt]]);return Oe};function Re(he,$e){if(he.title===void 0||he.title===null)return null;const Oe=Object.keys($e).join("|");return typeof he.title=="object"?he.title:String(he.title).replace(new RegExp(`:(${Oe})`,"g"),(Xe,rt)=>$e[rt]||Xe)}function ne(he,$e,Oe,Xe){if(Oe==null)return null;const{className:rt,onClick:mt}=$e,St=_e($e,["className","onClick"]),Ft=Object.assign(Object.assign({},(0,Ie.Z)(St,{data:!0,aria:!0})),{onClick:mt});return Xe!==void 0?ce.createElement("a",Object.assign({},Ft,{className:Se()(`${he}-link`,rt),href:Xe}),Oe):ce.createElement("span",Object.assign({},Ft,{className:Se()(`${he}-link`,rt)}),Oe)}function a(he,$e){return(Xe,rt,mt,St,Ft)=>{if($e)return $e(Xe,rt,mt,St);const st=Re(Xe,rt);return ne(he,Xe,st,Ft)}}var y=function(he,$e){var Oe={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&$e.indexOf(Xe)<0&&(Oe[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xe=Object.getOwnPropertySymbols(he);rt<Xe.length;rt++)$e.indexOf(Xe[rt])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[rt])&&(Oe[Xe[rt]]=he[Xe[rt]]);return Oe};const E=he=>{const{prefixCls:$e,separator:Oe="/",children:Xe,menu:rt,overlay:mt,dropdownProps:St,href:Ft}=he,ye=(xe=>{if(rt||mt){const Ye=Object.assign({},St);if(rt){const yt=rt||{},{items:et}=yt,it=y(yt,["items"]);Ye.menu=Object.assign(Object.assign({},it),{items:et==null?void 0:et.map((de,Je)=>{var{key:tt,title:zt,label:pt,path:we}=de,ve=y(de,["key","title","label","path"]);let Pe=pt!=null?pt:zt;return we&&(Pe=ce.createElement("a",{href:`${Ft}${we}`},Pe)),Object.assign(Object.assign({},ve),{key:tt!=null?tt:Je,label:Pe})})})}else mt&&(Ye.overlay=mt);return ce.createElement(ze.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${$e}-overlay-link`},xe,ce.createElement(Te.Z,null)))}return xe})(Xe);return ye!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,ye),Oe&&ce.createElement(je,null,Oe)):null},b=he=>{const{prefixCls:$e,children:Oe,href:Xe}=he,rt=y(he,["prefixCls","children","href"]),{getPrefixCls:mt}=ce.useContext(se.E_),St=mt("breadcrumb",$e);return ce.createElement(E,Object.assign({},rt,{prefixCls:St}),ne(St,rt,Oe,Xe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(17313),ee=re(83116),te=re(37613);const oe=he=>{const{componentCls:$e,iconCls:Oe}=he;return{[$e]:Object.assign(Object.assign({},(0,z.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[Oe]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${he.paddingXXS}px`,borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",marginInline:-he.marginXXS,"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,z.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${$e}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${$e}-link`]:{[`
|
|
> ${Oe} + span,
|
|
> ${Oe} + a
|
|
`]:{marginInlineStart:he.marginXXS}},[`${$e}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",padding:`0 ${he.paddingXXS}px`,marginInline:-he.marginXXS,[`> ${Oe}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",he=>{const $e=(0,te.TS)(he,{});return[oe($e)]},he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS})),ge=function(he,$e){var Oe={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&$e.indexOf(Xe)<0&&(Oe[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xe=Object.getOwnPropertySymbols(he);rt<Xe.length;rt++)$e.indexOf(Xe[rt])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[rt])&&(Oe[Xe[rt]]=he[Xe[rt]]);return Oe};function me(he){const{breadcrumbName:$e,children:Oe}=he,Xe=ge(he,["breadcrumbName","children"]),rt=Object.assign({title:$e},Xe);return Oe&&(rt.menu={items:Oe.map(mt=>{var{breadcrumbName:St}=mt,Ft=ge(mt,["breadcrumbName"]);return Object.assign(Object.assign({},Ft),{title:St})})}),rt}function le(he,$e){return(0,ce.useMemo)(()=>he||($e?$e.map(me):null),[he,$e])}var Ce=function(he,$e){var Oe={};for(var Xe in he)Object.prototype.hasOwnProperty.call(he,Xe)&&$e.indexOf(Xe)<0&&(Oe[Xe]=he[Xe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xe=Object.getOwnPropertySymbols(he);rt<Xe.length;rt++)$e.indexOf(Xe[rt])<0&&Object.prototype.propertyIsEnumerable.call(he,Xe[rt])&&(Oe[Xe[rt]]=he[Xe[rt]]);return Oe};const Be=(he,$e)=>{if($e===void 0)return $e;let Oe=($e||"").replace(/^\//,"");return Object.keys(he).forEach(Xe=>{Oe=Oe.replace(`:${Xe}`,he[Xe])}),Oe},lt=he=>{const{prefixCls:$e,separator:Oe="/",style:Xe,className:rt,rootClassName:mt,routes:St,items:Ft,children:st,itemRender:ye,params:xe={}}=he,Ye=Ce(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:yt,direction:et,breadcrumb:it}=ce.useContext(se.E_);let de;const Je=yt("breadcrumb",$e),[tt,zt]=ie(Je),pt=le(Ft,St),we=a(Je,ye);if(pt&&pt.length>0){const ke=[],Ke=Ft||St;de=pt.map((ut,$t)=>{const{path:Lt,key:At,type:kt,menu:bt,overlay:Ht,onClick:Et,className:Kt,separator:Ln,dropdownProps:gn}=ut,nn=Be(xe,Lt);nn!==void 0&&ke.push(nn);const pe=At!=null?At:$t;if(kt==="separator")return ce.createElement(je,{key:pe},Ln);const Ne={},Ue=$t===pt.length-1;bt?Ne.menu=bt:Ht&&(Ne.overlay=Ht);let{href:dt}=ut;return ke.length&&nn!==void 0&&(dt=`#/${ke.join("/")}`),ce.createElement(E,Object.assign({key:pe},Ne,(0,Ie.Z)(ut,{data:!0,aria:!0}),{className:Kt,dropdownProps:gn,href:dt,separator:Ue?"":Oe,onClick:Et,prefixCls:Je}),we(ut,xe,Ke,ke,dt))})}else if(st){const ke=(0,Ze.Z)(st).length;de=(0,Ze.Z)(st).map((Ke,ut)=>{if(!Ke)return Ke;const $t=ut===ke-1;return(0,Fe.Tm)(Ke,{separator:$t?"":Oe,key:ut})})}const ve=Se()(Je,it==null?void 0:it.className,{[`${Je}-rtl`]:et==="rtl"},rt,mt,zt),Pe=Object.assign(Object.assign({},it==null?void 0:it.style),Xe);return tt(ce.createElement("nav",Object.assign({className:ve,style:Pe},Ye),ce.createElement("ol",null,de)))};lt.Item=x,lt.Separator=je;var Gt=lt,_t=Gt},24905:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return ie}});var ae=re(92310),Se=re.n(ae),Ze=re(5630),Ie=re(59301),ce=re(36355),Fe=re(1684),se=re(32441),ze=Ie.createContext(null),Ae=re(98447),je=re(14088),_e=re(4572),Re=function(ge,me){var le={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(le[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ce=Object.getOwnPropertySymbols(ge);Be<Ce.length;Be++)me.indexOf(Ce[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[Be])&&(le[Ce[Be]]=ge[Ce[Be]]);return le};const ne=(ge,me)=>{var le;const{prefixCls:Ce,className:Be,rootClassName:lt,children:Gt,indeterminate:_t=!1,style:he,onMouseEnter:$e,onMouseLeave:Oe,skipGroup:Xe=!1,disabled:rt}=ge,mt=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:Ft,checkbox:st}=Ie.useContext(ce.E_),ye=Ie.useContext(ze),{isFormItemInput:xe}=Ie.useContext(se.aM),Ye=Ie.useContext(Fe.Z),yt=(le=(ye==null?void 0:ye.disabled)||rt)!==null&&le!==void 0?le:Ye,et=Ie.useRef(mt.value);Ie.useEffect(()=>{ye==null||ye.registerValue(mt.value)},[]),Ie.useEffect(()=>{if(!Xe)return mt.value!==et.current&&(ye==null||ye.cancelValue(et.current),ye==null||ye.registerValue(mt.value),et.current=mt.value),()=>ye==null?void 0:ye.cancelValue(mt.value)},[mt.value]);const it=St("checkbox",Ce),[de,Je]=(0,Ae.ZP)(it),tt=Object.assign({},mt);ye&&!Xe&&(tt.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),ye.toggleOption&&ye.toggleOption({label:Gt,value:mt.value})},tt.name=ye.name,tt.checked=ye.value.includes(mt.value));const zt=Se()(`${it}-wrapper`,{[`${it}-rtl`]:Ft==="rtl",[`${it}-wrapper-checked`]:tt.checked,[`${it}-wrapper-disabled`]:yt,[`${it}-wrapper-in-form-item`]:xe},st==null?void 0:st.className,Be,lt,Je),pt=Se()({[`${it}-indeterminate`]:_t},_e.A,Je),we=_t?"mixed":void 0;return de(Ie.createElement(je.Z,{component:"Checkbox",disabled:yt},Ie.createElement("label",{className:zt,style:Object.assign(Object.assign({},st==null?void 0:st.style),he),onMouseEnter:$e,onMouseLeave:Oe},Ie.createElement(Ze.Z,Object.assign({"aria-checked":we},tt,{prefixCls:it,className:pt,disabled:yt,ref:me})),Gt!==void 0&&Ie.createElement("span",null,Gt))))};var y=Ie.forwardRef(ne),E=re(3300),b=re(2738),x=function(ge,me){var le={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(le[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ce=Object.getOwnPropertySymbols(ge);Be<Ce.length;Be++)me.indexOf(Ce[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[Be])&&(le[Ce[Be]]=ge[Ce[Be]]);return le};const z=(ge,me)=>{const{defaultValue:le,children:Ce,options:Be=[],prefixCls:lt,className:Gt,rootClassName:_t,style:he,onChange:$e}=ge,Oe=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Xe,direction:rt}=Ie.useContext(ce.E_),[mt,St]=Ie.useState(Oe.value||le||[]),[Ft,st]=Ie.useState([]);Ie.useEffect(()=>{"value"in Oe&&St(Oe.value||[])},[Oe.value]);const ye=Ie.useMemo(()=>Be.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[Be]),xe=ve=>{st(Pe=>Pe.filter(ke=>ke!==ve))},Ye=ve=>{st(Pe=>[].concat((0,E.Z)(Pe),[ve]))},yt=ve=>{const Pe=mt.indexOf(ve.value),ke=(0,E.Z)(mt);Pe===-1?ke.push(ve.value):ke.splice(Pe,1),"value"in Oe||St(ke),$e==null||$e(ke.filter(Ke=>Ft.includes(Ke)).sort((Ke,ut)=>{const $t=ye.findIndex(At=>At.value===Ke),Lt=ye.findIndex(At=>At.value===ut);return $t-Lt}))},et=Xe("checkbox",lt),it=`${et}-group`,[de,Je]=(0,Ae.ZP)(et),tt=(0,b.Z)(Oe,["value","disabled"]),zt=Be.length?ye.map(ve=>Ie.createElement(y,{prefixCls:et,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:Oe.disabled,value:ve.value,checked:mt.includes(ve.value),onChange:ve.onChange,className:`${it}-item`,style:ve.style,title:ve.title},ve.label)):Ce,pt={toggleOption:yt,value:mt,disabled:Oe.disabled,name:Oe.name,registerValue:Ye,cancelValue:xe},we=Se()(it,{[`${it}-rtl`]:rt==="rtl"},Gt,_t,Je);return de(Ie.createElement("div",Object.assign({className:we,style:he},tt,{ref:me}),Ie.createElement(ze.Provider,{value:pt},zt)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var ie=oe},98447:function(Ge,ot,re){"use strict";re.d(ot,{C2:function(){return ce}});var ae=re(17313),Se=re(37613),Ze=re(83116);const Ie=Fe=>{const{checkboxCls:se}=Fe,Te=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Te]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Te}`]:{marginInlineStart:0},[`&${Te}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ae.oN)(Fe))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
|
|
${Te}:not(${Te}-disabled),
|
|
${se}:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{borderColor:Fe.colorPrimary}},[`${Te}:not(${Te}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
|
|
${Te}-checked:not(${Te}-disabled),
|
|
${se}-checked:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Te}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,se){const Te=(0,Se.TS)(se,{checkboxCls:`.${Fe}`,checkboxSize:se.controlInteractiveSize});return[Ie(Te)]}ot.ZP=(0,Ze.Z)("Checkbox",(Fe,se)=>{let{prefixCls:Te}=se;return[ce(Te,Fe)]})},91857:function(Ge,ot,re){"use strict";var ae=re(59301),Se=re(38819),Ze=re(92310),Ie=re.n(Ze),ce=re(31561),Fe=re(70425),se=re(18929),Te=re(2738),ze=re(79676),Ae=re(53487),je=re(92343),_e=re(36355),Re=re(20834),ne=re(40875),a=re(88088),y=re(47211);const E=null,b=te=>{const{menu:oe,arrow:ie,prefixCls:ge,children:me,trigger:le,disabled:Ce,dropdownRender:Be,getPopupContainer:lt,overlayClassName:Gt,rootClassName:_t,open:he,onOpenChange:$e,visible:Oe,onVisibleChange:Xe,mouseEnterDelay:rt=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:St=!0,placement:Ft="",overlay:st,transitionName:ye}=te,{getPopupContainer:xe,getPrefixCls:Ye,direction:yt}=ae.useContext(_e.E_),et=ae.useMemo(()=>{const bt=Ye();return ye!==void 0?ye:Ft.includes("top")?`${bt}-slide-down`:`${bt}-slide-up`},[Ye,Ft,ye]),it=ae.useMemo(()=>Ft?Ft.includes("Center")?Ft.slice(0,Ft.indexOf("Center")):Ft:yt==="rtl"?"bottomRight":"bottomLeft",[Ft,yt]),de=Ye("dropdown",ge),[Je,tt]=(0,y.Z)(de),[,zt]=(0,a.Z)(),pt=ae.Children.only(me),we=(0,je.Tm)(pt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:yt==="rtl"},pt.props.className),disabled:Ce}),ve=Ce?[]:le;let Pe;ve&&ve.includes("contextMenu")&&(Pe=!0);const[ke,Ke]=(0,se.Z)(!1,{value:he!=null?he:Oe}),ut=(0,Fe.useEvent)(bt=>{$e==null||$e(bt),Xe==null||Xe(bt),Ke(bt)}),$t=Ie()(Gt,_t,tt,{[`${de}-rtl`]:yt==="rtl"}),Lt=(0,ze.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:St,offset:zt.marginXXS,arrowWidth:ie?zt.sizePopupArrow:0,borderRadius:zt.borderRadius}),At=ae.useCallback(()=>{Ke(!1)},[]),kt=()=>{let bt;return oe!=null&&oe.items?bt=ae.createElement(Re.default,Object.assign({},oe)):typeof st=="function"?bt=st():bt=st,Be&&(bt=Be(bt)),bt=ae.Children.only(typeof bt=="string"?ae.createElement("span",null,bt):bt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:Ht=>{let{mode:Et}=Ht}},bt)};return Je(ae.createElement(ce.Z,Object.assign({alignPoint:Pe},(0,Te.Z)(te,["rootClassName"]),{mouseEnterDelay:rt,mouseLeaveDelay:mt,visible:ke,builtinPlacements:Lt,arrow:!!ie,overlayClassName:$t,prefixCls:de,getPopupContainer:lt||xe,transitionName:et,trigger:ve,overlay:kt,placement:it,onVisibleChange:ut}),we))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ae.Z)(b,"dropdown",te=>te,x),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=b},47211:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return je}});var ae=re(17313),Se=re(13826),Ze=re(92899),Ie=re(29878),ce=re(19447),Fe=re(83116),se=re(37613),ze=_e=>{const{componentCls:Re,menuCls:ne,colorError:a,colorTextLightSolid:y}=_e,E=`${ne}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=_e=>{const{componentCls:Re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:le}=_e;return[{[Re]:Object.assign(Object.assign({},(0,ae.Wf)(_e)),{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}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-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${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(_e,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,ae.Qy)(_e)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:_e.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:_e.marginXS,fontSize:_e.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:_e.colorText,fontWeight:"normal",fontSize:te,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,ae.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${_e.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+_e.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Re}-menu-submenu-title`]:{color:_e.colorPrimary}})}},[(0,Se.oN)(_e,"slide-up"),(0,Se.oN)(_e,"slide-down"),(0,Ze.Fm)(_e,"move-up"),(0,Ze.Fm)(_e,"move-down"),(0,Ie._y)(_e,"zoom-big")]]};var je=(0,Fe.Z)("Dropdown",(_e,Re)=>{let{rootPrefixCls:ne}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=_e,oe=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,se.TS)(_e,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(ge),ze(ge)]},_e=>({zIndexPopup:_e.zIndexPopupBase+50}))},45818:function(Ge,ot,re){"use strict";re.d(ot,{D:function(){return z},Z:function(){return oe}});var ae=re(32855),Se=re(59301),Ze={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"},Ie=Ze,ce=re(7657),Fe=function(ge,me){return Se.createElement(ce.Z,(0,ae.Z)({},ge,{ref:me,icon:Ie}))},se=Se.forwardRef(Fe),Te=se,ze=re(33853),Ae=re(38819),je=re(92310),_e=re.n(je),Re=re(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=re(36355),E=re(84966),b=function(ie,ge){var me={};for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&ge.indexOf(le)<0&&(me[le]=ie[le]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,le=Object.getOwnPropertySymbols(ie);Ce<le.length;Ce++)ge.indexOf(le[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,le[Ce])&&(me[le[Ce]]=ie[le[Ce]]);return me};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var oe=Se.forwardRef((ie,ge)=>{const{prefixCls:me,className:le,trigger:Ce,children:Be,defaultCollapsed:lt=!1,theme:Gt="dark",style:_t={},collapsible:he=!1,reverseArrow:$e=!1,width:Oe=200,collapsedWidth:Xe=80,zeroWidthTriggerStyle:rt,breakpoint:mt,onCollapse:St,onBreakpoint:Ft}=ie,st=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,Se.useContext)(E.Gs),[xe,Ye]=(0,Se.useState)("collapsed"in ie?ie.collapsed:lt),[yt,et]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Ye(ie.collapsed)},[ie.collapsed]);const it=(we,ve)=>{"collapsed"in ie||Ye(we),St==null||St(we,ve)},de=(0,Se.useRef)();de.current=we=>{et(we.matches),Ft==null||Ft(we.matches),xe!==we.matches&&it(we.matches,"responsive")},(0,Se.useEffect)(()=>{function we(Pe){return de.current(Pe)}let ve;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&mt&&mt in x){ve=Pe(`(max-width: ${x[mt]})`);try{ve.addEventListener("change",we)}catch(ke){ve.addListener(we)}we(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",we)}catch(Pe){ve==null||ve.removeListener(we)}}},[mt]),(0,Se.useEffect)(()=>{const we=ee("ant-sider-");return ye.addSider(we),()=>ye.removeSider(we)},[]);const Je=()=>{it(!xe,"clickTrigger")},{getPrefixCls:tt}=(0,Se.useContext)(y.E_),zt=()=>{const we=tt("layout-sider",me),ve=(0,Re.Z)(st,["collapsed"]),Pe=xe?Xe:Oe,ke=a(Pe)?`${Pe}px`:String(Pe),Ke=parseFloat(String(Xe||0))===0?Se.createElement("span",{onClick:Je,className:_e()(`${we}-zero-width-trigger`,`${we}-zero-width-trigger-${$e?"right":"left"}`),style:rt},Ce||Se.createElement(Te,null)):null,Lt={expanded:$e?Se.createElement(Ae.Z,null):Se.createElement(ze.Z,null),collapsed:$e?Se.createElement(ze.Z,null):Se.createElement(Ae.Z,null)}[xe?"collapsed":"expanded"],At=Ce!==null?Ke||Se.createElement("div",{className:`${we}-trigger`,onClick:Je,style:{width:ke}},Ce||Lt):null,kt=Object.assign(Object.assign({},_t),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),bt=_e()(we,`${we}-${Gt}`,{[`${we}-collapsed`]:!!xe,[`${we}-has-trigger`]:he&&Ce!==null&&!Ke,[`${we}-below`]:!!yt,[`${we}-zero-width`]:parseFloat(ke)===0},le);return Se.createElement("aside",Object.assign({className:bt},ve,{style:kt,ref:ge}),Se.createElement("div",{className:`${we}-children`},Be),he||yt&&Ke?At:null)},pt=Se.useMemo(()=>({siderCollapsed:xe}),[xe]);return Se.createElement(z.Provider,{value:pt},zt())})},84966:function(Ge,ot,re){"use strict";re.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ae=re(3300),Se=re(92310),Ze=re.n(Se),Ie=re(2738),ce=re(59301),Fe=re(36355),se=re(83116),ze=te=>{const{componentCls:oe,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ge,[`${oe}-sider-trigger`]:{color:le,background:me},[`${oe}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ae=te=>{const{antCls:oe,componentCls:ie,colorText:ge,triggerColor:me,footerBg:le,triggerBg:Ce,headerHeight:Be,headerPadding:lt,headerColor:Gt,footerPadding:_t,triggerHeight:he,zeroTriggerHeight:$e,zeroTriggerWidth:Oe,motionDurationMid:Xe,motionDurationSlow:rt,fontSize:mt,borderRadius:St,bodyBg:Ft,headerBg:st,siderBg:ye}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ft,"&, *":{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:ye,transition:`all ${Xe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:he},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:he,color:me,lineHeight:`${he}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Xe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-Oe,zIndex:1,width:Oe,height:$e,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${rt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${rt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Oe,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},ze(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Be,padding:lt,color:Gt,lineHeight:`${Be}px`,background:st,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:_t,color:ge,fontSize:mt,background:le},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var je=(0,se.Z)("Layout",te=>[Ae(te)],te=>{const{colorBgLayout:oe,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:le,marginXXS:Ce,colorTextLightSolid:Be,colorBgContainer:lt}=te,Gt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Gt}px`,headerColor:me,footerPadding:`${le}px ${Gt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ge+Ce*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(te,oe){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&oe.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++)oe.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const Re=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ie,displayName:ge}=te;return me=>ce.forwardRef((Ce,Be)=>ce.createElement(me,Object.assign({ref:Be,suffixCls:oe,tagName:ie},Ce)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:le}=te,Ce=_e(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ce.useContext(Fe.E_),lt=Be("layout",ie),[Gt,_t]=je(lt),he=ge?`${lt}-${ge}`:lt;return Gt(ce.createElement(le,Object.assign({className:Ze()(ie||he,me,_t),ref:oe},Ce)))}),y=ce.forwardRef((te,oe)=>{const{direction:ie}=ce.useContext(Fe.E_),[ge,me]=ce.useState([]),{prefixCls:le,className:Ce,rootClassName:Be,children:lt,hasSider:Gt,tagName:_t,style:he}=te,$e=_e(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Oe=(0,Ie.Z)($e,["suffixCls"]),{getPrefixCls:Xe,layout:rt}=ce.useContext(Fe.E_),mt=Xe("layout",le),[St,Ft]=je(mt),st=Ze()(mt,{[`${mt}-has-sider`]:typeof Gt=="boolean"?Gt:ge.length>0,[`${mt}-rtl`]:ie==="rtl"},rt==null?void 0:rt.className,Ce,Be,Ft),ye=ce.useMemo(()=>({siderHook:{addSider:xe=>{me(Ye=>[].concat((0,ae.Z)(Ye),[xe]))},removeSider:xe=>{me(Ye=>Ye.filter(yt=>yt!==xe))}}}),[]);return St(ce.createElement(Re.Provider,{value:ye},ce.createElement(_t,Object.assign({ref:oe,className:st,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),he)},Oe),lt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ge,ot,re){"use strict";re.d(ot,{J:function(){return Fe}});var ae=re(59301),Se=re(33234),Ze=re(70425),Ie=function(se,Te){var ze={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&Te.indexOf(Ae)<0&&(ze[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(se);je<Ae.length;je++)Te.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(se,Ae[je])&&(ze[Ae[je]]=se[Ae[je]]);return ze};const ce=ae.createContext(null),Fe=ae.forwardRef((se,Te)=>{const{children:ze}=se,Ae=Ie(se,["children"]),je=ae.useContext(ce),_e=ae.useMemo(()=>Object.assign(Object.assign({},je),Ae),[je,Ae.prefixCls,Ae.mode,Ae.selectable]);return ae.createElement(ce.Provider,{value:_e},ae.createElement(Se.BR,null,(0,Ze.supportNodeRef)(ze)?ae.cloneElement(ze,{ref:Te}):ze))});ot.Z=ce},20834:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return pt}});var ae=re(15285),Se=re(59301),Ze=re(45818),Ie=re(92310),ce=re.n(Ie),Fe=re(36355),se=function(we,ve){var Pe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(Pe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ke=Object.getOwnPropertySymbols(we);Ke<ke.length;Ke++)ve.indexOf(ke[Ke])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[Ke])&&(Pe[ke[Ke]]=we[ke[Ke]]);return Pe},ze=we=>{const{prefixCls:ve,className:Pe,dashed:ke}=we,Ke=se(we,["prefixCls","className","dashed"]),{getPrefixCls:ut}=Se.useContext(Fe.E_),$t=ut("menu",ve),Lt=ce()({[`${$t}-item-divider-dashed`]:!!ke},Pe);return Se.createElement(ae.iz,Object.assign({className:Lt},Ke))},Ae=re(11592),je=re(2738),_e=re(6848),Re=re(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=we=>{var ve;const{className:Pe,children:ke,icon:Ke,title:ut,danger:$t}=we,{prefixCls:Lt,firstLevel:At,direction:kt,disableMenuItemTitleTooltip:bt,inlineCollapsed:Ht}=Se.useContext(a),Et=Ne=>{const Ue=Se.createElement("span",{className:`${Lt}-title-content`},ke);return(!Ke||(0,Re.l$)(ke)&&ke.type==="span")&&ke&&Ne&&At&&typeof ke=="string"?Se.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},ke.charAt(0)):Ue},{siderCollapsed:Kt}=Se.useContext(Ze.D);let Ln=ut;typeof ut=="undefined"?Ln=At?ke:"":ut===!1&&(Ln="");const gn={title:Ln};!Kt&&!Ht&&(gn.title=null,gn.open=!1);const nn=(0,Ae.Z)(ke).length;let pe=Se.createElement(ae.ck,Object.assign({},(0,je.Z)(we,["title","icon","danger"]),{className:ce()({[`${Lt}-item-danger`]:$t,[`${Lt}-item-only-child`]:(Ke?nn+1:nn)===1},Pe),title:typeof ut=="string"?ut:void 0}),(0,Re.Tm)(Ke,{className:ce()((0,Re.l$)(Ke)?(ve=Ke.props)===null||ve===void 0?void 0:ve.className:"",`${Lt}-item-icon`)}),Et(Ht));return bt||(pe=Se.createElement(_e.Z,Object.assign({},gn,{placement:kt==="rtl"?"left":"right",overlayClassName:`${Lt}-inline-collapsed-tooltip`}),pe)),pe},x=we=>{var ve;const{popupClassName:Pe,icon:ke,title:Ke,theme:ut}=we,$t=Se.useContext(a),{prefixCls:Lt,inlineCollapsed:At,theme:kt}=$t,bt=(0,ae.Xl)();let Ht;if(!ke)Ht=At&&!bt.length&&Ke&&typeof Ke=="string"?Se.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},Ke.charAt(0)):Se.createElement("span",{className:`${Lt}-title-content`},Ke);else{const Kt=(0,Re.l$)(Ke)&&Ke.type==="span";Ht=Se.createElement(Se.Fragment,null,(0,Re.Tm)(ke,{className:ce()((0,Re.l$)(ke)?(ve=ke.props)===null||ve===void 0?void 0:ve.className:"",`${Lt}-item-icon`)}),Kt?Ke:Se.createElement("span",{className:`${Lt}-title-content`},Ke))}const Et=Se.useMemo(()=>Object.assign(Object.assign({},$t),{firstLevel:!1}),[$t]);return Se.createElement(a.Provider,{value:Et},Se.createElement(ae.Wd,Object.assign({},(0,je.Z)(we,["icon"]),{title:Ht,popupClassName:ce()(Lt,Pe,`${Lt}-${ut||kt}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ie=function(we,ve){var Pe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(Pe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ke=Object.getOwnPropertySymbols(we);Ke<ke.length;Ke++)ve.indexOf(ke[Ke])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[Ke])&&(Pe[ke[Ke]]=we[ke[Ke]]);return Pe};function ge(we){return(we||[]).map((ve,Pe)=>{if(ve&&typeof ve=="object"){const ke=ve,{label:Ke,children:ut,key:$t,type:Lt}=ke,At=ie(ke,["label","children","key","type"]),kt=$t!=null?$t:`tmp-${Pe}`;return ut||Lt==="group"?Lt==="group"?Se.createElement(ae.BW,Object.assign({key:kt},At,{title:Ke}),ge(ut)):Se.createElement(x,Object.assign({key:kt},At,{title:Ke}),ge(ut)):Lt==="divider"?Se.createElement(ze,Object.assign({key:kt},At)):Se.createElement(E,Object.assign({key:kt},At),Ke)}return null}).filter(ve=>ve)}function me(we){return Se.useMemo(()=>we&&ge(we),[we])}var le=re(64993),Ce=re(17313),Be=re(8378),lt=re(13826),Gt=re(29878),_t=re(83116),he=re(37613),Oe=we=>{const{componentCls:ve,motionDurationSlow:Pe,horizontalLineHeight:ke,colorSplit:Ke,lineWidth:ut,lineType:$t,itemPaddingInline:Lt}=we;return{[`${ve}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${ut}px ${$t} ${Ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${ve}-item:hover,
|
|
> ${ve}-item-active,
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},rt=we=>{let{componentCls:ve,menuArrowOffset:Pe}=we;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const mt=we=>Object.assign({},(0,Ce.oN)(we));var Ft=(we,ve)=>{const{componentCls:Pe,itemColor:ke,itemSelectedColor:Ke,groupTitleColor:ut,itemBg:$t,subMenuItemBg:Lt,itemSelectedBg:At,activeBarHeight:kt,activeBarWidth:bt,activeBarBorderWidth:Ht,motionDurationSlow:Et,motionEaseInOut:Kt,motionEaseOut:Ln,itemPaddingInline:gn,motionDurationMid:nn,itemHoverColor:pe,lineType:Ne,colorSplit:Ue,itemDisabledColor:dt,dangerItemColor:Pt,dangerItemHoverColor:Dt,dangerItemSelectedColor:Rt,dangerItemActiveBg:Bt,dangerItemSelectedBg:Tt,itemHoverBg:Yt,itemActiveBg:Xt,menuSubMenuBg:en,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:an}=we;return{[`${Pe}-${ve}, ${Pe}-${ve} > ${Pe}`]:{color:ke,background:$t,[`&${Pe}-root:focus-visible`]:Object.assign({},mt(we)),[`${Pe}-item-group-title`]:{color:ut},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Ke}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${dt} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:pe}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}}},[`${Pe}-item-danger`]:{color:Pt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Dt}},[`&${Pe}-item:active`]:{background:Bt}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Ke,[`&${Pe}-item-danger`]:{color:Rt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:At,[`&${Pe}-item-danger`]:{backgroundColor:Tt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},mt(we))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:en},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:an},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:gn,bottom:0,borderBottom:`${kt}px solid transparent`,transition:`border-color ${Et} ${Kt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:kt,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:kt,borderBottomColor:fn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${Ht}px ${Ne} ${Ue}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Lt},[`${Pe}-item, ${Pe}-submenu-title`]:Ht&&bt?{width:`calc(100% + ${Ht}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${bt}px solid ${Ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${nn} ${Ln}`,`opacity ${nn} ${Ln}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:Rt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${nn} ${Kt}`,`opacity ${nn} ${Kt}`].join(",")}}}}}};const st=we=>{const{componentCls:ve,itemHeight:Pe,itemMarginInline:ke,padding:Ke,menuArrowSize:ut,marginXS:$t,itemMarginBlock:Lt}=we,At=Ke+ut+$t;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Lt,width:`calc(100% - ${ke*2}px)`},[`> ${ve}-item,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
${ve}-submenu-title`]:{paddingInlineEnd:At}}};var xe=we=>{const{componentCls:ve,iconCls:Pe,itemHeight:ke,colorTextLightSolid:Ke,dropdownWidth:ut,controlHeightLG:$t,motionDurationMid:Lt,motionEaseOut:At,paddingXL:kt,itemMarginInline:bt,fontSizeLG:Ht,motionDurationSlow:Et,paddingXS:Kt,boxShadowSecondary:Ln,collapsedWidth:gn,collapsedIconSize:nn}=we,pe={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},st(we))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},st(we)),{boxShadow:Ln})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${$t*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${Lt} ${At}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:pe,[`& ${ve}-item-group-title`]:{paddingInlineStart:kt}},[`${ve}-item`]:pe}},{[`${ve}-inline-collapsed`]:{width:gn,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${bt}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${Pe}`]:{margin:0,fontSize:nn,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Ke}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:Kt})}}]};const Ye=we=>{const{componentCls:ve,motionDurationSlow:Pe,motionDurationMid:ke,motionEaseInOut:Ke,motionEaseOut:ut,iconCls:$t,iconSize:Lt,iconMarginInlineEnd:At}=we;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Ke}`].join(","),[`${ve}-item-icon, ${$t}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${ke} ${ut}`,`margin ${Pe} ${Ke}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${Pe} ${Ke}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${ve}-item-only-child`]:{[`> ${$t}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yt=we=>{const{componentCls:ve,motionDurationSlow:Pe,motionEaseInOut:ke,borderRadius:Ke,menuArrowSize:ut,menuArrowOffset:$t}=we;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${ke}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:Ke,transition:[`background ${Pe} ${ke}`,`transform ${Pe} ${ke}`,`top ${Pe} ${ke}`,`color ${Pe} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${$t})`},"&::after":{transform:`rotate(-45deg) translateY(${$t})`}}}}},et=we=>{const{antCls:ve,componentCls:Pe,fontSize:ke,motionDurationSlow:Ke,motionDurationMid:ut,motionEaseInOut:$t,paddingXS:Lt,padding:At,colorSplit:kt,lineWidth:bt,zIndexPopup:Ht,borderRadiusLG:Et,subMenuItemBorderRadius:Kt,menuArrowSize:Ln,menuArrowOffset:gn,lineType:nn,menuPanelMaskInset:pe,groupTitleLineHeight:Ne,groupTitleFontSize:Ue}=we;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(we)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Lt}px ${At}px`,fontSize:Ue,lineHeight:Ne,transition:`all ${Ke}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Ke} ${$t}`,`background ${Ke} ${$t}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Ke} ${$t}`,`background ${Ke} ${$t}`,`padding ${ut} ${$t}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Ke} ${$t}`,`padding ${Ke} ${$t}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Ke}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:nn,borderWidth:0,borderTopWidth:bt,marginBlock:bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(we)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${ke*2}px ${At}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},Ye(we)),yt(we)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Kt},[`${Pe}-submenu-title::after`]:{transition:`transform ${Ke} ${$t}`}})}}),yt(we)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
|
|
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gn})`},"&::after":{transform:`rotate(45deg) translateX(-${gn})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${Ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${gn})`},"&::before":{transform:`rotate(45deg) translateX(${gn})`}}})},{[`${ve}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var it=(we,ve)=>(0,_t.Z)("Menu",ke=>{if(ve===!1)return[];const{colorBgElevated:Ke,colorPrimary:ut,colorTextLightSolid:$t,controlHeightLG:Lt,fontSize:At,darkItemColor:kt,darkDangerItemColor:bt,darkItemBg:Ht,darkSubMenuItemBg:Et,darkItemSelectedColor:Kt,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:gn,darkItemHoverBg:nn,darkGroupTitleColor:pe,darkItemHoverColor:Ne,darkItemDisabledColor:Ue,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Dt}=ke,Rt=At/7*5,Bt=(0,he.TS)(ke,{menuArrowSize:Rt,menuHorizontalHeight:Lt*1.15,menuArrowOffset:`${Rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ke}),Tt=(0,he.TS)(Bt,{itemColor:kt,itemHoverColor:Ne,groupTitleColor:pe,itemSelectedColor:Kt,itemBg:Ht,popupBg:Ht,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:nn,itemDisabledColor:Ue,dangerItemColor:bt,dangerItemHoverColor:dt,dangerItemSelectedColor:Pt,dangerItemActiveBg:Dt,dangerItemSelectedBg:gn,menuSubMenuBg:Et,horizontalItemSelectedColor:$t,horizontalItemSelectedBg:ut});return[et(Bt),Oe(Bt),xe(Bt),Ft(Bt,"light"),Ft(Tt,"dark"),rt(Bt),(0,Be.Z)(Bt),(0,lt.oN)(Bt,"slide-up"),(0,lt.oN)(Bt,"slide-down"),(0,Gt._y)(Bt,"zoom-big")]},ke=>{const{colorPrimary:Ke,colorError:ut,colorTextDisabled:$t,colorErrorBg:Lt,colorText:At,colorTextDescription:kt,colorBgContainer:bt,colorFillAlter:Ht,colorFillContent:Et,lineWidth:Kt,lineWidthBold:Ln,controlItemBgActive:gn,colorBgTextHover:nn,controlHeightLG:pe,lineHeight:Ne,colorBgElevated:Ue,marginXXS:dt,padding:Pt,fontSize:Dt,controlHeightSM:Rt,fontSizeLG:Bt,colorTextLightSolid:Tt,colorErrorHover:Yt}=ke,Xt=new le.C(Tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:Ke,horizontalItemHoverColor:Ke,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:Ke,itemSelectedColor:Ke,colorItemTextSelectedHorizontal:Ke,horizontalItemSelectedColor:Ke,colorItemBg:bt,itemBg:bt,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:Et,itemActiveBg:gn,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:gn,itemSelectedBg:gn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ln,activeBarHeight:Ln,colorActiveBarBorderSize:Kt,activeBarBorderWidth:Kt,colorItemTextDisabled:$t,itemDisabledColor:$t,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Ne,collapsedWidth:pe*2,popupBg:Ue,itemMarginBlock:dt,itemPaddingInline:Pt,horizontalLineHeight:`${pe*1.15}px`,iconSize:Dt,iconMarginInlineEnd:Rt-Dt,collapsedIconSize:Bt,groupTitleFontSize:Dt,darkItemDisabledColor:new le.C(Tt).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tt,darkItemSelectedBg:Ke,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:Tt,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:ut}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(we),de=function(we,ve){var Pe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&ve.indexOf(ke)<0&&(Pe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ke=Object.getOwnPropertySymbols(we);Ke<ke.length;Ke++)ve.indexOf(ke[Ke])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[Ke])&&(Pe[ke[Ke]]=we[ke[Ke]]);return Pe},tt=(0,Se.forwardRef)((we,ve)=>{var Pe,ke;const Ke=Se.useContext(oe.Z),ut=Ke||{},{getPrefixCls:$t,getPopupContainer:Lt,direction:At,menu:kt}=Se.useContext(Fe.E_),bt=$t(),{prefixCls:Ht,className:Et,style:Kt,theme:Ln="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:nn,inlineCollapsed:pe,siderCollapsed:Ne,items:Ue,children:dt,rootClassName:Pt,mode:Dt,selectable:Rt,onClick:Bt,overflowedIndicatorPopupClassName:Tt}=we,Yt=de(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,je.Z)(Yt,["collapsedWidth"]),en=me(Ue)||dt;(Pe=ut.validator)===null||Pe===void 0||Pe.call(ut,{mode:Dt});const fn=(0,ee.useEvent)(function(){var In;Bt==null||Bt.apply(void 0,arguments),(In=ut.onClick)===null||In===void 0||In.call(ut)}),pn=ut.mode||Dt,Fn=Rt!=null?Rt:ut.selectable,dn=Se.useMemo(()=>Ne!==void 0?Ne:pe,[pe,Ne]),an={horizontal:{motionName:`${bt}-slide-up`},inline:(0,te.Z)(bt),other:{motionName:`${bt}-zoom-big`}},vn=$t("menu",Ht||ut.prefixCls),[En,xn]=it(vn,!Ke),un=ce()(`${vn}-${Ln}`,kt==null?void 0:kt.className,Et);let Nn;if(typeof gn=="function")Nn=gn;else if(gn===null||gn===!1)Nn=null;else if(ut.expandIcon===null||ut.expandIcon===!1)Nn=null;else{const In=gn!=null?gn:ut.expandIcon;Nn=(0,Re.Tm)(In,{className:ce()(`${vn}-submenu-expand-icon`,(0,Re.l$)(In)?(ke=In.props)===null||ke===void 0?void 0:ke.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:vn,inlineCollapsed:dn||!1,direction:At,firstLevel:!0,theme:Ln,mode:pn,disableMenuItemTitleTooltip:nn}),[vn,dn,At,nn,Ln]);return En(Se.createElement(oe.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ae.ZP,Object.assign({getPopupContainer:Lt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(vn,`${vn}-${Ln}`,Tt),mode:pn,selectable:Fn,onClick:fn},Xt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Kt),className:un,prefixCls:vn,direction:At,defaultMotions:an,expandIcon:Nn,ref:ve,rootClassName:ce()(Pt,xn)}),en))))});const zt=(0,Se.forwardRef)((we,ve)=>{const Pe=(0,Se.useRef)(null),ke=Se.useContext(Ze.D);return(0,Se.useImperativeHandle)(ve,()=>({menu:Pe.current,focus:Ke=>{var ut;(ut=Pe.current)===null||ut===void 0||ut.focus(Ke)}})),Se.createElement(tt,Object.assign({ref:Pe},we,ke))});zt.Item=E,zt.SubMenu=x,zt.Divider=ze,zt.ItemGroup=ae.BW;var pt=zt},93948:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return nn}});var ae=re(59301),Se=re(29679),Ze=re(40001),Ie=re(19248),ce=re(99267),Fe=re(92310),se=re.n(Fe),Te=re(2738),ze=re(36355),Ae=re(32855),je=re(27247),_e=re(43079),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ne=(0,ae.useRef)([]),Ue=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var dt=Date.now(),Pt=!1;Ne.current.forEach(function(Dt){if(Dt){Pt=!0;var Rt=Dt.style;Rt.transitionDuration=".3s, .3s, .3s, .06s",Ue.current&&dt-Ue.current<100&&(Rt.transitionDuration="0s, 0s")}}),Pt&&(Ue.current=Date.now())}),Ne.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ne){var Ue=(0,je.Z)((0,je.Z)({},Re),Ne),dt=Ue.className,Pt=Ue.percent,Dt=Ue.prefixCls,Rt=Ue.strokeColor,Bt=Ue.strokeLinecap,Tt=Ue.strokeWidth,Yt=Ue.style,Xt=Ue.trailColor,en=Ue.trailWidth,fn=Ue.transition,pn=(0,_e.Z)(Ue,a);delete pn.gapPosition;var Fn=Array.isArray(Pt)?Pt:[Pt],dn=Array.isArray(Rt)?Rt:[Rt],an=ne(),vn=Tt/2,En=100-Tt/2,xn="M ".concat(Bt==="round"?vn:0,",").concat(vn,`
|
|
L `).concat(Bt==="round"?En:100,",").concat(vn),un="0 0 100 ".concat(Tt),Nn=0;return ae.createElement("svg",(0,Ae.Z)({className:se()("".concat(Dt,"-line"),dt),viewBox:un,preserveAspectRatio:"none",style:Yt},pn),ae.createElement("path",{className:"".concat(Dt,"-line-trail"),d:xn,strokeLinecap:Bt,stroke:Xt,strokeWidth:en||Tt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(Bt){case"round":Wn=1-Tt/100;break;case"square":Wn=1-Tt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[In]||dn[dn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(Dt,"-line-path"),d:xn,strokeLinecap:Bt,stroke:Jn,strokeWidth:Tt,fillOpacity:"0",ref:function(be){an[In]=be},style:na})}))},E=y,b=re(34666),x=re(11913),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var Ne=ae.useState(),Ue=(0,x.Z)(Ne,2),dt=Ue[0],Pt=Ue[1];return ae.useEffect(function(){Pt("rc_progress_".concat(oe()))},[]),pe||dt},ge=function(Ne){var Ue=Ne.bg,dt=Ne.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ue}},dt)};function me(pe,Ne){return Object.keys(pe).map(function(Ue){var dt=parseFloat(Ue),Pt="".concat(Math.floor(dt*Ne),"%");return"".concat(pe[Ue]," ").concat(Pt)})}var le=ae.forwardRef(function(pe,Ne){var Ue=pe.prefixCls,dt=pe.color,Pt=pe.gradientId,Dt=pe.radius,Rt=pe.style,Bt=pe.ptg,Tt=pe.strokeLinecap,Yt=pe.strokeWidth,Xt=pe.size,en=pe.gapDegree,fn=dt&&(0,b.Z)(dt)==="object",pn=fn?"#FFF":void 0,Fn=Xt/2,dn=ae.createElement("circle",{className:"".concat(Ue,"-circle-path"),r:Dt,cx:Fn,cy:Fn,stroke:pn,strokeLinecap:Tt,strokeWidth:Yt,opacity:Bt===0?0:1,style:Rt,ref:Ne});if(!fn)return dn;var an="".concat(Pt,"-conic"),vn=en?"".concat(180+en/2,"deg"):"0deg",En=me(dt,(360-en)/360),xn=me(dt,1),un="conic-gradient(from ".concat(vn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(en?"bottom":"top",", ").concat(xn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:an},dn),ae.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(an,")")},ae.createElement(ge,{bg:Nn},ae.createElement(ge,{bg:un}))))}),Ce=le,Be=100,lt=function(Ne,Ue,dt,Pt,Dt,Rt,Bt,Tt,Yt,Xt){var en=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=dt/100*360*((360-Rt)/360),pn=Rt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],Fn=(100-Pt)/100*Ue;Yt==="round"&&Pt!==100&&(Fn+=Xt/2,Fn>=Ue&&(Fn=Ue-.01));var dn=Be/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(Ue,"px ").concat(Ne),strokeDashoffset:Fn+en,transform:"rotate(".concat(Dt+fn+pn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Gt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _t(pe){var Ne=pe!=null?pe:[];return Array.isArray(Ne)?Ne:[Ne]}var he=function(Ne){var Ue=(0,je.Z)((0,je.Z)({},Re),Ne),dt=Ue.id,Pt=Ue.prefixCls,Dt=Ue.steps,Rt=Ue.strokeWidth,Bt=Ue.trailWidth,Tt=Ue.gapDegree,Yt=Tt===void 0?0:Tt,Xt=Ue.gapPosition,en=Ue.trailColor,fn=Ue.strokeLinecap,pn=Ue.style,Fn=Ue.className,dn=Ue.strokeColor,an=Ue.percent,vn=(0,_e.Z)(Ue,Gt),En=Be/2,xn=ie(dt),un="".concat(xn,"-gradient"),Nn=En-Rt/2,Yn=Math.PI*2*Nn,In=Yt>0?90+Yt/2:-90,Wn=Yn*((360-Yt)/360),na=(0,b.Z)(Dt)==="object"?Dt:{count:Dt,space:2},Jn=na.count,Le=na.space,be=_t(an),fe=_t(dn),gt=fe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Ot=gt&&(0,b.Z)(gt)==="object",wt=Ot?"butt":fn,ln=lt(Yn,Wn,0,100,In,Yt,Xt,en,wt,Rt),Wt=ne(),Qt=function(){var at=0;return be.map(function(qt,Tn){var Zn=fe[Tn]||fe[fe.length-1],Cn=lt(Yn,Wn,at,qt,In,Yt,Xt,Zn,wt,Rt);return at+=qt,ae.createElement(Ce,{key:Tn,color:Zn,ptg:qt,radius:Nn,prefixCls:Pt,gradientId:un,style:Cn,strokeLinecap:wt,strokeWidth:Rt,gapDegree:Yt,ref:function(De){Wt[Tn]=De},size:Be})}).reverse()},yn=function(){var at=Math.round(Jn*(be[0]/100)),qt=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,Cn){var ue=Cn<=at-1?fe[0]:en,De=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(un,")"):void 0,Me=lt(Yn,Wn,Tn,qt,In,Yt,Xt,ue,"butt",Rt,Le);return Tn+=(Wn-Me.strokeDashoffset+Le)*100/Wn,ae.createElement("circle",{key:Cn,className:"".concat(Pt,"-circle-path"),r:Nn,cx:En,cy:En,stroke:De,strokeWidth:Rt,opacity:1,style:Me,ref:function(Qe){Wt[Cn]=Qe}})})};return ae.createElement("svg",(0,Ae.Z)({className:se()("".concat(Pt,"-circle"),Fn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:pn,id:dt,role:"presentation"},vn),!Jn&&ae.createElement("circle",{className:"".concat(Pt,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:en,strokeLinecap:wt,strokeWidth:Bt||Rt,style:ln}),Jn?yn():Qt())},$e=he,Oe={Line:E,Circle:$e},Xe=re(6848),rt=re(30071);function mt(pe){return!pe||pe<0?0:pe>100?100:pe}function St(pe){let{success:Ne,successPercent:Ue}=pe,dt=Ue;return Ne&&"progress"in Ne&&(dt=Ne.progress),Ne&&"percent"in Ne&&(dt=Ne.percent),dt}const Ft=pe=>{let{percent:Ne,success:Ue,successPercent:dt}=pe;const Pt=mt(St({success:Ue,successPercent:dt}));return[Pt,mt(mt(Ne)-Pt)]},st=pe=>{let{success:Ne={},strokeColor:Ue}=pe;const{strokeColor:dt}=Ne;return[dt||rt.presetPrimaryColors.green,Ue||null]},ye=(pe,Ne,Ue)=>{var dt,Pt,Dt,Rt;let Bt=-1,Tt=-1;if(Ne==="step"){const Yt=Ue.steps,Xt=Ue.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Bt=pe==="small"?2:14,Tt=Xt!=null?Xt:8):typeof pe=="number"?[Bt,Tt]=[pe,pe]:[Bt=14,Tt=8]=pe,Bt*=Yt}else if(Ne==="line"){const Yt=Ue==null?void 0:Ue.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?Tt=Yt||(pe==="small"?6:8):typeof pe=="number"?[Bt,Tt]=[pe,pe]:[Bt=-1,Tt=8]=pe}else(Ne==="circle"||Ne==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Bt,Tt]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Bt,Tt]=[pe,pe]:(Bt=(Pt=(dt=pe[0])!==null&&dt!==void 0?dt:pe[1])!==null&&Pt!==void 0?Pt:120,Tt=(Rt=(Dt=pe[0])!==null&&Dt!==void 0?Dt:pe[1])!==null&&Rt!==void 0?Rt:120));return[Bt,Tt]},xe=3,Ye=pe=>xe/pe*100;var et=pe=>{const{prefixCls:Ne,trailColor:Ue=null,strokeLinecap:dt="round",gapPosition:Pt,gapDegree:Dt,width:Rt=120,type:Bt,children:Tt,success:Yt,size:Xt=Rt}=pe,[en,fn]=ye(Xt,"circle");let{strokeWidth:pn}=pe;pn===void 0&&(pn=Math.max(Ye(en),6));const Fn={width:en,height:fn,fontSize:en*.15+6},dn=ae.useMemo(()=>{if(Dt||Dt===0)return Dt;if(Bt==="dashboard")return 75},[Dt,Bt]),an=Pt||Bt==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",En=st({success:Yt,strokeColor:pe.strokeColor}),xn=se()(`${Ne}-inner`,{[`${Ne}-circle-gradient`]:vn}),un=ae.createElement($e,{percent:Ft(pe),strokeWidth:pn,trailWidth:pn,strokeColor:En,strokeLinecap:dt,trailColor:Ue,prefixCls:Ne,gapDegree:dn,gapPosition:an});return ae.createElement("div",{className:xn,style:Fn},en<=20?ae.createElement(Xe.Z,{title:Tt},ae.createElement("span",null,un)):ae.createElement(ae.Fragment,null,un,Tt))},it=function(pe,Ne){var Ue={};for(var dt in pe)Object.prototype.hasOwnProperty.call(pe,dt)&&Ne.indexOf(dt)<0&&(Ue[dt]=pe[dt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(pe);Pt<dt.length;Pt++)Ne.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(pe,dt[Pt])&&(Ue[dt[Pt]]=pe[dt[Pt]]);return Ue};const de=pe=>{let Ne=[];return Object.keys(pe).forEach(Ue=>{const dt=parseFloat(Ue.replace(/%/g,""));isNaN(dt)||Ne.push({key:dt,value:pe[Ue]})}),Ne=Ne.sort((Ue,dt)=>Ue.key-dt.key),Ne.map(Ue=>{let{key:dt,value:Pt}=Ue;return`${Pt} ${dt}%`}).join(", ")},Je=(pe,Ne)=>{const{from:Ue=rt.presetPrimaryColors.blue,to:dt=rt.presetPrimaryColors.blue,direction:Pt=Ne==="rtl"?"to left":"to right"}=pe,Dt=it(pe,["from","to","direction"]);if(Object.keys(Dt).length!==0){const Rt=de(Dt);return{backgroundImage:`linear-gradient(${Pt}, ${Rt})`}}return{backgroundImage:`linear-gradient(${Pt}, ${Ue}, ${dt})`}};var zt=pe=>{const{prefixCls:Ne,direction:Ue,percent:dt,size:Pt,strokeWidth:Dt,strokeColor:Rt,strokeLinecap:Bt="round",children:Tt,trailColor:Yt=null,success:Xt}=pe,en=Rt&&typeof Rt!="string"?Je(Rt,Ue):{backgroundColor:Rt},fn=Bt==="square"||Bt==="butt"?0:void 0,pn={backgroundColor:Yt||void 0,borderRadius:fn},Fn=Pt!=null?Pt:[-1,Dt||(Pt==="small"?6:8)],[dn,an]=ye(Fn,"line",{strokeWidth:Dt}),vn=Object.assign({width:`${mt(dt)}%`,height:an,borderRadius:fn},en),En=St(pe),xn={width:`${mt(En)}%`,height:an,borderRadius:fn,backgroundColor:Xt==null?void 0:Xt.strokeColor},un={width:dn<0?"100%":dn,height:an};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ne}-outer`,style:un},ae.createElement("div",{className:`${Ne}-inner`,style:pn},ae.createElement("div",{className:`${Ne}-bg`,style:vn}),En!==void 0?ae.createElement("div",{className:`${Ne}-success-bg`,style:xn}):null)),Tt)},we=pe=>{const{size:Ne,steps:Ue,percent:dt=0,strokeWidth:Pt=8,strokeColor:Dt,trailColor:Rt=null,prefixCls:Bt,children:Tt}=pe,Yt=Math.round(Ue*(dt/100)),Xt=Ne==="small"?2:14,en=Ne!=null?Ne:[Xt,Pt],[fn,pn]=ye(en,"step",{steps:Ue,strokeWidth:Pt}),Fn=fn/Ue,dn=new Array(Ue);for(let an=0;an<Ue;an++){const vn=Array.isArray(Dt)?Dt[an]:Dt;dn[an]=ae.createElement("div",{key:an,className:se()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:an<=Yt-1}),style:{backgroundColor:an<=Yt-1?vn:Rt,width:Fn,height:pn}})}return ae.createElement("div",{className:`${Bt}-steps-outer`},dn,Tt)},ve=re(36237),Pe=re(17313),ke=re(83116),Ke=re(37613);const ut=pe=>{const Ne=pe?"100%":"-100%";return new ve.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},$t=pe=>{const{componentCls:Ne,iconCls:Ue}=pe;return{[Ne]:Object.assign(Object.assign({},(0,Pe.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Ne}-outer`]:{display:"inline-block",width:"100%"},[`&${Ne}-show-info`]:{[`${Ne}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Ne}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.defaultColor}},[`${Ne}-success-bg, ${Ne}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Ne}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Ne}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ue]:{fontSize:pe.fontSize}},[`&${Ne}-status-active`]:{[`${Ne}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:ut(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ne}-rtl${Ne}-status-active`]:{[`${Ne}-bg::before`]:{animationName:ut(!0)}},[`&${Ne}-status-exception`]:{[`${Ne}-bg`]:{backgroundColor:pe.colorError},[`${Ne}-text`]:{color:pe.colorError}},[`&${Ne}-status-exception ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.colorError}},[`&${Ne}-status-success`]:{[`${Ne}-bg`]:{backgroundColor:pe.colorSuccess},[`${Ne}-text`]:{color:pe.colorSuccess}},[`&${Ne}-status-success ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:pe.colorSuccess}}})}},Lt=pe=>{const{componentCls:Ne,iconCls:Ue}=pe;return{[Ne]:{[`${Ne}-circle-trail`]:{stroke:pe.remainingColor},[`&${Ne}-circle ${Ne}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ne}-circle ${Ne}-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%)",[Ue]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Ne}-circle&-status-exception`]:{[`${Ne}-text`]:{color:pe.colorError}},[`${Ne}-circle&-status-success`]:{[`${Ne}-text`]:{color:pe.colorSuccess}}},[`${Ne}-inline-circle`]:{lineHeight:1,[`${Ne}-inner`]:{verticalAlign:"bottom"}}}},At=pe=>{const{componentCls:Ne}=pe;return{[Ne]:{[`${Ne}-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}}}}}},kt=pe=>{const{componentCls:Ne,iconCls:Ue}=pe;return{[Ne]:{[`${Ne}-small&-line, ${Ne}-small&-line ${Ne}-text ${Ue}`]:{fontSize:pe.fontSizeSM}}}};var bt=(0,ke.Z)("Progress",pe=>{const Ne=pe.marginXXS/2,Ue=(0,Ke.TS)(pe,{progressStepMarginInlineEnd:Ne,progressStepMinWidth:Ne,progressActiveMotionDuration:"2.4s"});return[$t(Ue),Lt(Ue),At(Ue),kt(Ue)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(pe,Ne){var Ue={};for(var dt in pe)Object.prototype.hasOwnProperty.call(pe,dt)&&Ne.indexOf(dt)<0&&(Ue[dt]=pe[dt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(pe);Pt<dt.length;Pt++)Ne.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(pe,dt[Pt])&&(Ue[dt[Pt]]=pe[dt[Pt]]);return Ue};const Et=null,Kt=["normal","exception","active","success"];var gn=ae.forwardRef((pe,Ne)=>{const{prefixCls:Ue,className:dt,rootClassName:Pt,steps:Dt,strokeColor:Rt,percent:Bt=0,size:Tt="default",showInfo:Yt=!0,type:Xt="line",status:en,format:fn,style:pn}=pe,Fn=Ht(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ae.useMemo(()=>{var be,fe;const gt=St(pe);return parseInt(gt!==void 0?(be=gt!=null?gt:0)===null||be===void 0?void 0:be.toString():(fe=Bt!=null?Bt:0)===null||fe===void 0?void 0:fe.toString(),10)},[Bt,pe.success,pe.successPercent]),an=ae.useMemo(()=>!Kt.includes(en)&&dn>=100?"success":en||"normal",[en,dn]),{getPrefixCls:vn,direction:En,progress:xn}=ae.useContext(ze.E_),un=vn("progress",Ue),[Nn,Yn]=bt(un),In=ae.useMemo(()=>{if(!Yt)return null;const be=St(pe);let fe;const gt=fn||(wt=>`${wt}%`),Ot=Xt==="line";return fn||an!=="exception"&&an!=="success"?fe=gt(mt(Bt),mt(be)):an==="exception"?fe=Ot?ae.createElement(Ie.Z,null):ae.createElement(ce.Z,null):an==="success"&&(fe=Ot?ae.createElement(Se.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${un}-text`,title:typeof fe=="string"?fe:void 0},fe)},[Yt,Bt,dn,an,Xt,un,fn]),Wn=Array.isArray(Rt)?Rt[0]:Rt,na=typeof Rt=="string"||Array.isArray(Rt)?Rt:void 0;let Jn;Xt==="line"?Jn=Dt?ae.createElement(we,Object.assign({},pe,{strokeColor:na,prefixCls:un,steps:Dt}),In):ae.createElement(zt,Object.assign({},pe,{strokeColor:Wn,prefixCls:un,direction:En}),In):(Xt==="circle"||Xt==="dashboard")&&(Jn=ae.createElement(et,Object.assign({},pe,{strokeColor:Wn,prefixCls:un,progressStatus:an}),In));const Le=se()(un,`${un}-status-${an}`,`${un}-${Xt==="dashboard"&&"circle"||Dt&&"steps"||Xt}`,{[`${un}-inline-circle`]:Xt==="circle"&&ye(Tt,"circle")[0]<=20,[`${un}-show-info`]:Yt,[`${un}-${Tt}`]:typeof Tt=="string",[`${un}-rtl`]:En==="rtl"},xn==null?void 0:xn.className,dt,Pt,Yn);return Nn(ae.createElement("div",Object.assign({ref:Ne,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),pn),className:Le,role:"progressbar","aria-valuenow":dn},(0,Te.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),nn=gn},54580:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return Cn}});var ae=re(59301),Se=re(3300),Ze=re(92310),Ie=re.n(Ze),ce=re(32855),Fe=re(33377),se=re(93912),Te=re(18881),ze=re(85461),Ae=re(74430),je=re(43079),_e=re(13932),Re=re(34666),ne=re(68702),a=re(26112);function y(ue,De){var Me="cannot ".concat(ue.method," ").concat(ue.action," ").concat(De.status,"'"),He=new Error(Me);return He.status=De.status,He.method=ue.method,He.url=ue.action,He}function E(ue){var De=ue.responseText||ue.response;if(!De)return De;try{return JSON.parse(De)}catch(Me){return De}}function b(ue){var De=new XMLHttpRequest;ue.onProgress&&De.upload&&(De.upload.onprogress=function(nt){nt.total>0&&(nt.percent=nt.loaded/nt.total*100),ue.onProgress(nt)});var Me=new FormData;ue.data&&Object.keys(ue.data).forEach(function(Qe){var nt=ue.data[Qe];if(Array.isArray(nt)){nt.forEach(function(Ve){Me.append("".concat(Qe,"[]"),Ve)});return}Me.append(Qe,nt)}),ue.file instanceof Blob?Me.append(ue.filename,ue.file,ue.file.name):Me.append(ue.filename,ue.file),De.onerror=function(nt){ue.onError(nt)},De.onload=function(){return De.status<200||De.status>=300?ue.onError(y(ue,De),E(De)):ue.onSuccess(E(De),De)},De.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in De&&(De.withCredentials=!0);var He=ue.headers||{};return He["X-Requested-With"]!==null&&De.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(Qe){He[Qe]!==null&&De.setRequestHeader(Qe,He[Qe])}),De.send(Me),{abort:function(){De.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(48736),oe=function(ue,De){if(ue&&De){var Me=Array.isArray(De)?De:De.split(","),He=ue.name||"",Qe=ue.type||"",nt=Qe.replace(/\/.*$/,"");return Me.some(function(Ve){var We=Ve.trim();if(/^\*(\/\*)?$/.test(Ve))return!0;if(We.charAt(0)==="."){var It=He.toLowerCase(),Mt=We.toLowerCase(),Ee=[Mt];return(Mt===".jpg"||Mt===".jpeg")&&(Ee=[".jpg",".jpeg"]),Ee.some(function(on){return It.endsWith(on)})}return/\/\*$/.test(We)?nt===We.replace(/\/.*$/,""):Qe===We?!0:/^\w+$/.test(We)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(We,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,De){var Me=ue.createReader(),He=[];function Qe(){Me.readEntries(function(nt){var Ve=Array.prototype.slice.apply(nt);He=He.concat(Ve);var We=!Ve.length;We?De(He):Qe()})}Qe()}var ge=function(De,Me,He){var Qe=function nt(Ve,We){Ve&&(Ve.path=We||"",Ve.isFile?Ve.file(function(It){He(It)&&(Ve.fullPath&&!It.webkitRelativePath&&(Object.defineProperties(It,{webkitRelativePath:{writable:!0}}),It.webkitRelativePath=Ve.fullPath.replace(/^\//,""),Object.defineProperties(It,{webkitRelativePath:{writable:!1}})),Me([It]))}):Ve.isDirectory&&ie(Ve,function(It){It.forEach(function(Mt){nt(Mt,"".concat(We).concat(Ve.name,"/"))})}))};De.forEach(function(nt){Qe(nt.webkitGetAsEntry())})},me=ge,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(ue){(0,Te.Z)(Me,ue);var De=(0,ze.Z)(Me);function Me(){var He;(0,Fe.Z)(this,Me);for(var Qe=arguments.length,nt=new Array(Qe),Ve=0;Ve<Qe;Ve++)nt[Ve]=arguments[Ve];return He=De.call.apply(De,[this].concat(nt)),He.state={uid:ee()},He.reqs={},He.fileInput=void 0,He._isMounted=void 0,He.onChange=function(We){var It=He.props,Mt=It.accept,Ee=It.directory,on=We.target.files,tn=(0,Se.Z)(on).filter(function(hn){return!Ee||oe(hn,Mt)});He.uploadFiles(tn),He.reset()},He.onClick=function(We){var It=He.fileInput;if(It){var Mt=We.target,Ee=He.props.onClick;if(Mt&&Mt.tagName==="BUTTON"){var on=It.parentNode;on.focus(),Mt.blur()}It.click(),Ee&&Ee(We)}},He.onKeyDown=function(We){We.key==="Enter"&&He.onClick(We)},He.onFileDrop=function(We){var It=He.props.multiple;if(We.preventDefault(),We.type!=="dragover")if(He.props.directory)me(Array.prototype.slice.call(We.dataTransfer.items),He.uploadFiles,function(Ee){return oe(Ee,He.props.accept)});else{var Mt=(0,Se.Z)(We.dataTransfer.files).filter(function(Ee){return oe(Ee,He.props.accept)});It===!1&&(Mt=Mt.slice(0,1)),He.uploadFiles(Mt)}},He.uploadFiles=function(We){var It=(0,Se.Z)(We),Mt=It.map(function(Ee){return Ee.uid=ee(),He.processFile(Ee,It)});Promise.all(Mt).then(function(Ee){var on=He.props.onBatchStart;on==null||on(Ee.map(function(tn){var hn=tn.origin,Bn=tn.parsedFile;return{file:hn,parsedFile:Bn}})),Ee.filter(function(tn){return tn.parsedFile!==null}).forEach(function(tn){He.post(tn)})})},He.processFile=function(){var We=(0,ne.Z)((0,_e.Z)().mark(function It(Mt,Ee){var on,tn,hn,Bn,qe,ht,Nt,ft,Vt;return(0,_e.Z)().wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(on=He.props.beforeUpload,tn=Mt,!on){jt.next=14;break}return jt.prev=3,jt.next=6,on(Mt,Ee);case 6:tn=jt.sent,jt.next=12;break;case 9:jt.prev=9,jt.t0=jt.catch(3),tn=!1;case 12:if(tn!==!1){jt.next=14;break}return jt.abrupt("return",{origin:Mt,parsedFile:null,action:null,data:null});case 14:if(hn=He.props.action,typeof hn!="function"){jt.next=21;break}return jt.next=18,hn(Mt);case 18:Bn=jt.sent,jt.next=22;break;case 21:Bn=hn;case 22:if(qe=He.props.data,typeof qe!="function"){jt.next=29;break}return jt.next=26,qe(Mt);case 26:ht=jt.sent,jt.next=30;break;case 29:ht=qe;case 30:return Nt=((0,Re.Z)(tn)==="object"||typeof tn=="string")&&tn?tn:Mt,Nt instanceof File?ft=Nt:ft=new File([Nt],Mt.name,{type:Mt.type}),Vt=ft,Vt.uid=Mt.uid,jt.abrupt("return",{origin:Mt,data:ht,parsedFile:Vt,action:Bn});case 35:case"end":return jt.stop()}},It,null,[[3,9]])}));return function(It,Mt){return We.apply(this,arguments)}}(),He.saveFileInput=function(We){He.fileInput=We},He}return(0,se.Z)(Me,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var nt=this,Ve=Qe.data,We=Qe.origin,It=Qe.action,Mt=Qe.parsedFile;if(this._isMounted){var Ee=this.props,on=Ee.onStart,tn=Ee.customRequest,hn=Ee.name,Bn=Ee.headers,qe=Ee.withCredentials,ht=Ee.method,Nt=We.uid,ft=tn||b,Vt={action:It,filename:hn,data:Ve,file:Mt,headers:Bn,withCredentials:qe,method:ht||"post",onProgress:function(jt){var Sn=nt.props.onProgress;Sn==null||Sn(jt,Mt)},onSuccess:function(jt,Sn){var Pn=nt.props.onSuccess;Pn==null||Pn(jt,Mt,Sn),delete nt.reqs[Nt]},onError:function(jt,Sn){var Pn=nt.props.onError;Pn==null||Pn(jt,Sn,Mt),delete nt.reqs[Nt]}};on(We),this.reqs[Nt]=ft(Vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Qe){var nt=this.reqs;if(Qe){var Ve=Qe.uid?Qe.uid:Qe;nt[Ve]&&nt[Ve].abort&&nt[Ve].abort(),delete nt[Ve]}else Object.keys(nt).forEach(function(We){nt[We]&&nt[We].abort&&nt[We].abort(),delete nt[We]})}},{key:"render",value:function(){var Qe=this.props,nt=Qe.component,Ve=Qe.prefixCls,We=Qe.className,It=Qe.disabled,Mt=Qe.id,Ee=Qe.style,on=Qe.multiple,tn=Qe.accept,hn=Qe.capture,Bn=Qe.children,qe=Qe.directory,ht=Qe.openFileDialogOnClick,Nt=Qe.onMouseEnter,ft=Qe.onMouseLeave,Vt=(0,je.Z)(Qe,le),Jt=Ie()((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},Ve,!0),"".concat(Ve,"-disabled"),It),We,We)),jt=qe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=It?{}:{onClick:ht?this.onClick:function(){},onKeyDown:ht?this.onKeyDown:function(){},onMouseEnter:Nt,onMouseLeave:ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(nt,(0,ce.Z)({},Sn,{className:Jt,role:"button",style:Ee}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Vt,{aria:!0,data:!0}),{id:Mt,disabled:It,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:tn},jt,{multiple:on,onChange:this.onChange},hn!=null?{capture:hn}:{})),Bn)}}]),Me}(ae.Component),Be=Ce;function lt(){}var Gt=function(ue){(0,Te.Z)(Me,ue);var De=(0,ze.Z)(Me);function Me(){var He;(0,Fe.Z)(this,Me);for(var Qe=arguments.length,nt=new Array(Qe),Ve=0;Ve<Qe;Ve++)nt[Ve]=arguments[Ve];return He=De.call.apply(De,[this].concat(nt)),He.uploader=void 0,He.saveUploader=function(We){He.uploader=We},He}return(0,se.Z)(Me,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return ae.createElement(Be,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Me}(ae.Component);Gt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:lt,onError:lt,onSuccess:lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var _t=Gt,he=_t,$e=re(18929),Oe=re(4676),Xe=re(36355),rt=re(1684),mt=re(9763),St=re(31724),Ft={icon:function(De,Me){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Me}},{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"},st=Ft,ye=re(7657),xe=function(De,Me){return ae.createElement(ye.Z,(0,ce.Z)({},De,{ref:Me,icon:st}))},Ye=ae.forwardRef(xe),yt=Ye,et=re(58617),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=it,Je=function(De,Me){return ae.createElement(ye.Z,(0,ce.Z)({},De,{ref:Me,icon:de}))},tt=ae.forwardRef(Je),zt=tt,pt={icon:function(De,Me){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:Me}},{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:Me}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Me}},{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"},we=pt,ve=function(De,Me){return ae.createElement(ye.Z,(0,ce.Z)({},De,{ref:Me,icon:we}))},Pe=ae.forwardRef(ve),ke=Pe,Ke=re(77900),ut=re(56762),$t=re(62892),Lt=re(92343),At=re(3113);function kt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function bt(ue,De){const Me=(0,Se.Z)(De),He=Me.findIndex(Qe=>{let{uid:nt}=Qe;return nt===ue.uid});return He===-1?Me.push(ue):Me[He]=ue,Me}function Ht(ue,De){const Me=ue.uid!==void 0?"uid":"name";return De.filter(He=>He[Me]===ue[Me])[0]}function Et(ue,De){const Me=ue.uid!==void 0?"uid":"name",He=De.filter(Qe=>Qe[Me]!==ue[Me]);return He.length===De.length?null:He}const Kt=function(){const De=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),He=De[De.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(He)||[""])[0]},Ln=ue=>ue.indexOf("image/")===0,gn=ue=>{if(ue.type&&!ue.thumbUrl)return Ln(ue.type);const De=ue.thumbUrl||ue.url||"",Me=Kt(De);return/^data:image\//.test(De)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Me)?!0:!(/^data:/.test(De)||Me)},nn=200;function pe(ue){return new Promise(De=>{if(!ue.type||!Ln(ue.type)){De("");return}const Me=document.createElement("canvas");Me.width=nn,Me.height=nn,Me.style.cssText=`position: fixed; left: 0; top: 0; width: ${nn}px; height: ${nn}px; z-index: 9999; display: none;`,document.body.appendChild(Me);const He=Me.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:nt,height:Ve}=Qe;let We=nn,It=nn,Mt=0,Ee=0;nt>Ve?(It=Ve*(nn/nt),Ee=-(It-We)/2):(We=nt*(nn/Ve),Mt=-(We-It)/2),He.drawImage(Qe,Mt,Ee,We,It);const on=Me.toDataURL();document.body.removeChild(Me),window.URL.revokeObjectURL(Qe.src),De(on)},Qe.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const nt=new FileReader;nt.onload=()=>{nt.result&&(Qe.src=nt.result)},nt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const nt=new FileReader;nt.onload=()=>{nt.result&&De(nt.result)},nt.readAsDataURL(ue)}else Qe.src=window.URL.createObjectURL(ue)})}var Ne=re(26227),Ue=re(41464),dt=re(15277),Pt=re(93948),Dt=re(6848),Bt=ae.forwardRef((ue,De)=>{let{prefixCls:Me,className:He,style:Qe,locale:nt,listType:Ve,file:We,items:It,progress:Mt,iconRender:Ee,actionIconRender:on,itemRender:tn,isImgUrl:hn,showPreviewIcon:Bn,showRemoveIcon:qe,showDownloadIcon:ht,previewIcon:Nt,removeIcon:ft,downloadIcon:Vt,onPreview:Jt,onDownload:jt,onClose:Sn}=ue;var Pn,oa;const{status:Qn}=We,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Dn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Dn)}},[]);const da=Ee(We);let Vn=ae.createElement("div",{className:`${Me}-icon`},da);if(Ve==="picture"||Ve==="picture-card"||Ve==="picture-circle")if(qn==="uploading"||!We.thumbUrl&&!We.url){const Dn=Ie()(`${Me}-list-item-thumbnail`,{[`${Me}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Dn},da)}else{const Dn=hn!=null&&hn(We)?ae.createElement("img",{src:We.thumbUrl||We.url,alt:We.name,className:`${Me}-list-item-image`,crossOrigin:We.crossOrigin}):da,Gn=Ie()(`${Me}-list-item-thumbnail`,{[`${Me}-list-item-file`]:hn&&!hn(We)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Jt(We,la),href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dn)}const $n=Ie()(`${Me}-list-item`,`${Me}-list-item-${qn}`),ta=typeof We.linkProps=="string"?JSON.parse(We.linkProps):We.linkProps,ia=qe?on((typeof ft=="function"?ft(We):ft)||ae.createElement(Ne.Z,null),()=>Sn(We),Me,nt.removeFile):null,ga=ht&&qn==="done"?on((typeof Vt=="function"?Vt(We):Vt)||ae.createElement(Ue.Z,null),()=>jt(We),Me,nt.downloadFile):null,aa=Ve!=="picture-card"&&Ve!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ie()(`${Me}-list-item-actions`,{picture:Ve==="picture"})},ga,ia),ea=Ie()(`${Me}-list-item-name`),fa=We.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:We.name},ta,{href:We.url,onClick:Dn=>Jt(We,Dn)}),We.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Dn=>Jt(We,Dn),title:We.name},We.name),aa],Zt={pointerEvents:"none",opacity:.5},On=Bn?ae.createElement("a",{href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:We.url||We.thumbUrl?void 0:Zt,onClick:Dn=>Jt(We,Dn),title:nt.previewFile},typeof Nt=="function"?Nt(We):Nt||ae.createElement(dt.Z,null)):null,Mn=(Ve==="picture-card"||Ve==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Me}-list-item-actions`},On,qn==="done"&&ga,ia),{getPrefixCls:Un}=ae.useContext(Xe.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Mn,Sa&&ae.createElement(Ke.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Dn=>{let{className:Gn}=Dn;const la="percent"in We?ae.createElement(Pt.Z,Object.assign({},Mt,{type:"line",percent:We.percent,"aria-label":We["aria-label"],"aria-labelledby":We["aria-labelledby"]})):null;return ae.createElement("div",{className:Ie()(`${Me}-list-item-progress`,Gn)},la)})),va=We.response&&typeof We.response=="string"?We.response:((Pn=We.error)===null||Pn===void 0?void 0:Pn.statusText)||((oa=We.error)===null||oa===void 0?void 0:oa.message)||nt.uploadError,pa=qn==="error"?ae.createElement(Dt.Z,{title:va,getPopupContainer:Dn=>Dn.parentNode},ra):ra;return ae.createElement("div",{className:Ie()(`${Me}-list-item-container`,He),style:Qe,ref:De},tn?tn(pa,We,It,{download:jt.bind(null,We),preview:Jt.bind(null,We),remove:Sn.bind(null,We)}):pa)});const Tt=(ue,De)=>{const{listType:Me="text",previewFile:He=pe,onPreview:Qe,onDownload:nt,onRemove:Ve,locale:We,iconRender:It,isImageUrl:Mt=gn,prefixCls:Ee,items:on=[],showPreviewIcon:tn=!0,showRemoveIcon:hn=!0,showDownloadIcon:Bn=!1,removeIcon:qe,previewIcon:ht,downloadIcon:Nt,progress:ft={size:[-1,2],showInfo:!1},appendAction:Vt,appendActionVisible:Jt=!0,itemRender:jt,disabled:Sn}=ue,Pn=(0,ut.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Me!=="picture"&&Me!=="picture-card"&&Me!=="picture-circle"||(on||[]).forEach(Zt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Zt.originFileObj instanceof File||Zt.originFileObj instanceof Blob)||Zt.thumbUrl!==void 0||(Zt.thumbUrl="",He&&He(Zt.originFileObj).then(On=>{Zt.thumbUrl=On||"",Pn()}))})},[Me,on,He]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(Zt,On)=>{if(Qe)return On==null||On.preventDefault(),Qe(Zt)},ca=Zt=>{typeof nt=="function"?nt(Zt):Zt.url&&window.open(Zt.url)},Sa=Zt=>{Ve==null||Ve(Zt)},Pa=Zt=>{if(It)return It(Zt,Me);const On=Zt.status==="uploading",Mn=Mt&&Mt(Zt)?ae.createElement(ke,null):ae.createElement(yt,null);let Un=On?ae.createElement(et.Z,null):ae.createElement(zt,null);return Me==="picture"?Un=On?ae.createElement(et.Z,null):Mn:(Me==="picture-card"||Me==="picture-circle")&&(Un=On?We.uploading:Mn),Un},da=(Zt,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Lt.l$)(Zt)&&Zt.props.onClick&&Zt.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Sn};if((0,Lt.l$)(Zt)){const ra=(0,Lt.Tm)(Zt,Object.assign(Object.assign({},Zt.props),{onClick:()=>{}}));return ae.createElement(At.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(At.ZP,Object.assign({},Xn),ae.createElement("span",null,Zt))};ae.useImperativeHandle(De,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Xe.E_),$n=Vn("upload",Ee),ta=Vn(),ia=Ie()(`${$n}-list`,`${$n}-list-${Me}`),ga=(0,Se.Z)(on.map(Zt=>({key:Zt.uid,file:Zt})));let ea={motionDeadline:2e3,motionName:`${$n}-${Me==="picture-card"||Me==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ae.useMemo(()=>{const Zt=Object.assign({},(0,$t.Z)(ta));return delete Zt.onAppearEnd,delete Zt.onEnterEnd,delete Zt.onLeaveEnd,Zt},[ta]);return Me!=="picture-card"&&Me!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ia},ae.createElement(Ke.CSSMotionList,Object.assign({},ea,{component:!1}),Zt=>{let{key:On,file:Mn,className:Un,style:Xn}=Zt;return ae.createElement(Bt,{key:On,locale:We,prefixCls:$n,className:Un,style:Xn,file:Mn,items:on,progress:ft,listType:Me,isImgUrl:Mt,showPreviewIcon:tn,showRemoveIcon:hn,showDownloadIcon:Bn,removeIcon:qe,previewIcon:ht,downloadIcon:Nt,iconRender:Pa,actionIconRender:da,itemRender:jt,onPreview:qn,onDownload:ca,onClose:Sa})}),Vt&&ae.createElement(Ke.default,Object.assign({},ea,{visible:Jt,forceRender:!0}),Zt=>{let{className:On,style:Mn}=Zt;return(0,Lt.Tm)(Vt,Un=>({className:Ie()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Xt=ae.forwardRef(Tt),en=re(17313),fn=re(8378),pn=re(83116),Fn=re(37613),an=ue=>{const{componentCls:De,iconCls:Me}=ue;return{[`${De}-wrapper`]:{[`${De}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[De]:{padding:`${ue.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:ue.colorPrimaryHover},[`p${De}-drag-icon`]:{marginBottom:ue.margin,[Me]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${De}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${De}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${De}-disabled`]:{cursor:"not-allowed",[`p${De}-drag-icon ${Me},
|
|
p${De}-text,
|
|
p${De}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},En=ue=>{const{componentCls:De,antCls:Me,iconCls:He,fontSize:Qe,lineHeight:nt}=ue,Ve=`${De}-list-item`,We=`${Ve}-actions`,It=`${Ve}-action`,Mt=Math.round(Qe*nt);return{[`${De}-wrapper`]:{[`${De}-list`]:Object.assign(Object.assign({},(0,en.dF)()),{lineHeight:ue.lineHeight,[Ve]:{position:"relative",height:ue.lineHeight*Qe,marginTop:ue.marginXS,fontSize:Qe,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ve}-name`]:Object.assign(Object.assign({},en.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:nt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[We]:{[It]:{opacity:0},[`${It}${Me}-btn-sm`]:{height:Mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${It}:focus-visible,
|
|
&.picture ${It}
|
|
`]:{opacity:1},[He]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${He}`]:{color:ue.colorText}},[`${De}-icon ${He}`]:{color:ue.colorTextDescription,fontSize:Qe},[`${Ve}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:Qe+ue.paddingXS,fontSize:Qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ve}:hover ${It}`]:{opacity:1,color:ue.colorText},[`${Ve}-error`]:{color:ue.colorError,[`${Ve}-name, ${De}-icon ${He}`]:{color:ue.colorError},[We]:{[`${He}, ${He}:hover`]:{color:ue.colorError},[It]:{opacity:1}}},[`${De}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=re(36237),un=re(1950);const Nn=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=ue=>{const{componentCls:De}=ue,Me=`${De}-animate-inline`;return[{[`${De}-wrapper`]:{[`${Me}-appear, ${Me}-enter, ${Me}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Me}-appear, ${Me}-enter`]:{animationName:Nn},[`${Me}-leave`]:{animationName:Yn}}},{[`${De}-wrapper`]:(0,un.J$)(ue)},Nn,Yn]},na=re(30071),Jn=re(64993);const Le=ue=>{const{componentCls:De,iconCls:Me,uploadThumbnailSize:He,uploadProgressOffset:Qe}=ue,nt=`${De}-list`,Ve=`${nt}-item`;return{[`${De}-wrapper`]:{[`
|
|
${nt}${nt}-picture,
|
|
${nt}${nt}-picture-card,
|
|
${nt}${nt}-picture-circle
|
|
`]:{[Ve]:{position:"relative",height:He+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ve}-thumbnail`]:Object.assign(Object.assign({},en.vS),{width:He,height:He,lineHeight:`${He+ue.paddingSM}px`,textAlign:"center",flex:"none",[Me]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ve}-progress`]:{bottom:Qe,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:He+ue.paddingXS}},[`${Ve}-error`]:{borderColor:ue.colorError,[`${Ve}-thumbnail ${Me}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${Ve}-uploading`]:{borderStyle:"dashed",[`${Ve}-name`]:{marginBottom:Qe}}},[`${nt}${nt}-picture-circle ${Ve}`]:{[`&, &::before, ${Ve}-thumbnail`]:{borderRadius:"50%"}}}}},be=ue=>{const{componentCls:De,iconCls:Me,fontSizeLG:He,colorTextLightSolid:Qe}=ue,nt=`${De}-list`,Ve=`${nt}-item`,We=ue.uploadPicCardSize;return{[`
|
|
${De}-wrapper${De}-picture-card-wrapper,
|
|
${De}-wrapper${De}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,en.dF)()),{display:"inline-block",width:"100%",[`${De}${De}-select`]:{width:We,height:We,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${De}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${De}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${nt}${nt}-picture-card, ${nt}${nt}-picture-circle`]:{[`${nt}-item-container`]:{display:"inline-block",width:We,height:We,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ve]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ve}:hover`]:{[`&::before, ${Ve}-actions`]:{opacity:1}},[`${Ve}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Me}-eye, ${Me}-download, ${Me}-delete`]:{zIndex:10,width:He,margin:`0 ${ue.marginXXS}px`,fontSize:He,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ve}-actions, ${Ve}-actions:hover`]:{[`${Me}-eye, ${Me}-download, ${Me}-delete`]:{color:new Jn.C(Qe).setAlpha(.65).toRgbString(),"&:hover":{color:Qe}}},[`${Ve}-thumbnail, ${Ve}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ve}-name`]:{display:"none",textAlign:"center"},[`${Ve}-file + ${Ve}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ve}-uploading`]:{[`&${Ve}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Me}-eye, ${Me}-download, ${Me}-delete`]:{display:"none"}},[`${Ve}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${De}-wrapper${De}-picture-circle-wrapper`]:{[`${De}${De}-select`]:{borderRadius:"50%"}}}};var gt=ue=>{const{componentCls:De}=ue;return{[`${De}-rtl`]:{direction:"rtl"}}};const Ot=ue=>{const{componentCls:De,colorTextDisabled:Me}=ue;return{[`${De}-wrapper`]:Object.assign(Object.assign({},(0,en.Wf)(ue)),{[De]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${De}-select`]:{display:"inline-block"},[`${De}-disabled`]:{color:Me,cursor:"not-allowed"}})}};var wt=(0,pn.Z)("Upload",ue=>{const{fontSizeHeading3:De,fontSize:Me,lineHeight:He,lineWidth:Qe,controlHeightLG:nt}=ue,Ve=Math.round(Me*He),We=(0,Fn.TS)(ue,{uploadThumbnailSize:De*2,uploadProgressOffset:Ve/2+Qe,uploadPicCardSize:nt*2.55});return[Ot(We),an(We),Le(We),be(We),En(We),Wn(We),gt(We),(0,fn.Z)(We)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,De,Me,He){function Qe(nt){return nt instanceof Me?nt:new Me(function(Ve){Ve(nt)})}return new(Me||(Me=Promise))(function(nt,Ve){function We(Ee){try{Mt(He.next(Ee))}catch(on){Ve(on)}}function It(Ee){try{Mt(He.throw(Ee))}catch(on){Ve(on)}}function Mt(Ee){Ee.done?nt(Ee.value):Qe(Ee.value).then(We,It)}Mt((He=He.apply(ue,De||[])).next())})};const Wt=`__LIST_IGNORE_${Date.now()}__`,Qt=(ue,De)=>{const{fileList:Me,defaultFileList:He,onRemove:Qe,showUploadList:nt=!0,listType:Ve="text",onPreview:We,onDownload:It,onChange:Mt,onDrop:Ee,previewFile:on,disabled:tn,locale:hn,iconRender:Bn,isImageUrl:qe,progress:ht,prefixCls:Nt,className:ft,type:Vt="select",children:Jt,style:jt,itemRender:Sn,maxCount:Pn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ae.useContext(rt.Z),Vn=tn!=null?tn:da,[$n,ta]=(0,$e.Z)(He||[],{value:Me,postState:Ut=>Ut!=null?Ut:[]}),[ia,ga]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ut=Date.now();(Me||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Ut}_${bn}__`)})},[Me]);const ea=(Ut,sn,bn)=>{let rn=(0,Se.Z)(sn),cn=!1;Pn===1?rn=rn.slice(-1):Pn&&(cn=rn.length>Pn,rn=rn.slice(0,Pn)),(0,Oe.flushSync)(()=>{ta(rn)});const Hn={file:Ut,fileList:rn};bn&&(Hn.event=bn),(!cn||rn.some(wn=>wn.uid===Ut.uid))&&(0,Oe.flushSync)(()=>{Mt==null||Mt(Hn)})},fa=(Ut,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:rn}=ue;let cn=Ut;if(bn){const Hn=yield bn(Ut,sn);if(Hn===!1)return!1;if(delete Ut[Wt],Hn===Wt)return Object.defineProperty(Ut,Wt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(cn=Hn)}return rn&&(cn=yield rn(cn)),cn}),Zt=Ut=>{const sn=Ut.filter(cn=>!cn.file[Wt]);if(!sn.length)return;const bn=sn.map(cn=>kt(cn.file));let rn=(0,Se.Z)($n);bn.forEach(cn=>{rn=bt(cn,rn)}),bn.forEach((cn,Hn)=>{let wn=cn;if(sn[Hn].parsedFile)cn.status="uploading";else{const{originFileObj:ha}=cn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=cn.uid,wn=ua}ea(wn,rn)})},On=(Ut,sn,bn)=>{try{typeof Ut=="string"&&(Ut=JSON.parse(Ut))}catch(Hn){}if(!Ht(sn,$n))return;const rn=kt(sn);rn.status="done",rn.percent=100,rn.response=Ut,rn.xhr=bn;const cn=bt(rn,$n);ea(rn,cn)},Mn=(Ut,sn)=>{if(!Ht(sn,$n))return;const bn=kt(sn);bn.status="uploading",bn.percent=Ut.percent;const rn=bt(bn,$n);ea(bn,rn,Ut)},Un=(Ut,sn,bn)=>{if(!Ht(bn,$n))return;const rn=kt(bn);rn.error=Ut,rn.response=sn,rn.status="error";const cn=bt(rn,$n);ea(rn,cn)},Xn=Ut=>{let sn;Promise.resolve(typeof Qe=="function"?Qe(Ut):Qe).then(bn=>{var rn;if(bn===!1)return;const cn=Et(Ut,$n);cn&&(sn=Object.assign(Object.assign({},Ut),{status:"removed"}),$n==null||$n.forEach(Hn=>{const wn=sn.uid!==void 0?"uid":"name";Hn[wn]===sn[wn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(rn=aa.current)===null||rn===void 0||rn.abort(sn),ea(sn,cn))})},ra=Ut=>{ga(Ut.type),Ut.type==="drop"&&(Ee==null||Ee(Ut))};ae.useImperativeHandle(De,()=>({onBatchStart:Zt,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Dn}=ae.useContext(Xe.E_),Gn=va("upload",Nt),la=Object.assign(Object.assign({onBatchStart:Zt,onError:Un,onProgress:Mn,onSuccess:On},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Jt||Vn)&&delete la.id;const[ya,La]=wt(Gn),[ba]=(0,mt.Z)("Upload",St.Z.Upload),{showRemoveIcon:xt,showPreviewIcon:ct,showDownloadIcon:vt,removeIcon:Ct,previewIcon:mn,downloadIcon:zn}=typeof nt=="boolean"?{}:nt,Rn=(Ut,sn)=>nt?ae.createElement(Xt,{prefixCls:Gn,listType:Ve,items:$n,previewFile:on,onPreview:We,onDownload:It,onRemove:Xn,showRemoveIcon:!Vn&&xt,showPreviewIcon:ct,showDownloadIcon:vt,removeIcon:Ct,previewIcon:mn,downloadIcon:zn,iconRender:Bn,locale:Object.assign(Object.assign({},ba),hn),isImageUrl:qe,progress:ht,appendAction:Ut,appendActionVisible:sn,itemRender:Sn,disabled:Vn}):Ut,An=Ie()(`${Gn}-wrapper`,ft,Pa,La,Dn==null?void 0:Dn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Ve==="picture-card",[`${Gn}-picture-circle-wrapper`]:Ve==="picture-circle"}),jn=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),jt);if(Vt==="drag"){const Ut=Ie()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(sn=>sn.status==="uploading"),[`${Gn}-drag-hover`]:ia==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:An},ae.createElement("div",{className:Ut,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(he,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Jt))),Rn()))}const kn=Ie()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Ut=>ae.createElement("div",{className:kn,style:Ut},ae.createElement(he,Object.assign({},la,{ref:aa}))))(Jt?void 0:{display:"none"});return ya(Ve==="picture-card"||Ve==="picture-circle"?ae.createElement("span",{className:An},Rn(Kn,!!Jt)):ae.createElement("span",{className:An},Kn,Rn()))};var _n=ae.forwardRef(Qt),at=function(ue,De){var Me={};for(var He in ue)Object.prototype.hasOwnProperty.call(ue,He)&&De.indexOf(He)<0&&(Me[He]=ue[He]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,He=Object.getOwnPropertySymbols(ue);Qe<He.length;Qe++)De.indexOf(He[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,He[Qe])&&(Me[He[Qe]]=ue[He[Qe]]);return Me},Tn=ae.forwardRef((ue,De)=>{var{style:Me,height:He}=ue,Qe=at(ue,["style","height"]);return ae.createElement(_n,Object.assign({ref:De},Qe,{type:"drag",style:Object.assign(Object.assign({},Me),{height:He})}))});const Zn=_n;Zn.Dragger=Tn,Zn.LIST_IGNORE=Wt;var Cn=Zn}}]);
|