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

150 lines
418 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[5888],{26227:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},41464:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},61481:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},33853:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},12893:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},32134:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},38819:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(Ce,it){return fe.createElement(Se.Z,(0,ae.Z)({},Ce,{ref:it,icon:Ie}))},le=fe.forwardRef(we),Re=le},81230:function(Me,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77319:function(){"use strict";function Me(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(Me.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(Me.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(Me.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(Me.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 Me))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var st=[];function oe(ne,a){var y=st.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=st.pop();return ne===void 0?new go.Point:ne}function fe(ne){st.push(ne)}function Ke(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ne-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ne===y&&(ge=ne,me=a);else{var se=(x-ee)/ie,Le=x-se*b;ge=ne,me=se*ge+Le}else if(ie===0){var Oe=(a-E)/re,et=a-Oe*ne;ge=b,me=Oe*ge+et}else{var Oe=(a-E)/re,se=(x-ee)/ie,et=a-Oe*ne,Le=x-se*b;ge=(Le-et)/(Oe-se),me=Oe*ge+et}return te.x=ge,te.y=me,te}function Ie(ne,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Le=1-te,Oe=te,et=ne*Le+y*Oe,$t=a*Le+E*Oe,It=y*Le+b*Oe,be=E*Le+x*Oe,Ae=b*Le+z*Oe,$e=x*Le+ee*Oe,De=et*Le+It*Oe,nt=$t*Le+be*Oe,ct=It*Le+Ae*Oe,Ze=be*Le+$e*Oe,ot=De*Le+ct*Oe,We=nt*Le+Ze*Oe;re.x=et,re.y=$t,ie.x=De,ie.y=nt,ge.x=ot,ge.y=We,me.x=ct,me.y=Ze,se.x=Ae,se.y=$e}var Se=new go.Spot(.156,.156),we=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Me("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(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*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(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=Se,b.spot2=we,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,le*a,0,a,(1-le)*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,le*y,(1-le)*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,le*y,le*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-le)*a,0,0,(1-le)*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 Me("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 Me("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 Me("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 Me("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 Me("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 Re=[];function Ve(){var ne=Re.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,Re.push(ne)}function it(ne){for(var a=Ve(),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 Te(ne){var a=ke(ne),y=Ve();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 Ce(a),y}function ke(ne){for(var a=it(ne),y=Ve(),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],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=it(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()),Ce(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=it(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()),Ce(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=it(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()),Ce(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=it(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()),Ce(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=it(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()),Ce(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=it(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()),Ce(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=it(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()),Ce(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=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Ce(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=Te(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(),Ce(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=Te(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(),Ce(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=Te(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(),Ce(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=Te(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(),Ce(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=Te(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(),Ce(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=Te(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Me("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Me("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(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 Me("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=Se,x.spot2=we,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 Me("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Me("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=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(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 Me("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 Me("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),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(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 Me("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 Me("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,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(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*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(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=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ae(),ie=ae(),ge=ae(),me=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ae(),Le=ae(),Oe=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Oe,se,Le);var et=ae(),$t=ae(),It=ae();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,et,$t,It,me,me);var be=ae(),Ae=ae(),$e=ae();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,$e,be,Ae),te.add(new go.PathSegment(go.PathSegment.Move,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,It.x*a,It.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Le.x*a,Le.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,It.x*a,It.y*y,et.x*a,et.y*y,$t.x*a,$t.y*y).close()),fe(re),fe(ie),fe(ge),fe(me),fe(se),fe(Le),fe(Oe),fe(et),fe($t),fe(It),fe(be),fe(Ae),fe($e),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 Me("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=le*.4,x=.4,z=.5,ee=.5,te=ae(),re=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,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Le=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Oe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Oe),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)),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));var et=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(et),fe(te),fe(re),fe(ie),fe(ge),fe(se),fe(Le),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(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 Me("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Me("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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),fe(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Me("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Me("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),fe(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 Me("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=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Me("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Me("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(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 re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),fe(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Me("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=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Me("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Me("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(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 re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ae());return re.spot2=new go.Spot(ge.x,ge.y),fe(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Me("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=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Me("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=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Me("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=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Me("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=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Me("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=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(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=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(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=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(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=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(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=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(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=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Me("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(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=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(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=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(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=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(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=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(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=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(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=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(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=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(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=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(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=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(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=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(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=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Le=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Oe=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var et=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),et.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),et.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),et.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(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=le*.4,x=.4,z=.5,ee=.5,te=ae(),re=ae(),ie=ae(),ge=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(re),fe(ie),fe(ge),fe(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*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Le=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Le.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)),Le.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)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Le.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,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Le=ie*me,Oe=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Le+me)/2)*a,(te+(se+Oe)/2)*y,(ee-me)*a,(te+Oe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Oe)*y,(ee-Le)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Le)*a,(te-se)*y,(ee+me)*a,(te-Oe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Oe)*y,(ee+(Le+me)/2)*a,(te+(se+Oe)/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 et=new go.PathFigure(.2*a,y,!1);E.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var $t=new go.PathFigure(.8*a,y,!1);return E.add($t),$t.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=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(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=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(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,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(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=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Le=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Oe=new go.PathFigure(0,y,!1);return E.add(Oe),Oe.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=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(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=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(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=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(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=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(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*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(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*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(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*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(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")},44764:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Me={},st="5.0",oe={},ae=null,fe=!1,Ke=!1,Ie=null,Se=!1,we=null,le=null,Re=0;Re<arguments.length;Re++){var Ve=arguments[Re];if(Ve!==null)switch(typeof Ve){case"number":st=Ve.toFixed(1);break;case"string":Ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=Ve:Ie=Ve;break;case"object":typeof Ve.is3D!="undefined"?ae=Ve:oe=Ve;break;case"boolean":fe=Ve,Ke=!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},oe.material_id!==void 0&&!Ke&&(fe=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var Ce="",it="",Te=!1,ke=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(he){return parseFloat(he)>4?parseFloat(he):5};Me.setHTML5Codebase=function(he,Fe){le=he,Ze(he,Fe)},Me.setJavaCodebase=Me.setJavaCodebaseVersion=Me.isCompiledInstalled=Me.setPreCompiledScriptPath=Me.setPreCompiledResourcePath=function(){},Me.setHTML5CodebaseVersion=function(he,Fe){var Ue=parseFloat(he);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}we=he,ct(he,Fe)},Me.getHTML5CodebaseVersion=function(){return ne},Me.getParameters=function(){return oe},Me.setFontsCSSURL=function(he){z=he},Me.setGiacJSURL=function(he){},Me.setJNLPFile=function(he){Ce=he},Me.setJNLPBaseDir=function(he){},Me.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Fe="auto",Ue=oe.id,pt,Je=!1,dt=0;dt<arguments.length;dt++){var de=arguments[dt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Fe=de:Ue=arguments[dt]):typeof de=="boolean"?Je=de:de instanceof HTMLElement&&(pt=de)}Ye();function Ye(){if(!Se){setTimeout(Ye,200);return}Fe=De(Fe);var St=pt||document.getElementById(Ue);if(!St){console.log("possibly bug on ajax loading? ");return}if(Me.removeExistingApplet(St,!1),oe.width===void 0&&St.clientWidth&&(oe.width=St.clientWidth),oe.height===void 0&&St.clientHeight&&(oe.height=St.clientHeight),!(oe.width&&oe.height)&&Fe==="html5"&&(delete oe.width,delete oe.height),ke=Fe,Fe==="screenshot")$t(St,oe);else{var xt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?xt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(xt=(!re()||he())&&ie()),xt?(ke="screenshot",be(St,oe,Je,Fe)):et(St,oe,Je)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Me.getViews=function(){return ae},Me.isJavaInstalled=function(){return!1};var ge=function(he){var Fe=function(dt){var de=JSON.parse(dt),Ye=function(Ct){return Ct.type=="G"||Ct.type=="E"},St=de.elements?de.elements.filter(Ye)[0]:de;if(!St||!St.url){Ue();return}oe.fileName=St.url,me(St.settings||{}),ae.is3D=!0;var xt="https://www.geogebra.org/images/";Me.setPreviewImage(E||St.previewUrl,xt+"GeoGebra_loading.png",xt+"applet_play.png"),he()},Ue=function(){oe.onError&&oe.onError(),ot("Error: Fetching material (id "+oe.material_id+") failed.",oe)},pt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Je="/materials/"+oe.material_id+"?scope=basic";se("https://"+pt+"/api/proxy.php?path="+encodeURIComponent(Je),Fe,Ue)};function me(he){var Fe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ue){he[Ue]=!!he[Ue]}),Fe.forEach(function(Ue){oe[Ue]===void 0&&he[Ue]!==void 0&&(oe[Ue]=he[Ue])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(he,Fe,Ue){var pt=new XMLHttpRequest;pt.open("GET",he),pt.onload=function(){Fe(pt.responseText)},pt.onerror=Ue,pt.send()}Me.isHTML5Installed=function(){return!0},Me.getLoadedAppletType=function(){return ke},Me.setPreviewImage=function(he,Fe,Ue){E=he,b=Fe,x=Ue},Me.removeExistingApplet=function(he,Fe){var Ue;typeof he=="string"&&(he=document.getElementById(he)),ke=null;var pt=null;for(Ue=0;Ue<he.childNodes.length;Ue++){var Je=he.childNodes[Ue],dt=Je.className;dt==="applet_screenshot"?Fe?(Je.style.display="block",ke="screenshot"):Je.style.display="none":dt!=="applet_scaler prerender"&&(he.removeChild(Je),pt=dt&&dt.indexOf("appletParameters")!=-1?Je.id:null,Ue--)}var de=oe.id!==void 0?oe.id:pt,Ye=window[de];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[de]=null)},Me.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Me.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Me.startAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Me.stopAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Me.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},Me.resize=function(){};var Le=function(he,Fe,Ue){var pt=document.createElement("param");pt.setAttribute("name",Fe),pt.setAttribute("value",Ue),he.appendChild(pt)},Oe=function(he){return he&&he!=="false"},et=function(he,Fe,Ue){te(ne)<=4.2&&(Ue=!0);var pt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(pt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var dt=Fe.width,de=Fe.height;if(Fe.disableAutoScale=Fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Fe.disableAutoScale,Fe.width!==void 0)if(te(ne)<=4.4)Oe(Fe.showToolBar)&&(Fe.height-=7),Oe(Fe.showAlgebraInput)&&(Fe.height-=37),Fe.width<605&&Oe(Fe.showToolBar)&&(Fe.width=605,dt=605);else{var Ye=100;(Oe(Fe.showToolBar)||Oe(Fe.showMenuBar))&&(Fe.hasOwnProperty("customToolBar")&&(Fe.customToolbar=Fe.customToolBar),Ye=Oe(Fe.showMenuBar)?245:155),dt<Ye&&(Fe.width=Ye,dt=Ye)}Je.style.border="none",Je.style.display="inline-block";for(var St in Fe)Fe.hasOwnProperty(St)&&St!=="appletOnLoad"&&Je.setAttribute("data-param-"+St,Fe[St]);z&&Je.setAttribute("data-param-fontscssurl",z),Me.resize=function(){GGBAppletUtils.responsiveResize(he,Fe)},window.addEventListener("resize",function(wt){Me.resize()});var xt=typeof Fe.appletOnLoad=="function"?Fe.appletOnLoad:function(){};if(!Ue&&Fe.width!==void 0){Fe.hasOwnProperty("showSplash")||Je.setAttribute("data-param-showSplash","false");var Ct=he.querySelector(".applet_scaler.prerender"),Ge=Ct!==null;if(Ge)var ue=Ct.querySelector(".ggb_preview");else{var ue=$e(dt,de,Fe.borderColor,!1);Ct=document.createElement("div"),Ct.className="applet_scaler",Ct.style.position="relative",Ct.style.display="block",Ct.style.width=dt+"px",Ct.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),te(ne)>=5?(Fe.appletOnLoad=function(wt){var _t=he.querySelector(".ggb_preview");_t&&_t.parentNode.removeChild(_t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),xt(wt)},Ge||Ct.appendChild(ue)):Je.appendChild(ue),Ct.appendChild(Je),Ge||he.appendChild(Ct),setTimeout(function(){Me.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Je),he.appendChild(Pe),Fe.appletOnLoad=function(wt){Me.resize(),xt(wt)}}function _e(wt,_t){_t&&typeof _t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,_t.appletOnLoad):renderGGBElement(wt),ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",_t)}function qe(wt,_t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:_t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){_e(ln.article,ln.params)}),html5AppletsToProcess=null)},te(ne)<5&&(wt.className+=" geogebraweb")):_e(wt,_t)}if(pt){scriptLoadStarted=!0;for(var ut=0;ut<Je.childNodes.length;ut++){var ht=Je.childNodes[ut].tagName;ht==="TABLE"&&(Je.removeChild(Je.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Bt!=null&&Bt.parentNode.removeChild(Bt)}var Nt=document.createElement("script"),Wt=function(){qe(Je,Fe)};Nt.src=it+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Nt.src,ot("GeoGebra HTML5 codebase loaded: '"+it+"'.",Fe),!le&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Wt()):it.requirejs?__webpack_require__.e(6892).then(function(){var wt=[__webpack_require__(6892)];Wt.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(Nt.onload=Wt,he.appendChild(Nt))}else qe(Je,Fe);Fe.height=de,Fe.width=dt},$t=function(he,Fe,Ue){var pt=$e(Fe.width,Fe.height,Fe.borderColor,Ue),Je=document.createElement("div");Je.style.position="relative",Je.style.display="block",Je.style.width=Fe.width+"px",Je.style.height=Fe.height+"px",Je.className="applet_screenshot applet_scaler"+(Ue?" applet_screenshot_play":""),Je.appendChild(pt);var dt=GGBAppletUtils.getScale(Fe,he,Ue);Ue?(he.appendChild(Ae()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Je,"66%"),he.appendChild(Je),dt!==1&&!isNaN(dt)&&(GGBAppletUtils.scaleElement(Je,dt),Je.style.width=Fe.width+"px",Je.style.height=Fe.height+"px",Je.parentNode.style.width=Fe.width*dt+"px",Je.parentNode.style.height=Fe.height*dt+"px"),Me.resize=function(){It(he,pt,Je,Ue)},window.addEventListener("resize",function(de){Me.resize()}),Me.resize()};function It(he,Fe,Ue,pt){if(he.contains(Fe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Je=GGBAppletUtils.getScale(oe,he,pt);Ue.parentNode!==null&&(!isNaN(Je)&&Je!==1?(GGBAppletUtils.scaleElement(Ue,Je),Ue.parentNode.style.width=oe.width*Je+"px",Ue.parentNode.style.height=oe.height*Je+"px"):(GGBAppletUtils.scaleElement(Ue,1),Ue.parentNode.style.width=oe.width+"px",Ue.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Me.onExitFullscreen=function(he,Fe){Fe.appendChild(he)};var be=function(he,Fe,Ue,pt){$t(he,Fe,!0);for(var Je=function(){var Ye=[];for(de=0;de<he.childNodes.length;de++)Ye.push(he.childNodes[de]);if(window.GGBT_wsf_view){var St=window.GGBT_wsf_view.renderFullScreen(he,Fe.id),xt=document.getElementById("fullscreencontainer"),Ct=jQuery(he).find(".fullscreencontent");Ct.length>0?(St.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(xt).append(Ct),window.dispatchEvent(new Event("resize"))):et(St,Fe,!1),window.GGBT_wsf_view.launchFullScreen(xt)}else ke=pt,et(he,Fe,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)he.removeChild(Ye[de])},dt=he.getElementsByClassName("ggb_preview_play"),de=0;de<dt.length;de++)dt[de].addEventListener("click",Je,!1),dt[de].addEventListener("ontouchstart",Je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ae=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Fe='.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");}',Ue=document.createElement("style");Ue.styleSheet?Ue.styleSheet.cssText=Fe:Ue.appendChild(document.createTextNode(Fe)),document.getElementsByTagName("head")[0].appendChild(Ue)}return he},$e=function(he,Fe,Ue,pt){var Je=document.createElement("div");Je.className="ggb_preview",Je.style.position="absolute",Je.style.zIndex="90",Je.style.width=he-2+"px",Je.style.height=Fe-2+"px",Je.style.top="0px",Je.style.left="0px",Je.style.overflow="hidden",Je.style.backgroundColor="white";var dt="lightgrey";Ue!==void 0&&(Ue==="none"?dt="transparent":dt=Ue),Je.style.border="1px solid "+dt;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 Ye,St,xt;if(!pt){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,St=360,St>he/4*3&&(St=he/4*3),xt=St/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",St),Ye.setAttribute("height",xt);var Ct=(he-St)/2,Ge=(Fe-xt)/2;Ye.style.left=Ct+"px",Ye.style.top=Ge+"px",Je.appendChild(Ye)}}return Je.appendChild(de),Je},De=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(he,Fe){if(ne=he,Fe){Ze(ne,!0);return}var Ue=!fe;if(Ue){var pt=te(ne);!isNaN(pt)&&pt<4.4&&(Ue=!1)}var Je,dt;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var de=ne.indexOf("//");de>0?dt=ne:de===0?dt=Je+ne:dt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in nt)if(ne.slice(nt[Ye].length*-1)===nt[Ye]||ne.slice((nt[Ye].length+1)*-1)===nt[Ye]+"/"){Ze(dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Oe(oe.showToolBar)&&!Oe(oe.showMenuBar)&&!Oe(oe.showAlgebraInput)&&!Oe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?dt+="webSimple/":dt+="web3d/",Ze(dt,!1)},Ze=function(he,Fe){if(he.requirejs){it=he;return}he.slice(-1)!=="/"&&(he+="/"),it=he,Fe===null&&(Fe=he.indexOf("http")===-1),Te=Fe,a="web.nocache.js",y=!1;var Ue=it.split("/");Ue.length>1&&(!Fe&&Ue[Ue.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):nt.indexOf(Ue[Ue.length-2])>=0&&(a=Ue[Ue.length-2]+".nocache.js")),Ue=he.split("/"),ne=Ue[Ue.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var pt=parseFloat(ne);pt!==NaN&&pt<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+pt+" is deprecated. Using version latest instead."),ct("5.0",Fe))},ot=function(he,Fe){window.console&&window.console.log&&(!Fe||typeof Fe.showLogging=="undefined"||Fe.showLogging&&Fe.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ge(We):We();function We(){var he=st;we!==null?he=we:parseFloat(he)<5&&(he="5.0"),ct(he,!1),le!==null&&Ze(le,Te),Se=!0}return Me},GGBAppletUtils=function(){"use strict";function Me(){return window.GGBT_wsf_edit!==void 0}function st(Se,we){we!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+we+","+we+")",Se.style.webkitTransform="scale("+we+","+we+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function oe(Se,we,le,Re,Ve,Ce){var it=null;if(Ce!=null&&Ce!="")for(var Te=Se.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+Ce+" ")>-1){it=Te;break}else Te=Te.parentNode;var ke=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(it)ke=it.offsetWidth,ne=Math.max(Re?it.offsetWidth:0,it.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ke):(ke=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=ke&&(Ve===void 0||!Ve)&&(document.dir==="rtl"?(E=ke-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((le===void 0||!le)&&we>0&&we+y<ke?ke=we:ke-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=x)),{width:ke,height:ne}}function ae(Se,we,le,Re,Ve){if(Se.isScreenshoGenerator)return 1;var Ce=Re!==void 0&&Re,it=Se.noScaleMargin!=null&&Se.noScaleMargin,Te=function(ee){return ee&&ee!=="false"},ke=Te(Se.autoHeight),ne=oe(we,Se.width,le,ke,Ce&&window.GGBT_wsf_view||it,Ve),a=parseInt(ne.width),y=Se.width,E=Se.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ce?1:ne.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function fe(Se,we,le){var Re=1,Ve,Ce=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ce=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Re=parseFloat(Se.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(Ce=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ve=ae(Se,we,Ce,le,Se.scaleContainerClass);else return Re;return Ce&&(!Se.hasOwnProperty("scale")||Re===1)?Ve:Math.min(Re,Ve)}function Ke(Se){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=Se.getBoundingClientRect(),Ve=(we-Re.width)/2,Ce=(le-Re.height)/2;Ce<0&&(Ce=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve<40?Se.style.left="40px":Se.style.left=Ve+"px",Se.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?Se.style.top="40px":Se.style.top=Ce+"px",Se.style.left=Ve+"px")}function Ie(Se,we){var le=Se.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Re=fe(we,Se);Me()&&le.setAttribute("data-param-scale",Re);for(var Ve=null,Ce=0;Ce<Se.childNodes.length;Ce++)if(Se.childNodes[Ce].className!==void 0&&Se.childNodes[Ce].className.match(/^applet_scaler/)){Ve=Se.childNodes[Ce];break}if(Ve!==null&&Ve.querySelector(".noscale")!==null)return;var it=we.id!==void 0?we.id:"ggbApplet",Te=window[it];(Te==null||!Te.recalculateEnvironments)&&Ve!==null&&!Ve.className.match(/fullscreen/)&&(Ve.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(Ve.parentNode.style.width=we.width*Re+"px",Ve.parentNode.style.height=we.height*Re+"px",st(Ve,Re)):(st(Ve,1),Ve.parentNode.style.width=we.width+"px",Ve.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Me,positionCenter:Ke,getScale:fe,scaleElement:st}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Me=n.location.search;return Me.indexOf(J)!=-1||Me.indexOf(K)!=-1}function q(Me,st){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Me){var st=s[L].bindings;s[L].bindings=function(){for(var oe=st?st():{},ae=Me[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var Ke=ae[fe];oe[Ke[O]]=Ke[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Me=o.createElement(Q);if(Me.id=L,Me.style.cssText=R+S,Me.tabIndex=-1,o.body.appendChild(Me),t=Me.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(Me){function st(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=fe();if(Ke){ae();return}function Ie(){if(!Ke){if(!fe())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var Se=setInterval(function(){Ie()},$)}function oe(ae){var fe=u(),Ke=fe.body,Ie=fe.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ae,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Ie)}st(function(){oe(Me)})}webModule.__startLoadingFragment=function(Me){return C(Me)},webModule.__installRunAsyncCode=function(Me){var st=u(),oe=st.body,ae=st.createElement(_);ae.language=ab,ae.text=Me,oe.appendChild(ae),oe.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(Me){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Me){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Me){var st=c[Me];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function Me(Se){var we=Se.lastIndexOf(rb);we==-1&&(we=Se.length);var le=Se.indexOf(sb);le==-1&&(le=Se.length);var Re=Se.lastIndexOf(tb,Math.min(le,we));return Re>=O?Se.substring(O,Re+P):W}function st(Se){if(!Se.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=Se+vb,Se=Me(we.src)}return Se}function oe(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ae(){for(var Se=o.getElementsByTagName(_),we=O;we<Se.length;++we)if(Se[we].src.indexOf(xb)!=-1)return Me(Se[we].src);return W}function fe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Ke(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ie=oe();return Ie==W&&(Ie=ae()),Ie==W&&(Ie=fe()),Ie==W&&Ke()&&(Ie=Me(o.location.href)),Ie=st(Ie),Ie}function C(Me){return Me.match(/^\//)||Me.match(/^[a-zA-Z]+:\/\//)?Me:webModule.__moduleBase+Me}function D(){var Me=[],st=O,oe=[],ae=[];function fe(Se){var we=ae[Se](),le=oe[Se];if(we in le)return we;var Re=[];for(var Ve in le)Re[le[Ve]]=Ve;throw r&&r(Se,Re,we),null}if(__gwt_isKnownPropertyValue=function(Se,we){return we in oe[Se]},webModule.__getPropMap=function(){var Se={};for(var we in oe)oe.hasOwnProperty(we)&&(Se[we]=fe(we));return Se},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ie=Ke.indexOf(Db);Ie!=-1&&(st=parseInt(Ke.substring(Ie+P),$),Ke=Ke.substring(O,Ie))}catch(Se){}return webModule.__softPermutationId=st,C(Ke+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})()},92746:function(Me,st,oe){"use strict";oe.d(st,{Ax:function(){return Ie},Ds:function(){return Se},KI:function(){return le},SI:function(){return Ke},f1:function(){return fe}});var ae=oe(35545);function fe(Re){let Ve=!0;if(Re.length>0){for(let Ce=0;Ce<Re.length;Ce++)if(Re[Ce].compile_success==0||!Re[Ce].compile_success){Ve=!1;break}}else Ve=!1;return Ve}function Ke(Re,Ve=""){let Ce=[];for(let it=0;it<Re.length;it++){let Te=Re[it],ke=Ve?`${Ve}/${Te.name}`:`${Te.name}`;Ce.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:ke})}return Ce}function Ie(Re,Ve,Ce){for(let it=0;it<Re.length;it++){let Te=Re[it];if(Te.key===Ve){Te.children=Ce;break}Te.children&&Ie(Te.children,Ve,Ce)}return Re}function Se(Re,Ve,Ce){let it;return function(){let Te=this,ke=arguments,ne=function(){it=null,Ce||Re.apply(Te,ke)},a=Ce&&!it;clearTimeout(it),it=setTimeout(ne,Ve),a&&Re.apply(Te,ke)}}const we=!0,le=ae.Z.API_SERVER},6119:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return It}});var ae=oe(59301),fe=oe(75759),Ke=oe(24905),Ie=oe(12893),Se=oe(32134),we=oe(79884),le=oe(78241),Re=oe(57809),Ve={},Ce=Object.defineProperty,it=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ne=(be,Ae,$e)=>Ae in be?Ce(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:$e}):be[Ae]=$e,a=(be,Ae)=>{for(var $e in Ae||(Ae={}))Te.call(Ae,$e)&&ne(be,$e,Ae[$e]);if(it)for(var $e of it(Ae))ke.call(Ae,$e)&&ne(be,$e,Ae[$e]);return be},y=(be,Ae,$e)=>new Promise((De,nt)=>{var ct=We=>{try{ot($e.next(We))}catch(he){nt(he)}},Ze=We=>{try{ot($e.throw(We))}catch(he){nt(he)}},ot=We=>We.done?De(We.value):Promise.resolve(We.value).then(ct,Ze);ot(($e=$e.apply(be,Ae)).next())});const E=Ke.default.Group,b=({classroomList:be,loading:Ae,user:$e,exercise_id:De=null,homework_common_id:nt=null,setitem:ct,item:Ze,type:ot,rz:We,dispatch:he})=>{var Fe,Ue,pt,Je,dt,de,Ye,St;const xt=(0,fe.useIntl)(),[Ct,Ge]=(0,ae.useState)([]);let[ue,Pe]=(0,ae.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const _e=(0,fe.useParams)(),[qe,ut]=(0,ae.useState)(!1),[ht,Bt]=(0,ae.useState)(!1),[Nt]=le.default.useForm();(0,ae.useEffect)(()=>{We&&(ue.zydatas=We,Pe(a({},ue)),Ze!=null&&Ze.ec_course_id&&Wt())},[Ze,We]);function Wt(){return y(this,null,function*(){console.log("----",Ze),yield wt(Ze==null?void 0:Ze.ec_major_school_id),yield _t(Ze==null?void 0:Ze.ec_year_id),yield ln(Ze==null?void 0:Ze.ec_course_id),Nt.setFieldsValue({ec_course_id:Ze==null?void 0:Ze.ec_course_id,ec_major_school_id:Ze==null?void 0:Ze.ec_major_school_id,ec_point_ids:Ze==null?void 0:Ze.ec_point_ids,ec_year_id:Ze==null?void 0:Ze.ec_year_id})})}function wt(ft){return y(this,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_major_schools/${ft}/ec_years/get_year_list.json`,{method:"get"});ue.jbdatas=Ut==null?void 0:Ut.data,Pe(a({},ue)),Nt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function _t(ft){return y(this,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_years/${ft}/ec_courses/get_courses.json`,{method:"get"});ue.kcdatas=Ut==null?void 0:Ut.data,Pe(a({},ue)),Nt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const ln=ft=>y(void 0,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_courses/${ft}/ec_points.json`,{method:"get",params:{ec_course_id:ft}});ue.zsdatas=Ut==null?void 0:Ut.data,Pe(a({},ue))});return ae.createElement("div",{className:Ve.from},ae.createElement(le.default,{form:Nt,layout:"inline",onValuesChange:ft=>{console.log("----",ft),ft.ec_major_school_id&&(ue.jbdatas=[],ue.kcdatas=[],ue.zsdatas=[],Pe(a({},ue)),wt(ft.ec_major_school_id)),ft.ec_year_id&&(ue.kcdatas=[],ue.zsdatas=[],Pe(a({},ue)),_t(ft.ec_year_id)),ft.ec_course_id&&(ue.zsdatas=[],Pe(a({},ue)),ln(ft.ec_course_id))},onFinish:ft=>y(void 0,null,function*(){ct(ft)})},ae.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ae.createElement(Re.default,{style:{width:150},disabled:((Fe=ue.zydatas)==null?void 0:Fe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ue=ue==null?void 0:ue.zydatas)==null?void 0:Ue.map((ft,Ut)=>ae.createElement(Re.default.Option,{key:Ut,value:ft==null?void 0:ft.ec_major_school_id},ft==null?void 0:ft.name)))),ae.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ae.createElement(Re.default,{style:{width:150},disabled:((pt=ue.jbdatas)==null?void 0:pt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Je=ue==null?void 0:ue.jbdatas)==null?void 0:Je.map((ft,Ut)=>ae.createElement(Re.default.Option,{key:Ut,value:ft==null?void 0:ft.ec_year_id},ft==null?void 0:ft.year)))),ae.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ae.createElement(Re.default,{style:{width:150},disabled:((dt=ue.kcdatas)==null?void 0:dt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=ue==null?void 0:ue.kcdatas)==null?void 0:de.map((ft,Ut)=>ae.createElement(Re.default.Option,{key:Ut,value:ft==null?void 0:ft.id},ft==null?void 0:ft.name)))),ae.createElement(le.default.Item,{label:xt.formatMessage({id:"classroomClassroomExperiments.knowledgePoints",defaultMessage:"\u77E5\u8BC6\u70B9"}),name:"ec_point_ids"},ae.createElement(Re.default,{onChange:()=>{Nt.submit()},style:{width:150},mode:"multiple",disabled:((Ye=ue.zsdatas)==null?void 0:Ye.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(St=ue==null?void 0:ue.zsdatas)==null?void 0:St.map((ft,Ut)=>ae.createElement(Re.default.Option,{key:Ut,value:ft==null?void 0:ft.id},ft==null?void 0:ft.name))))))};var x=(0,fe.connect)(({classroomList:be,loading:Ae,globalSetting:$e,user:De})=>({classroomList:be,globalSetting:$e,loading:Ae.effects,user:De}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(be,Ae,$e)=>Ae in be?z(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:$e}):be[Ae]=$e,se=(be,Ae)=>{for(var $e in Ae||(Ae={}))ie.call(Ae,$e)&&me(be,$e,Ae[$e]);if(re)for(var $e of re(Ae))ge.call(Ae,$e)&&me(be,$e,Ae[$e]);return be},Le=(be,Ae)=>ee(be,te(Ae)),Oe=(be,Ae,$e)=>new Promise((De,nt)=>{var ct=We=>{try{ot($e.next(We))}catch(he){nt(he)}},Ze=We=>{try{ot($e.throw(We))}catch(he){nt(he)}},ot=We=>We.done?De(We.value):Promise.resolve(We.value).then(ct,Ze);ot(($e=$e.apply(be,Ae)).next())});const et=Ke.default.Group,$t=({classroomList:be,loading:Ae,user:$e,exercise_id:De=null,homework_common_id:nt=null,setitem:ct,type:Ze,dispatch:ot})=>{var We,he;let[Fe,Ue]=(0,ae.useState)([{}]),[pt,Je]=(0,ae.useState)([]);function dt(){return Oe(this,null,function*(){var Ye,St,xt;let Ct=yield(0,we.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:De,homework_common_id:nt}});if(((Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.length)>0){let Ge=[];(St=Ct==null?void 0:Ct.data)==null||St.map(ue=>{var Pe;(Pe=ue==null?void 0:ue.ec_point_ids)==null||Pe.map(_e=>{Ge.push(_e)})}),ct(Le(se({},(xt=Ct==null?void 0:Ct.data)==null?void 0:xt[0]),{ec_point_ids:Ge})),Ue(Ct==null?void 0:Ct.data)}})}(0,ae.useEffect)(()=>{var Ye,St;(St=(Ye=$e==null?void 0:$e.userInfo)==null?void 0:Ye.course)!=null&&St.course_school_id&&de()},[(he=(We=$e==null?void 0:$e.userInfo)==null?void 0:We.course)==null?void 0:he.course_school_id]);function de(){return Oe(this,null,function*(){var Ye,St;const xt=yield(0,we.ZP)(`/api/schools/${(St=(Ye=$e==null?void 0:$e.userInfo)==null?void 0:Ye.course)==null?void 0:St.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Je(xt==null?void 0:xt.data),(nt||De)&&dt()})}return ae.createElement("div",null,ae.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Fe==null?void 0:Fe.map((Ye,St)=>ae.createElement("div",{key:St,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ae.createElement(x,{rz:pt,item:Ye,type:St,setitem:xt=>{Fe.splice(St,1,xt),Ue([...Fe]);let Ct=[];Fe==null||Fe.map(Ge=>{var ue;(ue=Ge==null?void 0:Ge.ec_point_ids)==null||ue.map(Pe=>{Ct.push(Pe)})}),ct(Le(se({},xt),{ec_point_ids:Ct}))}}),St!=0&&ae.createElement(Ie.Z,{onClick:()=>{Fe.splice(St,1),Ue([...Fe])},style:{marginLeft:10,fontSize:"20px"}}),ae.createElement(Se.Z,{onClick:()=>{Fe.push({}),Ue([...Fe])},style:{marginLeft:10,fontSize:"20px"}}))))};var It=(0,fe.connect)(({classroomList:be,loading:Ae,globalSetting:$e,user:De})=>({classroomList:be,globalSetting:$e,loading:Ae.effects,user:De}))($t)},12338:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Te}});var ae=oe(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=oe(92310),Ie=oe.n(Ke),Se=oe(71418),we=oe(2859),le=oe(79884),Re=oe(19694),Ve=oe(75759),Ce=(ke,ne,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(te){E(te)}},x=ee=>{try{z(a.throw(ee))}catch(te){E(te)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(ke,ne)).next())}),Te=({data:ke,className:ne,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ve.useIntl)(),te=(0,ae.useRef)(null),re=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),[me,se]=(0,ae.useState)(!1),[Le,Oe]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&et()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[ke==null?void 0:ke.visible]);const et=()=>Ce(void 0,null,function*(){se(!0),Oe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $e=yield(0,Re.ZJ)(ke==null?void 0:ke.src);te.current.src="",te.current.src=$e,te.current.onload=function(){Ae()},se(!1),Oe("")}),$t=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},It=$e=>Ce(void 0,null,function*(){se(!0),Oe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:$e.dataUrl}});De!=null&&De.id&&!z?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify($e.state)}})).status===0&&b():De!=null&&De.id&&b(De),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",se(!1),Oe("")}),be=()=>{const $e=document.querySelector('a[href="https://markerjs.com/"]');$e&&$e.parentNode&&($e.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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(nt=>{const ct=document.querySelector(nt.name);ct&&ct.setAttribute("title",nt.title)})},Ae=()=>{re.current=new we.hP(te.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",It),re.current.addEventListener("beforeclose",$t),x&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),ke!=null&&ke.snapshotData&&re.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),be()},300)};return ae.createElement(ae.Fragment,null,(ke==null?void 0:ke.visible)&&ae.createElement(Se.Z,{spinning:me,tip:Le,style:{position:"absolute"}},ae.createElement("div",{ref:ge,className:Ie()(fe.imageDimensions,ne,a?fe.fullWidth:""),style:y},ae.createElement("img",{className:fe.img,ref:te}))))}},12051:function(Me,st,oe){"use strict";var ae=oe(59301),fe=oe(95237),Ke=oe(43604),Ie=oe(99313),Se=oe(3113),we=oe(52628),le=oe(81230),Re=oe(48136),Ve=oe(75759),Ce=oe(59301);const it=(0,ae.forwardRef)(({callback:Te,showSaveButton:ke,value:ne=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ve.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=re=>{y.current.setValue(y.current.getValue()+" "+re.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ce.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},b.map((re,ie)=>Ce.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(we.Z,{value:`$$${re.value}$$`}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Ce.createElement("div",{key:me},Ce.createElement("h1",null,ge.name),Ce.createElement(fe.Z,{gutter:[10,10]},ge.data.map((se,Le)=>Ce.createElement(Ke.Z,{key:Le,onClick:()=>z(se),className:le.Z.diamond},Ce.createElement(we.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ce.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ie)=>Ce.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(we.Z,{value:"`$$"+re.value+"$$`"}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Ce.createElement("div",{key:me},ge.name&&Ce.createElement("h1",null,ge.name),Ce.createElement(fe.Z,{gutter:[10,10]},ge.data.map((se,Le)=>Ce.createElement(Ke.Z,{key:Le,onClick:()=>z(se),className:le.Z.diamond},Ce.createElement(we.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=y.current.getValue();var ie=re.innerText;return Te&&Te(ie),ie};return(0,ae.useImperativeHandle)(a,()=>({getData:te})),Ce.createElement("div",{className:le.Z.mathWrap},Ce.createElement(Ie.default,{defaultActiveKey:"1",items:ee}),Ce.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},ne||""),ke&&Ce.createElement("div",{className:le.Z.button},Ce.createElement(Se.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});st.Z=it},26674:function(Me,st,oe){"use strict";oe.d(st,{z:function(){return nt},Z:function(){return ct}});var ae=oe(59301),fe=oe(54580),Ke=oe(8591),Ie=oe(43418),Se=oe(3113),we=oe(35545),le=oe(79752),Re=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Te=(Ze,ot,We)=>ot in Ze?Re(Ze,ot,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ze[ot]=We,ke=(Ze,ot)=>{for(var We in ot||(ot={}))Ce.call(ot,We)&&Te(Ze,We,ot[We]);if(Ve)for(var We of Ve(ot))it.call(ot,We)&&Te(Ze,We,ot[We]);return Ze},ne=(Ze,ot,We)=>new Promise((he,Fe)=>{var Ue=dt=>{try{Je(We.next(dt))}catch(de){Fe(de)}},pt=dt=>{try{Je(We.throw(dt))}catch(de){Fe(de)}},Je=dt=>dt.done?he(dt.value):Promise.resolve(dt.value).then(Ue,pt);Je((We=We.apply(Ze,ot)).next())});const a="\u3000\u3000";function y(Ze){var ot=["Bytes","KB","MB","GB","TB"];if(Ze==0)return"0 Byte";var We=parseInt(""+Math.floor(Math.log(Ze)/Math.log(1024)),10);return(Ze/Math.pow(1024,We)).toFixed(1)+" "+ot[We]}var E=({value:Ze=[],action:ot,onChange:We,className:he,maxSize:Fe=150,title:Ue="\u6587\u4EF6\u4E0A\u4F20",accept:pt=null})=>{const Je={multiple:!1,fileList:Ze,accept:pt,withCredentials:!0,beforeUpload:de=>de.size/1024/1024<Fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Fe}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(de){var Ye,St,xt,Ct;let Ge=[...de.fileList];if(Ge=Ge.map(ue=>(ue.name.indexOf(a)===-1&&(ue.name=`${ue.name}${a}${y(ue.size)}`),ke({},ue))),de.file.status==="done"&&((St=(Ye=de.file)==null?void 0:Ye.response)==null?void 0:St.status)===-1){message.error((Ct=(xt=de.file)==null?void 0:xt.response)==null?void 0:Ct.message),We([]);return}We(Ge)},onRemove:de=>ne(void 0,null,function*(){const Ye=de.size/1024/1024;return de.status==="uploading"?!0:Ye<Fe&&(de.response?de.response.id:de.uid)?yield removeAttachment(de.response?de.response.id:de.id):!0})};function dt(de){de.preventDefault(),de.stopPropagation()}return React.createElement("div",{className:`single-upload ${he||""}`},React.createElement(Upload,ke({},Je),React.createElement(Button,{type:"primary",title:Ze.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Ze.length>0,ghost:!0},Ue),React.createElement("span",{onClick:dt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Fe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ze,ot,We)=>ot in Ze?z(Ze,ot,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ze[ot]=We,ge=(Ze,ot)=>{for(var We in ot||(ot={}))te.call(ot,We)&&ie(Ze,We,ot[We]);if(ee)for(var We of ee(ot))re.call(ot,We)&&ie(Ze,We,ot[We]);return Ze};const me=Ze=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ze),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Le=oe(75759),Oe=Object.defineProperty,et=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,be=(Ze,ot,We)=>ot in Ze?Oe(Ze,ot,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ze[ot]=We,Ae=(Ze,ot)=>{for(var We in ot||(ot={}))$t.call(ot,We)&&be(Ze,We,ot[We]);if(et)for(var We of et(ot))It.call(ot,We)&&be(Ze,We,ot[We]);return Ze},$e=(Ze,ot,We)=>new Promise((he,Fe)=>{var Ue=dt=>{try{Je(We.next(dt))}catch(de){Fe(de)}},pt=dt=>{try{Je(We.throw(dt))}catch(de){Fe(de)}},Je=dt=>dt.done?he(dt.value):Promise.resolve(dt.value).then(Ue,pt);Je((We=We.apply(Ze,ot)).next())});const{Dragger:De}=fe.default;function nt(Ze){let ot=[];return Ze&&Ze.length>0&&(ot=Ze.map(We=>({uid:We.id,id:We.id,name:We.title+a+We.filesize,url:We.url,filesize:We.filesize,status:"done",response:{id:We.id}}))),ot}var ct=({value:Ze,onChange:ot,action:We,data:he,className:Fe,maxSize:Ue=150,title:pt,showRemoveModal:Je=!1,accept:dt="",additionalText:de,isDragger:Ye,number:St=1e3,aloneClear:xt=!1,realTimeRemove:Ct=!0,uploadText:Ge,setFileProgress:ue,showFileProgress:Pe})=>{const _e=(0,Le.useIntl)(),[qe,ut]=(0,ae.useState)(!1);let[ht,Bt]=(0,ae.useState)(Ze||[]),[Nt,Wt]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{Ze&&(Nt===1&&Bt([...Ze]),Wt(2),St===(Ze==null?void 0:Ze.length)&&ut(!0))},[Ze]);const wt=()=>{setTimeout(()=>{ht.pop(),Bt([...ht])},500)};Pe&&ue(ht.some(ft=>ft.status==="uploading"));const _t={multiple:!0,disabled:qe,accept:dt,withCredentials:!0,fileList:ht,beforeUpload:(ft,Ut)=>{const Kt=ft.size/1024/1024;return ht.concat(Ut).length>St?(ht.pop(),Bt([...ht]),Ke.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${St}\u4E2A\u6587\u4EF6`),xt?Promise.reject():(wt(),!1)):Kt<Ue?!0:(Ke.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ue}MB).`),xt?Promise.reject():(wt(),!1))},data:he,action:We||`${we.Z.API_SERVER}/api/attachments.json`,onChange(ft){var Ut,Kt,Jt,pe;if(ft.file.status==="removed"?ht=ft.fileList:ht=(0,x.uniqBy)([...ft.fileList,...ht],"uid"),ft.file.status==="done"&&((Kt=(Ut=ft.file)==null?void 0:Ut.response)==null?void 0:Kt.status)===-1){Ke.ZP.error((pe=(Jt=ft.file)==null?void 0:Jt.response)==null?void 0:pe.message);return}ht.length>=St?ut(!0):ut(!1),Bt([...ht]),ht=ht.map(Be=>{var Xe,mt;return(Xe=Be==null?void 0:Be.response)!=null&&Xe.id&&(Be.url=(mt=Be==null?void 0:Be.response)==null?void 0:mt.url),Be.name.indexOf(a)===-1&&(Be.name=`${Be.name}${a}${y(Be.size)}`),Ae({},Be)}),console.log("info:",ft,ht),ot(ht)},onRemove:ft=>$e(void 0,null,function*(){if(!Ct)return!0;const Ut=()=>$e(void 0,null,function*(){if(ft.response?ft.response.id:ft.id){let Jt=yield(0,le.JZ)(ft.response?ft.response.id:ft.uid);return Promise.resolve(Jt)}else return!0});return Je?new Promise((Kt,Jt)=>{Ie.default.confirm({centered:!0,width:530,okText:_e.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:_e.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:_e.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>$e(void 0,null,function*(){const pe=yield Ut();Ke.ZP.success("\u5220\u9664\u6210\u529F"),Kt(!0)}),onCancel:()=>Kt(!1)})}):yield Ut()})};function ln(ft){ft.preventDefault(),ft.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${Fe||""}`},Ye&&ae.createElement(De,Ae({},_t),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(b.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",Ue,"MB)"," "),de),!Ye&&ae.createElement(fe.default,Ae({},_t),ae.createElement(Se.ZP,{disabled:qe,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:se}),pt||_e.formatMessage({id:"classroomGraphicGroupHomework.uploadAttachment",defaultMessage:"\u4E0A\u4F20\u9644\u4EF6"})),ae.createElement("span",{onClick:ln,className:"upload_text"},Ge||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ue}MB)`)))}},9218:function(Me,st,oe){"use strict";oe.d(st,{h:function(){return te}});var ae=oe(59301),fe=oe(57809),Ke=oe(78241),Ie=oe(3113),Se=oe(89780),we=oe.n(Se),le=oe(10658),Re=oe(89274),Ve=oe(75759),Ce=Object.defineProperty,it=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(re,ie,ge)=>ie in re?Ce(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))ne.call(ie,ge)&&y(re,ge,ie[ge]);if(ke)for(var ge of ke(ie))a.call(ie,ge)&&y(re,ge,ie[ge]);return re},b=(re,ie)=>it(re,Te(ie));const x=fe.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};st.Z=({callback:re,onCancel:ie})=>{const[ge,me]=(0,ae.useState)("python");function se(et){me(ee[et][1])}function Le(et){re(et)}const Oe=(0,Ve.useIntl)();return ae.createElement(Ke.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),ae.createElement(Ke.default.Item,{label:Oe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(fe.default,{getPopupContainer:et=>et.parentNode,onChange:se},Object.keys(ee).map(et=>ae.createElement(x,{key:et,value:et},ee[et][0])))),ae.createElement(Ke.default.Item,{label:Oe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(te,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Oe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ie.ZP,{type:"ghost",onClick:ie},Oe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:re,onChange:ie,mode:ge,options:me={}}){const se=(0,ae.useRef)(),[Le,Oe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Le){let et=function($t){const It=$t.getValue();ie&&ie(It)};return Le.on("change",et),()=>{Le.off("change",et)}}},[Le,ie]),(0,ae.useEffect)(()=>{Le&&Le.setOption("mode",ge)},[Le,ge]),(0,ae.useEffect)(()=>{Le&&(re!==Le.getValue()||re==="")&&setTimeout(()=>{Le.setValue(re||"")},300)},[Le,re]),(0,ae.useEffect)(()=>{if(se.current&&!Le){const et=we().fromTextArea(se.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Oe(et)}},[se.current,Le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},30741:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return na}});var ae=oe(59301),fe=oe(89780),Ke=oe.n(fe),Ie=oe(76374),Se=oe(10658),we=oe(6313),le=oe(25717),Re=oe(99498),Ve=oe(25419),Ce=oe(67549),it=oe(52628),Te=({value:ve="",className:Ee,showTextOnly:ye,showLines:rt,style:bt={}})=>{const Gt=(0,ae.useMemo)(()=>"",[ve]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},ke=oe(75759),ne=oe(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ve,Ee,ye)=>Ee in ve?a(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ve[Ee]=ye,te=(ve,Ee)=>{for(var ye in Ee||(Ee={}))x.call(Ee,ye)&&ee(ve,ye,Ee[ye]);if(b)for(var ye of b(Ee))z.call(Ee,ye)&&ee(ve,ye,Ee[ye]);return ve},re=(ve,Ee)=>y(ve,E(Ee));function ie({onActionCallback:ve,title:Ee,icon:ye,actionName:rt,className:bt="",children:Gt}){function en(){ve(rt)}return ne.createElement("a",{title:Ee,className:bt,onClick:en},ne.createElement("i",{className:`${ye}`}),Gt)}var ge=({watch:ve,showNullButton:Ee,showNullProgramButton:ye,onActionCallback:rt,fullScreen:bt,insertTemp:Gt,hidetoolBar:en,extraUse:Yt})=>{const At=(0,ke.useIntl)(),Qn=[...[{title:At.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:At.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:At.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:At.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:At.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:At.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:At.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:At.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:At.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:At.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:At.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:At.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:At.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:At.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:At.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:At.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ve?At.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):At.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!en&&Qn.map((An,lt)=>ne.createElement("li",{key:lt},An.actionName?ne.createElement(ie,re(te({},An),{onActionCallback:rt})):ne.createElement("span",{className:"v-line"}))),Ee?ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ye?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yt&&ne.createElement("li",null,Yt),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ie,{icon:`${bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rt})))},me=oe(89147),se=oe(78241),Le=oe(92832),Oe=oe(3113),et=Object.defineProperty,$t=Object.defineProperties,It=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,De=(ve,Ee,ye)=>Ee in ve?et(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ve[Ee]=ye,nt=(ve,Ee)=>{for(var ye in Ee||(Ee={}))Ae.call(Ee,ye)&&De(ve,ye,Ee[ye]);if(be)for(var ye of be(Ee))$e.call(Ee,ye)&&De(ve,ye,Ee[ye]);return ve},ct=(ve,Ee)=>$t(ve,It(Ee));const Ze={labelCol:{span:4},wrapperCol:{span:20}};var ot=({callback:ve,onCancel:Ee})=>{function ye(bt){ve(bt)}const rt=(0,ke.useIntl)();return ae.createElement(se.default,ct(nt({},Ze),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ye,style:{width:500}}),ae.createElement(se.default.Item,{label:rt.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Le.default,null)),ae.createElement(se.default.Item,{label:rt.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Le.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},rt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Oe.ZP,{type:"ghost",onClick:Ee},rt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},We=oe(9218),he=oe(94491),Fe=oe(43418),Ue=oe(95237),pt=oe(12338),Je=oe(59301),dt=({callback:ve,onCancel:Ee})=>{const ye=document.createElement("canvas"),rt=ye.getContext("2d");ye.width=1e3,ye.height=800,rt.fillStyle="#ffffff",rt.fillRect(0,0,ye.width,ye.height);const bt=ye.toDataURL("image/png");return Je.createElement(Fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Je.createElement(Ue.Z,{style:{height:"100vh"}},Je.createElement(pt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:bt,visible:!0,title:String(Date.now())},onOk:Gt=>{ve({src:Gt.url})},onClose:Ee})))},de=oe(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},Ye.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var Ee=1/0;ve.selection.each(function(ye){ye instanceof go.Link||(Ee=Math.min(ye.position.x,Ee))}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Ee,ye.position.y))}),ve.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var Ee=-1/0;ve.selection.each(function(ye){if(!(ye instanceof go.Link)){var rt=ye.actualBounds.x+ye.actualBounds.width;Ee=Math.max(rt,Ee)}}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Ee-ye.actualBounds.width,ye.position.y))}),ve.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var Ee=1/0;ve.selection.each(function(ye){ye instanceof go.Link||(Ee=Math.min(ye.position.y,Ee))}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.position.x,Ee))}),ve.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var Ee=-1/0;ve.selection.each(function(ye){if(!(ye instanceof go.Link)){var rt=ye.actualBounds.y+ye.actualBounds.height;Ee=Math.max(rt,Ee)}}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.actualBounds.x,Ee-ye.actualBounds.height))}),ve.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee){ve.startTransaction("aligning Center X");var ye=Ee.actualBounds.x+Ee.actualBounds.width/2;ve.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(ye-rt.actualBounds.width/2,rt.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee){ve.startTransaction("aligning Center Y");var ye=Ee.actualBounds.y+Ee.actualBounds.height/2;ve.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(rt.actualBounds.x,ye-rt.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(ve){var Ee=this.diagram;Ee.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var ye=new Array;Ee.selection.each(function(Yt){Yt instanceof go.Link||ye.push(Yt)});for(var rt=0;rt<ye.length-1;rt++){var bt=ye[rt],Gt=bt.actualBounds.y+bt.actualBounds.height+ve,en=ye[rt+1];en.move(new go.Point(bt.actualBounds.x,Gt))}Ee.commitTransaction("align Column")},Ye.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var Ee=this.diagram;Ee.startTransaction("align Row");var ye=new Array;Ee.selection.each(function(Yt){Yt instanceof go.Link||ye.push(Yt)});for(var rt=0;rt<ye.length-1;rt++){var bt=ye[rt],Gt=bt.actualBounds.x+bt.actualBounds.width+ve,en=ye[rt+1];en.move(new go.Point(Gt,bt.actualBounds.y))}Ee.commitTransaction("align Row")},Ye.prototype.canRotate=function(ve){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<1)},Ye.prototype.rotate=function(ve){ve===void 0&&(ve=90);var Ee=this.diagram;Ee.startTransaction("rotate "+ve.toString());var Ee=this.diagram;Ee.selection.each(function(ye){ye instanceof go.Link||ye instanceof go.Group||(ye.angle+=ve)}),Ee.commitTransaction("rotate "+ve.toString())},Ye.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var Ee=new go.Map;ve.selection.each(function(ye){Ee.set(ye.layer,0)}),Ee.iteratorKeys.each(function(ye){var rt=0;ye.parts.each(function(bt){if(!bt.isSelected){var Gt=bt.zOrder;isNaN(Gt)?bt.zOrder=0:rt=Math.max(rt,Gt)}}),Ee.set(ye,rt)}),ve.selection.each(function(ye){Ye._assignZOrder(ye,Ee.get(ye.layer)+1)}),ve.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var Ee=new go.Map;ve.selection.each(function(ye){Ee.set(ye.layer,0)}),Ee.iteratorKeys.each(function(ye){var rt=0;ye.parts.each(function(bt){if(!bt.isSelected){var Gt=bt.zOrder;isNaN(Gt)?bt.zOrder=0:rt=Math.min(rt,Gt)}}),Ee.set(ye,rt)}),ve.selection.each(function(ye){Ye._assignZOrder(ye,Ee.get(ye.layer)-1-Ye._findGroupDepth(ye))}),ve.commitTransaction("pushToBack")},Ye._assignZOrder=function(ve,Ee,ye){ye===void 0&&(ye=ve),ve.layer===ye.layer&&(ve.zOrder=Ee),ve instanceof go.Group&&ve.memberParts.each(function(rt){Ye._assignZOrder(rt,Ee+1,ye)})},Ye._findGroupDepth=function(ve){if(ve instanceof go.Group){var Ee=0;return ve.memberParts.each(function(ye){Ee=Math.max(Ee,Ye._findGroupDepth(ye))}),Ee+1}else return 0},Ye.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var Ee=ve.lastInput;if(Ee.key==="Up"||Ee.key==="Down"||Ee.key==="Left"||Ee.key==="Right"){var ye=this.arrowKeyBehavior;if(ye==="none")return;if(ye==="select"){this._arrowKeySelect();return}else if(ye==="move"){this._arrowKeyMove();return}else if(ye==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ye.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(Ee){ve.push(Ee)}),this.diagram.parts.each(function(Ee){ve.push(Ee)}),ve},Ye.prototype._arrowKeyMove=function(){var ve=this.diagram,Ee=ve.lastInput,ye=0,rt=0;if(Ee.control||Ee.meta)ye=1,rt=1;else if(ve.grid!==null){var bt=ve.grid.gridCellSize;rt=bt.width,ye=bt.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(Gt){Ee.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-ye)):Ee.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+ye)):Ee.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-rt,Gt.actualBounds.y)):Ee.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+rt,Gt.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var ve=this.diagram,Ee=ve.lastInput,ye=null;Ee.key==="Up"?ye=this._findNearestPartTowards(270):Ee.key==="Down"?ye=this._findNearestPartTowards(90):Ee.key==="Left"?ye=this._findNearestPartTowards(180):Ee.key==="Right"&&(ye=this._findNearestPartTowards(0)),ye!==null&&(Ee.shift?ye.isSelected=!0:Ee.control||Ee.meta?ye.isSelected=!ye.isSelected:ve.select(ye))},Ye.prototype._findNearestPartTowards=function(ve){var Ee=this.diagram.selection.first();if(Ee===null)return null;for(var ye=Ee.actualBounds.center,rt=this._getAllParts(),bt=1/0,Gt=Ee,en=0;en<rt.length;en++){var Yt=rt[en];if(Yt!==Ee&&Yt.canSelect()){var At=Yt.actualBounds.center,bn=ye.directionPoint(At),Qn=this._angleCloseness(bn,ve);if(Qn<=45){var An=ye.distanceSquaredPoint(At);An*=1+Math.sin(Qn*Math.PI/180),An<bt&&(bt=An,Gt=Yt)}}}return Gt},Ye.prototype._angleCloseness=function(ve,Ee){return Math.min(Math.abs(Ee-ve),Math.min(Math.abs(Ee+360-ve),Math.abs(Ee-360-ve)))},Ye.prototype._arrowKeyTree=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee instanceof go.Node){var ye=ve.lastInput;if(ye.key==="Right"){if(!Ee.isTreeLeaf)if(!Ee.isTreeExpanded)ve.commandHandler.canExpandTree(Ee)&&ve.commandHandler.expandTree(Ee);else{var rt=this._sortTreeChildrenByY(Ee).first();rt!==null&&ve.select(rt)}}else if(ye.key==="Left")if(!Ee.isTreeLeaf&&Ee.isTreeExpanded)ve.commandHandler.canCollapseTree(Ee)&&ve.commandHandler.collapseTree(Ee);else{var bt=Ee.findTreeParentNode();bt!==null&&ve.select(bt)}else if(ye.key==="Up"){var bt=Ee.findTreeParentNode();if(bt!==null){var Gt=this._sortTreeChildrenByY(bt),en=Gt.indexOf(Ee);if(en>0){for(var Yt=Gt.elt(en-1);Yt!==null&&Yt.isTreeExpanded&&!Yt.isTreeLeaf;){var At=this._sortTreeChildrenByY(Yt);Yt=At.last()}Yt!==null&&ve.select(Yt)}else ve.select(bt)}}else if(ye.key==="Down")if(Ee.isTreeExpanded&&!Ee.isTreeLeaf){var rt=this._sortTreeChildrenByY(Ee).first();rt!==null&&ve.select(rt)}else for(;Ee!==null;){var bt=Ee.findTreeParentNode();if(bt===null)break;var Gt=this._sortTreeChildrenByY(bt),en=Gt.indexOf(Ee);if(en<Gt.length-1){ve.select(Gt.elt(en+1));break}else Ee=bt}var bn=ve.selection.first();bn!==null&&ve.scrollToRect(bn.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(ve){var Ee=new go.List().addAll(ve.findTreeChildrenNodes());return Ee.sort(function(ye,rt){var bt=ye.location,Gt=rt.location;return bt.y<Gt.y?-1:bt.y>Gt.y?1:bt.x<Gt.x?-1:bt.x>Gt.x?1:0}),Ee},Ye.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var St=Ye,xt=oe(77319),Ct=oe(43604),Ge=oe(79884),ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),_e=(ve,Ee,ye)=>new Promise((rt,bt)=>{var Gt=At=>{try{Yt(ye.next(At))}catch(bn){bt(bn)}},en=At=>{try{Yt(ye.throw(At))}catch(bn){bt(bn)}},Yt=At=>At.done?rt(At.value):Promise.resolve(At.value).then(Gt,en);Yt((ye=ye.apply(ve,Ee)).next())});function qe({onCancel:ve,callback:Ee}){let ye=(0,ae.useRef)(),rt=(0,ae.useRef)(),bt=(0,ae.useRef)(),Gt=(0,ae.useRef)(!1);const en=(0,ae.useRef)(!1),[Yt,At]=(0,ae.useState)(0);function bn(){const lt=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"};ye.current=new de.S0(rt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tt=>{var Ft=tt.diagram.commandHandler.addTopLevelParts(tt.diagram.selection,!0);Ft||tt.diagram.currentTool.doCancel()},commandHandler:lt(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tt=>{var Ft=tt.subject;Ft.location=Ft.location.copy().snapToGridPoint(tt.diagram.grid.gridOrigin,tt.diagram.grid.gridCellSize),setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tt=>{var Ft=tt.subject;setTimeout(()=>{tt.diagram.commandHandler.editTextBlock()})},LinkRelinked:tt=>{var Ft=tt.parameter.part;Ft.invalidateConnectedLinks();var yt=tt.subject;tt.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ye.current.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),lt(de.bn,{name:"SHAPE",fill: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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ye.current.nodeTemplate.toolTip=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Hn(tt,Ft){var yt=(Et,gn)=>{Et.handled=!0,Et.diagram.model.commit(an=>{var Zt=gn.part.adornedPart,fn=new de.E9().setRectSpot(Zt.actualBounds,tt);fn.subtract(Zt.location),fn.scale(2,2),fn.x+=Math.sign(fn.x)*130,fn.y+=Math.sign(fn.y)*130,fn.add(Zt.location),fn.snapToGridPoint(Et.diagram.grid.gridOrigin,Et.diagram.grid.gridCellSize);var pn=an.copyNodeData(Zt.data);an.setGroupKeyForNodeData(pn,an.getGroupKeyForNodeData(Zt.data)),an.addNodeData(pn);var Kn={from:Zt.key,to:an.getKeyForNodeData(pn)};an.addLinkData(Kn);var qn=Et.diagram.findNodeForData(pn);qn.location=fn,Et.diagram.select(qn),setTimeout(()=>{Et.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,alignment:tt,alignmentFocus:tt.opposite(),width:tt.equals(de.z6.Top)||tt.equals(de.z6.Bottom)?25:18,height:tt.equals(de.z6.Top)||tt.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Qt.white,strokeWidth:4,mouseEnter:(Et,gn)=>gn.fill="dodgerblue",mouseLeave:(Et,gn)=>gn.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function Rn(tt){return lt(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ft,yt)=>yt.fill="dodgerblue",mouseLeave:(Ft,yt)=>yt.fill="orange",click:(Ft,yt)=>{Ft.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},tt||{})}ye.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Hn(de.z6.Top,"TriangleUp"),Hn(de.z6.Left,"TriangleLeft"),Hn(de.z6.Right,"TriangleRight"),Hn(de.z6.Bottom,"TriangleDown"),Rn({alignment:new de.z6(.75,0)}));function On(tt,Ft){return(yt,Et)=>{yt.handled=!0,yt.diagram.model.commit(gn=>{gn.set(Et.part.adornedPart.data,tt,Ft)})}}function ce(tt,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:tt,margin:1,background:"transparent",mouseEnter:(yt,Et)=>Et.stroke="dodgerblue",mouseLeave:(yt,Et)=>Et.stroke="lightgray",click:On(Ft,tt),contextClick:On(Ft,tt)})}function Ne(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.white,"fill"),ce(Qt.beige,"fill"),ce(Qt.extralightblue,"fill"),ce(Qt.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.lightgray,"fill"),ce(Qt.lightgreen,"fill"),ce(Qt.lightblue,"fill"),ce(Qt.lightred,"fill")))]}function ze(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.black),ce(Qt.green),ce(Qt.blue),ce(Qt.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.white),ce(Qt.magenta),ce(Qt.purple),ce(Qt.orange)))]}function je(tt,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:tt,margin:1,background:"transparent",mouseEnter:(yt,Et)=>Et.background="dodgerblue",mouseLeave:(yt,Et)=>Et.background="transparent",click:On(Ft,tt),contextClick:On(Ft,tt)})}function at(tt,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tt,margin:1,background:"transparent",mouseEnter:(yt,Et)=>Et.background="dodgerblue",mouseLeave:(yt,Et)=>Et.background="transparent",click:On(Ft,tt),contextClick:On(Ft,tt)})}function gt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",je(1),je(2),je(3),je(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function Qe(tt,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tt,margin:1,background:"transparent",mouseEnter:(yt,Et)=>Et.fill="dodgerblue",mouseLeave:(yt,Et)=>Et.fill="lightgray",click:On(Ft,tt),contextClick:On(Ft,tt)})}ye.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Rectangle"),Qe("RoundedRectangle"),Qe("Ellipse"),Qe("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Parallelogram2"),Qe("ManualOperation"),Qe("Procedure"),Qe("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Terminator"),Qe("CreateRequest"),Qe("Document"),Qe("TriangleDown"))),Ne(),ze(),gt()),ye.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tt,Ft)=>{var yt=Ft.addMembers(Ft.diagram.selection,!0);yt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill: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")),lt(de.Vm,{background:"transparent",margin:20})),lt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ye.current.groupTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),Rn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ye.current.groupTemplate.contextMenu=lt("ContextMenu",Ne(),ze(),gt()),ye.current.linkTemplate=lt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",tt=>tt>=1?10:0),new de.KX("toShortLength","dir",tt=>tt>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt===1)),lt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt>=1),new de.KX("width","thickness",tt=>7+3*tt),new de.KX("height","thickness",tt=>7+3*tt),new de.KX("segmentOffset","thickness",tt=>new de.E9(-15,4+1.5*tt))),lt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",tt=>tt===2),new de.KX("width","thickness",tt=>7+3*tt),new de.KX("height","thickness",tt=>7+3*tt),new de.KX("segmentOffset","thickness",tt=>new de.E9(-15,4+1.5*tt))),lt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ye.current.linkTemplate.selectionAdornmentTemplate=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:He(2)},new de.KX("pathPattern","thickness",He)),Rn({alignmentFocus:new de.z6(0,0,-6,-4)}));function He(tt){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tt+4).toString()+" H3"})}function Tt(tt){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tt===0?Ft="M0 0 M16 16 M0 8 L16 8":tt===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(yt,Et)=>Et.background="dodgerblue",mouseLeave:(yt,Et)=>Et.background="transparent",click:On("dir",tt),contextClick:On("dir",tt)})}function xe(tt){var Ft=(yt,Et)=>{yt.handled=!0,yt.diagram.model.commit(gn=>{var an=Et.part.adornedPart;gn.set(an.data,tt?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(tt?an.toNode:an.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,Et)=>Et.background="dodgerblue",mouseLeave:(yt,Et)=>Et.background="transparent",click:Ft,contextClick:Ft})}function Rt(tt,Ft){var yt=0,Et=de.z6.RightSide;tt.equals(de.z6.Top)?(yt=270,Et=de.z6.TopSide):tt.equals(de.z6.Left)?(yt=180,Et=de.z6.LeftSide):tt.equals(de.z6.Bottom)&&(yt=90,Et=de.z6.BottomSide),Ft||(yt-=180);var gn=(an,Zt)=>{an.handled=!0,an.diagram.model.commit(fn=>{var pn=Zt.part.adornedPart;fn.set(pn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(Et)),(Ft?pn.toNode:pn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:tt,alignmentFocus:tt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(an,Zt)=>Zt.background="dodgerblue",mouseLeave:(an,Zt)=>Zt.background="transparent",click:gn,contextClick:gn})}ye.current.linkTemplate.contextMenu=lt("ContextMenu",ze(),gt(),lt("ContextMenuButton",lt(de.s_,"Horizontal",Tt(0),Tt(1),Tt(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",xe(!1),Rt(de.z6.Top,!1),Rt(de.z6.Left,!1),Rt(de.z6.Right,!1),Rt(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},xe(!0),Rt(de.z6.Top,!0),Rt(de.z6.Left,!0),Rt(de.z6.Right,!0),Rt(de.z6.Bottom,!0)))));const tn=`{ "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 rn=["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 Sn(tt){return console.log("shapeName:",tt),rn.indexOf(tt)>=0}var kn=new de.YI(bt.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(tt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ye.current.addDiagramListener("TextEdited",function(tt){var Ft;const yt=tt.subject.part;var Et=(Ft=document.activeElement)==null?void 0:Ft.value;typeof Et=="string"&&Et.trim()===""&&ye.current.model.commit(function(gn){gn.set(yt.data,"text","\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}),kn.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),lt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ye.current.grid=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ye.current.grid.visible=!0,ye.current.grid.gridCellStroke="darkgray",ye.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ye.current,ye.current}const Qn=()=>_e(this,null,function*(){var lt=ye.current.makeImage();const Qt=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});Ee({src:Qt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{bn()},500),At(Yt+1),()=>{ye.current=null}),[]);const An=(0,ke.useIntl)();return Pe.createElement("div",{ref:en,className:Gt.current?`${ue.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ue.Z,null,Pe.createElement(Ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Ct.Z,{onClick:()=>{var lt,Qt,Hn=ye.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Hn){let Rn=(Qt=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:Qt.trim();typeof Rn=="string"&&ye.current.model.commit(function(On){On.set(Hn.data,"text",Rn||"\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}At(Yt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",An.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ve},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ue.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:ue.myPaletteDiv,ref:bt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:rt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(Oe.ZP,{size:"large",onClick:Qn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},An.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var ut=qe,ht=oe(5112),Bt=oe(5871);const Nt=ht.ZP.Group,Wt={margin:"0 8px"};var wt=({callback:ve,onCancel:Ee})=>{function ye(bt){ve(bt)}const rt=(0,ke.useIntl)();return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ye},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Bt.Z,null)),ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Bt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(Nt,null,ae.createElement(ht.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ht.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ht.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ht.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},rt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Oe.ZP,{type:"ghost",onClick:Ee},rt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},_t=oe(78673),ln=oe(44764),ft=oe.n(ln),Kt=(0,ae.forwardRef)(({use3d:ve,width:Ee,height:ye,callback:rt,showSaveButton:bt},Gt)=>{const en=(0,ae.useRef)(),Yt=(0,ae.useRef)(),At=(0,ke.useIntl)(),[bn,Qn]=(0,ae.useState)(!1),An=(0,ae.useRef)({id:en,appName:"graphing",width:Ee||1e3,height:ye||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)(()=>{Yt.current=new(ft())(An.current,!0),window.onload=function(){Yt.current.inject("applet_container")}},[]);const lt=()=>{var Qt=window.ggbApplet.getPNGBase64(1,!0,72);return rt&&rt(Qt),Qt};return(0,ae.useEffect)(()=>{An.current.appName=bn?"3D":"graphing",Yt.current.inject("applet_container")},[bn]),(0,ae.useEffect)(()=>{Qn(ve)},[ve]),(0,ae.useImperativeHandle)(Gt,()=>({getImgData:lt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:en}),ae.createElement(Ue.Z,{align:"middle"},ae.createElement(Ct.Z,{flex:1},ae.createElement(_t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:At.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:bn,onChange:Qt=>Qn(Qt)})),ae.createElement(Ct.Z,null,ae.createElement(Oe.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},At.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Jt=oe(12051),pe=oe(1012),Be=oe(8591);const Xe="link",mt="upload-image",vt="add-flowchart",Dt="draw-image",jt="add-flowchart",Mt="code-block",kt="add-table",qt="------------",Vt={default:qt,left:`:${qt}`,center:`:${qt}:`,right:`${qt}:`};var on=oe(40835),hn=(ve,Ee,ye)=>new Promise((rt,bt)=>{var Gt=At=>{try{Yt(ye.next(At))}catch(bn){bt(bn)}},en=At=>{try{Yt(ye.throw(At))}catch(bn){bt(bn)}},Yt=At=>At.done?rt(At.value):Promise.resolve(At.value).then(Gt,en);Yt((ye=ye.apply(ve,Ee)).next())});function yn(){}let Fn=0;const sn=1e4,dn="\u2581",Ln="@\u2581\u2581@",xn="@\u2581@",$n=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Zn={[In+"-B"]:"bold",[In+"-I"]:"italic"};var na=({defaultValue:ve="",onChange:Ee,width:ye="100%",height:rt=400,miniToolbar:bt=!1,isFocus:Gt=!1,watch:en,insertTemp:Yt,mode:At="markdown",id:bn="markdown-editor-id",showResizeBar:Qn=!1,noStorage:An=!1,showNullButton:lt=!1,showNullProgramButton:Qt=!1,hidetoolBar:Hn=!1,fullScreen:Rn=!1,onBlur:On,onCMBeforeChange:ce,onFullScreen:Ne,className:ze="",disablePaste:je=!1,disabled:at=!1,disabledFill:gt=!1,placeholder:Qe="",values:He="",extraUse:Tt})=>{const[xe,Rt]=(0,ae.useState)(null),[tn,rn]=(0,ae.useState)(ve),[Sn,kn]=(0,ae.useState)(en),[tt,Ft]=(0,ae.useState)(Rn),[yt,Et]=(0,ae.useState)(""),[gn,an]=(0,ae.useState)(0),[Zt,fn]=(0,ae.useState)(rt),[pn,Kn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,pe.Z)()),Yn=(0,ae.useRef)(!1),ua=(0,ae.useRef)(),[fa,Pa]=(0,ae.useState)(0),[ia,Un]=(0,ae.useState)(0),vn=(0,ae.useRef)(),aa=(0,ae.useRef)(),oa=(0,ae.useRef)(),ra=(0,ae.useRef)(),ga=()=>hn(void 0,null,function*(){var zt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=Pt==null?void 0:Pt.attachments)!=null&&zt.length&&(console.log("cm:",xe,vn),Pt.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?xe.replaceSelection(`![,](/api/attachments/${Lt.id}?type=${Lt.content_type})`):Lt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Lt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type}&disposition=inline" target="_blank">${Lt.name}</a>`):xe.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,ae.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;rn(He),xe==null||xe.setValue(He),window.scrollTo(0,zt)},[He]),(0,ae.useEffect)(()=>{Ne==null||Ne(tt)},[tt]),(0,ae.useEffect)(()=>{if(vn.current){let zt=function(Lt,Ot){var un;if(je){Ot.preventDefault();return}const Cn=Ot.clipboardData;if(Cn){const _n=Cn.types.toString(),Tn=Cn.items;if(_n==="Files"||Cn.types.indexOf("Files")>-1){if(Ot.preventDefault(),At=="stex")return;try{let jn=Tn[1];((un=Tn[0])==null?void 0:un.kind)==="file"&&(jn=Tn[0]);const Wn=jn.getAsFile(),ta=Wn.name.split(".").pop();(0,he.I)(Wn,Ht=>{var mn,wn,nn;Ht.id?((mn=Wn==null?void 0:Wn.type)==null?void 0:mn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Ht.id}?type=${Ht.content_type})" alt="" />`):((wn=Wn==null?void 0:Wn.type)==null?void 0:wn.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ht.id}"></video>`):((nn=Wn==null?void 0:Wn.type)==null?void 0:nn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=${Wn.type}&disposition=inline" target="_blank">${Wn.name}</a>`):cn.includes(ta)?Pt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=office&disposition=inline" target="_blank">${Wn.name}</a>`):Pt.replaceSelection(`[${Wn.name}](/api/attachments/${Ht.id}?type=${Ht.content_type})`):(Ht==null?void 0:Ht.status)===401&&(Be.ZP.warning((Ht==null?void 0:Ht.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Ke().fromTextArea(vn.current,{mode:At,lineNumbers:!bt,lineWrapping:!0,value:ve,autoCloseTags:!Qt,autoCloseBrackets:!0});return Pt.on("keyup",function(Lt,Ot){Ot.keyCode===8&&(Lt.getValue()==""?Pt.setOption("placeholder",Qe):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(Lt,Ot){if(Ot.keyCode===8){var un=ha(Lt);un&&Ot.preventDefault()}}),Gt&&Pt.focus(),Pt.on("paste",zt),Pt.on("dragleave",function(Lt,Ot){aa.current.classList.remove("mouse-hover-md")}),at&&Pt.on("beforeChange",function(Lt,Ot){(Ot.origin==="paste"||Ot.origin==="+input")&&Ot.cancel()}),Rt(Pt),()=>{Pt.off("paste",zt)}}},[]);const Xn=(0,ae.useCallback)(()=>{if(aa.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Zt,aa,tt]);(0,ae.useEffect)(()=>{function zt(){let Pt=new Ie.Z(Lt=>{for(let Ot of Lt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&(Xn(),xe.setSize("100%","100%"),xe.refresh())});return Pt.observe(vn.current.parentElement),Pt}if(xe){const Pt=zt();return()=>{var Lt,Ot;(Lt=vn.current)!=null&&Lt.parentElement&&Pt.unobserve((Ot=vn.current)==null?void 0:Ot.parentElement)}}},[xe,Xn]),(0,ae.useEffect)(()=>{if(xe){let zt=[];for(const[Pt,Lt]of Object.entries(Zn)){let Ot={[Pt]:()=>{Xt(Lt)}};zt.push(Ot),xe.addKeyMap(Ot)}return ua.current=setInterval(()=>{Yn.current&&ga()},4e3),()=>{clearInterval(ua.current);for(let Pt of zt)xe.removeKeyMap(Pt)}}},[xe]),(0,ae.useEffect)(()=>{Rn!==tt&&Ft(Rn)},[Rn]),(0,on.Z)(()=>{if(!An&&gn>0){let zt=new Date().getTime(),Pt=window.sessionStorage.getItem(bn);zt>=gn+sn&&(!Pt||Pt!==tn)&&(window.sessionStorage.setItem(bn,tn),Kn(!0))}},sn),(0,ae.useEffect)(()=>{kn(en)},[xe,en]),(0,ae.useEffect)(()=>{xe&&Gt&&xe.focus()},[xe,Gt]),(0,ae.useEffect)(()=>{if(Sn&&xe){let zt=function(Lt){let Ot=Lt.target;if(ra.current){let un=Ot.scrollTop/Ot.scrollHeight;ra.current.scrollTop=ra.current.scrollHeight*un}};const Pt=xe.getScrollerElement();return Pt.addEventListener("scroll",zt),()=>{Pt.removeEventListener("scroll",zt)}}},[xe,Sn]),(0,ae.useEffect)(()=>{if(xe&&ce){let zt=function(Pt,Lt){ce(Pt,Lt)};return xe.on("beforeChange",zt),()=>{xe.off("beforeChange",zt)}}},[xe,ce]),(0,ae.useEffect)(()=>{if(xe&&On){let zt=function(){On(xe.getValue())};return xe.on("blur",zt),()=>{xe.off("blur",zt)}}},[xe,On]);function ha(zt,Pt){var Lt=zt.getDoc(),Ot=Lt.getCursor(),un=Lt.getLine(Ot.line),Cn=un.charAt(Ot.ch-1),_n=un.lastIndexOf("@\u2581@",Ot.ch),Tn=un.lastIndexOf("@\u2581\u2581@",Ot.ch),jn=_n>Tn?_n:Tn,Wn=_n>Tn?3:4;if(Ln.indexOf(Cn)===-1)return null;if(console.log("change1:",Pt,zt,un,Ot,jn,_n,Tn,Cn),jn>=0&&Ot.ch-jn<5){var ta=jn+Wn;return Lt.replaceRange("",{line:Ot.line,ch:jn},{line:Ot.line,ch:ta}),{line:Ot.line,ch:ta}}return null}(0,ae.useEffect)(()=>{if(xe){let zt=function(Pt,Lt){const Ot=Pt.getValue();rn(Ot),an(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ee&&(Qt?Ee(Ot,Gn(Ot)):Ee(Ot))};return xe.on("change",zt),()=>{xe.off("change",zt)}}},[xe,Ee]),(0,ae.useEffect)(()=>{if(xe)if(ve==null)xe.setValue(""),rn("");else{const zt=window.scrollY||window.pageYOffset;ve!==xe.getValue()&&(xe.setValue(ve),rn(ve),xe.setCursor(at?1:xe.lineCount(),0),window.scrollTo(0,zt))}},[xe,ve]);const Xt=(0,ae.useCallback)(zt=>{const Pt=xe.getCursor(),Lt=xe.getSelection();let Ot=Lt.split(`
`);switch(zt){case"bold":return xe.replaceSelection("**"+Lt+"**"),Lt===""&&xe.setCursor(Pt.line,Pt.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+Lt+"*"),Lt===""&&xe.setCursor(Pt.line,Pt.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+Lt+"`"),Lt===""&&xe.setCursor(Pt.line,Pt.ch+1),xe.focus();case"inline-latex":return Et("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+Lt+"\n```"),xe.setCursor(Pt.line+1,Lt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
`),xe.focus();case"list-ul":return Lt===""?xe.replaceSelection("- "+Lt):xe.replaceSelection(Ot.map(un=>un===""?"":`- ${un}`).join(`
`)),xe.focus();case"list-ol":return Lt===""?xe.replaceSelection("1. "+Lt):xe.replaceSelection(Ot.map((un,Cn)=>un===""?"":`${Cn+1}. ${un}`).join(`
`)),xe.focus();case"add-null-ch":return Lt===""&&xe.setCursor(Pt.line,Pt.ch),xe.replaceSelection(dn),xe.focus();case"add-signal":return Lt===""&&xe.setCursor(Pt.line,Pt.ch),xe.replaceSelection(xn),xe.focus();case"add-multiple":return Lt===""&&xe.setCursor(Pt.line,Pt.ch),xe.replaceSelection(Ln),xe.focus();case"inster-template-1":return Lt===""&&xe.setCursor(Pt.line,Pt.ch),xe.replaceSelection($n),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return kn(!Sn),xe.focus();case"trigger-full-screen":return Ft(!tt),xe.focus();case Xe:Et(Xe);return;case Mt:Et(Mt);return;case mt:Et(mt);return;case Dt:Et(Dt);return;case"maths-latex":Et("maths-latex");return;case vt:Et(vt);return;case kt:Et(kt);return;default:throw new Error}},[xe,Sn,tt]),Pn=(0,ae.useCallback)((zt,Pt)=>{var Lt,Ot,un,Cn,_n,Tn;switch(Et(""),yt){case Xe:const{title:mn,link:wn}=zt;return xe.replaceSelection(`[${mn}](${wn})`),xe.focus();case Mt:const{language:nn,content:En}=zt;return xe.replaceSelection(["```"+nn,En,"```"].join(`
`)),xe.focus();case"maths-latex":for(var jn=atob(zt),Wn=new Uint8Array(jn.length),ta=0;ta<jn.length;ta++)Wn[ta]=jn.charCodeAt(ta);var Ht=new Blob([Wn],{type:"image/png"});(0,he.I)(Ht,ma=>{ma.id?xe.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+zt+"$$`");break;case mt:case Dt:case jt:const{src:Dn,alt:sa}=zt,Bn=Pt,Sa=(un=(Ot=(Lt=Bn==null?void 0:Bn.name)==null?void 0:Lt.split("."))==null?void 0:Ot.pop)==null?void 0:un.call(Ot);return((Cn=Bn==null?void 0:Bn.type)==null?void 0:Cn.indexOf("image"))>-1||!(Bn!=null&&Bn.type)?Bn.align||Bn.width?xe.replaceSelection(`<p style="text-align:${Bn.align||"initial"}"><img width="${Bn.width?Bn.width+"%":"initial"}" src="${Dn}" alt="${sa||""}" /></p>`):xe.replaceSelection(`<img width="100%" src="${Dn}" alt="${sa||""}" />`):((_n=Bn==null?void 0:Bn.type)==null?void 0:_n.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${Dn}"></video>`):((Tn=Bn==null?void 0:Bn.type)==null?void 0:Tn.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${Dn}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):cn.includes(Sa)?xe.replaceSelection(`<a href="${Dn}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):xe.replaceSelection(`[${Bn.name}](${Dn})`),xe.focus();case kt:const{row:Ea,col:Fa,align:$a}=zt;let wa=`
`;for(let ma=0;ma<Ea;ma++){let Ca=[],Ba=[];for(let xa=0;xa<Fa;xa++)ma===1&&Ba.push(Vt[$a]),Ca.push(" ");ma===1&&(wa+=`| ${Ba.join(" | ")} |
`),wa+=`| ${Ca.join(Fa===1?"":" | ")} |
`}return xe.replaceSelection(wa+`
`),xe.focus();default:throw new Error}},[xe,yt]),Jn=(0,ae.useMemo)(()=>{switch(yt){case Xe:return ae.createElement(ot,{callback:Pn,onCancel:Mn});case Mt:return ae.createElement(We.Z,{callback:Pn,onCancel:Mn});case mt:return ae.createElement(he.Z,{callback:Pn,onCancel:Mn});case vt:return ae.createElement(ut,{callback:Pn,onCancel:Mn});case kt:return ae.createElement(wt,{callback:Pn,onCancel:Mn});case"maths-latex":return ae.createElement(Kt,{showSaveButton:!0,callback:Pn});case"inline-latex":return ae.createElement(Jt.Z,{showSaveButton:!0,callback:Pn});default:return null}},[yt]);function Mn(){Et("")}(0,ae.useEffect)(()=>{if(oa.current){let zt=function(_n){un=!0,Cn=_n.pageY},Pt=function(){un=!1},Lt=function(_n){if(un){let Tn=_n.pageY-Cn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let jn=rt+Tn+"px";fn(jn)}},Ot=oa.current,un=!1,Cn=0;return Ot.addEventListener("mousedown",zt),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",Pt),()=>{Ot.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Pt)}}},[xe,oa]),(0,ae.useEffect)(()=>{fn(rt)},[rt]);const da=zn(ye),ea=zn(Zt),ya={width:da,height:ea},pa=(0,ae.useMemo)(()=>{if(gn){let zt=new Date(gn),Pt=zt.getHours(),Lt=zt.getMinutes(),Ot=zt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,Lt=Lt<10?"0"+Lt:Lt,Ot=Ot<10?"0"+Ot:Ot,`${Pt}:${Lt}:${Ot}`}return 0},[gn]),Gn=zt=>{const Pt=[];if(Qt){let Lt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(Ot,un,Cn){Pt.push({multiLine:Ot!==xn})})}return Pt};function Nn(){window.sessionStorage.removeItem(bn),Kn(!1),an(0)}function la(){Kn(!1),an(0),xe.setValue(window.sessionStorage.getItem(bn))}const ca=(0,ke.useIntl)(),va={[Xe]:"\u6DFB\u52A0\u94FE\u63A5",[Mt]:ca.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[mt]:ca.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Dt]:"\u6DFB\u52A0\u753B\u56FE",[vt]:ca.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ca.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ca.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{va[yt]&&yt!==Dt&&yt!==vt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-zt.offsetWidth/2,Lt=window.innerHeight/2-zt.offsetHeight/2;Pa(Pt),Un(Lt)},0)},[yt]);const La=zt=>{zt.preventDefault();const Pt=zt.clientX-fa,Lt=zt.clientY-ia;document.body.onmousemove=Ot=>{let un=Ot.clientX-Pt,Cn=Ot.clientY-Lt;const _n=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-_n.offsetWidth,jn=window.innerHeight-_n.offsetHeight;un=Math.max(0,Math.min(un,Tn)),Cn=Math.max(0,Math.min(Cn,jn)),ba(Ot.clientX,Ot.clientY,Pt,Lt)&&(Pa(un),Un(Cn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,Pt,Lt,Ot)=>{const un=document.body.clientHeight,Cn=document.body.clientWidth;return zt<20&&Lt>zt||zt>Cn-20&&Lt<zt||Pt<20&&Ot>Pt||Pt>un-20&&Ot<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:aa},ae.createElement("div",{className:`markdown-editor-container ${ze} ${Sn?"on-preview":""} ${bt?"mini":""} ${tt?"full-screen":""}`,style:ya},ae.createElement(ge,{insertTemp:Yt,watch:Sn,fullScreen:tt,showNullButton:lt,showNullProgramButton:Qt,onActionCallback:Xt,hidetoolBar:Hn,extraUse:Tt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:vn,placeholder:Qe})),Sn?ae.createElement("div",{ref:ra,className:"preview-container"},At==="stex"&&ae.createElement(Te,{value:tn}),At!=="stex"&&ae.createElement(it.Z,{disabledFill:gt,showProgramFill:Qt,value:tn})):null))),Qn?ae.createElement("a",{ref:oa,className:"editor-resize"}):null,yt===Dt&&ae.createElement(dt,{callback:Pn,onCancel:Mn}),yt===vt&&ae.createElement(ut,{callback:Pn,onCancel:Mn}),ae.createElement(me.Z,null,va[yt]&&yt!==Dt&&yt!==vt?ae.createElement(Fe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:fa,top:ia},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},va[yt]),open:!0,onCancel:Mn,footer:null,destroyOnClose:!0,width:yt===vt?"1200px":null,height:yt===vt?"80vh":null,className:"markdown-popup-form"},Jn):null))}},94491:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return ge},I:function(){return se}});var ae=oe(78241),fe=oe(8591),Ke=oe(92832),Ie=oe(81327),Se=oe(5871),we=oe(5112),le=oe(3113),Re=oe(92746),Ve=oe(59301),Ce=oe(96141),it=oe(75759),Te=oe(59301),ke=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Le,Oe,et)=>Oe in Le?ke(Le,Oe,{enumerable:!0,configurable:!0,writable:!0,value:et}):Le[Oe]=et,z=(Le,Oe)=>{for(var et in Oe||(Oe={}))E.call(Oe,et)&&x(Le,et,Oe[et]);if(y)for(var et of y(Oe))b.call(Oe,et)&&x(Le,et,Oe[et]);return Le},ee=(Le,Oe)=>ne(Le,a(Oe));const{useForm:te}=ae.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Le,onCancel:Oe})=>{const[et]=te();let $t=(0,Ve.useRef)();const It=(0,it.useIntl)();function be(De){$t.current.width=et.getFieldValue("width"),$t.current.align=et.getFieldValue("align"),Le(De,$t.current)}function Ae(De,nt){if(De.status===-1){fe.ZP.error(De.message);return}et.setFieldsValue({src:`/api/attachments/${De.id}`,type:nt.type})}function $e(De){let nt=De.target.files[0];$t.current=nt,se(nt,Ae)}return Te.createElement(ae.default,ee(z({form:et},ie),{className:"upload-image-panel",onFinish:be,style:{width:470,overflow:"hidden"}}),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Ke.default,{style:re})),Te.createElement(me,{onFileChange:$e}))),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Te.createElement(Ke.default,{style:{width:264}})),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Te.createElement(Ie.Z,null,Te.createElement(ae.default.Item,{name:"width",style:{margin:0}},Te.createElement(Se.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Te.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:It.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:It.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:It.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Te.createElement("aside",null,Te.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},It.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Te.createElement(le.ZP,{type:"default",onClick:Oe},It.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function me({onFileChange:Le}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:Le}))}function se(Le,Oe){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let et=new FormData;et.append("editormd-image-file",Le),et.append("file_param_name","editormd-image-file"),et.append("byxhr","true");var $t=new window.XMLHttpRequest;$t.withCredentials=!0,$t.addEventListener("load",function(It){Oe(JSON.parse(It.target.responseText),Le)},!1),$t.addEventListener("error",function(It){console.error(It)},!1),$t.open("POST",`${Re.KI}/api/attachments.json`),$t.send(et)}},89147:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Ke}});var ae=oe(59301),fe=oe(4676);class Ke extends ae.Component{constructor(Se){super(Se);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,fe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},40835:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return fe}});var ae=oe(59301);function fe(Ke,Ie){const Se=(0,ae.useRef)();(0,ae.useEffect)(()=>{Se.current=Ke}),(0,ae.useEffect)(()=>{function we(){Se.current()}if(Ie!==null){let le=setInterval(we,Ie);return()=>clearInterval(le)}},[Ie])}},63159:function(Me,st,oe){"use strict";oe.r(st),oe.d(st,{default:function(){return ge}});var ae=oe(59301),fe=oe(75759),Ke=oe(78241),Ie=oe(66104),Se=oe(92832),we=oe(3113),le=oe(30741),Re=oe(65675),Ve={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},Ce=oe(26674),it=oe(19694),Te=oe(6119),ke=oe(79884),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,se,Le)=>se in me?ne(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Le}):me[se]=Le,ee=(me,se)=>{for(var Le in se||(se={}))b.call(se,Le)&&z(me,Le,se[Le]);if(E)for(var Le of E(se))x.call(se,Le)&&z(me,Le,se[Le]);return me},te=(me,se)=>a(me,y(se)),re=(me,se,Le)=>new Promise((Oe,et)=>{var $t=Ae=>{try{be(Le.next(Ae))}catch($e){et($e)}},It=Ae=>{try{be(Le.throw(Ae))}catch($e){et($e)}},be=Ae=>Ae.done?Oe(Ae.value):Promise.resolve(Ae.value).then($t,It);be((Le=Le.apply(me,se)).next())});const ie=({shixunHomeworks:me,newCourse:se,globalSetting:Le,user:Oe,loading:et,dispatch:$t})=>{var It,be;const Ae=(0,fe.useIntl)(),$e=(0,fe.useParams)(),[De]=Ke.default.useForm(),[nt,ct]=(0,ae.useState)({}),[Ze,ot]=(0,ae.useState)(),We=(0,ae.useRef)(),{commonHomeWorkAddDefaultData:he}=me;let[Fe,Ue]=(0,ae.useState)({});(0,ae.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:Ye}=$e;We.current=$e==null?void 0:$e.courseId,ot(!!We.current),We.current&&pt(),$t({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Ye,coursesId:de,type:1}})},[]);const pt=()=>re(void 0,null,function*(){const de=yield $t({type:"newCourse/getEditCourseData",payload:{id:We.current}});de&&(De.setFieldsValue({name:de.name}),De.setFieldsValue({intro:de.description}),De.setFieldsValue({notice:de.learning_notes}),ct({name:de.name,intro:de.description,notice:de.learning_notes}))}),Je=de=>re(void 0,null,function*(){var Ye,St;const xt=ee({},nt);xt.attachment_ids&&(xt.attachment_ids=(Ye=xt==null?void 0:xt.attachment_ids)==null?void 0:Ye.map(Pe=>Pe.response.id)),xt.reference_attachment_ids&&(xt.reference_attachment_ids=(St=xt==null?void 0:xt.reference_attachment_ids)==null?void 0:St.map(Pe=>Pe.response.id));const{coursesId:Ct,categoryId:Ge}=$e,ue=yield(0,Re.H1)(te(ee({coursesId:Ct,category:Ge},xt),{base_on_project:!0,type:1}));(ue==null?void 0:ue.status)===0&&(dt(ue.homework_id),(0,it.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),fe.history.push(`/classrooms/${$e.coursesId}/common_homework/${ue.homework_id}/detail`))});function dt(de){return re(this,null,function*(){if(!(Fe!=null&&Fe.ec_point_ids))return;let Ye=yield(0,ke.ZP)(`/api/ec_courses/${Fe==null?void 0:Fe.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},Fe)})})}return ae.createElement("section",{className:Ve.bg},he.course_name&&ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},he.category&&ae.createElement(Ie.Z,{separator:">"},ae.createElement(Ie.Z.Item,null,ae.createElement(fe.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.course_name)),ae.createElement(Ie.Z.Item,null,ae.createElement(fe.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.category.category_name)),ae.createElement(Ie.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},Ae.formatMessage({id:"classrooms.newGraphicHomework",defaultMessage:"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"})),ae.createElement(Ke.default,{form:De,className:Ve.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",De.getFieldsValue()),ct(ee({},De.getFieldsValue()))},onFinish:Je},ae.createElement("div",{className:Ve.fieldWrap},ae.createElement(Ke.default.Item,{name:"name",label:`${Ae.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(Se.default,{placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:Ve.mdWrap},ae.createElement(Ke.default.Item,{name:"description",label:Ae.formatMessage({id:"classrooms.description",defaultMessage:"\u7B80\u4ECB"})+":",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"}]},ae.createElement(le.Z,{watch:!0,defaultValue:nt.intro})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"attachment_ids"},ae.createElement(Ce.Z,null)))),ae.createElement("div",{className:Ve.mdWrap},ae.createElement(Ke.default.Item,{name:"reference_answer",label:`${Ae.formatMessage({id:"classroomGraphicGroupHomework.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})} :`},ae.createElement(le.Z,{watch:!0,defaultValue:nt.notice})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"reference_attachment_ids"},ae.createElement(Ce.Z,null))))),ae.createElement("div",{className:Ve.mdWrap,style:{display:(It=Le==null?void 0:Le.setting)!=null&&It.hide_ec?"none":(be=Oe.userInfo.course)!=null&&be.is_openengineering?"":"none"}},ae.createElement(Te.Z,{setitem:de=>Ue(ee({},de))})),ae.createElement("div",{className:Ve.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ke.default.Item,null,ae.createElement(we.ZP,{size:"middle",type:"primary",className:`${Ve.button} mr20`,htmlType:"submit",onClick:()=>{De.submit()},loading:et["newCourse/editCourse"]||et["newCourse/submitCourse"]},Ae.formatMessage({id:"classrooms.submit",defaultMessage:"\u63D0\u4EA4"})),ae.createElement(we.ZP,{size:"middle",type:"primary",ghost:!0,className:Ve.button,onClick:()=>fe.history.push(`/classrooms/${$e.coursesId}/common_homework`)},Ae.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))))};var ge=(0,fe.connect)(({shixunHomeworks:me,newCourse:se,loading:Le,user:Oe,globalSetting:et})=>({shixunHomeworks:me,newCourse:se,user:Oe,globalSetting:et,loading:Le.effects}))(ie)},79752:function(Me,st,oe){"use strict";oe.d(st,{$J:function(){return Ke},JZ:function(){return Se},bN:function(){return le},jP:function(){return we},rO:function(){return Ie}});var ae=oe(79884),fe=(Re,Ve,Ce)=>new Promise((it,Te)=>{var ke=y=>{try{a(Ce.next(y))}catch(E){Te(E)}},ne=y=>{try{a(Ce.throw(y))}catch(E){Te(E)}},a=y=>y.done?it(y.value):Promise.resolve(y.value).then(ke,ne);a((Ce=Ce.apply(Re,Ve)).next())});function Ke(Re){return(0,ae.U2)(`libraries/${Re}.json`)}function Ie(Re){return(0,ae.U2)("library_tags.json",Re)}function Se(Re){return fe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Re}.json`)).status===0})}function we(Re){return(0,ae.v_)("libraries.json",Re)}function le(Re,Ve){return(0,ae.gz)(`libraries/${Re}.json`,Ve)}},56762:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return fe}});var ae=oe(59301);function fe(){const[,Ke]=ae.useReducer(Ie=>Ie+1,0);return Ke}},66104:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return It}});var ae=oe(92310),fe=oe.n(ae),Ke=oe(11592),Ie=oe(26112),Se=oe(59301),we=oe(92343),le=oe(36355),Re=oe(84105),Ve=oe(91857);const Ce=be=>{let{children:Ae}=be;const{getPrefixCls:$e}=Se.useContext(le.E_),De=$e("breadcrumb");return Se.createElement("li",{className:`${De}-separator`,"aria-hidden":"true"},Ae===""?Ae:Ae||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var it=Ce,Te=function(be,Ae){var $e={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ae.indexOf(De)<0&&($e[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ae.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&($e[De[nt]]=be[De[nt]]);return $e};function ke(be,Ae){if(be.title===void 0||be.title===null)return null;const $e=Object.keys(Ae).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${$e})`,"g"),(De,nt)=>Ae[nt]||De)}function ne(be,Ae,$e,De){if($e==null)return null;const{className:nt,onClick:ct}=Ae,Ze=Te(Ae,["className","onClick"]),ot=Object.assign(Object.assign({},(0,Ie.Z)(Ze,{data:!0,aria:!0})),{onClick:ct});return De!==void 0?Se.createElement("a",Object.assign({},ot,{className:fe()(`${be}-link`,nt),href:De}),$e):Se.createElement("span",Object.assign({},ot,{className:fe()(`${be}-link`,nt)}),$e)}function a(be,Ae){return(De,nt,ct,Ze,ot)=>{if(Ae)return Ae(De,nt,ct,Ze);const We=ke(De,nt);return ne(be,De,We,ot)}}var y=function(be,Ae){var $e={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ae.indexOf(De)<0&&($e[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ae.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&($e[De[nt]]=be[De[nt]]);return $e};const E=be=>{const{prefixCls:Ae,separator:$e="/",children:De,menu:nt,overlay:ct,dropdownProps:Ze,href:ot}=be,he=(Fe=>{if(nt||ct){const Ue=Object.assign({},Ze);if(nt){const pt=nt||{},{items:Je}=pt,dt=y(pt,["items"]);Ue.menu=Object.assign(Object.assign({},dt),{items:Je==null?void 0:Je.map((de,Ye)=>{var{key:St,title:xt,label:Ct,path:Ge}=de,ue=y(de,["key","title","label","path"]);let Pe=Ct!=null?Ct:xt;return Ge&&(Pe=Se.createElement("a",{href:`${ot}${Ge}`},Pe)),Object.assign(Object.assign({},ue),{key:St!=null?St:Ye,label:Pe})})})}else ct&&(Ue.overlay=ct);return Se.createElement(Ve.Z,Object.assign({placement:"bottom"},Ue),Se.createElement("span",{className:`${Ae}-overlay-link`},Fe,Se.createElement(Re.Z,null)))}return Fe})(De);return he!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,he),$e&&Se.createElement(it,null,$e)):null},b=be=>{const{prefixCls:Ae,children:$e,href:De}=be,nt=y(be,["prefixCls","children","href"]),{getPrefixCls:ct}=Se.useContext(le.E_),Ze=ct("breadcrumb",Ae);return Se.createElement(E,Object.assign({},nt,{prefixCls:Ze}),ne(Ze,nt,$e,De))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=be=>{const{componentCls:Ae,iconCls:$e}=be;return{[Ae]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[$e]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Ae}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Ae}-link`]:{[`
> ${$e} + span,
> ${$e} + a
`]:{marginInlineStart:be.marginXXS}},[`${Ae}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${$e}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",be=>{const Ae=(0,te.TS)(be,{});return[re(Ae)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ge=function(be,Ae){var $e={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ae.indexOf(De)<0&&($e[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ae.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&($e[De[nt]]=be[De[nt]]);return $e};function me(be){const{breadcrumbName:Ae,children:$e}=be,De=ge(be,["breadcrumbName","children"]),nt=Object.assign({title:Ae},De);return $e&&(nt.menu={items:$e.map(ct=>{var{breadcrumbName:Ze}=ct,ot=ge(ct,["breadcrumbName"]);return Object.assign(Object.assign({},ot),{title:Ze})})}),nt}function se(be,Ae){return(0,Se.useMemo)(()=>be||(Ae?Ae.map(me):null),[be,Ae])}var Le=function(be,Ae){var $e={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ae.indexOf(De)<0&&($e[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ae.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&($e[De[nt]]=be[De[nt]]);return $e};const Oe=(be,Ae)=>{if(Ae===void 0)return Ae;let $e=(Ae||"").replace(/^\//,"");return Object.keys(be).forEach(De=>{$e=$e.replace(`:${De}`,be[De])}),$e},et=be=>{const{prefixCls:Ae,separator:$e="/",style:De,className:nt,rootClassName:ct,routes:Ze,items:ot,children:We,itemRender:he,params:Fe={}}=be,Ue=Le(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pt,direction:Je,breadcrumb:dt}=Se.useContext(le.E_);let de;const Ye=pt("breadcrumb",Ae),[St,xt]=ie(Ye),Ct=se(ot,Ze),Ge=a(Ye,he);if(Ct&&Ct.length>0){const _e=[],qe=ot||Ze;de=Ct.map((ut,ht)=>{const{path:Bt,key:Nt,type:Wt,menu:wt,overlay:_t,onClick:ln,className:ft,separator:Ut,dropdownProps:Kt}=ut,Jt=Oe(Fe,Bt);Jt!==void 0&&_e.push(Jt);const pe=Nt!=null?Nt:ht;if(Wt==="separator")return Se.createElement(it,{key:pe},Ut);const Be={},Xe=ht===Ct.length-1;wt?Be.menu=wt:_t&&(Be.overlay=_t);let{href:mt}=ut;return _e.length&&Jt!==void 0&&(mt=`#/${_e.join("/")}`),Se.createElement(E,Object.assign({key:pe},Be,(0,Ie.Z)(ut,{data:!0,aria:!0}),{className:ft,dropdownProps:Kt,href:mt,separator:Xe?"":$e,onClick:ln,prefixCls:Ye}),Ge(ut,Fe,qe,_e,mt))})}else if(We){const _e=(0,Ke.Z)(We).length;de=(0,Ke.Z)(We).map((qe,ut)=>{if(!qe)return qe;const ht=ut===_e-1;return(0,we.Tm)(qe,{separator:ht?"":$e,key:ut})})}const ue=fe()(Ye,dt==null?void 0:dt.className,{[`${Ye}-rtl`]:Je==="rtl"},nt,ct,xt),Pe=Object.assign(Object.assign({},dt==null?void 0:dt.style),De);return St(Se.createElement("nav",Object.assign({className:ue,style:Pe},Ue),Se.createElement("ol",null,de)))};et.Item=x,et.Separator=it;var $t=et,It=$t},24905:function(Me,st,oe){"use strict";oe.d(st,{default:function(){return ie}});var ae=oe(92310),fe=oe.n(ae),Ke=oe(5630),Ie=oe(59301),Se=oe(36355),we=oe(1684),le=oe(32441),Ve=Ie.createContext(null),Ce=oe(98447),it=oe(14088),Te=oe(4572),ke=function(ge,me){var se={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&me.indexOf(Le)<0&&(se[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Le=Object.getOwnPropertySymbols(ge);Oe<Le.length;Oe++)me.indexOf(Le[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Le[Oe])&&(se[Le[Oe]]=ge[Le[Oe]]);return se};const ne=(ge,me)=>{var se;const{prefixCls:Le,className:Oe,rootClassName:et,children:$t,indeterminate:It=!1,style:be,onMouseEnter:Ae,onMouseLeave:$e,skipGroup:De=!1,disabled:nt}=ge,ct=ke(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ze,direction:ot,checkbox:We}=Ie.useContext(Se.E_),he=Ie.useContext(Ve),{isFormItemInput:Fe}=Ie.useContext(le.aM),Ue=Ie.useContext(we.Z),pt=(se=(he==null?void 0:he.disabled)||nt)!==null&&se!==void 0?se:Ue,Je=Ie.useRef(ct.value);Ie.useEffect(()=>{he==null||he.registerValue(ct.value)},[]),Ie.useEffect(()=>{if(!De)return ct.value!==Je.current&&(he==null||he.cancelValue(Je.current),he==null||he.registerValue(ct.value),Je.current=ct.value),()=>he==null?void 0:he.cancelValue(ct.value)},[ct.value]);const dt=Ze("checkbox",Le),[de,Ye]=(0,Ce.ZP)(dt),St=Object.assign({},ct);he&&!De&&(St.onChange=function(){ct.onChange&&ct.onChange.apply(ct,arguments),he.toggleOption&&he.toggleOption({label:$t,value:ct.value})},St.name=he.name,St.checked=he.value.includes(ct.value));const xt=fe()(`${dt}-wrapper`,{[`${dt}-rtl`]:ot==="rtl",[`${dt}-wrapper-checked`]:St.checked,[`${dt}-wrapper-disabled`]:pt,[`${dt}-wrapper-in-form-item`]:Fe},We==null?void 0:We.className,Oe,et,Ye),Ct=fe()({[`${dt}-indeterminate`]:It},Te.A,Ye),Ge=It?"mixed":void 0;return de(Ie.createElement(it.Z,{component:"Checkbox",disabled:pt},Ie.createElement("label",{className:xt,style:Object.assign(Object.assign({},We==null?void 0:We.style),be),onMouseEnter:Ae,onMouseLeave:$e},Ie.createElement(Ke.Z,Object.assign({"aria-checked":Ge},St,{prefixCls:dt,className:Ct,disabled:pt,ref:me})),$t!==void 0&&Ie.createElement("span",null,$t))))};var y=Ie.forwardRef(ne),E=oe(94480),b=oe(2738),x=function(ge,me){var se={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&me.indexOf(Le)<0&&(se[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Le=Object.getOwnPropertySymbols(ge);Oe<Le.length;Oe++)me.indexOf(Le[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Le[Oe])&&(se[Le[Oe]]=ge[Le[Oe]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Le,options:Oe=[],prefixCls:et,className:$t,rootClassName:It,style:be,onChange:Ae}=ge,$e=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:De,direction:nt}=Ie.useContext(Se.E_),[ct,Ze]=Ie.useState($e.value||se||[]),[ot,We]=Ie.useState([]);Ie.useEffect(()=>{"value"in $e&&Ze($e.value||[])},[$e.value]);const he=Ie.useMemo(()=>Oe.map(ue=>typeof ue=="string"||typeof ue=="number"?{label:ue,value:ue}:ue),[Oe]),Fe=ue=>{We(Pe=>Pe.filter(_e=>_e!==ue))},Ue=ue=>{We(Pe=>[].concat((0,E.Z)(Pe),[ue]))},pt=ue=>{const Pe=ct.indexOf(ue.value),_e=(0,E.Z)(ct);Pe===-1?_e.push(ue.value):_e.splice(Pe,1),"value"in $e||Ze(_e),Ae==null||Ae(_e.filter(qe=>ot.includes(qe)).sort((qe,ut)=>{const ht=he.findIndex(Nt=>Nt.value===qe),Bt=he.findIndex(Nt=>Nt.value===ut);return ht-Bt}))},Je=De("checkbox",et),dt=`${Je}-group`,[de,Ye]=(0,Ce.ZP)(Je),St=(0,b.Z)($e,["value","disabled"]),xt=Oe.length?he.map(ue=>Ie.createElement(y,{prefixCls:Je,key:ue.value.toString(),disabled:"disabled"in ue?ue.disabled:$e.disabled,value:ue.value,checked:ct.includes(ue.value),onChange:ue.onChange,className:`${dt}-item`,style:ue.style,title:ue.title},ue.label)):Le,Ct={toggleOption:pt,value:ct,disabled:$e.disabled,name:$e.name,registerValue:Ue,cancelValue:Fe},Ge=fe()(dt,{[`${dt}-rtl`]:nt==="rtl"},$t,It,Ye);return de(Ie.createElement("div",Object.assign({className:Ge,style:be},St,{ref:me}),Ie.createElement(Ve.Provider,{value:Ct},xt)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Me,st,oe){"use strict";oe.d(st,{C2:function(){return Se}});var ae=oe(17313),fe=oe(37613),Ke=oe(83116);const Ie=we=>{const{checkboxCls:le}=we,Re=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Re]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Re}`]:{marginInlineStart:0},[`&${Re}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
${Re}:not(${Re}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:we.colorPrimary}},[`${Re}:not(${Re}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
${Re}-checked:not(${Re}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Re}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:we.colorTextDisabled}}}]};function Se(we,le){const Re=(0,fe.TS)(le,{checkboxCls:`.${we}`,checkboxSize:le.controlInteractiveSize});return[Ie(Re)]}st.ZP=(0,Ke.Z)("Checkbox",(we,le)=>{let{prefixCls:Re}=le;return[Se(Re,we)]})},91857:function(Me,st,oe){"use strict";var ae=oe(59301),fe=oe(38819),Ke=oe(92310),Ie=oe.n(Ke),Se=oe(31561),we=oe(70425),le=oe(18929),Re=oe(2738),Ve=oe(79676),Ce=oe(53487),it=oe(92343),Te=oe(36355),ke=oe(20834),ne=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:me,trigger:se,disabled:Le,dropdownRender:Oe,getPopupContainer:et,overlayClassName:$t,rootClassName:It,open:be,onOpenChange:Ae,visible:$e,onVisibleChange:De,mouseEnterDelay:nt=.15,mouseLeaveDelay:ct=.1,autoAdjustOverflow:Ze=!0,placement:ot="",overlay:We,transitionName:he}=te,{getPopupContainer:Fe,getPrefixCls:Ue,direction:pt}=ae.useContext(Te.E_),Je=ae.useMemo(()=>{const wt=Ue();return he!==void 0?he:ot.includes("top")?`${wt}-slide-down`:`${wt}-slide-up`},[Ue,ot,he]),dt=ae.useMemo(()=>ot?ot.includes("Center")?ot.slice(0,ot.indexOf("Center")):ot:pt==="rtl"?"bottomRight":"bottomLeft",[ot,pt]),de=Ue("dropdown",ge),[Ye,St]=(0,y.Z)(de),[,xt]=(0,a.Z)(),Ct=ae.Children.only(me),Ge=(0,it.Tm)(Ct,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:pt==="rtl"},Ct.props.className),disabled:Le}),ue=Le?[]:se;let Pe;ue&&ue.includes("contextMenu")&&(Pe=!0);const[_e,qe]=(0,le.Z)(!1,{value:be!=null?be:$e}),ut=(0,we.useEvent)(wt=>{Ae==null||Ae(wt),De==null||De(wt),qe(wt)}),ht=Ie()($t,It,St,{[`${de}-rtl`]:pt==="rtl"}),Bt=(0,Ve.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Ze,offset:xt.marginXXS,arrowWidth:ie?xt.sizePopupArrow:0,borderRadius:xt.borderRadius}),Nt=ae.useCallback(()=>{qe(!1)},[]),Wt=()=>{let wt;return re!=null&&re.items?wt=ae.createElement(ke.default,Object.assign({},re)):typeof We=="function"?wt=We():wt=We,Oe&&(wt=Oe(wt)),wt=ae.Children.only(typeof wt=="string"?ae.createElement("span",null,wt):wt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Nt,validator:_t=>{let{mode:ln}=_t}},wt)};return Ye(ae.createElement(Se.Z,Object.assign({alignPoint:Pe},(0,Re.Z)(te,["rootClassName"]),{mouseEnterDelay:nt,mouseLeaveDelay:ct,visible:_e,builtinPlacements:Bt,arrow:!!ie,overlayClassName:ht,prefixCls:de,getPopupContainer:et||Fe,transitionName:Je,trigger:ue,overlay:Wt,placement:dt,onVisibleChange:ut}),Ge))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ce.Z)(b,"dropdown",te=>te,x),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,st.Z=b},47211:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return it}});var ae=oe(17313),fe=oe(13826),Ke=oe(92899),Ie=oe(29878),Se=oe(19447),we=oe(83116),le=oe(37613),Ve=Te=>{const{componentCls:ke,menuCls:ne,colorError:a,colorTextLightSolid:y}=Te,E=`${ne}-item`;return{[`${ke}, ${ke}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ce=Te=>{const{componentCls:ke,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=Te;return[{[ke]:Object.assign(Object.assign({},(0,ae.Wf)(Te)),{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}},[`${ke}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${ke}-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${ke}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${ke}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${ke}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${ke}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${ke}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${ke}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${ke}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${ke}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${ke}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${ke}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${ke}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${ke}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${ke}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${ke}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${ke}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${ke}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${ke}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${ke}-placement-topRight`]:{animationName:fe.ly}})},(0,Se.ZP)(Te,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ke} ${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}},[`${ke}, ${ke}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary},(0,ae.Qy)(Te)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:Te.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Te.marginXS,fontSize:Te.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:Te.colorText,fontWeight:"normal",fontSize:te,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Te.borderRadiusSM,"&:hover, &-active":{backgroundColor:Te.controlItemBgHover}},(0,ae.Qy)(Te)),{"&-selected":{color:Te.colorPrimary,backgroundColor:Te.controlItemBgActive,"&:hover, &-active":{backgroundColor:Te.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Te.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Te.colorSplit},[`${ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Te.paddingXS,[`${ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Te.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Te.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+Te.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${ke}-menu-submenu-title`]:{[`&, ${ke}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ne}-submenu-selected ${ke}-menu-submenu-title`]:{color:Te.colorPrimary}})}},[(0,fe.oN)(Te,"slide-up"),(0,fe.oN)(Te,"slide-down"),(0,Ke.Fm)(Te,"move-up"),(0,Ke.Fm)(Te,"move-down"),(0,Ie._y)(Te,"zoom-big")]]};var it=(0,we.Z)("Dropdown",(Te,ke)=>{let{rootPrefixCls:ne}=ke;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Te,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,Se.fS)({contentRadius:te}),ge=(0,le.TS)(Te,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ce(ge),Ve(ge)]},Te=>({zIndexPopup:Te.zIndexPopupBase+50}))},45818:function(Me,st,oe){"use strict";oe.d(st,{D:function(){return z},Z:function(){return re}});var ae=oe(54476),fe=oe(59301),Ke={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=Ke,Se=oe(7657),we=function(ge,me){return fe.createElement(Se.Z,(0,ae.Z)({},ge,{ref:me,icon:Ie}))},le=fe.forwardRef(we),Re=le,Ve=oe(33853),Ce=oe(38819),it=oe(92310),Te=oe.n(it),ke=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var me={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(me[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(ie);Le<se.length;Le++)ge.indexOf(se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Le])&&(me[se[Le]]=ie[se[Le]]);return me};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=fe.forwardRef((ie,ge)=>{const{prefixCls:me,className:se,trigger:Le,children:Oe,defaultCollapsed:et=!1,theme:$t="dark",style:It={},collapsible:be=!1,reverseArrow:Ae=!1,width:$e=200,collapsedWidth:De=80,zeroWidthTriggerStyle:nt,breakpoint:ct,onCollapse:Ze,onBreakpoint:ot}=ie,We=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:he}=(0,fe.useContext)(E.Gs),[Fe,Ue]=(0,fe.useState)("collapsed"in ie?ie.collapsed:et),[pt,Je]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ie&&Ue(ie.collapsed)},[ie.collapsed]);const dt=(Ge,ue)=>{"collapsed"in ie||Ue(Ge),Ze==null||Ze(Ge,ue)},de=(0,fe.useRef)();de.current=Ge=>{Je(Ge.matches),ot==null||ot(Ge.matches),Fe!==Ge.matches&&dt(Ge.matches,"responsive")},(0,fe.useEffect)(()=>{function Ge(Pe){return de.current(Pe)}let ue;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&ct&&ct in x){ue=Pe(`(max-width: ${x[ct]})`);try{ue.addEventListener("change",Ge)}catch(_e){ue.addListener(Ge)}Ge(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",Ge)}catch(Pe){ue==null||ue.removeListener(Ge)}}},[ct]),(0,fe.useEffect)(()=>{const Ge=ee("ant-sider-");return he.addSider(Ge),()=>he.removeSider(Ge)},[]);const Ye=()=>{dt(!Fe,"clickTrigger")},{getPrefixCls:St}=(0,fe.useContext)(y.E_),xt=()=>{const Ge=St("layout-sider",me),ue=(0,ke.Z)(We,["collapsed"]),Pe=Fe?De:$e,_e=a(Pe)?`${Pe}px`:String(Pe),qe=parseFloat(String(De||0))===0?fe.createElement("span",{onClick:Ye,className:Te()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${Ae?"right":"left"}`),style:nt},Le||fe.createElement(Re,null)):null,Bt={expanded:Ae?fe.createElement(Ce.Z,null):fe.createElement(Ve.Z,null),collapsed:Ae?fe.createElement(Ve.Z,null):fe.createElement(Ce.Z,null)}[Fe?"collapsed":"expanded"],Nt=Le!==null?qe||fe.createElement("div",{className:`${Ge}-trigger`,onClick:Ye,style:{width:_e}},Le||Bt):null,Wt=Object.assign(Object.assign({},It),{flex:`0 0 ${_e}`,maxWidth:_e,minWidth:_e,width:_e}),wt=Te()(Ge,`${Ge}-${$t}`,{[`${Ge}-collapsed`]:!!Fe,[`${Ge}-has-trigger`]:be&&Le!==null&&!qe,[`${Ge}-below`]:!!pt,[`${Ge}-zero-width`]:parseFloat(_e)===0},se);return fe.createElement("aside",Object.assign({className:wt},ue,{style:Wt,ref:ge}),fe.createElement("div",{className:`${Ge}-children`},Oe),be||pt&&qe?Nt:null)},Ct=fe.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return fe.createElement(z.Provider,{value:Ct},xt())})},84966:function(Me,st,oe){"use strict";oe.d(st,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return ke},ZP:function(){return ee}});var ae=oe(94480),fe=oe(92310),Ke=oe.n(fe),Ie=oe(2738),Se=oe(59301),we=oe(36355),le=oe(83116),Ve=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Le,headerHeight:Oe,headerPadding:et,headerColor:$t,footerPadding:It,triggerHeight:be,zeroTriggerHeight:Ae,zeroTriggerWidth:$e,motionDurationMid:De,motionDurationSlow:nt,fontSize:ct,borderRadius:Ze,bodyBg:ot,headerBg:We,siderBg:he}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ot,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:he,transition:`all ${De}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:me,lineHeight:`${be}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${De}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Oe,insetInlineEnd:-$e,zIndex:1,width:$e,height:Ae,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:Ze,borderEndEndRadius:Ze,borderEndStartRadius:0,cursor:"pointer",transition:`background ${nt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${nt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-$e,borderStartStartRadius:Ze,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ze}}}}},Ve(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Oe,padding:et,color:$t,lineHeight:`${Oe}px`,background:We,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:It,color:ge,fontSize:ct,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var it=(0,le.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Le,colorTextLightSolid:Oe,colorBgContainer:et}=te,$t=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${$t}px`,headerColor:me,footerPadding:`${se}px ${$t}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Le*2,triggerBg:"#002140",triggerColor:Oe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:et,lightTriggerBg:et,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Te=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const ke=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>Se.forwardRef((Le,Oe)=>Se.createElement(me,Object.assign({ref:Oe,suffixCls:re,tagName:ie},Le)))}const a=Se.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Le=Te(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Oe}=Se.useContext(we.E_),et=Oe("layout",ie),[$t,It]=it(et),be=ge?`${et}-${ge}`:et;return $t(Se.createElement(se,Object.assign({className:Ke()(ie||be,me,It),ref:re},Le)))}),y=Se.forwardRef((te,re)=>{const{direction:ie}=Se.useContext(we.E_),[ge,me]=Se.useState([]),{prefixCls:se,className:Le,rootClassName:Oe,children:et,hasSider:$t,tagName:It,style:be}=te,Ae=Te(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),$e=(0,Ie.Z)(Ae,["suffixCls"]),{getPrefixCls:De,layout:nt}=Se.useContext(we.E_),ct=De("layout",se),[Ze,ot]=it(ct),We=Ke()(ct,{[`${ct}-has-sider`]:typeof $t=="boolean"?$t:ge.length>0,[`${ct}-rtl`]:ie==="rtl"},nt==null?void 0:nt.className,Le,Oe,ot),he=Se.useMemo(()=>({siderHook:{addSider:Fe=>{me(Ue=>[].concat((0,ae.Z)(Ue),[Fe]))},removeSider:Fe=>{me(Ue=>Ue.filter(pt=>pt!==Fe))}}}),[]);return Ze(Se.createElement(ke.Provider,{value:he},Se.createElement(It,Object.assign({ref:re,className:We,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),be)},$e),et)))}),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(Me,st,oe){"use strict";oe.d(st,{J:function(){return we}});var ae=oe(59301),fe=oe(33234),Ke=oe(70425),Ie=function(le,Re){var Ve={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&Re.indexOf(Ce)<0&&(Ve[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ce=Object.getOwnPropertySymbols(le);it<Ce.length;it++)Re.indexOf(Ce[it])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[it])&&(Ve[Ce[it]]=le[Ce[it]]);return Ve};const Se=ae.createContext(null),we=ae.forwardRef((le,Re)=>{const{children:Ve}=le,Ce=Ie(le,["children"]),it=ae.useContext(Se),Te=ae.useMemo(()=>Object.assign(Object.assign({},it),Ce),[it,Ce.prefixCls,Ce.mode,Ce.selectable]);return ae.createElement(Se.Provider,{value:Te},ae.createElement(fe.BR,null,(0,Ke.supportNodeRef)(Ve)?ae.cloneElement(Ve,{ref:Re}):Ve))});st.Z=Se},20834:function(Me,st,oe){"use strict";oe.d(st,{default:function(){return Ct}});var ae=oe(15285),fe=oe(59301),Ke=oe(45818),Ie=oe(92310),Se=oe.n(Ie),we=oe(36355),le=function(Ge,ue){var Pe={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&ue.indexOf(_e)<0&&(Pe[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,_e=Object.getOwnPropertySymbols(Ge);qe<_e.length;qe++)ue.indexOf(_e[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[qe])&&(Pe[_e[qe]]=Ge[_e[qe]]);return Pe},Ve=Ge=>{const{prefixCls:ue,className:Pe,dashed:_e}=Ge,qe=le(Ge,["prefixCls","className","dashed"]),{getPrefixCls:ut}=fe.useContext(we.E_),ht=ut("menu",ue),Bt=Se()({[`${ht}-item-divider-dashed`]:!!_e},Pe);return fe.createElement(ae.iz,Object.assign({className:Bt},qe))},Ce=oe(11592),it=oe(2738),Te=oe(6848),ke=oe(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ge=>{var ue;const{className:Pe,children:_e,icon:qe,title:ut,danger:ht}=Ge,{prefixCls:Bt,firstLevel:Nt,direction:Wt,disableMenuItemTitleTooltip:wt,inlineCollapsed:_t}=fe.useContext(a),ln=Be=>{const Xe=fe.createElement("span",{className:`${Bt}-title-content`},_e);return(!qe||(0,ke.l$)(_e)&&_e.type==="span")&&_e&&Be&&Nt&&typeof _e=="string"?fe.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},_e.charAt(0)):Xe},{siderCollapsed:ft}=fe.useContext(Ke.D);let Ut=ut;typeof ut=="undefined"?Ut=Nt?_e:"":ut===!1&&(Ut="");const Kt={title:Ut};!ft&&!_t&&(Kt.title=null,Kt.open=!1);const Jt=(0,Ce.Z)(_e).length;let pe=fe.createElement(ae.ck,Object.assign({},(0,it.Z)(Ge,["title","icon","danger"]),{className:Se()({[`${Bt}-item-danger`]:ht,[`${Bt}-item-only-child`]:(qe?Jt+1:Jt)===1},Pe),title:typeof ut=="string"?ut:void 0}),(0,ke.Tm)(qe,{className:Se()((0,ke.l$)(qe)?(ue=qe.props)===null||ue===void 0?void 0:ue.className:"",`${Bt}-item-icon`)}),ln(_t));return wt||(pe=fe.createElement(Te.Z,Object.assign({},Kt,{placement:Wt==="rtl"?"left":"right",overlayClassName:`${Bt}-inline-collapsed-tooltip`}),pe)),pe},x=Ge=>{var ue;const{popupClassName:Pe,icon:_e,title:qe,theme:ut}=Ge,ht=fe.useContext(a),{prefixCls:Bt,inlineCollapsed:Nt,theme:Wt}=ht,wt=(0,ae.Xl)();let _t;if(!_e)_t=Nt&&!wt.length&&qe&&typeof qe=="string"?fe.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},qe.charAt(0)):fe.createElement("span",{className:`${Bt}-title-content`},qe);else{const ft=(0,ke.l$)(qe)&&qe.type==="span";_t=fe.createElement(fe.Fragment,null,(0,ke.Tm)(_e,{className:Se()((0,ke.l$)(_e)?(ue=_e.props)===null||ue===void 0?void 0:ue.className:"",`${Bt}-item-icon`)}),ft?qe:fe.createElement("span",{className:`${Bt}-title-content`},qe))}const ln=fe.useMemo(()=>Object.assign(Object.assign({},ht),{firstLevel:!1}),[ht]);return fe.createElement(a.Provider,{value:ln},fe.createElement(ae.Wd,Object.assign({},(0,it.Z)(Ge,["icon"]),{title:_t,popupClassName:Se()(Bt,Pe,`${Bt}-${ut||Wt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(Ge,ue){var Pe={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&ue.indexOf(_e)<0&&(Pe[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,_e=Object.getOwnPropertySymbols(Ge);qe<_e.length;qe++)ue.indexOf(_e[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[qe])&&(Pe[_e[qe]]=Ge[_e[qe]]);return Pe};function ge(Ge){return(Ge||[]).map((ue,Pe)=>{if(ue&&typeof ue=="object"){const _e=ue,{label:qe,children:ut,key:ht,type:Bt}=_e,Nt=ie(_e,["label","children","key","type"]),Wt=ht!=null?ht:`tmp-${Pe}`;return ut||Bt==="group"?Bt==="group"?fe.createElement(ae.BW,Object.assign({key:Wt},Nt,{title:qe}),ge(ut)):fe.createElement(x,Object.assign({key:Wt},Nt,{title:qe}),ge(ut)):Bt==="divider"?fe.createElement(Ve,Object.assign({key:Wt},Nt)):fe.createElement(E,Object.assign({key:Wt},Nt),qe)}return null}).filter(ue=>ue)}function me(Ge){return fe.useMemo(()=>Ge&&ge(Ge),[Ge])}var se=oe(64993),Le=oe(17313),Oe=oe(8378),et=oe(13826),$t=oe(29878),It=oe(83116),be=oe(37613),$e=Ge=>{const{componentCls:ue,motionDurationSlow:Pe,horizontalLineHeight:_e,colorSplit:qe,lineWidth:ut,lineType:ht,itemPaddingInline:Bt}=Ge;return{[`${ue}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${ut}px ${ht} ${qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ue}-item, ${ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${ue}-item:hover,
> ${ue}-item-active,
> ${ue}-submenu ${ue}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ue}-item, ${ue}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${ue}-submenu-arrow`]:{display:"none"}}}},nt=Ge=>{let{componentCls:ue,menuArrowOffset:Pe}=Ge;return{[`${ue}-rtl`]:{direction:"rtl"},[`${ue}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ue}-rtl${ue}-vertical,
${ue}-submenu-rtl ${ue}-vertical`]:{[`${ue}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const ct=Ge=>Object.assign({},(0,Le.oN)(Ge));var ot=(Ge,ue)=>{const{componentCls:Pe,itemColor:_e,itemSelectedColor:qe,groupTitleColor:ut,itemBg:ht,subMenuItemBg:Bt,itemSelectedBg:Nt,activeBarHeight:Wt,activeBarWidth:wt,activeBarBorderWidth:_t,motionDurationSlow:ln,motionEaseInOut:ft,motionEaseOut:Ut,itemPaddingInline:Kt,motionDurationMid:Jt,itemHoverColor:pe,lineType:Be,colorSplit:Xe,itemDisabledColor:mt,dangerItemColor:vt,dangerItemHoverColor:Dt,dangerItemSelectedColor:jt,dangerItemActiveBg:Mt,dangerItemSelectedBg:kt,itemHoverBg:qt,itemActiveBg:Vt,menuSubMenuBg:on,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:yn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:sn,popupBg:dn}=Ge;return{[`${Pe}-${ue}, ${Pe}-${ue} > ${Pe}`]:{color:_e,background:ht,[`&${Pe}-root:focus-visible`]:Object.assign({},ct(Ge)),[`${Pe}-item-group-title`]:{color:ut},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:qe}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${mt} !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:qt},"&:active":{backgroundColor:Vt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Vt}}},[`${Pe}-item-danger`]:{color:vt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Dt}},[`&${Pe}-item:active`]:{background:Mt}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:qe,[`&${Pe}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:Nt,[`&${Pe}-item-danger`]:{backgroundColor:kt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},ct(Ge))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:on},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:dn},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},ue==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:_t,marginTop:-_t,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${Wt}px solid transparent`,transition:`border-color ${ln} ${ft}`,content:'""'},"&:hover, &-active, &-open":{background:sn,"&::after":{borderBottomWidth:Wt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:yn,"&:hover":{backgroundColor:yn},"&::after":{borderBottomWidth:Wt,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${_t}px ${Be} ${Xe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Bt},[`${Pe}-item, ${Pe}-submenu-title`]:_t&&wt?{width:`calc(100% + ${_t}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt}px solid ${qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Jt} ${Ut}`,`opacity ${Jt} ${Ut}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Jt} ${ft}`,`opacity ${Jt} ${ft}`].join(",")}}}}}};const We=Ge=>{const{componentCls:ue,itemHeight:Pe,itemMarginInline:_e,padding:qe,menuArrowSize:ut,marginXS:ht,itemMarginBlock:Bt}=Ge,Nt=qe+ut+ht;return{[`${ue}-item`]:{position:"relative",overflow:"hidden"},[`${ue}-item, ${ue}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:Bt,width:`calc(100% - ${_e*2}px)`},[`> ${ue}-item,
> ${ue}-submenu > ${ue}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${ue}-item-group-list ${ue}-submenu-title,
${ue}-submenu-title`]:{paddingInlineEnd:Nt}}};var Fe=Ge=>{const{componentCls:ue,iconCls:Pe,itemHeight:_e,colorTextLightSolid:qe,dropdownWidth:ut,controlHeightLG:ht,motionDurationMid:Bt,motionEaseOut:Nt,paddingXL:Wt,itemMarginInline:wt,fontSizeLG:_t,motionDurationSlow:ln,paddingXS:ft,boxShadowSecondary:Ut,collapsedWidth:Kt,collapsedIconSize:Jt}=Ge,pe={height:_e,lineHeight:`${_e}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ue]:{"&-inline, &-vertical":Object.assign({[`&${ue}-root`]:{boxShadow:"none"}},We(Ge))},[`${ue}-submenu-popup`]:{[`${ue}-vertical`]:Object.assign(Object.assign({},We(Ge)),{boxShadow:Ut})}},{[`${ue}-submenu-popup ${ue}-vertical${ue}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ue}-inline`]:{width:"100%",[`&${ue}-root`]:{[`${ue}-item, ${ue}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${Bt} ${Nt}`].join(","),[`> ${ue}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ue}-sub${ue}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ue}-submenu > ${ue}-submenu-title`]:pe,[`& ${ue}-item-group-title`]:{paddingInlineStart:Wt}},[`${ue}-item`]:pe}},{[`${ue}-inline-collapsed`]:{width:Kt,[`&${ue}-root`]:{[`${ue}-item, ${ue}-submenu ${ue}-submenu-title`]:{[`> ${ue}-inline-collapsed-noicon`]:{fontSize:_t,textAlign:"center"}}},[`> ${ue}-item,
> ${ue}-item-group > ${ue}-item-group-list > ${ue}-item,
> ${ue}-item-group > ${ue}-item-group-list > ${ue}-submenu > ${ue}-submenu-title,
> ${ue}-submenu > ${ue}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${_t/2}px - ${wt}px)`,textOverflow:"clip",[`
${ue}-submenu-arrow,
${ue}-submenu-expand-icon
`]:{opacity:0},[`${ue}-item-icon, ${Pe}`]:{margin:0,fontSize:Jt,lineHeight:`${_e}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ue}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ue}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:qe}},[`${ue}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:ft})}}]};const Ue=Ge=>{const{componentCls:ue,motionDurationSlow:Pe,motionDurationMid:_e,motionEaseInOut:qe,motionEaseOut:ut,iconCls:ht,iconSize:Bt,iconMarginInlineEnd:Nt}=Ge;return{[`${ue}-item, ${ue}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${qe}`].join(","),[`${ue}-item-icon, ${ht}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${_e} ${ut}`,`margin ${Pe} ${qe}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:Nt,opacity:1,transition:[`opacity ${Pe} ${qe}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${ue}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${ue}-item-only-child`]:{[`> ${ht}, > ${ue}-item-icon`]:{marginInlineEnd:0}}},[`${ue}-item-disabled, ${ue}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ue}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pt=Ge=>{const{componentCls:ue,motionDurationSlow:Pe,motionEaseInOut:_e,borderRadius:qe,menuArrowSize:ut,menuArrowOffset:ht}=Ge;return{[`${ue}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${_e}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:qe,transition:[`background ${Pe} ${_e}`,`transform ${Pe} ${_e}`,`top ${Pe} ${_e}`,`color ${Pe} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ht})`},"&::after":{transform:`rotate(-45deg) translateY(${ht})`}}}}},Je=Ge=>{const{antCls:ue,componentCls:Pe,fontSize:_e,motionDurationSlow:qe,motionDurationMid:ut,motionEaseInOut:ht,paddingXS:Bt,padding:Nt,colorSplit:Wt,lineWidth:wt,zIndexPopup:_t,borderRadiusLG:ln,subMenuItemBorderRadius:ft,menuArrowSize:Ut,menuArrowOffset:Kt,lineType:Jt,menuPanelMaskInset:pe,groupTitleLineHeight:Be,groupTitleFontSize:Xe}=Ge;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(Ge)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${qe} 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:Ge.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Bt}px ${Nt}px`,fontSize:Xe,lineHeight:Be,transition:`all ${qe}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${qe} ${ht}`,`background ${qe} ${ht}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${qe} ${ht}`,`background ${qe} ${ht}`,`padding ${ut} ${ht}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${qe} ${ht}`,`padding ${qe} ${ht}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${qe}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Wt,borderStyle:Jt,borderWidth:0,borderTopWidth:wt,marginBlock:wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ue(Ge)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${_e*2}px ${Nt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_t,borderRadius:ln,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:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},Ue(Ge)),pt(Ge)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:ft},[`${Pe}-submenu-title::after`]:{transition:`transform ${qe} ${ht}`}})}}),pt(Ge)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${Ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${ue}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var dt=(Ge,ue)=>(0,It.Z)("Menu",_e=>{if(ue===!1)return[];const{colorBgElevated:qe,colorPrimary:ut,colorTextLightSolid:ht,controlHeightLG:Bt,fontSize:Nt,darkItemColor:Wt,darkDangerItemColor:wt,darkItemBg:_t,darkSubMenuItemBg:ln,darkItemSelectedColor:ft,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:Kt,darkItemHoverBg:Jt,darkGroupTitleColor:pe,darkItemHoverColor:Be,darkItemDisabledColor:Xe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:vt,darkDangerItemActiveBg:Dt}=_e,jt=Nt/7*5,Mt=(0,be.TS)(_e,{menuArrowSize:jt,menuHorizontalHeight:Bt*1.15,menuArrowOffset:`${jt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:qe}),kt=(0,be.TS)(Mt,{itemColor:Wt,itemHoverColor:Be,groupTitleColor:pe,itemSelectedColor:ft,itemBg:_t,popupBg:_t,subMenuItemBg:ln,itemActiveBg:"transparent",itemSelectedBg:Ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Jt,itemDisabledColor:Xe,dangerItemColor:wt,dangerItemHoverColor:mt,dangerItemSelectedColor:vt,dangerItemActiveBg:Dt,dangerItemSelectedBg:Kt,menuSubMenuBg:ln,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:ut});return[Je(Mt),$e(Mt),Fe(Mt),ot(Mt,"light"),ot(kt,"dark"),nt(Mt),(0,Oe.Z)(Mt),(0,et.oN)(Mt,"slide-up"),(0,et.oN)(Mt,"slide-down"),(0,$t._y)(Mt,"zoom-big")]},_e=>{const{colorPrimary:qe,colorError:ut,colorTextDisabled:ht,colorErrorBg:Bt,colorText:Nt,colorTextDescription:Wt,colorBgContainer:wt,colorFillAlter:_t,colorFillContent:ln,lineWidth:ft,lineWidthBold:Ut,controlItemBgActive:Kt,colorBgTextHover:Jt,controlHeightLG:pe,lineHeight:Be,colorBgElevated:Xe,marginXXS:mt,padding:vt,fontSize:Dt,controlHeightSM:jt,fontSizeLG:Mt,colorTextLightSolid:kt,colorErrorHover:qt}=_e,Vt=new se.C(kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:Nt,itemColor:Nt,colorItemTextHover:Nt,itemHoverColor:Nt,colorItemTextHoverHorizontal:qe,horizontalItemHoverColor:qe,colorGroupTitle:Wt,groupTitleColor:Wt,colorItemTextSelected:qe,itemSelectedColor:qe,colorItemTextSelectedHorizontal:qe,horizontalItemSelectedColor:qe,colorItemBg:wt,itemBg:wt,colorItemBgHover:Jt,itemHoverBg:Jt,colorItemBgActive:ln,itemActiveBg:Kt,colorSubItemBg:_t,subMenuItemBg:_t,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:ft,activeBarBorderWidth:ft,colorItemTextDisabled:ht,itemDisabledColor:ht,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:_e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Be,collapsedWidth:pe*2,popupBg:Xe,itemMarginBlock:mt,itemPaddingInline:vt,horizontalLineHeight:`${pe*1.15}px`,iconSize:Dt,iconMarginInlineEnd:jt-Dt,collapsedIconSize:Mt,groupTitleFontSize:Dt,darkItemDisabledColor:new se.C(kt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kt,darkItemSelectedBg:qe,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:kt,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:kt,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"]]})(Ge),de=function(Ge,ue){var Pe={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&ue.indexOf(_e)<0&&(Pe[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,_e=Object.getOwnPropertySymbols(Ge);qe<_e.length;qe++)ue.indexOf(_e[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[qe])&&(Pe[_e[qe]]=Ge[_e[qe]]);return Pe},St=(0,fe.forwardRef)((Ge,ue)=>{var Pe,_e;const qe=fe.useContext(re.Z),ut=qe||{},{getPrefixCls:ht,getPopupContainer:Bt,direction:Nt,menu:Wt}=fe.useContext(we.E_),wt=ht(),{prefixCls:_t,className:ln,style:ft,theme:Ut="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:Jt,inlineCollapsed:pe,siderCollapsed:Be,items:Xe,children:mt,rootClassName:vt,mode:Dt,selectable:jt,onClick:Mt,overflowedIndicatorPopupClassName:kt}=Ge,qt=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,it.Z)(qt,["collapsedWidth"]),on=me(Xe)||mt;(Pe=ut.validator)===null||Pe===void 0||Pe.call(ut,{mode:Dt});const hn=(0,ee.useEvent)(function(){var In;Mt==null||Mt.apply(void 0,arguments),(In=ut.onClick)===null||In===void 0||In.call(ut)}),yn=ut.mode||Dt,Fn=jt!=null?jt:ut.selectable,sn=fe.useMemo(()=>Be!==void 0?Be:pe,[pe,Be]),dn={horizontal:{motionName:`${wt}-slide-up`},inline:(0,te.Z)(wt),other:{motionName:`${wt}-zoom-big`}},Ln=ht("menu",_t||ut.prefixCls),[xn,$n]=dt(Ln,!qe),cn=Se()(`${Ln}-${Ut}`,Wt==null?void 0:Wt.className,ln);let zn;if(typeof Kt=="function")zn=Kt;else if(Kt===null||Kt===!1)zn=null;else if(ut.expandIcon===null||ut.expandIcon===!1)zn=null;else{const In=Kt!=null?Kt:ut.expandIcon;zn=(0,ke.Tm)(In,{className:Se()(`${Ln}-submenu-expand-icon`,(0,ke.l$)(In)?(_e=In.props)===null||_e===void 0?void 0:_e.className:"")})}const Vn=fe.useMemo(()=>({prefixCls:Ln,inlineCollapsed:sn||!1,direction:Nt,firstLevel:!0,theme:Ut,mode:yn,disableMenuItemTitleTooltip:Jt}),[Ln,sn,Nt,Jt,Ut]);return xn(fe.createElement(re.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Vn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Bt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Ln,`${Ln}-${Ut}`,kt),mode:yn,selectable:Fn,onClick:hn},Vt,{inlineCollapsed:sn,style:Object.assign(Object.assign({},Wt==null?void 0:Wt.style),ft),className:cn,prefixCls:Ln,direction:Nt,defaultMotions:dn,expandIcon:zn,ref:ue,rootClassName:Se()(vt,$n)}),on))))});const xt=(0,fe.forwardRef)((Ge,ue)=>{const Pe=(0,fe.useRef)(null),_e=fe.useContext(Ke.D);return(0,fe.useImperativeHandle)(ue,()=>({menu:Pe.current,focus:qe=>{var ut;(ut=Pe.current)===null||ut===void 0||ut.focus(qe)}})),fe.createElement(St,Object.assign({ref:Pe},Ge,_e))});xt.Item=E,xt.SubMenu=x,xt.Divider=Ve,xt.ItemGroup=ae.BW;var Ct=xt},93948:function(Me,st,oe){"use strict";oe.d(st,{Z:function(){return Jt}});var ae=oe(59301),fe=oe(29679),Ke=oe(40001),Ie=oe(19248),Se=oe(99267),we=oe(92310),le=oe.n(we),Re=oe(2738),Ve=oe(36355),Ce=oe(54476),it=oe(33885),Te=oe(75931),ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Be=(0,ae.useRef)([]),Xe=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var mt=Date.now(),vt=!1;Be.current.forEach(function(Dt){if(Dt){vt=!0;var jt=Dt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",Xe.current&&mt-Xe.current<100&&(jt.transitionDuration="0s, 0s")}}),vt&&(Xe.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var Xe=(0,it.Z)((0,it.Z)({},ke),Be),mt=Xe.className,vt=Xe.percent,Dt=Xe.prefixCls,jt=Xe.strokeColor,Mt=Xe.strokeLinecap,kt=Xe.strokeWidth,qt=Xe.style,Vt=Xe.trailColor,on=Xe.trailWidth,hn=Xe.transition,yn=(0,Te.Z)(Xe,a);delete yn.gapPosition;var Fn=Array.isArray(vt)?vt:[vt],sn=Array.isArray(jt)?jt:[jt],dn=ne(),Ln=kt/2,xn=100-kt/2,$n="M ".concat(Mt==="round"?Ln:0,",").concat(Ln,`
L `).concat(Mt==="round"?xn:100,",").concat(Ln),cn="0 0 100 ".concat(kt),zn=0;return ae.createElement("svg",(0,Ce.Z)({className:le()("".concat(Dt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:qt},yn),ae.createElement("path",{className:"".concat(Dt,"-line-trail"),d:$n,strokeLinecap:Mt,stroke:Vt,strokeWidth:on||kt,fillOpacity:"0"}),Fn.map(function(Vn,In){var Zn=1;switch(Mt){case"round":Zn=1-kt/100;break;case"square":Zn=1-kt/2/100;break;default:Zn=1;break}var na={strokeDasharray:"".concat(Vn*Zn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ve=sn[In]||sn[sn.length-1];return zn+=Vn,ae.createElement("path",{key:In,className:"".concat(Dt,"-line-path"),d:$n,strokeLinecap:Mt,stroke:ve,strokeWidth:kt,fillOpacity:"0",ref:function(ye){dn[In]=ye},style:na})}))},E=y,b=oe(76190),x=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var Be=ae.useState(),Xe=(0,x.Z)(Be,2),mt=Xe[0],vt=Xe[1];return ae.useEffect(function(){vt("rc_progress_".concat(re()))},[]),pe||mt},ge=function(Be){var Xe=Be.bg,mt=Be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Xe}},mt)};function me(pe,Be){return Object.keys(pe).map(function(Xe){var mt=parseFloat(Xe),vt="".concat(Math.floor(mt*Be),"%");return"".concat(pe[Xe]," ").concat(vt)})}var se=ae.forwardRef(function(pe,Be){var Xe=pe.prefixCls,mt=pe.color,vt=pe.gradientId,Dt=pe.radius,jt=pe.style,Mt=pe.ptg,kt=pe.strokeLinecap,qt=pe.strokeWidth,Vt=pe.size,on=pe.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",yn=hn?"#FFF":void 0,Fn=Vt/2,sn=ae.createElement("circle",{className:"".concat(Xe,"-circle-path"),r:Dt,cx:Fn,cy:Fn,stroke:yn,strokeLinecap:kt,strokeWidth:qt,opacity:Mt===0?0:1,style:jt,ref:Be});if(!hn)return sn;var dn="".concat(vt,"-conic"),Ln=on?"".concat(180+on/2,"deg"):"0deg",xn=me(mt,(360-on)/360),$n=me(mt,1),cn="conic-gradient(from ".concat(Ln,", ").concat(xn.join(", "),")"),zn="linear-gradient(to ".concat(on?"bottom":"top",", ").concat($n.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:dn},sn),ae.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(dn,")")},ae.createElement(ge,{bg:zn},ae.createElement(ge,{bg:cn}))))}),Le=se,Oe=100,et=function(Be,Xe,mt,vt,Dt,jt,Mt,kt,qt,Vt){var on=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-jt)/360),yn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],Fn=(100-vt)/100*Xe;qt==="round"&&vt!==100&&(Fn+=Vt/2,Fn>=Xe&&(Fn=Xe-.01));var sn=Oe/2;return{stroke:typeof kt=="string"?kt:void 0,strokeDasharray:"".concat(Xe,"px ").concat(Be),strokeDashoffset:Fn+on,transform:"rotate(".concat(Dt+hn+yn,"deg)"),transformOrigin:"".concat(sn,"px ").concat(sn,"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}},$t=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function It(pe){var Be=pe!=null?pe:[];return Array.isArray(Be)?Be:[Be]}var be=function(Be){var Xe=(0,it.Z)((0,it.Z)({},ke),Be),mt=Xe.id,vt=Xe.prefixCls,Dt=Xe.steps,jt=Xe.strokeWidth,Mt=Xe.trailWidth,kt=Xe.gapDegree,qt=kt===void 0?0:kt,Vt=Xe.gapPosition,on=Xe.trailColor,hn=Xe.strokeLinecap,yn=Xe.style,Fn=Xe.className,sn=Xe.strokeColor,dn=Xe.percent,Ln=(0,Te.Z)(Xe,$t),xn=Oe/2,$n=ie(mt),cn="".concat($n,"-gradient"),zn=xn-jt/2,Vn=Math.PI*2*zn,In=qt>0?90+qt/2:-90,Zn=Vn*((360-qt)/360),na=(0,b.Z)(Dt)==="object"?Dt:{count:Dt,space:2},ve=na.count,Ee=na.space,ye=It(dn),rt=It(sn),bt=rt.find(function(An){return An&&(0,b.Z)(An)==="object"}),Gt=bt&&(0,b.Z)(bt)==="object",en=Gt?"butt":hn,Yt=et(Vn,Zn,0,100,In,qt,Vt,on,en,jt),At=ne(),bn=function(){var lt=0;return ye.map(function(Qt,Hn){var Rn=rt[Hn]||rt[rt.length-1],On=et(Vn,Zn,lt,Qt,In,qt,Vt,Rn,en,jt);return lt+=Qt,ae.createElement(Le,{key:Hn,color:Rn,ptg:Qt,radius:zn,prefixCls:vt,gradientId:cn,style:On,strokeLinecap:en,strokeWidth:jt,gapDegree:qt,ref:function(Ne){At[Hn]=Ne},size:Oe})}).reverse()},Qn=function(){var lt=Math.round(ve*(ye[0]/100)),Qt=100/ve,Hn=0;return new Array(ve).fill(null).map(function(Rn,On){var ce=On<=lt-1?rt[0]:on,Ne=ce&&(0,b.Z)(ce)==="object"?"url(#".concat(cn,")"):void 0,ze=et(Vn,Zn,Hn,Qt,In,qt,Vt,ce,"butt",jt,Ee);return Hn+=(Zn-ze.strokeDashoffset+Ee)*100/Zn,ae.createElement("circle",{key:On,className:"".concat(vt,"-circle-path"),r:zn,cx:xn,cy:xn,stroke:Ne,strokeWidth:jt,opacity:1,style:ze,ref:function(at){At[On]=at}})})};return ae.createElement("svg",(0,Ce.Z)({className:le()("".concat(vt,"-circle"),Fn),viewBox:"0 0 ".concat(Oe," ").concat(Oe),style:yn,id:mt,role:"presentation"},Ln),!ve&&ae.createElement("circle",{className:"".concat(vt,"-circle-trail"),r:zn,cx:xn,cy:xn,stroke:on,strokeLinecap:en,strokeWidth:Mt||jt,style:Yt}),ve?Qn():bn())},Ae=be,$e={Line:E,Circle:Ae},De=oe(6848),nt=oe(30071);function ct(pe){return!pe||pe<0?0:pe>100?100:pe}function Ze(pe){let{success:Be,successPercent:Xe}=pe,mt=Xe;return Be&&"progress"in Be&&(mt=Be.progress),Be&&"percent"in Be&&(mt=Be.percent),mt}const ot=pe=>{let{percent:Be,success:Xe,successPercent:mt}=pe;const vt=ct(Ze({success:Xe,successPercent:mt}));return[vt,ct(ct(Be)-vt)]},We=pe=>{let{success:Be={},strokeColor:Xe}=pe;const{strokeColor:mt}=Be;return[mt||nt.presetPrimaryColors.green,Xe||null]},he=(pe,Be,Xe)=>{var mt,vt,Dt,jt;let Mt=-1,kt=-1;if(Be==="step"){const qt=Xe.steps,Vt=Xe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Mt=pe==="small"?2:14,kt=Vt!=null?Vt:8):typeof pe=="number"?[Mt,kt]=[pe,pe]:[Mt=14,kt=8]=pe,Mt*=qt}else if(Be==="line"){const qt=Xe==null?void 0:Xe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?kt=qt||(pe==="small"?6:8):typeof pe=="number"?[Mt,kt]=[pe,pe]:[Mt=-1,kt=8]=pe}else(Be==="circle"||Be==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Mt,kt]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Mt,kt]=[pe,pe]:(Mt=(vt=(mt=pe[0])!==null&&mt!==void 0?mt:pe[1])!==null&&vt!==void 0?vt:120,kt=(jt=(Dt=pe[0])!==null&&Dt!==void 0?Dt:pe[1])!==null&&jt!==void 0?jt:120));return[Mt,kt]},Fe=3,Ue=pe=>Fe/pe*100;var Je=pe=>{const{prefixCls:Be,trailColor:Xe=null,strokeLinecap:mt="round",gapPosition:vt,gapDegree:Dt,width:jt=120,type:Mt,children:kt,success:qt,size:Vt=jt}=pe,[on,hn]=he(Vt,"circle");let{strokeWidth:yn}=pe;yn===void 0&&(yn=Math.max(Ue(on),6));const Fn={width:on,height:hn,fontSize:on*.15+6},sn=ae.useMemo(()=>{if(Dt||Dt===0)return Dt;if(Mt==="dashboard")return 75},[Dt,Mt]),dn=vt||Mt==="dashboard"&&"bottom"||void 0,Ln=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",xn=We({success:qt,strokeColor:pe.strokeColor}),$n=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:Ln}),cn=ae.createElement(Ae,{percent:ot(pe),strokeWidth:yn,trailWidth:yn,strokeColor:xn,strokeLinecap:mt,trailColor:Xe,prefixCls:Be,gapDegree:sn,gapPosition:dn});return ae.createElement("div",{className:$n,style:Fn},on<=20?ae.createElement(De.Z,{title:kt},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,kt))},dt=function(pe,Be){var Xe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&Be.indexOf(mt)<0&&(Xe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,mt=Object.getOwnPropertySymbols(pe);vt<mt.length;vt++)Be.indexOf(mt[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[vt])&&(Xe[mt[vt]]=pe[mt[vt]]);return Xe};const de=pe=>{let Be=[];return Object.keys(pe).forEach(Xe=>{const mt=parseFloat(Xe.replace(/%/g,""));isNaN(mt)||Be.push({key:mt,value:pe[Xe]})}),Be=Be.sort((Xe,mt)=>Xe.key-mt.key),Be.map(Xe=>{let{key:mt,value:vt}=Xe;return`${vt} ${mt}%`}).join(", ")},Ye=(pe,Be)=>{const{from:Xe=nt.presetPrimaryColors.blue,to:mt=nt.presetPrimaryColors.blue,direction:vt=Be==="rtl"?"to left":"to right"}=pe,Dt=dt(pe,["from","to","direction"]);if(Object.keys(Dt).length!==0){const jt=de(Dt);return{backgroundImage:`linear-gradient(${vt}, ${jt})`}}return{backgroundImage:`linear-gradient(${vt}, ${Xe}, ${mt})`}};var xt=pe=>{const{prefixCls:Be,direction:Xe,percent:mt,size:vt,strokeWidth:Dt,strokeColor:jt,strokeLinecap:Mt="round",children:kt,trailColor:qt=null,success:Vt}=pe,on=jt&&typeof jt!="string"?Ye(jt,Xe):{backgroundColor:jt},hn=Mt==="square"||Mt==="butt"?0:void 0,yn={backgroundColor:qt||void 0,borderRadius:hn},Fn=vt!=null?vt:[-1,Dt||(vt==="small"?6:8)],[sn,dn]=he(Fn,"line",{strokeWidth:Dt}),Ln=Object.assign({width:`${ct(mt)}%`,height:dn,borderRadius:hn},on),xn=Ze(pe),$n={width:`${ct(xn)}%`,height:dn,borderRadius:hn,backgroundColor:Vt==null?void 0:Vt.strokeColor},cn={width:sn<0?"100%":sn,height:dn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Be}-outer`,style:cn},ae.createElement("div",{className:`${Be}-inner`,style:yn},ae.createElement("div",{className:`${Be}-bg`,style:Ln}),xn!==void 0?ae.createElement("div",{className:`${Be}-success-bg`,style:$n}):null)),kt)},Ge=pe=>{const{size:Be,steps:Xe,percent:mt=0,strokeWidth:vt=8,strokeColor:Dt,trailColor:jt=null,prefixCls:Mt,children:kt}=pe,qt=Math.round(Xe*(mt/100)),Vt=Be==="small"?2:14,on=Be!=null?Be:[Vt,vt],[hn,yn]=he(on,"step",{steps:Xe,strokeWidth:vt}),Fn=hn/Xe,sn=new Array(Xe);for(let dn=0;dn<Xe;dn++){const Ln=Array.isArray(Dt)?Dt[dn]:Dt;sn[dn]=ae.createElement("div",{key:dn,className:le()(`${Mt}-steps-item`,{[`${Mt}-steps-item-active`]:dn<=qt-1}),style:{backgroundColor:dn<=qt-1?Ln:jt,width:Fn,height:yn}})}return ae.createElement("div",{className:`${Mt}-steps-outer`},sn,kt)},ue=oe(36237),Pe=oe(17313),_e=oe(83116),qe=oe(37613);const ut=pe=>{const Be=pe?"100%":"-100%";return new ue.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ht=pe=>{const{componentCls:Be,iconCls:Xe}=pe;return{[Be]: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},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:pe.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Xe]:{fontSize:pe.fontSize}},[`&${Be}-status-active`]:{[`${Be}-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:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:ut(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:pe.colorError},[`${Be}-text`]:{color:pe.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:pe.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:pe.colorSuccess},[`${Be}-text`]:{color:pe.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:pe.colorSuccess}}})}},Bt=pe=>{const{componentCls:Be,iconCls:Xe}=pe;return{[Be]:{[`${Be}-circle-trail`]:{stroke:pe.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-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%)",[Xe]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:pe.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:pe.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Nt=pe=>{const{componentCls:Be}=pe;return{[Be]:{[`${Be}-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}}}}}},Wt=pe=>{const{componentCls:Be,iconCls:Xe}=pe;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${Xe}`]:{fontSize:pe.fontSizeSM}}}};var wt=(0,_e.Z)("Progress",pe=>{const Be=pe.marginXXS/2,Xe=(0,qe.TS)(pe,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[ht(Xe),Bt(Xe),Nt(Xe),Wt(Xe)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),_t=function(pe,Be){var Xe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&Be.indexOf(mt)<0&&(Xe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,mt=Object.getOwnPropertySymbols(pe);vt<mt.length;vt++)Be.indexOf(mt[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[vt])&&(Xe[mt[vt]]=pe[mt[vt]]);return Xe};const ln=null,ft=["normal","exception","active","success"];var Kt=ae.forwardRef((pe,Be)=>{const{prefixCls:Xe,className:mt,rootClassName:vt,steps:Dt,strokeColor:jt,percent:Mt=0,size:kt="default",showInfo:qt=!0,type:Vt="line",status:on,format:hn,style:yn}=pe,Fn=_t(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),sn=ae.useMemo(()=>{var ye,rt;const bt=Ze(pe);return parseInt(bt!==void 0?(ye=bt!=null?bt:0)===null||ye===void 0?void 0:ye.toString():(rt=Mt!=null?Mt:0)===null||rt===void 0?void 0:rt.toString(),10)},[Mt,pe.success,pe.successPercent]),dn=ae.useMemo(()=>!ft.includes(on)&&sn>=100?"success":on||"normal",[on,sn]),{getPrefixCls:Ln,direction:xn,progress:$n}=ae.useContext(Ve.E_),cn=Ln("progress",Xe),[zn,Vn]=wt(cn),In=ae.useMemo(()=>{if(!qt)return null;const ye=Ze(pe);let rt;const bt=hn||(en=>`${en}%`),Gt=Vt==="line";return hn||dn!=="exception"&&dn!=="success"?rt=bt(ct(Mt),ct(ye)):dn==="exception"?rt=Gt?ae.createElement(Ie.Z,null):ae.createElement(Se.Z,null):dn==="success"&&(rt=Gt?ae.createElement(fe.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${cn}-text`,title:typeof rt=="string"?rt:void 0},rt)},[qt,Mt,sn,dn,Vt,cn,hn]),Zn=Array.isArray(jt)?jt[0]:jt,na=typeof jt=="string"||Array.isArray(jt)?jt:void 0;let ve;Vt==="line"?ve=Dt?ae.createElement(Ge,Object.assign({},pe,{strokeColor:na,prefixCls:cn,steps:Dt}),In):ae.createElement(xt,Object.assign({},pe,{strokeColor:Zn,prefixCls:cn,direction:xn}),In):(Vt==="circle"||Vt==="dashboard")&&(ve=ae.createElement(Je,Object.assign({},pe,{strokeColor:Zn,prefixCls:cn,progressStatus:dn}),In));const Ee=le()(cn,`${cn}-status-${dn}`,`${cn}-${Vt==="dashboard"&&"circle"||Dt&&"steps"||Vt}`,{[`${cn}-inline-circle`]:Vt==="circle"&&he(kt,"circle")[0]<=20,[`${cn}-show-info`]:qt,[`${cn}-${kt}`]:typeof kt=="string",[`${cn}-rtl`]:xn==="rtl"},$n==null?void 0:$n.className,mt,vt,Vn);return zn(ae.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),yn),className:Ee,role:"progressbar","aria-valuenow":sn},(0,Re.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ve))}),Jt=Kt},54580:function(Me,st,oe){"use strict";oe.d(st,{default:function(){return On}});var ae=oe(59301),fe=oe(94480),Ke=oe(92310),Ie=oe.n(Ke),Se=oe(54476),we=oe(67732),le=oe(83652),Re=oe(42403),Ve=oe(158),Ce=oe(20068),it=oe(75931),Te=oe(75044),ke=oe(76190),ne=oe(3202),a=oe(26112);function y(ce,Ne){var ze="cannot ".concat(ce.method," ").concat(ce.action," ").concat(Ne.status,"'"),je=new Error(ze);return je.status=Ne.status,je.method=ce.method,je.url=ce.action,je}function E(ce){var Ne=ce.responseText||ce.response;if(!Ne)return Ne;try{return JSON.parse(Ne)}catch(ze){return Ne}}function b(ce){var Ne=new XMLHttpRequest;ce.onProgress&&Ne.upload&&(Ne.upload.onprogress=function(gt){gt.total>0&&(gt.percent=gt.loaded/gt.total*100),ce.onProgress(gt)});var ze=new FormData;ce.data&&Object.keys(ce.data).forEach(function(at){var gt=ce.data[at];if(Array.isArray(gt)){gt.forEach(function(Qe){ze.append("".concat(at,"[]"),Qe)});return}ze.append(at,gt)}),ce.file instanceof Blob?ze.append(ce.filename,ce.file,ce.file.name):ze.append(ce.filename,ce.file),Ne.onerror=function(gt){ce.onError(gt)},Ne.onload=function(){return Ne.status<200||Ne.status>=300?ce.onError(y(ce,Ne),E(Ne)):ce.onSuccess(E(Ne),Ne)},Ne.open(ce.method,ce.action,!0),ce.withCredentials&&"withCredentials"in Ne&&(Ne.withCredentials=!0);var je=ce.headers||{};return je["X-Requested-With"]!==null&&Ne.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(je).forEach(function(at){je[at]!==null&&Ne.setRequestHeader(at,je[at])}),Ne.send(ze),{abort:function(){Ne.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ce,Ne){if(ce&&Ne){var ze=Array.isArray(Ne)?Ne:Ne.split(","),je=ce.name||"",at=ce.type||"",gt=at.replace(/\/.*$/,"");return ze.some(function(Qe){var He=Qe.trim();if(/^\*(\/\*)?$/.test(Qe))return!0;if(He.charAt(0)==="."){var Tt=je.toLowerCase(),xe=He.toLowerCase(),Rt=[xe];return(xe===".jpg"||xe===".jpeg")&&(Rt=[".jpg",".jpeg"]),Rt.some(function(tn){return Tt.endsWith(tn)})}return/\/\*$/.test(He)?gt===He.replace(/\/.*$/,""):at===He?!0:/^\w+$/.test(He)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(He,"'.Skip for check.")),!0):!1})}return!0};function ie(ce,Ne){var ze=ce.createReader(),je=[];function at(){ze.readEntries(function(gt){var Qe=Array.prototype.slice.apply(gt);je=je.concat(Qe);var He=!Qe.length;He?Ne(je):at()})}at()}var ge=function(Ne,ze,je){var at=function gt(Qe,He){Qe&&(Qe.path=He||"",Qe.isFile?Qe.file(function(Tt){je(Tt)&&(Qe.fullPath&&!Tt.webkitRelativePath&&(Object.defineProperties(Tt,{webkitRelativePath:{writable:!0}}),Tt.webkitRelativePath=Qe.fullPath.replace(/^\//,""),Object.defineProperties(Tt,{webkitRelativePath:{writable:!1}})),ze([Tt]))}):Qe.isDirectory&&ie(Qe,function(Tt){Tt.forEach(function(xe){gt(xe,"".concat(He).concat(Qe.name,"/"))})}))};Ne.forEach(function(gt){at(gt.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Le=function(ce){(0,Re.Z)(ze,ce);var Ne=(0,Ve.Z)(ze);function ze(){var je;(0,we.Z)(this,ze);for(var at=arguments.length,gt=new Array(at),Qe=0;Qe<at;Qe++)gt[Qe]=arguments[Qe];return je=Ne.call.apply(Ne,[this].concat(gt)),je.state={uid:ee()},je.reqs={},je.fileInput=void 0,je._isMounted=void 0,je.onChange=function(He){var Tt=je.props,xe=Tt.accept,Rt=Tt.directory,tn=He.target.files,rn=(0,fe.Z)(tn).filter(function(Sn){return!Rt||re(Sn,xe)});je.uploadFiles(rn),je.reset()},je.onClick=function(He){var Tt=je.fileInput;if(Tt){var xe=He.target,Rt=je.props.onClick;if(xe&&xe.tagName==="BUTTON"){var tn=Tt.parentNode;tn.focus(),xe.blur()}Tt.click(),Rt&&Rt(He)}},je.onKeyDown=function(He){He.key==="Enter"&&je.onClick(He)},je.onFileDrop=function(He){var Tt=je.props.multiple;if(He.preventDefault(),He.type!=="dragover")if(je.props.directory)me(Array.prototype.slice.call(He.dataTransfer.items),je.uploadFiles,function(Rt){return re(Rt,je.props.accept)});else{var xe=(0,fe.Z)(He.dataTransfer.files).filter(function(Rt){return re(Rt,je.props.accept)});Tt===!1&&(xe=xe.slice(0,1)),je.uploadFiles(xe)}},je.uploadFiles=function(He){var Tt=(0,fe.Z)(He),xe=Tt.map(function(Rt){return Rt.uid=ee(),je.processFile(Rt,Tt)});Promise.all(xe).then(function(Rt){var tn=je.props.onBatchStart;tn==null||tn(Rt.map(function(rn){var Sn=rn.origin,kn=rn.parsedFile;return{file:Sn,parsedFile:kn}})),Rt.filter(function(rn){return rn.parsedFile!==null}).forEach(function(rn){je.post(rn)})})},je.processFile=function(){var He=(0,ne.Z)((0,Te.Z)().mark(function Tt(xe,Rt){var tn,rn,Sn,kn,tt,Ft,yt,Et,gn;return(0,Te.Z)().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(tn=je.props.beforeUpload,rn=xe,!tn){Zt.next=14;break}return Zt.prev=3,Zt.next=6,tn(xe,Rt);case 6:rn=Zt.sent,Zt.next=12;break;case 9:Zt.prev=9,Zt.t0=Zt.catch(3),rn=!1;case 12:if(rn!==!1){Zt.next=14;break}return Zt.abrupt("return",{origin:xe,parsedFile:null,action:null,data:null});case 14:if(Sn=je.props.action,typeof Sn!="function"){Zt.next=21;break}return Zt.next=18,Sn(xe);case 18:kn=Zt.sent,Zt.next=22;break;case 21:kn=Sn;case 22:if(tt=je.props.data,typeof tt!="function"){Zt.next=29;break}return Zt.next=26,tt(xe);case 26:Ft=Zt.sent,Zt.next=30;break;case 29:Ft=tt;case 30:return yt=((0,ke.Z)(rn)==="object"||typeof rn=="string")&&rn?rn:xe,yt instanceof File?Et=yt:Et=new File([yt],xe.name,{type:xe.type}),gn=Et,gn.uid=xe.uid,Zt.abrupt("return",{origin:xe,data:Ft,parsedFile:gn,action:kn});case 35:case"end":return Zt.stop()}},Tt,null,[[3,9]])}));return function(Tt,xe){return He.apply(this,arguments)}}(),je.saveFileInput=function(He){je.fileInput=He},je}return(0,le.Z)(ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var gt=this,Qe=at.data,He=at.origin,Tt=at.action,xe=at.parsedFile;if(this._isMounted){var Rt=this.props,tn=Rt.onStart,rn=Rt.customRequest,Sn=Rt.name,kn=Rt.headers,tt=Rt.withCredentials,Ft=Rt.method,yt=He.uid,Et=rn||b,gn={action:Tt,filename:Sn,data:Qe,file:xe,headers:kn,withCredentials:tt,method:Ft||"post",onProgress:function(Zt){var fn=gt.props.onProgress;fn==null||fn(Zt,xe)},onSuccess:function(Zt,fn){var pn=gt.props.onSuccess;pn==null||pn(Zt,xe,fn),delete gt.reqs[yt]},onError:function(Zt,fn){var pn=gt.props.onError;pn==null||pn(Zt,fn,xe),delete gt.reqs[yt]}};tn(He),this.reqs[yt]=Et(gn)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var gt=this.reqs;if(at){var Qe=at.uid?at.uid:at;gt[Qe]&&gt[Qe].abort&&gt[Qe].abort(),delete gt[Qe]}else Object.keys(gt).forEach(function(He){gt[He]&&gt[He].abort&&gt[He].abort(),delete gt[He]})}},{key:"render",value:function(){var at=this.props,gt=at.component,Qe=at.prefixCls,He=at.className,Tt=at.disabled,xe=at.id,Rt=at.style,tn=at.multiple,rn=at.accept,Sn=at.capture,kn=at.children,tt=at.directory,Ft=at.openFileDialogOnClick,yt=at.onMouseEnter,Et=at.onMouseLeave,gn=(0,it.Z)(at,se),an=Ie()((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Qe,!0),"".concat(Qe,"-disabled"),Tt),He,He)),Zt=tt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},fn=Tt?{}:{onClick:Ft?this.onClick:function(){},onKeyDown:Ft?this.onKeyDown:function(){},onMouseEnter:yt,onMouseLeave:Et,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(gt,(0,Se.Z)({},fn,{className:an,role:"button",style:Rt}),ae.createElement("input",(0,Se.Z)({},(0,a.Z)(gn,{aria:!0,data:!0}),{id:xe,disabled:Tt,type:"file",ref:this.saveFileInput,onClick:function(Kn){return Kn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:rn},Zt,{multiple:tn,onChange:this.onChange},Sn!=null?{capture:Sn}:{})),kn)}}]),ze}(ae.Component),Oe=Le;function et(){}var $t=function(ce){(0,Re.Z)(ze,ce);var Ne=(0,Ve.Z)(ze);function ze(){var je;(0,we.Z)(this,ze);for(var at=arguments.length,gt=new Array(at),Qe=0;Qe<at;Qe++)gt[Qe]=arguments[Qe];return je=Ne.call.apply(Ne,[this].concat(gt)),je.uploader=void 0,je.saveUploader=function(He){je.uploader=He},je}return(0,le.Z)(ze,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ae.createElement(Oe,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(ae.Component);$t.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:et,onError:et,onSuccess:et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var It=$t,be=It,Ae=oe(18929),$e=oe(4676),De=oe(36355),nt=oe(1684),ct=oe(9763),Ze=oe(31724),ot={icon:function(Ne,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ze}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ne}}]}},name:"file",theme:"twotone"},We=ot,he=oe(7657),Fe=function(Ne,ze){return ae.createElement(he.Z,(0,Se.Z)({},Ne,{ref:ze,icon:We}))},Ue=ae.forwardRef(Fe),pt=Ue,Je=oe(58617),dt={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=dt,Ye=function(Ne,ze){return ae.createElement(he.Z,(0,Se.Z)({},Ne,{ref:ze,icon:de}))},St=ae.forwardRef(Ye),xt=St,Ct={icon:function(Ne,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ne}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ze}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ze}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ne}}]}},name:"picture",theme:"twotone"},Ge=Ct,ue=function(Ne,ze){return ae.createElement(he.Z,(0,Se.Z)({},Ne,{ref:ze,icon:Ge}))},Pe=ae.forwardRef(ue),_e=Pe,qe=oe(77900),ut=oe(56762),ht=oe(62892),Bt=oe(92343),Nt=oe(3113);function Wt(ce){return Object.assign(Object.assign({},ce),{lastModified:ce.lastModified,lastModifiedDate:ce.lastModifiedDate,name:ce.name,size:ce.size,type:ce.type,uid:ce.uid,percent:0,originFileObj:ce})}function wt(ce,Ne){const ze=(0,fe.Z)(Ne),je=ze.findIndex(at=>{let{uid:gt}=at;return gt===ce.uid});return je===-1?ze.push(ce):ze[je]=ce,ze}function _t(ce,Ne){const ze=ce.uid!==void 0?"uid":"name";return Ne.filter(je=>je[ze]===ce[ze])[0]}function ln(ce,Ne){const ze=ce.uid!==void 0?"uid":"name",je=Ne.filter(at=>at[ze]!==ce[ze]);return je.length===Ne.length?null:je}const ft=function(){const Ne=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),je=Ne[Ne.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(je)||[""])[0]},Ut=ce=>ce.indexOf("image/")===0,Kt=ce=>{if(ce.type&&!ce.thumbUrl)return Ut(ce.type);const Ne=ce.thumbUrl||ce.url||"",ze=ft(Ne);return/^data:image\//.test(Ne)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ze)?!0:!(/^data:/.test(Ne)||ze)},Jt=200;function pe(ce){return new Promise(Ne=>{if(!ce.type||!Ut(ce.type)){Ne("");return}const ze=document.createElement("canvas");ze.width=Jt,ze.height=Jt,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(ze);const je=ze.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:gt,height:Qe}=at;let He=Jt,Tt=Jt,xe=0,Rt=0;gt>Qe?(Tt=Qe*(Jt/gt),Rt=-(Tt-He)/2):(He=gt*(Jt/Qe),xe=-(He-Tt)/2),je.drawImage(at,xe,Rt,He,Tt);const tn=ze.toDataURL();document.body.removeChild(ze),window.URL.revokeObjectURL(at.src),Ne(tn)},at.crossOrigin="anonymous",ce.type.startsWith("image/svg+xml")){const gt=new FileReader;gt.onload=()=>{gt.result&&(at.src=gt.result)},gt.readAsDataURL(ce)}else if(ce.type.startsWith("image/gif")){const gt=new FileReader;gt.onload=()=>{gt.result&&Ne(gt.result)},gt.readAsDataURL(ce)}else at.src=window.URL.createObjectURL(ce)})}var Be=oe(26227),Xe=oe(41464),mt=oe(15277),vt=oe(93948),Dt=oe(6848),Mt=ae.forwardRef((ce,Ne)=>{let{prefixCls:ze,className:je,style:at,locale:gt,listType:Qe,file:He,items:Tt,progress:xe,iconRender:Rt,actionIconRender:tn,itemRender:rn,isImgUrl:Sn,showPreviewIcon:kn,showRemoveIcon:tt,showDownloadIcon:Ft,previewIcon:yt,removeIcon:Et,downloadIcon:gn,onPreview:an,onDownload:Zt,onClose:fn}=ce;var pn,Kn;const{status:qn}=He,[Yn,ua]=ae.useState(qn);ae.useEffect(()=>{qn!=="removed"&&ua(qn)},[qn]);const[fa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Gn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Gn)}},[]);const ia=Rt(He);let Un=ae.createElement("div",{className:`${ze}-icon`},ia);if(Qe==="picture"||Qe==="picture-card"||Qe==="picture-circle")if(Yn==="uploading"||!He.thumbUrl&&!He.url){const Gn=Ie()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Yn!=="uploading"});Un=ae.createElement("div",{className:Gn},ia)}else{const Gn=Sn!=null&&Sn(He)?ae.createElement("img",{src:He.thumbUrl||He.url,alt:He.name,className:`${ze}-list-item-image`,crossOrigin:He.crossOrigin}):ia,Nn=Ie()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Sn&&!Sn(He)});Un=ae.createElement("a",{className:Nn,onClick:la=>an(He,la),href:He.url||He.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gn)}const vn=Ie()(`${ze}-list-item`,`${ze}-list-item-${Yn}`),aa=typeof He.linkProps=="string"?JSON.parse(He.linkProps):He.linkProps,oa=tt?tn((typeof Et=="function"?Et(He):Et)||ae.createElement(Be.Z,null),()=>fn(He),ze,gt.removeFile):null,ra=Ft&&Yn==="done"?tn((typeof gn=="function"?gn(He):gn)||ae.createElement(Xe.Z,null),()=>Zt(He),ze,gt.downloadFile):null,ga=Qe!=="picture-card"&&Qe!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ie()(`${ze}-list-item-actions`,{picture:Qe==="picture"})},ra,oa),Xn=Ie()(`${ze}-list-item-name`),ha=He.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:He.name},aa,{href:He.url,onClick:Gn=>an(He,Gn)}),He.name),ga]:[ae.createElement("span",{key:"view",className:Xn,onClick:Gn=>an(He,Gn),title:He.name},He.name),ga],Xt={pointerEvents:"none",opacity:.5},Pn=kn?ae.createElement("a",{href:He.url||He.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:He.url||He.thumbUrl?void 0:Xt,onClick:Gn=>an(He,Gn),title:gt.previewFile},typeof yt=="function"?yt(He):yt||ae.createElement(mt.Z,null)):null,Jn=(Qe==="picture-card"||Qe==="picture-circle")&&Yn!=="uploading"&&ae.createElement("span",{className:`${ze}-list-item-actions`},Pn,Yn==="done"&&ra,oa),{getPrefixCls:Mn}=ae.useContext(De.E_),da=Mn(),ea=ae.createElement("div",{className:vn},Un,ha,Jn,fa&&ae.createElement(qe.default,{motionName:`${da}-fade`,visible:Yn==="uploading",motionDeadline:2e3},Gn=>{let{className:Nn}=Gn;const la="percent"in He?ae.createElement(vt.Z,Object.assign({},xe,{type:"line",percent:He.percent,"aria-label":He["aria-label"],"aria-labelledby":He["aria-labelledby"]})):null;return ae.createElement("div",{className:Ie()(`${ze}-list-item-progress`,Nn)},la)})),ya=He.response&&typeof He.response=="string"?He.response:((pn=He.error)===null||pn===void 0?void 0:pn.statusText)||((Kn=He.error)===null||Kn===void 0?void 0:Kn.message)||gt.uploadError,pa=Yn==="error"?ae.createElement(Dt.Z,{title:ya,getPopupContainer:Gn=>Gn.parentNode},ea):ea;return ae.createElement("div",{className:Ie()(`${ze}-list-item-container`,je),style:at,ref:Ne},rn?rn(pa,He,Tt,{download:Zt.bind(null,He),preview:an.bind(null,He),remove:fn.bind(null,He)}):pa)});const kt=(ce,Ne)=>{const{listType:ze="text",previewFile:je=pe,onPreview:at,onDownload:gt,onRemove:Qe,locale:He,iconRender:Tt,isImageUrl:xe=Kt,prefixCls:Rt,items:tn=[],showPreviewIcon:rn=!0,showRemoveIcon:Sn=!0,showDownloadIcon:kn=!1,removeIcon:tt,previewIcon:Ft,downloadIcon:yt,progress:Et={size:[-1,2],showInfo:!1},appendAction:gn,appendActionVisible:an=!0,itemRender:Zt,disabled:fn}=ce,pn=(0,ut.Z)(),[Kn,qn]=ae.useState(!1);ae.useEffect(()=>{ze!=="picture"&&ze!=="picture-card"&&ze!=="picture-circle"||(tn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",je&&je(Xt.originFileObj).then(Pn=>{Xt.thumbUrl=Pn||"",pn()}))})},[ze,tn,je]),ae.useEffect(()=>{qn(!0)},[]);const Yn=(Xt,Pn)=>{if(at)return Pn==null||Pn.preventDefault(),at(Xt)},ua=Xt=>{typeof gt=="function"?gt(Xt):Xt.url&&window.open(Xt.url)},fa=Xt=>{Qe==null||Qe(Xt)},Pa=Xt=>{if(Tt)return Tt(Xt,ze);const Pn=Xt.status==="uploading",Jn=xe&&xe(Xt)?ae.createElement(_e,null):ae.createElement(pt,null);let Mn=Pn?ae.createElement(Je.Z,null):ae.createElement(xt,null);return ze==="picture"?Mn=Pn?ae.createElement(Je.Z,null):Jn:(ze==="picture-card"||ze==="picture-circle")&&(Mn=Pn?He.uploading:Jn),Mn},ia=(Xt,Pn,Jn,Mn)=>{const da={type:"text",size:"small",title:Mn,onClick:ea=>{Pn(),(0,Bt.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ea)},className:`${Jn}-list-item-action`,disabled:fn};if((0,Bt.l$)(Xt)){const ea=(0,Bt.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ae.createElement(Nt.ZP,Object.assign({},da,{icon:ea}))}return ae.createElement(Nt.ZP,Object.assign({},da),ae.createElement("span",null,Xt))};ae.useImperativeHandle(Ne,()=>({handlePreview:Yn,handleDownload:ua}));const{getPrefixCls:Un}=ae.useContext(De.E_),vn=Un("upload",Rt),aa=Un(),oa=Ie()(`${vn}-list`,`${vn}-list-${ze}`),ra=(0,fe.Z)(tn.map(Xt=>({key:Xt.uid,file:Xt})));let Xn={motionDeadline:2e3,motionName:`${vn}-${ze==="picture-card"||ze==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:Kn};const ha=ae.useMemo(()=>{const Xt=Object.assign({},(0,ht.Z)(aa));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[aa]);return ze!=="picture-card"&&ze!=="picture-circle"&&(Xn=Object.assign(Object.assign({},ha),Xn)),ae.createElement("div",{className:oa},ae.createElement(qe.CSSMotionList,Object.assign({},Xn,{component:!1}),Xt=>{let{key:Pn,file:Jn,className:Mn,style:da}=Xt;return ae.createElement(Mt,{key:Pn,locale:He,prefixCls:vn,className:Mn,style:da,file:Jn,items:tn,progress:Et,listType:ze,isImgUrl:xe,showPreviewIcon:rn,showRemoveIcon:Sn,showDownloadIcon:kn,removeIcon:tt,previewIcon:Ft,downloadIcon:yt,iconRender:Pa,actionIconRender:ia,itemRender:Zt,onPreview:Yn,onDownload:ua,onClose:fa})}),gn&&ae.createElement(qe.default,Object.assign({},Xn,{visible:an,forceRender:!0}),Xt=>{let{className:Pn,style:Jn}=Xt;return(0,Bt.Tm)(gn,Mn=>({className:Ie()(Mn.className,Pn),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:Pn?"none":void 0}),Mn.style)}))}))};var Vt=ae.forwardRef(kt),on=oe(17313),hn=oe(8378),yn=oe(83116),Fn=oe(37613),dn=ce=>{const{componentCls:Ne,iconCls:ze}=ce;return{[`${Ne}-wrapper`]:{[`${Ne}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[Ne]:{padding:`${ce.padding}px 0`},[`${Ne}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ne}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ne}-disabled):hover`]:{borderColor:ce.colorPrimaryHover},[`p${Ne}-drag-icon`]:{marginBottom:ce.margin,[ze]:{color:ce.colorPrimary,fontSize:ce.uploadThumbnailSize}},[`p${Ne}-text`]:{margin:`0 0 ${ce.marginXXS}px`,color:ce.colorTextHeading,fontSize:ce.fontSizeLG},[`p${Ne}-hint`]:{color:ce.colorTextDescription,fontSize:ce.fontSize},[`&${Ne}-disabled`]:{cursor:"not-allowed",[`p${Ne}-drag-icon ${ze},
p${Ne}-text,
p${Ne}-hint
`]:{color:ce.colorTextDisabled}}}}}},xn=ce=>{const{componentCls:Ne,antCls:ze,iconCls:je,fontSize:at,lineHeight:gt}=ce,Qe=`${Ne}-list-item`,He=`${Qe}-actions`,Tt=`${Qe}-action`,xe=Math.round(at*gt);return{[`${Ne}-wrapper`]:{[`${Ne}-list`]:Object.assign(Object.assign({},(0,on.dF)()),{lineHeight:ce.lineHeight,[Qe]:{position:"relative",height:ce.lineHeight*at,marginTop:ce.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ce.motionDurationSlow}`,"&:hover":{backgroundColor:ce.controlItemBgHover},[`${Qe}-name`]:Object.assign(Object.assign({},on.vS),{padding:`0 ${ce.paddingXS}px`,lineHeight:gt,flex:"auto",transition:`all ${ce.motionDurationSlow}`}),[He]:{[Tt]:{opacity:0},[`${Tt}${ze}-btn-sm`]:{height:xe,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Tt}:focus-visible,
&.picture ${Tt}
`]:{opacity:1},[je]:{color:ce.actionsColor,transition:`all ${ce.motionDurationSlow}`},[`&:hover ${je}`]:{color:ce.colorText}},[`${Ne}-icon ${je}`]:{color:ce.colorTextDescription,fontSize:at},[`${Qe}-progress`]:{position:"absolute",bottom:-ce.uploadProgressOffset,width:"100%",paddingInlineStart:at+ce.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Qe}:hover ${Tt}`]:{opacity:1,color:ce.colorText},[`${Qe}-error`]:{color:ce.colorError,[`${Qe}-name, ${Ne}-icon ${je}`]:{color:ce.colorError},[He]:{[`${je}, ${je}:hover`]:{color:ce.colorError},[Tt]:{opacity:1}}},[`${Ne}-list-item-container`]:{transition:`opacity ${ce.motionDurationSlow}, height ${ce.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=oe(36237),cn=oe(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Zn=ce=>{const{componentCls:Ne}=ce,ze=`${Ne}-animate-inline`;return[{[`${Ne}-wrapper`]:{[`${ze}-appear, ${ze}-enter, ${ze}-leave`]:{animationDuration:ce.motionDurationSlow,animationTimingFunction:ce.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ze}-appear, ${ze}-enter`]:{animationName:zn},[`${ze}-leave`]:{animationName:Vn}}},{[`${Ne}-wrapper`]:(0,cn.J$)(ce)},zn,Vn]},na=oe(30071),ve=oe(64993);const Ee=ce=>{const{componentCls:Ne,iconCls:ze,uploadThumbnailSize:je,uploadProgressOffset:at}=ce,gt=`${Ne}-list`,Qe=`${gt}-item`;return{[`${Ne}-wrapper`]:{[`
${gt}${gt}-picture,
${gt}${gt}-picture-card,
${gt}${gt}-picture-circle
`]:{[Qe]:{position:"relative",height:je+ce.lineWidth*2+ce.paddingXS*2,padding:ce.paddingXS,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,"&:hover":{background:"transparent"},[`${Qe}-thumbnail`]:Object.assign(Object.assign({},on.vS),{width:je,height:je,lineHeight:`${je+ce.paddingSM}px`,textAlign:"center",flex:"none",[ze]:{fontSize:ce.fontSizeHeading2,color:ce.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Qe}-progress`]:{bottom:at,width:`calc(100% - ${ce.paddingSM*2}px)`,marginTop:0,paddingInlineStart:je+ce.paddingXS}},[`${Qe}-error`]:{borderColor:ce.colorError,[`${Qe}-thumbnail ${ze}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ce.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ce.colorError}}},[`${Qe}-uploading`]:{borderStyle:"dashed",[`${Qe}-name`]:{marginBottom:at}}},[`${gt}${gt}-picture-circle ${Qe}`]:{[`&, &::before, ${Qe}-thumbnail`]:{borderRadius:"50%"}}}}},ye=ce=>{const{componentCls:Ne,iconCls:ze,fontSizeLG:je,colorTextLightSolid:at}=ce,gt=`${Ne}-list`,Qe=`${gt}-item`,He=ce.uploadPicCardSize;return{[`
${Ne}-wrapper${Ne}-picture-card-wrapper,
${Ne}-wrapper${Ne}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,on.dF)()),{display:"inline-block",width:"100%",[`${Ne}${Ne}-select`]:{width:He,height:He,marginInlineEnd:ce.marginXS,marginBottom:ce.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[`> ${Ne}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ne}-disabled):hover`]:{borderColor:ce.colorPrimary}},[`${gt}${gt}-picture-card, ${gt}${gt}-picture-circle`]:{[`${gt}-item-container`]:{display:"inline-block",width:He,height:He,marginBlock:`0 ${ce.marginXS}px`,marginInline:`0 ${ce.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Qe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ce.paddingXS*2}px)`,height:`calc(100% - ${ce.paddingXS*2}px)`,backgroundColor:ce.colorBgMask,opacity:0,transition:`all ${ce.motionDurationSlow}`,content:'" "'}},[`${Qe}:hover`]:{[`&::before, ${Qe}-actions`]:{opacity:1}},[`${Qe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ce.motionDurationSlow}`,[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{zIndex:10,width:je,margin:`0 ${ce.marginXXS}px`,fontSize:je,cursor:"pointer",transition:`all ${ce.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Qe}-actions, ${Qe}-actions:hover`]:{[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{color:new ve.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${Qe}-thumbnail, ${Qe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Qe}-name`]:{display:"none",textAlign:"center"},[`${Qe}-file + ${Qe}-name`]:{position:"absolute",bottom:ce.margin,display:"block",width:`calc(100% - ${ce.paddingXS*2}px)`},[`${Qe}-uploading`]:{[`&${Qe}`]:{backgroundColor:ce.colorFillAlter},[`&::before, ${ze}-eye, ${ze}-download, ${ze}-delete`]:{display:"none"}},[`${Qe}-progress`]:{bottom:ce.marginXL,width:`calc(100% - ${ce.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ne}-wrapper${Ne}-picture-circle-wrapper`]:{[`${Ne}${Ne}-select`]:{borderRadius:"50%"}}}};var bt=ce=>{const{componentCls:Ne}=ce;return{[`${Ne}-rtl`]:{direction:"rtl"}}};const Gt=ce=>{const{componentCls:Ne,colorTextDisabled:ze}=ce;return{[`${Ne}-wrapper`]:Object.assign(Object.assign({},(0,on.Wf)(ce)),{[Ne]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ne}-select`]:{display:"inline-block"},[`${Ne}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var en=(0,yn.Z)("Upload",ce=>{const{fontSizeHeading3:Ne,fontSize:ze,lineHeight:je,lineWidth:at,controlHeightLG:gt}=ce,Qe=Math.round(ze*je),He=(0,Fn.TS)(ce,{uploadThumbnailSize:Ne*2,uploadProgressOffset:Qe/2+at,uploadPicCardSize:gt*2.55});return[Gt(He),dn(He),Ee(He),ye(He),xn(He),Zn(He),bt(He),(0,hn.Z)(He)]},ce=>({actionsColor:ce.colorTextDescription})),Yt=function(ce,Ne,ze,je){function at(gt){return gt instanceof ze?gt:new ze(function(Qe){Qe(gt)})}return new(ze||(ze=Promise))(function(gt,Qe){function He(Rt){try{xe(je.next(Rt))}catch(tn){Qe(tn)}}function Tt(Rt){try{xe(je.throw(Rt))}catch(tn){Qe(tn)}}function xe(Rt){Rt.done?gt(Rt.value):at(Rt.value).then(He,Tt)}xe((je=je.apply(ce,Ne||[])).next())})};const At=`__LIST_IGNORE_${Date.now()}__`,bn=(ce,Ne)=>{const{fileList:ze,defaultFileList:je,onRemove:at,showUploadList:gt=!0,listType:Qe="text",onPreview:He,onDownload:Tt,onChange:xe,onDrop:Rt,previewFile:tn,disabled:rn,locale:Sn,iconRender:kn,isImageUrl:tt,progress:Ft,prefixCls:yt,className:Et,type:gn="select",children:an,style:Zt,itemRender:fn,maxCount:pn,data:Kn={},multiple:qn=!1,action:Yn="",accept:ua="",supportServerRender:fa=!0,rootClassName:Pa}=ce,ia=ae.useContext(nt.Z),Un=rn!=null?rn:ia,[vn,aa]=(0,Ae.Z)(je||[],{value:ze,postState:Ht=>Ht!=null?Ht:[]}),[oa,ra]=ae.useState("drop"),ga=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();(ze||[]).forEach((mn,wn)=>{!mn.uid&&!Object.isFrozen(mn)&&(mn.uid=`__AUTO__${Ht}_${wn}__`)})},[ze]);const Xn=(Ht,mn,wn)=>{let nn=(0,fe.Z)(mn),En=!1;pn===1?nn=nn.slice(-1):pn&&(En=nn.length>pn,nn=nn.slice(0,pn)),(0,$e.flushSync)(()=>{aa(nn)});const Dn={file:Ht,fileList:nn};wn&&(Dn.event=wn),(!En||nn.some(sa=>sa.uid===Ht.uid))&&(0,$e.flushSync)(()=>{xe==null||xe(Dn)})},ha=(Ht,mn)=>Yt(void 0,void 0,void 0,function*(){const{beforeUpload:wn,transformFile:nn}=ce;let En=Ht;if(wn){const Dn=yield wn(Ht,mn);if(Dn===!1)return!1;if(delete Ht[At],Dn===At)return Object.defineProperty(Ht,At,{value:!0,configurable:!0}),!1;typeof Dn=="object"&&Dn&&(En=Dn)}return nn&&(En=yield nn(En)),En}),Xt=Ht=>{const mn=Ht.filter(En=>!En.file[At]);if(!mn.length)return;const wn=mn.map(En=>Wt(En.file));let nn=(0,fe.Z)(vn);wn.forEach(En=>{nn=wt(En,nn)}),wn.forEach((En,Dn)=>{let sa=En;if(mn[Dn].parsedFile)En.status="uploading";else{const{originFileObj:Bn}=En;let Sa;try{Sa=new File([Bn],Bn.name,{type:Bn.type})}catch(Ea){Sa=new Blob([Bn],{type:Bn.type}),Sa.name=Bn.name,Sa.lastModifiedDate=new Date,Sa.lastModified=new Date().getTime()}Sa.uid=En.uid,sa=Sa}Xn(sa,nn)})},Pn=(Ht,mn,wn)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Dn){}if(!_t(mn,vn))return;const nn=Wt(mn);nn.status="done",nn.percent=100,nn.response=Ht,nn.xhr=wn;const En=wt(nn,vn);Xn(nn,En)},Jn=(Ht,mn)=>{if(!_t(mn,vn))return;const wn=Wt(mn);wn.status="uploading",wn.percent=Ht.percent;const nn=wt(wn,vn);Xn(wn,nn,Ht)},Mn=(Ht,mn,wn)=>{if(!_t(wn,vn))return;const nn=Wt(wn);nn.error=Ht,nn.response=mn,nn.status="error";const En=wt(nn,vn);Xn(nn,En)},da=Ht=>{let mn;Promise.resolve(typeof at=="function"?at(Ht):at).then(wn=>{var nn;if(wn===!1)return;const En=ln(Ht,vn);En&&(mn=Object.assign(Object.assign({},Ht),{status:"removed"}),vn==null||vn.forEach(Dn=>{const sa=mn.uid!==void 0?"uid":"name";Dn[sa]===mn[sa]&&!Object.isFrozen(Dn)&&(Dn.status="removed")}),(nn=ga.current)===null||nn===void 0||nn.abort(mn),Xn(mn,En))})},ea=Ht=>{ra(Ht.type),Ht.type==="drop"&&(Rt==null||Rt(Ht))};ae.useImperativeHandle(Ne,()=>({onBatchStart:Xt,onSuccess:Pn,onProgress:Jn,onError:Mn,fileList:vn,upload:ga.current}));const{getPrefixCls:ya,direction:pa,upload:Gn}=ae.useContext(De.E_),Nn=ya("upload",yt),la=Object.assign(Object.assign({onBatchStart:Xt,onError:Mn,onProgress:Jn,onSuccess:Pn},ce),{data:Kn,multiple:qn,action:Yn,accept:ua,supportServerRender:fa,prefixCls:Nn,disabled:Un,beforeUpload:ha,onChange:void 0});delete la.className,delete la.style,(!an||Un)&&delete la.id;const[ca,va]=en(Nn),[La]=(0,ct.Z)("Upload",Ze.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:zt,showDownloadIcon:Pt,removeIcon:Lt,previewIcon:Ot,downloadIcon:un}=typeof gt=="boolean"?{}:gt,Cn=(Ht,mn)=>gt?ae.createElement(Vt,{prefixCls:Nn,listType:Qe,items:vn,previewFile:tn,onPreview:He,onDownload:Tt,onRemove:da,showRemoveIcon:!Un&&ba,showPreviewIcon:zt,showDownloadIcon:Pt,removeIcon:Lt,previewIcon:Ot,downloadIcon:un,iconRender:kn,locale:Object.assign(Object.assign({},La),Sn),isImageUrl:tt,progress:Ft,appendAction:Ht,appendActionVisible:mn,itemRender:fn,disabled:Un}):Ht,_n=Ie()(`${Nn}-wrapper`,Et,Pa,va,Gn==null?void 0:Gn.className,{[`${Nn}-rtl`]:pa==="rtl",[`${Nn}-picture-card-wrapper`]:Qe==="picture-card",[`${Nn}-picture-circle-wrapper`]:Qe==="picture-circle"}),Tn=Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Zt);if(gn==="drag"){const Ht=Ie()(va,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:vn.some(mn=>mn.status==="uploading"),[`${Nn}-drag-hover`]:oa==="dragover",[`${Nn}-disabled`]:Un,[`${Nn}-rtl`]:pa==="rtl"});return ca(ae.createElement("span",{className:_n},ae.createElement("div",{className:Ht,style:Tn,onDrop:ea,onDragOver:ea,onDragLeave:ea},ae.createElement(be,Object.assign({},la,{ref:ga,className:`${Nn}-btn`}),ae.createElement("div",{className:`${Nn}-drag-container`},an))),Cn()))}const jn=Ie()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:Un}),ta=(Ht=>ae.createElement("div",{className:jn,style:Ht},ae.createElement(be,Object.assign({},la,{ref:ga}))))(an?void 0:{display:"none"});return ca(Qe==="picture-card"||Qe==="picture-circle"?ae.createElement("span",{className:_n},Cn(ta,!!an)):ae.createElement("span",{className:_n},ta,Cn()))};var An=ae.forwardRef(bn),lt=function(ce,Ne){var ze={};for(var je in ce)Object.prototype.hasOwnProperty.call(ce,je)&&Ne.indexOf(je)<0&&(ze[je]=ce[je]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,je=Object.getOwnPropertySymbols(ce);at<je.length;at++)Ne.indexOf(je[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,je[at])&&(ze[je[at]]=ce[je[at]]);return ze},Hn=ae.forwardRef((ce,Ne)=>{var{style:ze,height:je}=ce,at=lt(ce,["style","height"]);return ae.createElement(An,Object.assign({ref:Ne},at,{type:"drag",style:Object.assign(Object.assign({},ze),{height:je})}))});const Rn=An;Rn.Dragger=Hn,Rn.LIST_IGNORE=At;var On=Rn}}]);