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__Three__index.0bce75d8.as...

127 lines
382 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[8999],{26227:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={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"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},41464:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={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"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},87169:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},33853:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={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"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},43531:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 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-8H544V328c0-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 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},38819:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(54476),Pe=ge(59301),Ue={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"},Ae=Ue,fe=ge(7657),je=function(Ee,Ce){return Pe.createElement(fe.Z,(0,ae.Z)({},Ee,{ref:Ce,icon:Ae}))},me=Pe.forwardRef(je),Je=me},96408:function(Be,tt){"use strict";tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function Be(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Be.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(Be.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(Be.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(Be.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 Be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var tt=[];function ge(ne,a){var y=tt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=tt.pop();return ne===void 0?new go.Point:ne}function Pe(ne){tt.push(ne)}function Ue(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,ue=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ue=a);else{var se=(E-ee)/re,Me=E-se*b;ie=ne,ue=se*ie+Me}else if(re===0){var ke=(a-x)/oe,dt=a-ke*ne;ie=b,ue=ke*ie+dt}else{var ke=(a-x)/oe,se=(E-ee)/re,dt=a-ke*ne,Me=E-se*b;ie=(Me-dt)/(ke-se),ue=ke*ie+dt}return te.x=ie,te.y=ue,te}function Ae(ne,a,y,x,b,E,z,ee,te,oe,re,ie,ue,se){var Me=1-te,ke=te,dt=ne*Me+y*ke,At=a*Me+x*ke,Jt=y*Me+b*ke,_t=x*Me+E*ke,jt=b*Me+z*ke,Zt=E*Me+ee*ke,pn=dt*Me+Jt*ke,Yt=At*Me+_t*ke,Qt=Jt*Me+jt*ke,ln=_t*Me+Zt*ke,xn=pn*Me+Qt*ke,An=Yt*Me+ln*ke;oe.x=dt,oe.y=At,re.x=pn,re.y=Yt,ie.x=xn,ie.y=An,ue.x=Qt,ue.y=ln,se.x=jt,se.y=Zt}var fe=new go.Spot(.156,.156),je=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(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 x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(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 x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=fe,b.spot2=je,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*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 Be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Je=[];function Oe(){var ne=Je.pop();return ne===void 0?[]:ne}function Ee(ne){ne.length=0,Je.push(ne)}function Ce(ne){for(var a=Oe(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Ze(ne){var a=Ie(ne),y=Oe();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ee(a),y}function Ie(ne){for(var a=Ce(ne),y=Oe(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ue(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Ee(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Ce(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ee(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ee(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=fe,E.spot2=je,E.defaultStretch=go.GraphObject.Uniform,E}),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 x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=me/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*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 x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=me*.4;var oe=ae(),re=ae(),ie=ae(),ue=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ue,ue);var se=ae(),Me=ae(),ke=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,ke,se,Me);var dt=ae(),At=ae(),Jt=ae();Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,dt,At,Jt,ue,ue);var _t=ae(),jt=ae(),Zt=ae();return Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,Zt,_t,jt),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,_t.x*a,_t.y*y,jt.x*a,jt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Zt.x*a,Zt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Jt.x*a,Jt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Me.x*a,Me.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Jt.x*a,Jt.y*y,dt.x*a,dt.y*y,At.x*a,At.y*y).close()),Pe(oe),Pe(re),Pe(ie),Pe(ue),Pe(se),Pe(Me),Pe(ke),Pe(dt),Pe(At),Pe(Jt),Pe(_t),Pe(jt),Pe(Zt),x.defaultStretch=go.GraphObject.Uniform,x}),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 Be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(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 x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var se=ge(oe.x,oe.y);Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Me=ge(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*a,(Me.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=me*.35;var ke=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var dt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(dt),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(se),Pe(Me),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(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 x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(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 x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ue(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Pe(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ue(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Pe(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ue(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ue(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ue(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ue(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Ue(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Ue(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ue(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ue(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=me*b,ee=me*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ue=me*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ue)*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*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)),ie=.025,ue=me*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.05,ue=me*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.025,ue=me*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*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)),ie=.05,ue=me*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y,(te-ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=me*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ue=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var Me=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var ke=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var dt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),dt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),dt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var ue=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=me*.3,E=.3,Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ue=.5,se=0,Me=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Me.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Me.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Me.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ue=z,se=z,Me=re*ue,ke=re*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(Me+ue)/2)*a,(te+(se+ke)/2)*y,(ee-ue)*a,(te+ke)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ue)*a,(te-ke)*y,(ee-Me)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+Me)*a,(te-se)*y,(ee+ue)*a,(te-ke)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+ke)*y,(ee+(Me+ue)/2)*a,(te+(se+ke)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var dt=new go.PathFigure(.2*a,y,!1);x.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var At=new go.PathFigure(.8*a,y,!1);return x.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,re=.1,ie=.9,ue=new go.PathFigure((re-te)*a,ie*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=me*.05,ue=.175,se=.95,ee=new go.PathFigure((ue-re)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.375,se=.95,te=new go.PathFigure((ue-re)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.625,se=.95,oe=new go.PathFigure((ue-re)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.825,se=.95,Me=new go.PathFigure((ue-re)*a,se*y,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y).close());var ke=new go.PathFigure(0,y,!1);return x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(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 x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*me,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},93510: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 Be={},tt="5.0",ge={},ae=null,Pe=!1,Ue=!1,Ae=null,fe=!1,je=null,me=null,Je=0;Je<arguments.length;Je++){var Oe=arguments[Je];if(Oe!==null)switch(typeof Oe){case"number":tt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=Oe:Ae=Oe;break;case"object":typeof Oe.is3D!="undefined"?ae=Oe:ge=Oe;break;case"boolean":Pe=Oe,Ue=!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},ge.material_id!==void 0&&!Ue&&(Pe=!0)),Ae!==null&&ge.id===void 0&&(ge.id=Ae);var Ee="",Ce="",Ze=!1,Ie=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(xe){return parseFloat(xe)>4?parseFloat(xe):5};Be.setHTML5Codebase=function(xe,ye){me=xe,ln(xe,ye)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(xe,ye){var Ge=parseFloat(xe);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}je=xe,Qt(xe,ye)},Be.getHTML5CodebaseVersion=function(){return ne},Be.getParameters=function(){return ge},Be.setFontsCSSURL=function(xe){z=xe},Be.setGiacJSURL=function(xe){},Be.setJNLPFile=function(xe){Ee=xe},Be.setJNLPBaseDir=function(xe){},Be.inject=function(){function xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ye="auto",Ge=ge.id,qe,Ve=!1,mt=0;mt<arguments.length;mt++){var de=arguments[mt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ye=de:Ge=arguments[mt]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&(qe=de)}Qe();function Qe(){if(!fe){setTimeout(Qe,200);return}ye=pn(ye);var lt=qe||document.getElementById(Ge);if(!lt){console.log("possibly bug on ajax loading? ");return}if(Be.removeExistingApplet(lt,!1),ge.width===void 0&&lt.clientWidth&&(ge.width=lt.clientWidth),ge.height===void 0&&lt.clientHeight&&(ge.height=lt.clientHeight),!(ge.width&&ge.height)&&ye==="html5"&&(delete ge.width,delete ge.height),Ie=ye,ye==="screenshot")At(lt,ge);else{var gt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?gt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(gt=(!oe()||xe())&&re()),gt?(Ie="screenshot",_t(lt,ge,Ve,ye)):dt(lt,ge,Ve)}}};function oe(){try{return window.self!==window.top}catch(xe){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Be.getViews=function(){return ae},Be.isJavaInstalled=function(){return!1};var ie=function(xe){var ye=function(mt){var de=JSON.parse(mt),Qe=function(xt){return xt.type=="G"||xt.type=="E"},lt=de.elements?de.elements.filter(Qe)[0]:de;if(!lt||!lt.url){Ge();return}ge.fileName=lt.url,ue(lt.settings||{}),ae.is3D=!0;var gt="https://www.geogebra.org/images/";Be.setPreviewImage(x||lt.previewUrl,gt+"GeoGebra_loading.png",gt+"applet_play.png"),xe()},Ge=function(){ge.onError&&ge.onError(),xn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},qe=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+ge.material_id+"?scope=basic";se("https://"+qe+"/api/proxy.php?path="+encodeURIComponent(Ve),ye,Ge)};function ue(xe){var ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){xe[Ge]=!!xe[Ge]}),ye.forEach(function(Ge){ge[Ge]===void 0&&xe[Ge]!==void 0&&(ge[Ge]=xe[Ge])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(xe,ye,Ge){var qe=new XMLHttpRequest;qe.open("GET",xe),qe.onload=function(){ye(qe.responseText)},qe.onerror=Ge,qe.send()}Be.isHTML5Installed=function(){return!0},Be.getLoadedAppletType=function(){return Ie},Be.setPreviewImage=function(xe,ye,Ge){x=xe,b=ye,E=Ge},Be.removeExistingApplet=function(xe,ye){var Ge;typeof xe=="string"&&(xe=document.getElementById(xe)),Ie=null;var qe=null;for(Ge=0;Ge<xe.childNodes.length;Ge++){var Ve=xe.childNodes[Ge],mt=Ve.className;mt==="applet_screenshot"?ye?(Ve.style.display="block",Ie="screenshot"):Ve.style.display="none":mt!=="applet_scaler prerender"&&(xe.removeChild(Ve),qe=mt&&mt.indexOf("appletParameters")!=-1?Ve.id:null,Ge--)}var de=ge.id!==void 0?ge.id:qe,Qe=window[de];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[de]=null)},Be.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xe=Be.getAppletObject();return xe&&typeof xe.recalculateEnvironments=="function"?(xe.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.startAnimation=="function"?(xe.startAnimation(),!0):!1},Be.stopAnimation=function(){var xe=Be.getAppletObject();return xe&&typeof xe.stopAnimation=="function"?(xe.stopAnimation(),!0):!1},Be.getAppletObject=function(){var xe=ge.id!==void 0?ge.id:"ggbApplet";return window[xe]},Be.resize=function(){};var Me=function(xe,ye,Ge){var qe=document.createElement("param");qe.setAttribute("name",ye),qe.setAttribute("value",Ge),xe.appendChild(qe)},ke=function(xe){return xe&&xe!=="false"},dt=function(xe,ye,Ge){te(ne)<=4.2&&(Ge=!0);var qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var mt=ye.width,de=ye.height;if(ye.disableAutoScale=ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ye.disableAutoScale,ye.width!==void 0)if(te(ne)<=4.4)ke(ye.showToolBar)&&(ye.height-=7),ke(ye.showAlgebraInput)&&(ye.height-=37),ye.width<605&&ke(ye.showToolBar)&&(ye.width=605,mt=605);else{var Qe=100;(ke(ye.showToolBar)||ke(ye.showMenuBar))&&(ye.hasOwnProperty("customToolBar")&&(ye.customToolbar=ye.customToolBar),Qe=ke(ye.showMenuBar)?245:155),mt<Qe&&(ye.width=Qe,mt=Qe)}Ve.style.border="none",Ve.style.display="inline-block";for(var lt in ye)ye.hasOwnProperty(lt)&&lt!=="appletOnLoad"&&Ve.setAttribute("data-param-"+lt,ye[lt]);z&&Ve.setAttribute("data-param-fontscssurl",z),Be.resize=function(){GGBAppletUtils.responsiveResize(xe,ye)},window.addEventListener("resize",function(zt){Be.resize()});var gt=typeof ye.appletOnLoad=="function"?ye.appletOnLoad:function(){};if(!Ge&&ye.width!==void 0){ye.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var xt=xe.querySelector(".applet_scaler.prerender"),ze=xt!==null;if(ze)var Le=xt.querySelector(".ggb_preview");else{var Le=Zt(mt,de,ye.borderColor,!1);xt=document.createElement("div"),xt.className="applet_scaler",xt.style.position="relative",xt.style.display="block",xt.style.width=mt+"px",xt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),te(ne)>=5?(ye.appletOnLoad=function(zt){var Nt=xe.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xt),window.GGBT_wsf_view&&$(window).trigger("resize"),gt(zt)},ze||xt.appendChild(Le)):Ve.appendChild(Le),xt.appendChild(Ve),ze||xe.appendChild(xt),setTimeout(function(){Be.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ve),xe.appendChild(pe),ye.appletOnLoad=function(zt){Be.resize(),gt(zt)}}function He(zt,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(zt,Nt.appletOnLoad):renderGGBElement(zt),xn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function Re(zt,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:zt,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(un){He(un.article,un.params)}),html5AppletsToProcess=null)},te(ne)<5&&(zt.className+=" geogebraweb")):He(zt,Nt)}if(qe){scriptLoadStarted=!0;for(var nt=0;nt<Ve.childNodes.length;nt++){var ft=Ve.childNodes[nt].tagName;ft==="TABLE"&&(Ve.removeChild(Ve.childNodes[nt]),nt--)}if(ggbHTML5LoadedScript!==null){var Lt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Lt!=null&&Lt.parentNode.removeChild(Lt)}var Dt=document.createElement("script"),Mt=function(){Re(Ve,ye)};Dt.src=Ce+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Dt.src,xn("GeoGebra HTML5 codebase loaded: '"+Ce+"'.",ye),!me&&(!je||je=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Mt()):Ce.requirejs?__webpack_require__.e(3861).then(function(){var zt=[__webpack_require__(40341)];Mt.apply(null,zt)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=Mt,xe.appendChild(Dt))}else Re(Ve,ye);ye.height=de,ye.width=mt},At=function(xe,ye,Ge){var qe=Zt(ye.width,ye.height,ye.borderColor,Ge),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=ye.width+"px",Ve.style.height=ye.height+"px",Ve.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),Ve.appendChild(qe);var mt=GGBAppletUtils.getScale(ye,xe,Ge);Ge?(xe.appendChild(jt()),window.GGBT_wsf_view||(xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),xe.appendChild(Ve),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(Ve,mt),Ve.style.width=ye.width+"px",Ve.style.height=ye.height+"px",Ve.parentNode.style.width=ye.width*mt+"px",Ve.parentNode.style.height=ye.height*mt+"px"),Be.resize=function(){Jt(xe,qe,Ve,Ge)},window.addEventListener("resize",function(de){Be.resize()}),Be.resize()};function Jt(xe,ye,Ge,qe){if(xe.contains(ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}var Ve=GGBAppletUtils.getScale(ge,xe,qe);Ge.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(Ge,Ve),Ge.parentNode.style.width=ge.width*Ve+"px",Ge.parentNode.style.height=ge.height*Ve+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=ge.width+"px",Ge.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Be.onExitFullscreen=function(xe,ye){ye.appendChild(xe)};var _t=function(xe,ye,Ge,qe){At(xe,ye,!0);for(var Ve=function(){var Qe=[];for(de=0;de<xe.childNodes.length;de++)Qe.push(xe.childNodes[de]);if(window.GGBT_wsf_view){var lt=window.GGBT_wsf_view.renderFullScreen(xe,ye.id),gt=document.getElementById("fullscreencontainer"),xt=jQuery(xe).find(".fullscreencontent");xt.length>0?(lt.remove(),xt.attr("id","fullscreencontent").show(),jQuery(gt).append(xt),window.dispatchEvent(new Event("resize"))):dt(lt,ye,!1),window.GGBT_wsf_view.launchFullScreen(gt)}else Ie=qe,dt(xe,ye,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)xe.removeChild(Qe[de])},mt=xe.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",Ve,!1),mt[de].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},jt=function(){var xe=document.createElement("div");if(xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ye='.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");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=ye:Ge.appendChild(document.createTextNode(ye)),document.getElementsByTagName("head")[0].appendChild(Ge)}return xe},Zt=function(xe,ye,Ge,qe){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=xe-2+"px",Ve.style.height=ye-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var mt="lightgrey";Ge!==void 0&&(Ge==="none"?mt="transparent":mt=Ge),Ve.style.border="1px solid "+mt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var Qe,lt,gt;if(!qe){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,lt=360,lt>xe/4*3&&(lt=xe/4*3),gt=lt/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",lt),Qe.setAttribute("height",gt);var xt=(xe-lt)/2,ze=(ye-gt)/2;Qe.style.left=xt+"px",Qe.style.top=ze+"px",Ve.appendChild(Qe)}}return Ve.appendChild(de),Ve},pn=function(xe){return xe=xe.toLowerCase(),xe==="html5"||xe==="screenshot"?xe:"html5"},Yt=["web","webSimple","web3d","tablet","tablet3d","phone"],Qt=function(xe,ye){if(ne=xe,ye){ln(ne,!0);return}var Ge=!Pe;if(Ge){var qe=te(ne);!isNaN(qe)&&qe<4.4&&(Ge=!1)}var Ve,mt;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ne.indexOf("//");de>0?mt=ne:de===0?mt=Ve+ne:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in Yt)if(ne.slice(Yt[Qe].length*-1)===Yt[Qe]||ne.slice((Yt[Qe].length+1)*-1)===Yt[Qe]+"/"){ln(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!ke(ge.showToolBar)&&!ke(ge.showMenuBar)&&!ke(ge.showAlgebraInput)&&!ke(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?mt+="webSimple/":mt+="web3d/",ln(mt,!1)},ln=function(xe,ye){if(xe.requirejs){Ce=xe;return}xe.slice(-1)!=="/"&&(xe+="/"),Ce=xe,ye===null&&(ye=xe.indexOf("http")===-1),Ze=ye,a="web.nocache.js",y=!1;var Ge=Ce.split("/");Ge.length>1&&(!ye&&Ge[Ge.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Yt.indexOf(Ge[Ge.length-2])>=0&&(a=Ge[Ge.length-2]+".nocache.js")),Ge=xe.split("/"),ne=Ge[Ge.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 qe=parseFloat(ne);qe!==NaN&&qe<5&&xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead."),Qt("5.0",ye))},xn=function(xe,ye){window.console&&window.console.log&&(!ye||typeof ye.showLogging=="undefined"||ye.showLogging&&ye.showLogging!=="false")&&console.log(xe)};ge.material_id!==void 0?ie(An):An();function An(){var xe=tt;je!==null?xe=je:parseFloat(xe)<5&&(xe="5.0"),Qt(xe,!1),me!==null&&ln(me,Ze),fe=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function tt(fe,je){je!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+je+","+je+")",fe.style.webkitTransform="scale("+je+","+je+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ge(fe,je,me,Je,Oe,Ee){var Ce=null;if(Ee!=null&&Ee!="")for(var Ze=fe.parentNode;Ze!=null;)if((" "+Ze.className+" ").indexOf(" "+Ee+" ")>-1){Ce=Ze;break}else Ze=Ze.parentNode;var Ie=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ce)Ie=Ce.offsetWidth,ne=Math.max(Je?Ce.offsetWidth:0,Ce.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return fe&&((me===void 0||!me)&&je>0&&je+y<Ie?Ie=je:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=E)),{width:Ie,height:ne}}function ae(fe,je,me,Je,Oe){if(fe.isScreenshoGenerator)return 1;var Ee=Je!==void 0&&Je,Ce=fe.noScaleMargin!=null&&fe.noScaleMargin,Ze=function(ee){return ee&&ee!=="false"},Ie=Ze(fe.autoHeight),ne=ge(je,fe.width,me,Ie,Ee&&window.GGBT_wsf_view||Ce,Oe),a=parseInt(ne.width),y=fe.width,x=fe.height;if(y===void 0){var b=je.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ee?1:ne.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Pe(fe,je,me){var Je=1,Oe,Ee=!1;if(fe.hasOwnProperty("allowUpscale")&&(Ee=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Je=parseFloat(fe.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(Ee=!0)),je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Oe=ae(fe,je,Ee,me,fe.scaleContainerClass);else return Je;return Ee&&(!fe.hasOwnProperty("scale")||Je===1)?Oe:Math.min(Je,Oe)}function Ue(fe){var je=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=fe.getBoundingClientRect(),Oe=(je-Je.width)/2,Ee=(me-Je.height)/2;Ee<0&&(Ee=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?fe.style.left="40px":fe.style.left=Oe+"px",fe.style.top=Ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee<40?fe.style.top="40px":fe.style.top=Ee+"px",fe.style.left=Oe+"px")}function Ae(fe,je){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(je.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Je=Pe(je,fe);Be()&&me.setAttribute("data-param-scale",Je);for(var Oe=null,Ee=0;Ee<fe.childNodes.length;Ee++)if(fe.childNodes[Ee].className!==void 0&&fe.childNodes[Ee].className.match(/^applet_scaler/)){Oe=fe.childNodes[Ee];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ce=je.id!==void 0?je.id:"ggbApplet",Ze=window[Ce];(Ze==null||!Ze.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Oe.parentNode.style.width=je.width*Je+"px",Oe.parentNode.style.height=je.height*Je+"px",tt(Oe,Je)):(tt(Oe,1),Oe.parentNode.style.width=je.width+"px",Oe.parentNode.style.height=je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ue(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:Be,positionCenter:Ue,getScale:Pe,scaleElement:tt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Be=n.location.search;return Be.indexOf(J)!=-1||Be.indexOf(K)!=-1}function q(Be,tt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Be){var tt=s[L].bindings;s[L].bindings=function(){for(var ge=tt?tt():{},ae=Be[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var Ue=ae[Pe];ge[Ue[O]]=Ue[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Be=o.createElement(Q);if(Be.id=L,Be.style.cssText=R+S,Be.tabIndex=-1,o.body.appendChild(Be),t=Be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(Be){function tt(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ue=Pe();if(Ue){ae();return}function Ae(){if(!Ue){if(!Pe())return;Ue=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var fe=setInterval(function(){Ae()},$)}function ge(ae){var Pe=u(),Ue=Pe.body,Ae=Pe.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=ae,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ue.appendChild(Ae)}tt(function(){ge(Be)})}webModule.__startLoadingFragment=function(Be){return C(Be)},webModule.__installRunAsyncCode=function(Be){var tt=u(),ge=tt.body,ae=tt.createElement(_);ae.language=ab,ae.text=Be,ge.appendChild(ae),ge.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(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var tt=c[Be];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function Be(fe){var je=fe.lastIndexOf(rb);je==-1&&(je=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Je=fe.lastIndexOf(tb,Math.min(me,je));return Je>=O?fe.substring(O,Je+P):W}function tt(fe){if(!fe.match(/^\w+:\/\//)){var je=o.createElement(ub);je.src=fe+vb,fe=Be(je.src)}return fe}function ge(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function ae(){for(var fe=o.getElementsByTagName(_),je=O;je<fe.length;++je)if(fe[je].src.indexOf(xb)!=-1)return Be(fe[je].src);return W}function Pe(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Ue(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Ae=ge();return Ae==W&&(Ae=ae()),Ae==W&&(Ae=Pe()),Ae==W&&Ue()&&(Ae=Be(o.location.href)),Ae=tt(Ae),Ae}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],tt=O,ge=[],ae=[];function Pe(fe){var je=ae[fe](),me=ge[fe];if(je in me)return je;var Je=[];for(var Oe in me)Je[me[Oe]]=Oe;throw r&&r(fe,Je,je),null}if(__gwt_isKnownPropertyValue=function(fe,je){return je in ge[fe]},webModule.__getPropMap=function(){var fe={};for(var je in ge)ge.hasOwnProperty(je)&&(fe[je]=Pe(je));return fe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ue;try{Ue=Cb;var Ae=Ue.indexOf(Db);Ae!=-1&&(tt=parseInt(Ue.substring(Ae+P),$),Ue=Ue.substring(O,Ae))}catch(fe){}return webModule.__softPermutationId=tt,C(Ue+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})()},28735:function(Be,tt,ge){"use strict";ge.d(tt,{Ax:function(){return Ae},Ds:function(){return fe},KI:function(){return me},SI:function(){return Ue},f1:function(){return Pe}});var ae=ge(74128);function Pe(Je){let Oe=!0;if(Je.length>0){for(let Ee=0;Ee<Je.length;Ee++)if(Je[Ee].compile_success==0||!Je[Ee].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ue(Je,Oe=""){let Ee=[];for(let Ce=0;Ce<Je.length;Ce++){let Ze=Je[Ce],Ie=Oe?`${Oe}/${Ze.name}`:`${Ze.name}`;Ee.push({title:Ze.name,type:Ze.type,isLeaf:Ze.type!=="tree",key:Ie})}return Ee}function Ae(Je,Oe,Ee){for(let Ce=0;Ce<Je.length;Ce++){let Ze=Je[Ce];if(Ze.key===Oe){Ze.children=Ee;break}Ze.children&&Ae(Ze.children,Oe,Ee)}return Je}function fe(Je,Oe,Ee){let Ce;return function(){let Ze=this,Ie=arguments,ne=function(){Ce=null,Ee||Je.apply(Ze,Ie)},a=Ee&&!Ce;clearTimeout(Ce),Ce=setTimeout(ne,Oe),a&&Je.apply(Ze,Ie)}}const je=!0,me=ae.Z.API_SERVER},16750:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ce}});var ae=ge(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ue=ge(92310),Ae=ge.n(Ue),fe=ge(71418),je=ge(2859),me=ge(38147),Je=ge(65862),Oe=(Ze,Ie,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ze,Ie)).next())}),Ce=({data:Ze,className:Ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ue,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ze!=null&&Ze.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ze!=null&&Ze.src&&Me()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ze==null?void 0:Ze.visible]);const Me=()=>Oe(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const _t=yield(0,Je.ZJ)(Ze==null?void 0:Ze.src);z.current.src="",z.current.src=_t,z.current.onload=function(){Jt()},ie(!1),se("")}),ke=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},dt=_t=>Oe(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const jt=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ze.title,file:_t.dataUrl}});jt!=null&&jt.id&&!E?(yield(0,me.ZP)(`/api/attachments/${Ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:jt==null?void 0:jt.id,settings:JSON.stringify(_t.state)}})).status===0&&x():jt!=null&&jt.id&&x(jt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),At=()=>{const _t=document.querySelector('a[href="https://markerjs.com/"]');_t&&_t.parentNode&&(_t.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Zt=>{const pn=document.querySelector(Zt.name);pn&&pn.setAttribute("title",Zt.title)})},Jt=()=>{ee.current=new je.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",dt),ee.current.addEventListener("beforeclose",ke),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ze!=null&&Ze.snapshotData&&ee.current.restoreState(Ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return ae.createElement(ae.Fragment,null,(Ze==null?void 0:Ze.visible)&&ae.createElement(fe.Z,{spinning:re,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ae()(Pe.imageDimensions,Ie,ne?Pe.fullWidth:""),style:a},ae.createElement("img",{className:Pe.img,ref:z}))))}},99298:function(Be,tt,ge){"use strict";var ae=ge(59301),Pe=ge(95237),Ue=ge(43604),Ae=ge(99313),fe=ge(3113),je=ge(6339),me=ge(96408),Je=ge(48136),Oe=ge(59301);const Ee=(0,ae.forwardRef)(({callback:Ce,showSaveButton:Ze,value:Ie=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(Ue.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(je.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},Oe.createElement("h1",null,oe.name),Oe.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Oe.createElement(Ue.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Oe.createElement(je.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,te)=>Oe.createElement(Ue.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(je.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Oe.createElement(Ue.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Oe.createElement(je.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ce&&Ce(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Oe.createElement("div",{className:me.Z.mathWrap},Oe.createElement(Ae.default,{defaultActiveKey:"1",items:E}),Oe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),Ze&&Oe.createElement("div",{className:me.Z.button},Oe.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=Ee},85533:function(Be,tt,ge){"use strict";ge.d(tt,{h:function(){return ee}});var ae=ge(59301),Pe=ge(57809),Ue=ge(78241),Ae=ge(3113),fe=ge(89780),je=ge.n(fe),me=ge(45559),Je=ge(42313),Oe=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Oe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ie.call(oe,re)&&a(te,re,oe[re]);if(Ze)for(var re of Ze(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ee(te,Ce(oe));const b=Pe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};tt.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ue(Me){ie(z[Me][1])}function se(Me){te(Me)}return ae.createElement(Ue.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ue.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:Me=>Me.parentNode,onChange:ue},Object.keys(z).map(Me=>ae.createElement(b,{key:Me,value:Me},z[Me][0])))),ae.createElement(Ue.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ue=(0,ae.useRef)(),[se,Me]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let ke=function(dt){const At=dt.getValue();oe&&oe(At)};return se.on("change",ke),()=>{se.off("change",ke)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(ue.current&&!se){const ke=je().fromTextArea(ue.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Me(ke)}},[ue.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},96565:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Qn}});var ae=ge(59301),Pe=ge(89780),Ue=ge.n(Pe),Ae=ge(76374),fe=ge(45559),je=ge(6313),me=ge(25717),Je=ge(99498),Oe=ge(25419),Ee=ge(67549),Ce=ge(6339),Ze=({value:he="",className:ve,showTextOnly:ce,showLines:et,style:pt={}})=>{const ut=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},Ie=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(he,ve,ce)=>ve in he?ne(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,ee=(he,ve)=>{for(var ce in ve||(ve={}))b.call(ve,ce)&&z(he,ce,ve[ce]);if(x)for(var ce of x(ve))E.call(ve,ce)&&z(he,ce,ve[ce]);return he},te=(he,ve)=>a(he,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:he,title:ve,icon:ce,actionName:et,className:pt="",children:ut}){function tn(){he(et)}return Ie.createElement("a",{title:ve,className:pt,onClick:tn},Ie.createElement("i",{className:`${ce}`}),ut)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:ce,onActionCallback:et,fullScreen:pt,insertTemp:ut,hidetoolBar:tn,extraUse:Tt})=>{const Xt=[...oe,{title:`${he?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${he?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!tn&&Xt.map((fn,_n)=>Ie.createElement("li",{key:_n},fn.actionName?Ie.createElement(re,te(ee({},fn),{onActionCallback:et})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(re,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ce?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Tt&&Ie.createElement("li",null,Tt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(re,{icon:`${pt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},ue=ge(57261),se=ge(78241),Me=ge(92832),ke=ge(3113),dt=Object.defineProperty,At=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,pn=(he,ve,ce)=>ve in he?dt(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,Yt=(he,ve)=>{for(var ce in ve||(ve={}))jt.call(ve,ce)&&pn(he,ce,ve[ce]);if(_t)for(var ce of _t(ve))Zt.call(ve,ce)&&pn(he,ce,ve[ce]);return he},Qt=(he,ve)=>At(he,Jt(ve));const ln={labelCol:{span:4},wrapperCol:{span:20}};var xn=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(se.default,Qt(Yt({},ln),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Me.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Me.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},An=ge(85533),xe=ge(45053),ye=ge(43418),Ge=ge(95237),qe=ge(16750),Ve=ge(59301),mt=({callback:he,onCancel:ve})=>{const ce=document.createElement("canvas"),et=ce.getContext("2d");ce.width=1e3,ce.height=800,et.fillStyle="#ffffff",et.fillRect(0,0,ce.width,ce.height);const pt=ce.toDataURL("image/png");return Ve.createElement(ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(Ge.Z,{style:{height:"100vh"}},Ve.createElement(qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pt,visible:!0,title:String(Date.now())},onOk:ut=>{he({src:ut.url})},onClose:ve})))},de=ge(12378);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<2)},Qe.prototype.alignLeft=function(){var he=this.diagram;he.startTransaction("aligning left");var ve=1/0;he.selection.each(function(ce){ce instanceof go.Link||(ve=Math.min(ce.position.x,ve))}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ve,ce.position.y))}),he.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var he=this.diagram;he.startTransaction("aligning right");var ve=-1/0;he.selection.each(function(ce){if(!(ce instanceof go.Link)){var et=ce.actualBounds.x+ce.actualBounds.width;ve=Math.max(et,ve)}}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ve-ce.actualBounds.width,ce.position.y))}),he.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var he=this.diagram;he.startTransaction("alignTop");var ve=1/0;he.selection.each(function(ce){ce instanceof go.Link||(ve=Math.min(ce.position.y,ve))}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,ve))}),he.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var he=this.diagram;he.startTransaction("aligning bottom");var ve=-1/0;he.selection.each(function(ce){if(!(ce instanceof go.Link)){var et=ce.actualBounds.y+ce.actualBounds.height;ve=Math.max(et,ve)}}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,ve-ce.actualBounds.height))}),he.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center X");var ce=ve.actualBounds.x+ve.actualBounds.width/2;he.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(ce-et.actualBounds.width/2,et.actualBounds.y))}),he.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center Y");var ce=ve.actualBounds.y+ve.actualBounds.height/2;he.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(et.actualBounds.x,ce-et.actualBounds.height/2))}),he.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(he){var ve=this.diagram;ve.startTransaction("align Column"),he===void 0&&(he=0),he=parseFloat(he);var ce=new Array;ve.selection.each(function(Tt){Tt instanceof go.Link||ce.push(Tt)});for(var et=0;et<ce.length-1;et++){var pt=ce[et],ut=pt.actualBounds.y+pt.actualBounds.height+he,tn=ce[et+1];tn.move(new go.Point(pt.actualBounds.x,ut))}ve.commitTransaction("align Column")},Qe.prototype.alignRow=function(he){he===void 0&&(he=0),he=parseFloat(he);var ve=this.diagram;ve.startTransaction("align Row");var ce=new Array;ve.selection.each(function(Tt){Tt instanceof go.Link||ce.push(Tt)});for(var et=0;et<ce.length-1;et++){var pt=ce[et],ut=pt.actualBounds.x+pt.actualBounds.width+he,tn=ce[et+1];tn.move(new go.Point(ut,pt.actualBounds.y))}ve.commitTransaction("align Row")},Qe.prototype.canRotate=function(he){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},Qe.prototype.rotate=function(he){he===void 0&&(he=90);var ve=this.diagram;ve.startTransaction("rotate "+he.toString());var ve=this.diagram;ve.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=he)}),ve.commitTransaction("rotate "+he.toString())},Qe.prototype.pullToFront=function(){var he=this.diagram;he.startTransaction("pullToFront");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var et=0;ce.parts.each(function(pt){if(!pt.isSelected){var ut=pt.zOrder;isNaN(ut)?pt.zOrder=0:et=Math.max(et,ut)}}),ve.set(ce,et)}),he.selection.each(function(ce){Qe._assignZOrder(ce,ve.get(ce.layer)+1)}),he.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var he=this.diagram;he.startTransaction("pushToBack");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var et=0;ce.parts.each(function(pt){if(!pt.isSelected){var ut=pt.zOrder;isNaN(ut)?pt.zOrder=0:et=Math.min(et,ut)}}),ve.set(ce,et)}),he.selection.each(function(ce){Qe._assignZOrder(ce,ve.get(ce.layer)-1-Qe._findGroupDepth(ce))}),he.commitTransaction("pushToBack")},Qe._assignZOrder=function(he,ve,ce){ce===void 0&&(ce=he),he.layer===ce.layer&&(he.zOrder=ve),he instanceof go.Group&&he.memberParts.each(function(et){Qe._assignZOrder(et,ve+1,ce)})},Qe._findGroupDepth=function(he){if(he instanceof go.Group){var ve=0;return he.memberParts.each(function(ce){ve=Math.max(ve,Qe._findGroupDepth(ce))}),ve+1}else return 0},Qe.prototype.doKeyDown=function(){var he=this.diagram;if(he!==null){var ve=he.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var he=new Array;return this.diagram.nodes.each(function(ve){he.push(ve)}),this.diagram.parts.each(function(ve){he.push(ve)}),he},Qe.prototype._arrowKeyMove=function(){var he=this.diagram,ve=he.lastInput,ce=0,et=0;if(ve.control||ve.meta)ce=1,et=1;else if(he.grid!==null){var pt=he.grid.gridCellSize;et=pt.width,ce=pt.height}he.startTransaction("arrowKeyMove"),he.selection.each(function(ut){ve.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-ce)):ve.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+ce)):ve.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-et,ut.actualBounds.y)):ve.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+et,ut.actualBounds.y))}),he.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var he=this.diagram,ve=he.lastInput,ce=null;ve.key==="Up"?ce=this._findNearestPartTowards(270):ve.key==="Down"?ce=this._findNearestPartTowards(90):ve.key==="Left"?ce=this._findNearestPartTowards(180):ve.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(ve.shift?ce.isSelected=!0:ve.control||ve.meta?ce.isSelected=!ce.isSelected:he.select(ce))},Qe.prototype._findNearestPartTowards=function(he){var ve=this.diagram.selection.first();if(ve===null)return null;for(var ce=ve.actualBounds.center,et=this._getAllParts(),pt=1/0,ut=ve,tn=0;tn<et.length;tn++){var Tt=et[tn];if(Tt!==ve&&Tt.canSelect()){var Xt=Tt.actualBounds.center,fn=ce.directionPoint(Xt),_n=this._angleCloseness(fn,he);if(_n<=45){var Ye=ce.distanceSquaredPoint(Xt);Ye*=1+Math.sin(_n*Math.PI/180),Ye<pt&&(pt=Ye,ut=Tt)}}}return ut},Qe.prototype._angleCloseness=function(he,ve){return Math.min(Math.abs(ve-he),Math.min(Math.abs(ve+360-he),Math.abs(ve-360-he)))},Qe.prototype._arrowKeyTree=function(){var he=this.diagram,ve=he.selection.first();if(ve instanceof go.Node){var ce=he.lastInput;if(ce.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)he.commandHandler.canExpandTree(ve)&&he.commandHandler.expandTree(ve);else{var et=this._sortTreeChildrenByY(ve).first();et!==null&&he.select(et)}}else if(ce.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)he.commandHandler.canCollapseTree(ve)&&he.commandHandler.collapseTree(ve);else{var pt=ve.findTreeParentNode();pt!==null&&he.select(pt)}else if(ce.key==="Up"){var pt=ve.findTreeParentNode();if(pt!==null){var ut=this._sortTreeChildrenByY(pt),tn=ut.indexOf(ve);if(tn>0){for(var Tt=ut.elt(tn-1);Tt!==null&&Tt.isTreeExpanded&&!Tt.isTreeLeaf;){var Xt=this._sortTreeChildrenByY(Tt);Tt=Xt.last()}Tt!==null&&he.select(Tt)}else he.select(pt)}}else if(ce.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var et=this._sortTreeChildrenByY(ve).first();et!==null&&he.select(et)}else for(;ve!==null;){var pt=ve.findTreeParentNode();if(pt===null)break;var ut=this._sortTreeChildrenByY(pt),tn=ut.indexOf(ve);if(tn<ut.length-1){he.select(ut.elt(tn+1));break}else ve=pt}var fn=he.selection.first();fn!==null&&he.scrollToRect(fn.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(he){var ve=new go.List().addAll(he.findTreeChildrenNodes());return ve.sort(function(ce,et){var pt=ce.location,ut=et.location;return pt.y<ut.y?-1:pt.y>ut.y?1:pt.x<ut.x?-1:pt.x>ut.x?1:0}),ve},Qe.prototype.copyToClipboard=function(he){go.CommandHandler.prototype.copyToClipboard.call(this,he),this._lastPasteOffset.set(this.pasteOffset)},Qe.prototype.pasteFromClipboard=function(){var he=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(he,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),he},Object.defineProperty(Qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(he){if(he!=="move"&&he!=="select"&&he!=="scroll"&&he!=="tree"&&he!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+he);this._arrowKeyBehavior=he}}),Object.defineProperty(Qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(he){if(!(he instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+he);this._pasteOffset.set(he)}});var lt=Qe,gt=ge(25863),xt=ge(43604),ze=ge(38147),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),He=(he,ve,ce)=>new Promise((et,pt)=>{var ut=Xt=>{try{Tt(ce.next(Xt))}catch(fn){pt(fn)}},tn=Xt=>{try{Tt(ce.throw(Xt))}catch(fn){pt(fn)}},Tt=Xt=>Xt.done?et(Xt.value):Promise.resolve(Xt.value).then(ut,tn);Tt((ce=ce.apply(he,ve)).next())});function Re({onCancel:he,callback:ve}){let ce=(0,ae.useRef)(),et=(0,ae.useRef)(),pt=(0,ae.useRef)(),ut=(0,ae.useRef)(!1);const tn=(0,ae.useRef)(!1),[Tt,Xt]=(0,ae.useState)(0);function fn(){const Ye=de.bx.make,Kt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ce.current=new de.S0(et.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var st=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);st||We.diagram.currentTool.doCancel()},commandHandler:Ye(lt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var st=We.subject;st.location=st.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var st=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var st=We.parameter.part;st.invalidateConnectedLinks();var Pt=We.subject;We.diagram.toolManager.linkingTool.isForwards?Pt.toNode.invalidateConnectedLinks():Pt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Ye(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),Ye(de.bn,{name:"SHAPE",fill:Kt.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")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(We,st){var Pt=(vt,It)=>{vt.handled=!0,vt.diagram.model.commit(Rt=>{var $t=It.part.adornedPart,gn=new de.E9().setRectSpot($t.actualBounds,We);gn.subtract($t.location),gn.scale(2,2),gn.x+=Math.sign(gn.x)*130,gn.y+=Math.sign(gn.y)*130,gn.add($t.location),gn.snapToGridPoint(vt.diagram.grid.gridOrigin,vt.diagram.grid.gridCellSize);var dn=Rt.copyNodeData($t.data);Rt.setGroupKeyForNodeData(dn,Rt.getGroupKeyForNodeData($t.data)),Rt.addNodeData(dn);var qn={from:$t.key,to:Rt.getKeyForNodeData(dn)};Rt.addLinkData(qn);var aa=vt.diagram.findNodeForData(dn);aa.location=gn,vt.diagram.select(aa),setTimeout(()=>{vt.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:st,alignment:We,alignmentFocus:We.opposite(),width:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?25:18,height:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Kt.white,strokeWidth:4,mouseEnter:(vt,It)=>It.fill="dodgerblue",mouseLeave:(vt,It)=>It.fill="orange",isActionable:!0,click:Pt,contextClick:Pt})}function Xn(We){return Ye(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:(st,Pt)=>Pt.fill="dodgerblue",mouseLeave:(st,Pt)=>Pt.fill="orange",click:(st,Pt)=>{st.diagram.commandHandler.showContextMenu(Pt.part.adornedPart)}},We||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Xn({alignment:new de.z6(.75,0)}));function Fn(We,st){return(Pt,vt)=>{Pt.handled=!0,Pt.diagram.model.commit(It=>{It.set(vt.part.adornedPart.data,We,st)})}}function le(We,st){return st||(st="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(Pt,vt)=>vt.stroke="dodgerblue",mouseLeave:(Pt,vt)=>vt.stroke="lightgray",click:Fn(st,We),contextClick:Fn(st,We)})}function Fe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Kt.white,"fill"),le(Kt.beige,"fill"),le(Kt.extralightblue,"fill"),le(Kt.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Kt.lightgray,"fill"),le(Kt.lightgreen,"fill"),le(Kt.lightblue,"fill"),le(Kt.lightred,"fill")))]}function we(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Kt.black),le(Kt.green),le(Kt.blue),le(Kt.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Kt.white),le(Kt.magenta),le(Kt.purple),le(Kt.orange)))]}function Ne(We,st){return st||(st="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(Pt,vt)=>vt.background="dodgerblue",mouseLeave:(Pt,vt)=>vt.background="transparent",click:Fn(st,We),contextClick:Fn(st,We)})}function Xe(We,st){return st||(st="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(Pt,vt)=>vt.background="dodgerblue",mouseLeave:(Pt,vt)=>vt.background="transparent",click:Fn(st,We),contextClick:Fn(st,We)})}function Ke(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ne(1),Ne(2),Ne(3),Ne(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Xe(null),Xe([2,4]),Xe([4,4])))]}function _e(We,st){return st||(st="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(Pt,vt)=>vt.fill="dodgerblue",mouseLeave:(Pt,vt)=>vt.fill="lightgray",click:Fn(st,We),contextClick:Fn(st,We)})}ce.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Rectangle"),_e("RoundedRectangle"),_e("Ellipse"),_e("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Parallelogram2"),_e("ManualOperation"),_e("Procedure"),_e("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Terminator"),_e("CreateRequest"),_e("Document"),_e("TriangleDown"))),Fe(),we(),Ke()),ce.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,st)=>{var Pt=st.addMembers(st.diagram.selection,!0);Pt||st.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:Kt.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")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(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"))),ce.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Ye("ContextMenu",Fe(),we(),Ke()),ce.current.linkTemplate=Ye(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",We=>We>=1?10:0),new de.KX("toShortLength","dir",We=>We>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(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",We=>We===1)),Ye(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",We=>We>=1),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),Ye(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",We=>We===2),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:De(2)},new de.KX("pathPattern","thickness",De)),Xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function De(We){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function bt(We){var st="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?st="M0 0 M16 16 M0 8 L16 8":We===2&&(st="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:st,margin:2,background:"transparent",mouseEnter:(Pt,vt)=>vt.background="dodgerblue",mouseLeave:(Pt,vt)=>vt.background="transparent",click:Fn("dir",We),contextClick:Fn("dir",We)})}function wt(We){var st=(Pt,vt)=>{Pt.handled=!0,Pt.diagram.model.commit(It=>{var Rt=vt.part.adornedPart;It.set(Rt.data,We?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(We?Rt.toNode:Rt.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Pt,vt)=>vt.background="dodgerblue",mouseLeave:(Pt,vt)=>vt.background="transparent",click:st,contextClick:st})}function Ft(We,st){var Pt=0,vt=de.z6.RightSide;We.equals(de.z6.Top)?(Pt=270,vt=de.z6.TopSide):We.equals(de.z6.Left)?(Pt=180,vt=de.z6.LeftSide):We.equals(de.z6.Bottom)&&(Pt=90,vt=de.z6.BottomSide),st||(Pt-=180);var It=(Rt,$t)=>{Rt.handled=!0,Rt.diagram.model.commit(gn=>{var dn=$t.part.adornedPart;gn.set(dn.data,st?"toSpot":"fromSpot",de.z6.stringify(vt)),(st?dn.toNode:dn.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Pt,background:"transparent",mouseEnter:(Rt,$t)=>$t.background="dodgerblue",mouseLeave:(Rt,$t)=>$t.background="transparent",click:It,contextClick:It})}ce.current.linkTemplate.contextMenu=Ye("ContextMenu",we(),Ke(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",bt(0),bt(1),bt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",wt(!1),Ft(de.z6.Top,!1),Ft(de.z6.Left,!1),Ft(de.z6.Right,!1),Ft(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},wt(!0),Ft(de.z6.Top,!0),Ft(de.z6.Left,!0),Ft(de.z6.Right,!0),Ft(de.z6.Bottom,!0)))));const $e=`{ "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 nn=["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 mn(We){return console.log("shapeName:",We),nn.indexOf(We)>=0}var Tn=new de.YI(pt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(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(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(We){var st;const Pt=We.subject.part;var vt=(st=document.activeElement)==null?void 0:st.value;typeof vt=="string"&&vt.trim()===""&&ce.current.model.commit(function(It){It.set(Pt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Tn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(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")),Ye(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(()=>{ce.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const _n=()=>He(this,null,function*(){var Ye=ce.current.makeImage();const Kt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:Kt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{fn()},500),Xt(Tt+1),()=>{ce.current=null}),[]),pe.createElement("div",{ref:tn,className:ut.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(ye.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Tt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ge.Z,null,pe.createElement(xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(xt.Z,{onClick:()=>{var Ye,Kt,Dn=ce.current.selection.first();if(ut.current=!ut.current,document.activeElement&&Dn){let Xn=(Kt=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:Kt.trim();typeof Xn=="string"&&ce.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Xn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Xt(Tt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:he},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.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:Le.myPaletteDiv,ref:pt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:et,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(ke.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var nt=Re,ft=ge(5112),Lt=ge(5871);const Dt=ft.ZP.Group,Mt={margin:"0 8px"};var zt=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Mt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Mt},"\u884C\u6570"),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Lt.Z,null)),ae.createElement("span",{style:Mt},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Lt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(Dt,null,ae.createElement(ft.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ft.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ft.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ft.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Nt=ge(78673),un=ge(93510),cn=ge.n(un),yt=(0,ae.forwardRef)(({use3d:he,width:ve,height:ce,callback:et,showSaveButton:pt},ut)=>{const tn=(0,ae.useRef)(),Tt=(0,ae.useRef)(),[Xt,fn]=(0,ae.useState)(!1),_n=(0,ae.useRef)({id:tn,appName:"graphing",width:ve||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Tt.current=new(cn())(_n.current,!0),window.onload=function(){Tt.current.inject("applet_container")}},[]);const Ye=()=>{var Kt=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(Kt),Kt};return(0,ae.useEffect)(()=>{_n.current.appName=Xt?"3D":"graphing",Tt.current.inject("applet_container")},[Xt]),(0,ae.useEffect)(()=>{fn(he)},[he]),(0,ae.useImperativeHandle)(ut,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:tn}),ae.createElement(Ge.Z,{align:"middle"},ae.createElement(xt.Z,{flex:1},ae.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xt,onChange:Kt=>fn(Kt)})),ae.createElement(xt.Z,null,ae.createElement(ke.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ct=ge(99298),Se=ge(1012),be=ge(8591);const Te="link",at="upload-image",ot="add-flowchart",Bt="draw-image",Gt="add-flowchart",St="code-block",Et="add-table",Wt="------------",Ht={default:Wt,left:`:${Wt}`,center:`:${Wt}:`,right:`${Wt}:`};var Vt=ge(31103),sn=(he,ve,ce)=>new Promise((et,pt)=>{var ut=Xt=>{try{Tt(ce.next(Xt))}catch(fn){pt(fn)}},tn=Xt=>{try{Tt(ce.throw(Xt))}catch(fn){pt(fn)}},Tt=Xt=>Xt.done?et(Xt.value):Promise.resolve(Xt.value).then(ut,tn);Tt((ce=ce.apply(he,ve)).next())});function Pn(){}let yn=0;const en=1e4,qt="\u2581",hn="@\u2581\u2581@",En="@\u2581@",Cn=`
**\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`,rn=["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 On(he){return/^\d+$/.test(he)?`${he}px`:he}const zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Un={[zn+"-B"]:"bold",[zn+"-I"]:"italic"},ta={[Te]:"\u6DFB\u52A0\u94FE\u63A5",[St]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[at]:"\u6DFB\u52A0\u56FE\u7247",[Bt]:"\u6DFB\u52A0\u753B\u56FE",[ot]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Et]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:he="",onChange:ve,width:ce="100%",height:et=400,miniToolbar:pt=!1,isFocus:ut=!1,watch:tn,insertTemp:Tt,mode:Xt="markdown",id:fn="markdown-editor-id",showResizeBar:_n=!1,noStorage:Ye=!1,showNullButton:Kt=!1,showNullProgramButton:Dn=!1,hidetoolBar:Xn=!1,fullScreen:Fn=!1,onBlur:le,onCMBeforeChange:Fe,onFullScreen:we,className:Ne="",disablePaste:Xe=!1,disabled:Ke=!1,disabledFill:_e=!1,placeholder:De="",values:bt="",extraUse:wt,onAddBlank:Ft})=>{const[$e,nn]=(0,ae.useState)(null),[mn,Tn]=(0,ae.useState)(he),[We,st]=(0,ae.useState)(tn),[Pt,vt]=(0,ae.useState)(Fn),[It,Rt]=(0,ae.useState)(""),[$t,gn]=(0,ae.useState)(0),[dn,qn]=(0,ae.useState)(et),[aa,Kn]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,Se.Z)()),Pa=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[ia,Vn]=(0,ae.useState)(0),[Gn,ma]=(0,ae.useState)(0),ea=(0,ae.useRef)(),ra=(0,ae.useRef)(),na=(0,ae.useRef)(),Wn=(0,ae.useRef)(),ha=()=>sn(void 0,null,function*(){var ht;const rt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(ht=rt==null?void 0:rt.attachments)!=null&&ht.length&&(console.log("cm:",$e,ea),rt.attachments.map(it=>{it.content_type.indexOf("image")>-1?$e.replaceSelection(`![,](/api/attachments/${it.id}?type=${it.content_type})`):it.content_type.indexOf("video")>-1?$e.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):it.content_type.indexOf("pdf")>-1?$e.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${it.id}?type=${it.content_type}&disposition=inline" target="_blank">${it.name}</a>`):$e.replaceSelection(`[${it.name}](${ENV.API_SERVER}/api/attachments/${it.id}?type=${it.content_type})`)}))});(0,ae.useEffect)(()=>{const ht=window.scrollY||window.pageYOffset;Tn(bt),$e==null||$e.setValue(bt),window.scrollTo(0,ht)},[bt]),(0,ae.useEffect)(()=>{we==null||we(Pt)},[Pt]),(0,ae.useEffect)(()=>{if(ea.current){let ht=function(it,ct){var on;if(Xe){ct.preventDefault();return}const bn=ct.clipboardData;if(bn){const Rn=bn.types.toString(),kn=bn.items;if(Rn==="Files"||bn.types.indexOf("Files")>-1){if(ct.preventDefault(),Xt=="stex")return;try{let Hn=kn[1];((on=kn[0])==null?void 0:on.kind)==="file"&&(Hn=kn[0]);const Zn=Hn.getAsFile(),oa=Zn.name.split(".").pop();(0,xe.I)(Zn,Ot=>{var an,vn,Ut;Ot.id?((an=Zn==null?void 0:Zn.type)==null?void 0:an.indexOf("image"))>-1?rt.replaceSelection(`<img width="100%" src="/api/attachments/${Ot.id}?type=${Ot.content_type})" alt="" />`):((vn=Zn==null?void 0:Zn.type)==null?void 0:vn.indexOf("video"))>-1?rt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ot.id}"></video>`):((Ut=Zn==null?void 0:Zn.type)==null?void 0:Ut.indexOf("pdf"))>-1?rt.replaceSelection(`<a href="/api/attachments/${Ot.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):rn.includes(oa)?rt.replaceSelection(`<a href="/api/attachments/${Ot.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):rt.replaceSelection(`[${Zn.name}](/api/attachments/${Ot.id}?type=${Ot.content_type})`):(Ot==null?void 0:Ot.status)===401&&(be.ZP.warning((Ot==null?void 0:Ot.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const rt=Ue().fromTextArea(ea.current,{mode:Xt,lineNumbers:!pt,lineWrapping:!0,value:he,autoCloseTags:!Dn,autoCloseBrackets:!0});return rt.on("keyup",function(it,ct){ct.keyCode===8&&(it.getValue()==""?rt.setOption("placeholder",De):rt.setOption("placeholder",null))}),rt.on("keydown",function(it,ct){if(ct.keyCode===8){var on=Nn(it);on&&ct.preventDefault()}}),ut&&rt.focus(),rt.on("paste",ht),rt.on("dragleave",function(it,ct){ra.current.classList.remove("mouse-hover-md")}),Ke&&rt.on("beforeChange",function(it,ct){(ct.origin==="paste"||ct.origin==="+input")&&ct.cancel()}),nn(rt),()=>{rt.off("paste",ht)}}},[]);const kt=(0,ae.useCallback)(()=>{if(ra.current)try{}catch(ht){console.log(ht,"---- to set md editor body height")}},[dn,ra,Pt]);(0,ae.useEffect)(()=>{function ht(){let rt=new Ae.Z(it=>{for(let ct of it)(ct.target.offsetHeight>0||ct.target.offsetWidth>0)&&(kt(),$e.setSize("100%","100%"),$e.refresh())});return rt.observe(ea.current.parentElement),rt}if($e){const rt=ht();return()=>{var it,ct;(it=ea.current)!=null&&it.parentElement&&rt.unobserve((ct=ea.current)==null?void 0:ct.parentElement)}}},[$e,kt]),(0,ae.useEffect)(()=>{if($e){let ht=[];for(const[rt,it]of Object.entries(Un)){let ct={[rt]:()=>{Yn(it)}};ht.push(ct),$e.addKeyMap(ct)}return Sa.current=setInterval(()=>{Pa.current&&ha()},4e3),()=>{clearInterval(Sa.current);for(let rt of ht)$e.removeKeyMap(rt)}}},[$e]),(0,ae.useEffect)(()=>{Fn!==Pt&&vt(Fn)},[Fn]),(0,Vt.Z)(()=>{if(!Ye&&$t>0){let ht=new Date().getTime(),rt=window.sessionStorage.getItem(fn);ht>=$t+en&&(!rt||rt!==mn)&&(window.sessionStorage.setItem(fn,mn),Kn(!0))}},en),(0,ae.useEffect)(()=>{st(tn)},[$e,tn]),(0,ae.useEffect)(()=>{$e&&ut&&$e.focus()},[$e,ut]),(0,ae.useEffect)(()=>{if(We&&$e){let ht=function(it){let ct=it.target;if(Wn.current){let on=ct.scrollTop/ct.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*on}};const rt=$e.getScrollerElement();return rt.addEventListener("scroll",ht),()=>{rt.removeEventListener("scroll",ht)}}},[$e,We]),(0,ae.useEffect)(()=>{if($e&&Fe){let ht=function(rt,it){Fe(rt,it)};return $e.on("beforeChange",ht),()=>{$e.off("beforeChange",ht)}}},[$e,Fe]),(0,ae.useEffect)(()=>{if($e&&le){let ht=function(){le($e.getValue())};return $e.on("blur",ht),()=>{$e.off("blur",ht)}}},[$e,le]);function Nn(ht,rt){var it=ht.getDoc(),ct=it.getCursor(),on=it.getLine(ct.line),bn=on.charAt(ct.ch-1),Rn=on.lastIndexOf("@\u2581@",ct.ch),kn=on.lastIndexOf("@\u2581\u2581@",ct.ch),Hn=Rn>kn?Rn:kn,Zn=Rn>kn?3:4;if(hn.indexOf(bn)===-1)return null;if(console.log("change1:",rt,ht,on,ct,Hn,Rn,kn,bn),Hn>=0&&ct.ch-Hn<5){var oa=Hn+Zn;return it.replaceRange("",{line:ct.line,ch:Hn},{line:ct.line,ch:oa}),{line:ct.line,ch:oa}}return null}(0,ae.useEffect)(()=>{if($e){let ht=function(rt,it){const ct=rt.getValue();Tn(ct),gn(new Date().getTime()),rt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Dn?ve(ct,ga(ct)):ve(ct))};return $e.on("change",ht),()=>{$e.off("change",ht)}}},[$e,ve]),(0,ae.useEffect)(()=>{if($e)if(he==null)$e.setValue(""),Tn("");else{const ht=window.scrollY||window.pageYOffset;he!==$e.getValue()&&($e.setValue(he),Tn(he),$e.setCursor(Ke?1:$e.lineCount(),0),window.scrollTo(0,ht))}},[$e,he]);const Yn=(0,ae.useCallback)(ht=>{const rt=$e.getCursor(),it=$e.getSelection();let ct=it.split(`
`);switch(ht){case"bold":return $e.replaceSelection("**"+it+"**"),it===""&&$e.setCursor(rt.line,rt.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+it+"*"),it===""&&$e.setCursor(rt.line,rt.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+it+"`"),it===""&&$e.setCursor(rt.line,rt.ch+1),$e.focus();case"inline-latex":return Rt("inline-latex"),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+it+"\n```"),$e.setCursor(rt.line+1,it.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
`),$e.focus();case"list-ul":return it===""?$e.replaceSelection("- "+it):$e.replaceSelection(ct.map(on=>on===""?"":`- ${on}`).join(`
`)),$e.focus();case"list-ol":return it===""?$e.replaceSelection("1. "+it):$e.replaceSelection(ct.map((on,bn)=>on===""?"":`${bn+1}. ${on}`).join(`
`)),$e.focus();case"add-null-ch":Ft==null||Ft();return;case"add-signal":return it===""&&$e.setCursor(rt.line,rt.ch),$e.replaceSelection(En),$e.focus();case"add-multiple":return it===""&&$e.setCursor(rt.line,rt.ch),$e.replaceSelection(hn),$e.focus();case"inster-template-1":return it===""&&$e.setCursor(rt.line,rt.ch),$e.replaceSelection(Cn),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return st(!We),$e.focus();case"trigger-full-screen":return vt(!Pt),$e.focus();case Te:Rt(Te);return;case St:Rt(St);return;case at:Rt(at);return;case Bt:Rt(Bt);return;case"maths-latex":Rt("maths-latex");return;case ot:Rt(ot);return;case Et:Rt(Et);return;default:throw new Error}},[$e,We,Pt]),Bn=(0,ae.useCallback)((ht,rt)=>{var it,ct,on,bn,Rn,kn;switch(Rt(""),It){case Te:const{title:an,link:vn}=ht;return $e.replaceSelection(`[${an}](${vn})`),$e.focus();case St:const{language:Ut,content:Ln}=ht;return $e.replaceSelection(["```"+Ut,Ln,"```"].join(`
`)),$e.focus();case"maths-latex":for(var Hn=atob(ht),Zn=new Uint8Array(Hn.length),oa=0;oa<Hn.length;oa++)Zn[oa]=Hn.charCodeAt(oa);var Ot=new Blob([Zn],{type:"image/png"});(0,xe.I)(Ot,sa=>{sa.id?$e.replaceSelection(`![,](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$e.replaceSelection("`$$"+ht+"$$`");break;case at:case Bt:case Gt:const{src:In,alt:la}=ht,wn=rt,ua=(on=(ct=(it=wn==null?void 0:wn.name)==null?void 0:it.split("."))==null?void 0:ct.pop)==null?void 0:on.call(ct);return((bn=wn==null?void 0:wn.type)==null?void 0:bn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?$e.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${In}" alt="${la||""}" /></p>`):$e.replaceSelection(`<img width="100%" src="${In}" alt="${la||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="${In}"></video>`):((kn=wn==null?void 0:wn.type)==null?void 0:kn.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="${In}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):rn.includes(ua)?$e.replaceSelection(`<a href="${In}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):$e.replaceSelection(`[${wn.name}](${In})`),$e.focus();case Et:const{row:Fa,col:Ba,align:Ga}=ht;let wa=`
`;for(let sa=0;sa<Fa;sa++){let xa=[],Ea=[];for(let Ca=0;Ca<Ba;Ca++)sa===1&&Ea.push(Ht[Ga]),xa.push(" ");sa===1&&(wa+=`| ${Ea.join(" | ")} |
`),wa+=`| ${xa.join(Ba===1?"":" | ")} |
`}return $e.replaceSelection(wa+`
`),$e.focus();default:throw new Error}},[$e,It]),da=(0,ae.useMemo)(()=>{switch(It){case Te:return ae.createElement(xn,{callback:Bn,onCancel:jn});case St:return ae.createElement(An.Z,{callback:Bn,onCancel:jn});case at:return ae.createElement(xe.Z,{callback:Bn,onCancel:jn});case ot:return ae.createElement(nt,{callback:Bn,onCancel:jn});case Et:return ae.createElement(zt,{callback:Bn,onCancel:jn});case"maths-latex":return ae.createElement(yt,{showSaveButton:!0,callback:Bn});case"inline-latex":return ae.createElement(Ct.Z,{showSaveButton:!0,callback:Bn});default:return null}},[It]);function jn(){Rt("")}(0,ae.useEffect)(()=>{if(na.current){let ht=function(Rn){on=!0,bn=Rn.pageY},rt=function(){on=!1},it=function(Rn){if(on){let kn=Rn.pageY-bn;kn<0&&(kn=0),kn>300&&(kn=300);let Hn=et+kn+"px";qn(Hn)}},ct=na.current,on=!1,bn=0;return ct.addEventListener("mousedown",ht),document.addEventListener("mousemove",it),document.addEventListener("mouseup",rt),()=>{ct.removeEventListener("mousedown",ht),document.removeEventListener("mousemove",it),document.removeEventListener("mouseup",rt)}}},[$e,na]),(0,ae.useEffect)(()=>{qn(et)},[et]);const pa=On(ce),fa=On(dn),$n={width:pa,height:fa},Mn=(0,ae.useMemo)(()=>{if($t){let ht=new Date($t),rt=ht.getHours(),it=ht.getMinutes(),ct=ht.getSeconds();return rt=rt<10?"0"+rt:rt,it=it<10?"0"+it:it,ct=ct<10?"0"+ct:ct,`${rt}:${it}:${ct}`}return 0},[$t]),ga=ht=>{const rt=[];if(Dn){let it=-1;ht=ht.replace(/(@▁▁@|@▁@)/g,function(ct,on,bn){rt.push({multiLine:ct!==En})})}return rt};function va(){window.sessionStorage.removeItem(fn),Kn(!1),gn(0)}function La(){Kn(!1),gn(0),$e.setValue(window.sessionStorage.getItem(fn))}(0,ae.useEffect)(()=>{ta[It]&&It!==Bt&&It!==ot&&setTimeout(()=>{const ht=document.getElementsByClassName("markdown-popup-form")[0],rt=window.innerWidth/2-ht.offsetWidth/2,it=window.innerHeight/2-ht.offsetHeight/2;Vn(rt),ma(it)},0)},[It]);const ya=ht=>{ht.preventDefault();const rt=ht.clientX-ia,it=ht.clientY-Gn;document.body.onmousemove=ct=>{let on=ct.clientX-rt,bn=ct.clientY-it;const Rn=document.getElementsByClassName("markdown-popup-form")[0],kn=window.innerWidth-Rn.offsetWidth,Hn=window.innerHeight-Rn.offsetHeight;on=Math.max(0,Math.min(on,kn)),bn=Math.max(0,Math.min(bn,Hn)),ba(ct.clientX,ct.clientY,rt,it)&&(Vn(on),ma(bn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(ht,rt,it,ct)=>{const on=document.body.clientHeight,bn=document.body.clientWidth;return ht<20&&it>ht||ht>bn-20&&it<ht||rt<20&&ct>rt||rt>on-20&&ct<rt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ae.createElement("div",{className:`markdown-editor-container ${Ne} ${We?"on-preview":""} ${pt?"mini":""} ${Pt?"full-screen":""}`,style:$n},ae.createElement(ie,{insertTemp:Tt,watch:We,fullScreen:Pt,showNullButton:Kt,showNullProgramButton:Dn,onActionCallback:Yn,hidetoolBar:Xn,extraUse:wt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ea,placeholder:De})),We?ae.createElement("div",{ref:Wn,className:"preview-container"},Xt==="stex"&&ae.createElement(Ze,{value:mn}),Xt!=="stex"&&ae.createElement(Ce.Z,{disabledFill:_e,showProgramFill:Dn,value:mn})):null))),_n?ae.createElement("a",{ref:na,className:"editor-resize"}):null,It===Bt&&ae.createElement(mt,{callback:Bn,onCancel:jn}),It===ot&&ae.createElement(nt,{callback:Bn,onCancel:jn}),ae.createElement(ue.Z,null,ta[It]&&It!==Bt&&It!==ot?ae.createElement(ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ia,top:Gn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},ta[It]),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:It===ot?"1200px":null,height:It===ot?"80vh":null,className:"markdown-popup-form"},da):null))}},45053:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return re},I:function(){return ue}});var ae=ge(78241),Pe=ge(8591),Ue=ge(92832),Ae=ge(81327),fe=ge(5871),je=ge(5112),me=ge(3113),Je=ge(28735),Oe=ge(59301),Ee=ge(41867),Ce=ge(59301),Ze=Object.defineProperty,Ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(se,Me,ke)=>Me in se?Ze(se,Me,{enumerable:!0,configurable:!0,writable:!0,value:ke}):se[Me]=ke,E=(se,Me)=>{for(var ke in Me||(Me={}))y.call(Me,ke)&&b(se,ke,Me[ke]);if(a)for(var ke of a(Me))x.call(Me,ke)&&b(se,ke,Me[ke]);return se},z=(se,Me)=>Ie(se,ne(Me));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:se,onCancel:Me})=>{const[ke]=ee();let dt=(0,Oe.useRef)();function At(jt){dt.current.width=ke.getFieldValue("width"),dt.current.align=ke.getFieldValue("align"),se(jt,dt.current)}function Jt(jt,Zt){if(jt.status===-1){Pe.ZP.error(jt.message);return}ke.setFieldsValue({src:`/api/attachments/${jt.id}`,type:Zt.type})}function _t(jt){let Zt=jt.target.files[0];dt.current=Zt,ue(Zt,Jt)}return Ce.createElement(ae.default,z(E({form:ke},oe),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),Ce.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ce.createElement("div",{className:"flex-container"},Ce.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ce.createElement(Ue.default,{style:te})),Ce.createElement(ie,{onFileChange:_t}))),Ce.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ce.createElement(Ue.default,{style:{width:264}})),Ce.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ce.createElement(Ae.Z,null,Ce.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ce.createElement(fe.Z,{style:{width:264}})),Ce.createElement("span",{className:"ml8"},"%"))),Ce.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ce.createElement(je.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ce.createElement("aside",null,Ce.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ce.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ce.createElement(me.ZP,{type:"default",onClick:Me},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return Ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ce.createElement("input",{type:"file",onChange:se}))}function ue(se,Me){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ee.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ke=new FormData;ke.append("editormd-image-file",se),ke.append("file_param_name","editormd-image-file"),ke.append("byxhr","true");var dt=new window.XMLHttpRequest;dt.withCredentials=!0,dt.addEventListener("load",function(At){Me(JSON.parse(At.target.responseText),se)},!1),dt.addEventListener("error",function(At){console.error(At)},!1),dt.open("POST",`${Je.KI}/api/attachments.json`),dt.send(ke)}},57261:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ue}});var ae=ge(59301),Pe=ge(4676);class Ue extends ae.Component{constructor(fe){super(fe);const je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Pe}});var ae=ge(59301);function Pe(Ue,Ae){const fe=(0,ae.useRef)();(0,ae.useEffect)(()=>{fe.current=Ue}),(0,ae.useEffect)(()=>{function je(){fe.current()}if(Ae!==null){let me=setInterval(je,Ae);return()=>clearInterval(me)}},[Ae])}},4147:function(Be,tt,ge){"use strict";ge.r(tt),ge.d(tt,{default:function(){return xe}});var ae=ge(59301),Pe=ge(20834),Ue=ge(44e3),Ae=ge(8591),fe=ge(43418),je=ge(60324),me=ge(74128),Je={flex_box_center:"flex_box_center___GfbI9",flex_space_between:"flex_space_between___m14JJ",flex_box_vertical_center:"flex_box_vertical_center___IKGDg",flex_box_center_end:"flex_box_center_end___JZxvM",flex_box_column:"flex_box_column___WnVa8",SubMentItem:"SubMentItem___P0LXo",MenuItem:"MenuItem___p91mQ",wrp:"wrp___kMQ4i",classroomInfo:"classroomInfo___rb1qC",title:"title___AQndp",titleLeft:"titleLeft___K7c9u",titleRight:"titleRight___BUODH",classroomUser:"classroomUser___NkYxe",headPic:"headPic___RD_it",teacherInfo:"teacherInfo___Gyj_W",classroomDesc:"classroomDesc___ng_AB",classroomDescBg:"classroomDescBg___Dz_DM",joinCouses:"joinCouses___U2D0G",bg:"bg___IcypX",leftMenus:"leftMenus___fF5qD",titleSelected:"titleSelected___Rqtd8",menuText:"menuText___jhrfq",totalCount:"totalCount___fqkbl",actions:"actions___NAYZl",task_count:"task_count___a1sYB",container:"container___djeCS",leftMenuActions:"leftMenuActions___lRhBF"},Oe=ge(38147),Ee=ge(65582),Ce=ge(87169),Ze=ge(43531),Ie=ge(41867),ne=ge(92832),a=(ye,Ge,qe)=>new Promise((Ve,mt)=>{var de=gt=>{try{lt(qe.next(gt))}catch(xt){mt(xt)}},Qe=gt=>{try{lt(qe.throw(gt))}catch(xt){mt(xt)}},lt=gt=>gt.done?Ve(gt.value):Promise.resolve(gt.value).then(de,Qe);lt((qe=qe.apply(ye,Ge)).next())});function y({user:ye,CategoryId:Ge,IsShow:qe,setIsShow:Ve,dispatch:mt,init:de}){const[Qe,lt]=(0,ae.useState)();return ae.createElement(fe.default,{title:Ge?"\u65B0\u5EFA\u4E09\u7EA7\u7C7B\u76EE":"\u65B0\u5EFA\u4E8C\u7EA7\u7C7B\u76EE",width:424,onCancel:()=>{Ve(!1)},onOk:()=>a(this,null,function*(){if(!Qe){Ae.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Oe.ZP)("/api/programas.json",{method:"post",body:{name:Qe,parent_id:Ge}})).status===0&&(Ae.ZP.info("\u521B\u5EFA\u6210\u529F"),Ve(!1),lt(""),de())}),open:qe},ae.createElement(ne.default,{value:Qe,onChange:gt=>lt(gt.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var x=(0,Ee.connect)(({user:ye})=>({user:ye}))(y),b=(ye,Ge,qe)=>new Promise((Ve,mt)=>{var de=gt=>{try{lt(qe.next(gt))}catch(xt){mt(xt)}},Qe=gt=>{try{lt(qe.throw(gt))}catch(xt){mt(xt)}},lt=gt=>gt.done?Ve(gt.value):Promise.resolve(gt.value).then(de,Qe);lt((qe=qe.apply(ye,Ge)).next())});function E({user:ye,CategoryId:Ge,name:qe,IsShow:Ve,setIsShow:mt,dispatch:de,init:Qe}){const[lt,gt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{gt(qe)},[qe]),ae.createElement(fe.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{mt(!1)},onOk:()=>b(this,null,function*(){if(!lt){Ae.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Oe.ZP)(`/api/programas/${Ge}/rename.json`,{method:"put",body:{name:lt,id:Ge}})).status===0&&(Ae.ZP.info("\u4FEE\u6539\u6210\u529F"),mt(!1),gt(""),Qe())}),open:Ve},ae.createElement(ne.default,{value:lt,onChange:xt=>gt(xt.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var z=(0,Ee.connect)(({user:ye})=>({user:ye}))(E),ee=ge(3113),te=ge(6339);function oe({user:ye,ItemData:Ge,setIssee:qe,dispatch:Ve,init:mt}){var de,Qe,lt,gt;return ae.createElement("div",null,ae.createElement("div",{style:{textAlign:"right"}},(0,Ie.Ny)()&&ae.createElement(ee.ZP,{onClick:()=>qe(!1)},"\u7F16\u8F91")),ae.createElement(te.Z,{value:Ge.content}),((de=Ge==null?void 0:Ge.attachment)==null?void 0:de.id)&&ae.createElement("div",null,ae.createElement("a",{href:(Qe=Ge==null?void 0:Ge.attachment)==null?void 0:Qe.url,target:"_self",download:(lt=Ge==null?void 0:Ge.attachment)==null?void 0:lt.title},ae.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),ae.createElement("span",{style:{color:"#000000"}},(gt=Ge==null?void 0:Ge.attachment)==null?void 0:gt.title))))}var re=(0,Ee.connect)(({user:ye})=>({user:ye}))(oe),ie=ge(54580),ue=ge(96565),se=ge(30945),Me=Object.defineProperty,ke=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Jt=(ye,Ge,qe)=>Ge in ye?Me(ye,Ge,{enumerable:!0,configurable:!0,writable:!0,value:qe}):ye[Ge]=qe,_t=(ye,Ge)=>{for(var qe in Ge||(Ge={}))dt.call(Ge,qe)&&Jt(ye,qe,Ge[qe]);if(ke)for(var qe of ke(Ge))At.call(Ge,qe)&&Jt(ye,qe,Ge[qe]);return ye},jt=(ye,Ge,qe)=>new Promise((Ve,mt)=>{var de=gt=>{try{lt(qe.next(gt))}catch(xt){mt(xt)}},Qe=gt=>{try{lt(qe.throw(gt))}catch(xt){mt(xt)}},lt=gt=>gt.done?Ve(gt.value):Promise.resolve(gt.value).then(de,Qe);lt((qe=qe.apply(ye,Ge)).next())});function Zt({user:ye,ItemData:Ge,setIssee:qe,CategoryId:Ve,dispatch:mt,init:de}){let[Qe,lt]=(0,ae.useState)([]);const[gt,xt]=(0,ae.useState)(Ge.content);function ze(){var Re;let nt=[];return(Re=Ge==null?void 0:Ge.attachments)==null||Re.map(ft=>{let Lt={uid:ft==null?void 0:ft.id,name:ft.title,response:{id:ft.id}};nt.push(Lt)}),nt}const Le={name:"file",multiple:!0,action:me.Z.API_SERVER+"/api/attachments.json",defaultFileList:ze(),onRemove(Re){(0,se.y8)({id:Re.uid})},onChange(Re){console.log("info",Re);const{status:nt}=Re.file;nt==="removed"&&lt(Re.fileList),nt==="done"?(lt(Re.fileList),Ae.ZP.success(`${Re.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):nt==="error"&&Ae.ZP.error(`${Re.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Re=>{const nt=Re.size/1024/1024<150;return nt||Ae.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),nt}};function pe(){return jt(this,null,function*(){(yield(0,Oe.ZP)(`/api/programas/${Ve}/update_content.json`,{method:"put",body:{id:Ve,content:gt,attachment_id:He(Qe)}}))&&(Ae.ZP.info("\u63D0\u4EA4\u6210\u529F"),qe(!0))})}function He(Re){let nt;return Re&&Re.map(ft=>{nt=ft.response.id}),nt}return ae.createElement("div",null,ae.createElement(ue.Z,{defaultValue:gt,onChange:Re=>xt(Re)}),ae.createElement(ie.default,_t({},Le),ae.createElement(ee.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),ae.createElement("p",{style:{marginTop:"10px"}},ae.createElement(ee.ZP,{style:{width:"90px"},onClick:()=>pe()},"\u63D0\u4EA4"),ae.createElement(ee.ZP,{style:{marginLeft:"30px",width:"90px"},type:"primary",onClick:()=>qe(!0)},"\u53D6\u6D88")))}var pn=(0,Ee.connect)(({user:ye})=>({user:ye}))(Zt),Yt=(ye,Ge,qe)=>new Promise((Ve,mt)=>{var de=gt=>{try{lt(qe.next(gt))}catch(xt){mt(xt)}},Qe=gt=>{try{lt(qe.throw(gt))}catch(xt){mt(xt)}},lt=gt=>gt.done?Ve(gt.value):Promise.resolve(gt.value).then(de,Qe);lt((qe=qe.apply(ye,Ge)).next())});const{SubMenu:Qt}=Pe.default,{Content:ln,Sider:xn}=Ue.default;function An({user:ye,dispatch:Ge,globalSetting:qe}){var Ve;const[mt,de]=(0,ae.useState)(),[Qe,lt]=(0,ae.useState)(!1),[gt,xt]=(0,ae.useState)();let[ze,Le]=(0,ae.useState)();const[pe,He]=(0,ae.useState)(!1),[Re,nt]=(0,ae.useState)(""),[ft,Lt]=(0,ae.useState)(""),[Dt,Mt]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{zt()},[]),console.log("globalSetting",qe);function zt(){return Yt(this,null,function*(){const yt=yield(0,Oe.ZP)("/api/programas.json",{method:"get"});yt&&xt(yt==null?void 0:yt.programas)})}const Nt=(yt,Ct,Se)=>Yt(this,null,function*(){switch(yt){case 1:Le(Ct==null?void 0:Ct.id),lt(!0);break;case 2:Le(Ct==null?void 0:Ct.id),He(!0),nt(Ct==null?void 0:Ct.name);break;case 3:(yield(0,Oe.ZP)(`/api/programas/${Ct==null?void 0:Ct.id}/top.json`,{method:"post",body:{id:Ct==null?void 0:Ct.id}})).status===0&&zt();break;case 4:un(ae.createElement("p",null,"\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u6062\u590D,",ae.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),()=>Yt(this,null,function*(){(yield(0,Oe.ZP)(`/api/programas/${Ct==null?void 0:Ct.id}.json`,{method:"delete",body:{id:Ct==null?void 0:Ct.id}})).status===0&&(Ae.ZP.info("\u5220\u9664\u6210\u529F"),zt())}));break}}),un=(yt,Ct)=>{fe.default.confirm({centered:!0,title:"\u63D0\u793A",icon:ae.createElement(Ce.Z,null),content:yt,okText:"\u786E\u8BA4",onOk:()=>Ct(),cancelText:"\u53D6\u6D88"})},cn=(yt,Ct)=>ae.createElement("div",{className:Je.leftMenuActions},Ct===1&&ae.createElement("p",{className:"current",onClick:()=>Nt(1,yt,Ct)},"\u65B0\u5EFA"),ae.createElement("p",{className:"current",onClick:()=>Nt(2,yt,Ct)},"\u91CD\u547D\u540D"),ae.createElement("p",{className:"current",onClick:()=>Nt(3,yt,Ct)},"\u7F6E\u9876"),ae.createElement("p",{className:"current",onClick:()=>Nt(4,yt,Ct)},"\u5220\u9664"));function Sn(){return Yt(this,null,function*(){const yt=yield(0,Oe.ZP)(`/api/programas/${ze}/content.json`,{method:"get",params:{id:ze}});yt&&Lt(yt)})}return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("img",{style:{width:"100%"},src:me.Z.IMG_SERVER+`/${(Ve=qe==null?void 0:qe.setting)==null?void 0:Ve.shixun_banner_url}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement(xn,{width:244,className:Je.leftMenus,style:{background:"none",marginTop:"20px",height:"auto"}},ae.createElement(Pe.default,{mode:"inline"},gt==null?void 0:gt.map((yt,Ct)=>{var Se,be;return(yt==null?void 0:yt.children.length)>0?ae.createElement(Qt,{title:ae.createElement("span",{className:"font16"},ae.createElement("span",null,yt.name),!(0,Ie.Ny)()&&ae.createElement("span",null),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>cn(yt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))},(Se=yt==null?void 0:yt.children)==null?void 0:Se.map((Te,at)=>{var ot;return ae.createElement(Pe.default.Item,{className:(ot=Je)==null?void 0:ot.SubMentItem,onClick:()=>{Le(Te==null?void 0:Te.id),ze=Te==null?void 0:Te.id,Sn()}},ae.createElement("span",{style:{flex:"1"}},Te==null?void 0:Te.name),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>cn(Te,2),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))})):ae.createElement(Pe.default.Item,{className:(be=Je)==null?void 0:be.SubMentItem,onClick:()=>{Le(yt==null?void 0:yt.id),ze=yt==null?void 0:yt.id,Sn()}},ae.createElement("span",{style:{flex:"1"}},yt==null?void 0:yt.name),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>cn(yt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))}),ae.createElement(Pe.default.Item,{onClick:()=>{Le(""),ze="",lt(!0)},style:{color:"#0152d9",fontSize:"16px",height:"40px",display:"flex",alignItems:"center"},icon:ae.createElement(Ze.Z,{style:{color:"#0152d9",fontSize:"16px"}})},"\u65B0\u589E\u4E8C\u7EA7\u7C7B\u76EE"))),ae.createElement("div",{style:{width:"937px",marginLeft:"17px",background:"#fff",padding:"20px"}},Dt&&ae.createElement(re,{ItemData:ft,setIssee:Mt}),Dt===!1&&ae.createElement(pn,{ItemData:ft,setIssee:Mt,CategoryId:ze}))),ae.createElement(x,{CategoryId:ze,IsShow:Qe,setIsShow:lt,init:zt}),ae.createElement(z,{CategoryId:ze,name:Re,IsShow:pe,setIsShow:He,init:zt}))}var xe=(0,Ee.connect)(({user:ye,globalSetting:Ge})=>({user:ye,globalSetting:Ge}))(An)},77578:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return ae}});const ae=Pe=>Pe?typeof Pe=="function"?Pe():Pe:null},56762:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Pe}});var ae=ge(59301);function Pe(){const[,Ue]=ae.useReducer(Ae=>Ae+1,0);return Ue}},45818:function(Be,tt,ge){"use strict";ge.d(tt,{D:function(){return z},Z:function(){return oe}});var ae=ge(54476),Pe=ge(59301),Ue={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"},Ae=Ue,fe=ge(7657),je=function(ie,ue){return Pe.createElement(fe.Z,(0,ae.Z)({},ie,{ref:ue,icon:Ae}))},me=Pe.forwardRef(je),Je=me,Oe=ge(33853),Ee=ge(38819),Ce=ge(92310),Ze=ge.n(Ce),Ie=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ue={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(ue[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,se=Object.getOwnPropertySymbols(re);Me<se.length;Me++)ie.indexOf(se[Me])<0&&Object.prototype.propertyIsEnumerable.call(re,se[Me])&&(ue[se[Me]]=re[se[Me]]);return ue};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Pe.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=Pe.forwardRef((re,ie)=>{const{prefixCls:ue,className:se,trigger:Me,children:ke,defaultCollapsed:dt=!1,theme:At="dark",style:Jt={},collapsible:_t=!1,reverseArrow:jt=!1,width:Zt=200,collapsedWidth:pn=80,zeroWidthTriggerStyle:Yt,breakpoint:Qt,onCollapse:ln,onBreakpoint:xn}=re,An=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xe}=(0,Pe.useContext)(x.Gs),[ye,Ge]=(0,Pe.useState)("collapsed"in re?re.collapsed:dt),[qe,Ve]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&Ge(re.collapsed)},[re.collapsed]);const mt=(ze,Le)=>{"collapsed"in re||Ge(ze),ln==null||ln(ze,Le)},de=(0,Pe.useRef)();de.current=ze=>{Ve(ze.matches),xn==null||xn(ze.matches),ye!==ze.matches&&mt(ze.matches,"responsive")},(0,Pe.useEffect)(()=>{function ze(pe){return de.current(pe)}let Le;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&Qt&&Qt in E){Le=pe(`(max-width: ${E[Qt]})`);try{Le.addEventListener("change",ze)}catch(He){Le.addListener(ze)}ze(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",ze)}catch(pe){Le==null||Le.removeListener(ze)}}},[Qt]),(0,Pe.useEffect)(()=>{const ze=ee("ant-sider-");return xe.addSider(ze),()=>xe.removeSider(ze)},[]);const Qe=()=>{mt(!ye,"clickTrigger")},{getPrefixCls:lt}=(0,Pe.useContext)(y.E_),gt=()=>{const ze=lt("layout-sider",ue),Le=(0,Ie.Z)(An,["collapsed"]),pe=ye?pn:Zt,He=a(pe)?`${pe}px`:String(pe),Re=parseFloat(String(pn||0))===0?Pe.createElement("span",{onClick:Qe,className:Ze()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${jt?"right":"left"}`),style:Yt},Me||Pe.createElement(Je,null)):null,Lt={expanded:jt?Pe.createElement(Ee.Z,null):Pe.createElement(Oe.Z,null),collapsed:jt?Pe.createElement(Oe.Z,null):Pe.createElement(Ee.Z,null)}[ye?"collapsed":"expanded"],Dt=Me!==null?Re||Pe.createElement("div",{className:`${ze}-trigger`,onClick:Qe,style:{width:He}},Me||Lt):null,Mt=Object.assign(Object.assign({},Jt),{flex:`0 0 ${He}`,maxWidth:He,minWidth:He,width:He}),zt=Ze()(ze,`${ze}-${At}`,{[`${ze}-collapsed`]:!!ye,[`${ze}-has-trigger`]:_t&&Me!==null&&!Re,[`${ze}-below`]:!!qe,[`${ze}-zero-width`]:parseFloat(He)===0},se);return Pe.createElement("aside",Object.assign({className:zt},Le,{style:Mt,ref:ie}),Pe.createElement("div",{className:`${ze}-children`},ke),_t||qe&&Re?Dt:null)},xt=Pe.useMemo(()=>({siderCollapsed:ye}),[ye]);return Pe.createElement(z.Provider,{value:xt},gt())})},44e3:function(Be,tt,ge){"use strict";var ae=ge(84966),Pe=ge(45818);const Ue=ae.ZP;Ue.Header=ae.h4,Ue.Footer=ae.$_,Ue.Content=ae.VY,Ue.Sider=Pe.Z,tt.default=Ue},84966:function(Be,tt,ge){"use strict";ge.d(tt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var ae=ge(94480),Pe=ge(92310),Ue=ge.n(Pe),Ae=ge(2738),fe=ge(59301),je=ge(36355),me=ge(83116),Oe=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:se,background:ue,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ee=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ue,footerBg:se,triggerBg:Me,headerHeight:ke,headerPadding:dt,headerColor:At,footerPadding:Jt,triggerHeight:_t,zeroTriggerHeight:jt,zeroTriggerWidth:Zt,motionDurationMid:pn,motionDurationSlow:Yt,fontSize:Qt,borderRadius:ln,bodyBg:xn,headerBg:An,siderBg:xe}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:xn,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:xe,transition:`all ${pn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:_t},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:_t,color:ue,lineHeight:`${_t}px`,textAlign:"center",background:Me,cursor:"pointer",transition:`all ${pn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ke,insetInlineEnd:-Zt,zIndex:1,width:Zt,height:jt,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xe,borderStartStartRadius:0,borderStartEndRadius:ln,borderEndEndRadius:ln,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Yt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Yt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Zt,borderStartStartRadius:ln,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ln}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:ke,padding:dt,color:At,lineHeight:`${ke}px`,background:An,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Jt,color:ie,fontSize:Qt,background:se},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Ce=(0,me.Z)("Layout",te=>[Ee(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ue,controlHeightSM:se,marginXXS:Me,colorTextLightSolid:ke,colorBgContainer:dt}=te,At=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${At}px`,headerColor:ue,footerPadding:`${se}px ${At}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Me*2,triggerBg:"#002140",triggerColor:ke,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:dt,lightTriggerBg:dt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ze=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ie=Object.getOwnPropertySymbols(te);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ue])&&(re[ie[ue]]=te[ie[ue]]);return re};const Ie=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ue=>fe.forwardRef((Me,ke)=>fe.createElement(ue,Object.assign({ref:ke,suffixCls:oe,tagName:re},Me)))}const a=fe.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ue,tagName:se}=te,Me=Ze(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ke}=fe.useContext(je.E_),dt=ke("layout",re),[At,Jt]=Ce(dt),_t=ie?`${dt}-${ie}`:dt;return At(fe.createElement(se,Object.assign({className:Ue()(re||_t,ue,Jt),ref:oe},Me)))}),y=fe.forwardRef((te,oe)=>{const{direction:re}=fe.useContext(je.E_),[ie,ue]=fe.useState([]),{prefixCls:se,className:Me,rootClassName:ke,children:dt,hasSider:At,tagName:Jt,style:_t}=te,jt=Ze(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Zt=(0,Ae.Z)(jt,["suffixCls"]),{getPrefixCls:pn,layout:Yt}=fe.useContext(je.E_),Qt=pn("layout",se),[ln,xn]=Ce(Qt),An=Ue()(Qt,{[`${Qt}-has-sider`]:typeof At=="boolean"?At:ie.length>0,[`${Qt}-rtl`]:re==="rtl"},Yt==null?void 0:Yt.className,Me,ke,xn),xe=fe.useMemo(()=>({siderHook:{addSider:ye=>{ue(Ge=>[].concat((0,ae.Z)(Ge),[ye]))},removeSider:ye=>{ue(Ge=>Ge.filter(qe=>qe!==ye))}}}),[]);return ln(fe.createElement(Ie.Provider,{value:xe},fe.createElement(Jt,Object.assign({ref:oe,className:An,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),_t)},Zt),dt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Be,tt,ge){"use strict";ge.d(tt,{J:function(){return je}});var ae=ge(59301),Pe=ge(33234),Ue=ge(70425),Ae=function(me,Je){var Oe={};for(var Ee in me)Object.prototype.hasOwnProperty.call(me,Ee)&&Je.indexOf(Ee)<0&&(Oe[Ee]=me[Ee]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ee=Object.getOwnPropertySymbols(me);Ce<Ee.length;Ce++)Je.indexOf(Ee[Ce])<0&&Object.prototype.propertyIsEnumerable.call(me,Ee[Ce])&&(Oe[Ee[Ce]]=me[Ee[Ce]]);return Oe};const fe=ae.createContext(null),je=ae.forwardRef((me,Je)=>{const{children:Oe}=me,Ee=Ae(me,["children"]),Ce=ae.useContext(fe),Ze=ae.useMemo(()=>Object.assign(Object.assign({},Ce),Ee),[Ce,Ee.prefixCls,Ee.mode,Ee.selectable]);return ae.createElement(fe.Provider,{value:Ze},ae.createElement(Pe.BR,null,(0,Ue.supportNodeRef)(Oe)?ae.cloneElement(Oe,{ref:Je}):Oe))});tt.Z=fe},20834:function(Be,tt,ge){"use strict";ge.d(tt,{default:function(){return xt}});var ae=ge(15285),Pe=ge(59301),Ue=ge(45818),Ae=ge(92310),fe=ge.n(Ae),je=ge(36355),me=function(ze,Le){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&Le.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)Le.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe},Oe=ze=>{const{prefixCls:Le,className:pe,dashed:He}=ze,Re=me(ze,["prefixCls","className","dashed"]),{getPrefixCls:nt}=Pe.useContext(je.E_),ft=nt("menu",Le),Lt=fe()({[`${ft}-item-divider-dashed`]:!!He},pe);return Pe.createElement(ae.iz,Object.assign({className:Lt},Re))},Ee=ge(11592),Ce=ge(2738),Ze=ge(6848),Ie=ge(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ze=>{var Le;const{className:pe,children:He,icon:Re,title:nt,danger:ft}=ze,{prefixCls:Lt,firstLevel:Dt,direction:Mt,disableMenuItemTitleTooltip:zt,inlineCollapsed:Nt}=Pe.useContext(a),un=be=>{const Te=Pe.createElement("span",{className:`${Lt}-title-content`},He);return(!Re||(0,Ie.l$)(He)&&He.type==="span")&&He&&be&&Dt&&typeof He=="string"?Pe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},He.charAt(0)):Te},{siderCollapsed:cn}=Pe.useContext(Ue.D);let Sn=nt;typeof nt=="undefined"?Sn=Dt?He:"":nt===!1&&(Sn="");const yt={title:Sn};!cn&&!Nt&&(yt.title=null,yt.open=!1);const Ct=(0,Ee.Z)(He).length;let Se=Pe.createElement(ae.ck,Object.assign({},(0,Ce.Z)(ze,["title","icon","danger"]),{className:fe()({[`${Lt}-item-danger`]:ft,[`${Lt}-item-only-child`]:(Re?Ct+1:Ct)===1},pe),title:typeof nt=="string"?nt:void 0}),(0,Ie.Tm)(Re,{className:fe()((0,Ie.l$)(Re)?(Le=Re.props)===null||Le===void 0?void 0:Le.className:"",`${Lt}-item-icon`)}),un(Nt));return zt||(Se=Pe.createElement(Ze.Z,Object.assign({},yt,{placement:Mt==="rtl"?"left":"right",overlayClassName:`${Lt}-inline-collapsed-tooltip`}),Se)),Se},E=ze=>{var Le;const{popupClassName:pe,icon:He,title:Re,theme:nt}=ze,ft=Pe.useContext(a),{prefixCls:Lt,inlineCollapsed:Dt,theme:Mt}=ft,zt=(0,ae.Xl)();let Nt;if(!He)Nt=Dt&&!zt.length&&Re&&typeof Re=="string"?Pe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},Re.charAt(0)):Pe.createElement("span",{className:`${Lt}-title-content`},Re);else{const cn=(0,Ie.l$)(Re)&&Re.type==="span";Nt=Pe.createElement(Pe.Fragment,null,(0,Ie.Tm)(He,{className:fe()((0,Ie.l$)(He)?(Le=He.props)===null||Le===void 0?void 0:Le.className:"",`${Lt}-item-icon`)}),cn?Re:Pe.createElement("span",{className:`${Lt}-title-content`},Re))}const un=Pe.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Pe.createElement(a.Provider,{value:un},Pe.createElement(ae.Wd,Object.assign({},(0,Ce.Z)(ze,["icon"]),{title:Nt,popupClassName:fe()(Lt,pe,`${Lt}-${nt||Mt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(ze,Le){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&Le.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)Le.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe};function ie(ze){return(ze||[]).map((Le,pe)=>{if(Le&&typeof Le=="object"){const He=Le,{label:Re,children:nt,key:ft,type:Lt}=He,Dt=re(He,["label","children","key","type"]),Mt=ft!=null?ft:`tmp-${pe}`;return nt||Lt==="group"?Lt==="group"?Pe.createElement(ae.BW,Object.assign({key:Mt},Dt,{title:Re}),ie(nt)):Pe.createElement(E,Object.assign({key:Mt},Dt,{title:Re}),ie(nt)):Lt==="divider"?Pe.createElement(Oe,Object.assign({key:Mt},Dt)):Pe.createElement(x,Object.assign({key:Mt},Dt),Re)}return null}).filter(Le=>Le)}function ue(ze){return Pe.useMemo(()=>ze&&ie(ze),[ze])}var se=ge(64993),Me=ge(17313),ke=ge(8378),dt=ge(13826),At=ge(29878),Jt=ge(83116),_t=ge(37613),Zt=ze=>{const{componentCls:Le,motionDurationSlow:pe,horizontalLineHeight:He,colorSplit:Re,lineWidth:nt,lineType:ft,itemPaddingInline:Lt}=ze;return{[`${Le}-horizontal`]:{lineHeight:He,border:0,borderBottom:`${nt}px ${ft} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},Yt=ze=>{let{componentCls:Le,menuArrowOffset:pe}=ze;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Qt=ze=>Object.assign({},(0,Me.oN)(ze));var xn=(ze,Le)=>{const{componentCls:pe,itemColor:He,itemSelectedColor:Re,groupTitleColor:nt,itemBg:ft,subMenuItemBg:Lt,itemSelectedBg:Dt,activeBarHeight:Mt,activeBarWidth:zt,activeBarBorderWidth:Nt,motionDurationSlow:un,motionEaseInOut:cn,motionEaseOut:Sn,itemPaddingInline:yt,motionDurationMid:Ct,itemHoverColor:Se,lineType:be,colorSplit:Te,itemDisabledColor:at,dangerItemColor:ot,dangerItemHoverColor:Bt,dangerItemSelectedColor:Gt,dangerItemActiveBg:St,dangerItemSelectedBg:Et,itemHoverBg:Wt,itemActiveBg:Ht,menuSubMenuBg:Vt,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:yn,horizontalItemHoverBg:en,popupBg:qt}=ze;return{[`${pe}-${Le}, ${pe}-${Le} > ${pe}`]:{color:He,background:ft,[`&${pe}-root:focus-visible`]:Object.assign({},Qt(ze)),[`${pe}-item-group-title`]:{color:nt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Re}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${at} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Se}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Wt},"&:active":{backgroundColor:Ht}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Wt},"&:active":{backgroundColor:Ht}}},[`${pe}-item-danger`]:{color:ot,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Bt}},[`&${pe}-item:active`]:{background:St}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Re,[`&${pe}-item-danger`]:{color:Gt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Dt,[`&${pe}-item-danger`]:{backgroundColor:Et}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Qt(ze))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Vt},[`&${pe}-popup > ${pe}`]:{backgroundColor:qt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Nt,marginTop:-Nt,marginBottom:0,borderRadius:yn,"&::after":{position:"absolute",insetInline:yt,bottom:0,borderBottom:`${Mt}px solid transparent`,transition:`border-color ${un} ${cn}`,content:'""'},"&:hover, &-active, &-open":{background:en,"&::after":{borderBottomWidth:Mt,borderBottomColor:sn}},"&-selected":{color:sn,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:Mt,borderBottomColor:sn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Nt}px ${be} ${Te}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Lt},[`${pe}-item, ${pe}-submenu-title`]:Nt&&zt?{width:`calc(100% + ${Nt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${zt}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ct} ${Sn}`,`opacity ${Ct} ${Sn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Gt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ct} ${cn}`,`opacity ${Ct} ${cn}`].join(",")}}}}}};const An=ze=>{const{componentCls:Le,itemHeight:pe,itemMarginInline:He,padding:Re,menuArrowSize:nt,marginXS:ft,itemMarginBlock:Lt}=ze,Dt=Re+nt+ft;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:He,marginBlock:Lt,width:`calc(100% - ${He*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:Dt}}};var ye=ze=>{const{componentCls:Le,iconCls:pe,itemHeight:He,colorTextLightSolid:Re,dropdownWidth:nt,controlHeightLG:ft,motionDurationMid:Lt,motionEaseOut:Dt,paddingXL:Mt,itemMarginInline:zt,fontSizeLG:Nt,motionDurationSlow:un,paddingXS:cn,boxShadowSecondary:Sn,collapsedWidth:yt,collapsedIconSize:Ct}=ze,Se={height:He,lineHeight:`${He}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},An(ze))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},An(ze)),{boxShadow:Sn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:nt,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${un}`,`background ${un}`,`padding ${Lt} ${Dt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:Se,[`& ${Le}-item-group-title`]:{paddingInlineStart:Mt}},[`${Le}-item`]:Se}},{[`${Le}-inline-collapsed`]:{width:yt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:Nt,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Nt/2}px - ${zt}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${pe}`]:{margin:0,fontSize:Ct,lineHeight:`${He}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Re}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Me.vS),{paddingInline:cn})}}]};const Ge=ze=>{const{componentCls:Le,motionDurationSlow:pe,motionDurationMid:He,motionEaseInOut:Re,motionEaseOut:nt,iconCls:ft,iconSize:Lt,iconMarginInlineEnd:Dt}=ze;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Re}`].join(","),[`${Le}-item-icon, ${ft}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${He} ${nt}`,`margin ${pe} ${Re}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${pe} ${Re}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Me.Ro)()),[`&${Le}-item-only-child`]:{[`> ${ft}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qe=ze=>{const{componentCls:Le,motionDurationSlow:pe,motionEaseInOut:He,borderRadius:Re,menuArrowSize:nt,menuArrowOffset:ft}=ze;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:nt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${He}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:nt*.6,height:nt*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${pe} ${He}`,`transform ${pe} ${He}`,`top ${pe} ${He}`,`color ${pe} ${He}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},Ve=ze=>{const{antCls:Le,componentCls:pe,fontSize:He,motionDurationSlow:Re,motionDurationMid:nt,motionEaseInOut:ft,paddingXS:Lt,padding:Dt,colorSplit:Mt,lineWidth:zt,zIndexPopup:Nt,borderRadiusLG:un,subMenuItemBorderRadius:cn,menuArrowSize:Sn,menuArrowOffset:yt,lineType:Ct,menuPanelMaskInset:Se,groupTitleLineHeight:be,groupTitleFontSize:Te}=ze;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Me.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,Me.Wf)(ze)),(0,Me.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:He,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} 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:ze.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Lt}px ${Dt}px`,fontSize:Te,lineHeight:be,transition:`all ${Re}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Re} ${ft}`,`background ${Re} ${ft}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Re} ${ft}`,`background ${Re} ${ft}`,`padding ${nt} ${ft}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Re} ${ft}`,`padding ${Re} ${ft}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Re}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Mt,borderStyle:Ct,borderWidth:0,borderTopWidth:zt,marginBlock:zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ge(ze)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${He*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:un,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Se}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Se},"\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:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:un},Ge(ze)),qe(ze)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:cn},[`${pe}-submenu-title::after`]:{transition:`transform ${Re} ${ft}`}})}}),qe(ze)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${yt})`},"&::after":{transform:`rotate(45deg) translateX(-${yt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${yt})`},"&::before":{transform:`rotate(45deg) translateX(${yt})`}}})},{[`${Le}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var mt=(ze,Le)=>(0,Jt.Z)("Menu",He=>{if(Le===!1)return[];const{colorBgElevated:Re,colorPrimary:nt,colorTextLightSolid:ft,controlHeightLG:Lt,fontSize:Dt,darkItemColor:Mt,darkDangerItemColor:zt,darkItemBg:Nt,darkSubMenuItemBg:un,darkItemSelectedColor:cn,darkItemSelectedBg:Sn,darkDangerItemSelectedBg:yt,darkItemHoverBg:Ct,darkGroupTitleColor:Se,darkItemHoverColor:be,darkItemDisabledColor:Te,darkDangerItemHoverColor:at,darkDangerItemSelectedColor:ot,darkDangerItemActiveBg:Bt}=He,Gt=Dt/7*5,St=(0,_t.TS)(He,{menuArrowSize:Gt,menuHorizontalHeight:Lt*1.15,menuArrowOffset:`${Gt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),Et=(0,_t.TS)(St,{itemColor:Mt,itemHoverColor:be,groupTitleColor:Se,itemSelectedColor:cn,itemBg:Nt,popupBg:Nt,subMenuItemBg:un,itemActiveBg:"transparent",itemSelectedBg:Sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ct,itemDisabledColor:Te,dangerItemColor:zt,dangerItemHoverColor:at,dangerItemSelectedColor:ot,dangerItemActiveBg:Bt,dangerItemSelectedBg:yt,menuSubMenuBg:un,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:nt});return[Ve(St),Zt(St),ye(St),xn(St,"light"),xn(Et,"dark"),Yt(St),(0,ke.Z)(St),(0,dt.oN)(St,"slide-up"),(0,dt.oN)(St,"slide-down"),(0,At._y)(St,"zoom-big")]},He=>{const{colorPrimary:Re,colorError:nt,colorTextDisabled:ft,colorErrorBg:Lt,colorText:Dt,colorTextDescription:Mt,colorBgContainer:zt,colorFillAlter:Nt,colorFillContent:un,lineWidth:cn,lineWidthBold:Sn,controlItemBgActive:yt,colorBgTextHover:Ct,controlHeightLG:Se,lineHeight:be,colorBgElevated:Te,marginXXS:at,padding:ot,fontSize:Bt,controlHeightSM:Gt,fontSizeLG:St,colorTextLightSolid:Et,colorErrorHover:Wt}=He,Ht=new se.C(Et).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:He.zIndexPopupBase+50,radiusItem:He.borderRadiusLG,itemBorderRadius:He.borderRadiusLG,radiusSubMenuItem:He.borderRadiusSM,subMenuItemBorderRadius:He.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:Mt,groupTitleColor:Mt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:zt,itemBg:zt,colorItemBgHover:Ct,itemHoverBg:Ct,colorItemBgActive:un,itemActiveBg:yt,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:yt,itemSelectedBg:yt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Sn,activeBarHeight:Sn,colorActiveBarBorderSize:cn,activeBarBorderWidth:cn,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:nt,dangerItemColor:nt,colorDangerItemTextHover:nt,dangerItemHoverColor:nt,colorDangerItemTextSelected:nt,dangerItemSelectedColor:nt,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:He.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Se,groupTitleLineHeight:be,collapsedWidth:Se*2,popupBg:Te,itemMarginBlock:at,itemPaddingInline:ot,horizontalLineHeight:`${Se*1.15}px`,iconSize:Bt,iconMarginInlineEnd:Gt-Bt,collapsedIconSize:St,groupTitleFontSize:Bt,darkItemDisabledColor:new se.C(Et).setAlpha(.25).toRgbString(),darkItemColor:Ht,darkDangerItemColor:nt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Et,darkItemSelectedBg:Re,darkDangerItemSelectedBg:nt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ht,darkItemHoverColor:Et,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:nt}},{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"]]})(ze),de=function(ze,Le){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&Le.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)Le.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe},lt=(0,Pe.forwardRef)((ze,Le)=>{var pe,He;const Re=Pe.useContext(oe.Z),nt=Re||{},{getPrefixCls:ft,getPopupContainer:Lt,direction:Dt,menu:Mt}=Pe.useContext(je.E_),zt=ft(),{prefixCls:Nt,className:un,style:cn,theme:Sn="light",expandIcon:yt,_internalDisableMenuItemTitleTooltip:Ct,inlineCollapsed:Se,siderCollapsed:be,items:Te,children:at,rootClassName:ot,mode:Bt,selectable:Gt,onClick:St,overflowedIndicatorPopupClassName:Et}=ze,Wt=de(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ht=(0,Ce.Z)(Wt,["collapsedWidth"]),Vt=ue(Te)||at;(pe=nt.validator)===null||pe===void 0||pe.call(nt,{mode:Bt});const sn=(0,ee.useEvent)(function(){var zn;St==null||St.apply(void 0,arguments),(zn=nt.onClick)===null||zn===void 0||zn.call(nt)}),Pn=nt.mode||Bt,yn=Gt!=null?Gt:nt.selectable,en=Pe.useMemo(()=>be!==void 0?be:Se,[Se,be]),qt={horizontal:{motionName:`${zt}-slide-up`},inline:(0,te.Z)(zt),other:{motionName:`${zt}-zoom-big`}},hn=ft("menu",Nt||nt.prefixCls),[En,Cn]=mt(hn,!Re),rn=fe()(`${hn}-${Sn}`,Mt==null?void 0:Mt.className,un);let On;if(typeof yt=="function")On=yt;else if(yt===null||yt===!1)On=null;else if(nt.expandIcon===null||nt.expandIcon===!1)On=null;else{const zn=yt!=null?yt:nt.expandIcon;On=(0,Ie.Tm)(zn,{className:fe()(`${hn}-submenu-expand-icon`,(0,Ie.l$)(zn)?(He=zn.props)===null||He===void 0?void 0:He.className:"")})}const Jn=Pe.useMemo(()=>({prefixCls:hn,inlineCollapsed:en||!1,direction:Dt,firstLevel:!0,theme:Sn,mode:Pn,disableMenuItemTitleTooltip:Ct}),[hn,en,Dt,Ct,Sn]);return En(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Jn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:Lt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(hn,`${hn}-${Sn}`,Et),mode:Pn,selectable:yn,onClick:sn},Ht,{inlineCollapsed:en,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),cn),className:rn,prefixCls:hn,direction:Dt,defaultMotions:qt,expandIcon:On,ref:Le,rootClassName:fe()(ot,Cn)}),Vt))))});const gt=(0,Pe.forwardRef)((ze,Le)=>{const pe=(0,Pe.useRef)(null),He=Pe.useContext(Ue.D);return(0,Pe.useImperativeHandle)(Le,()=>({menu:pe.current,focus:Re=>{var nt;(nt=pe.current)===null||nt===void 0||nt.focus(Re)}})),Pe.createElement(lt,Object.assign({ref:pe},ze,He))});gt.Item=x,gt.SubMenu=E,gt.Divider=Oe,gt.ItemGroup=ae.BW;var xt=gt},39722:function(Be,tt,ge){"use strict";ge.d(tt,{t5:function(){return Ee}});var ae=ge(92310),Pe=ge.n(ae),Ue=ge(55477),Ae=ge(59301),fe=ge(36355),je=ge(77578),me=ge(17356),Je=function(Ze,Ie){var ne={};for(var a in Ze)Object.prototype.hasOwnProperty.call(Ze,a)&&Ie.indexOf(a)<0&&(ne[a]=Ze[a]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(Ze);y<a.length;y++)Ie.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(Ze,a[y])&&(ne[a[y]]=Ze[a[y]]);return ne};const Oe=(Ze,Ie,ne)=>{if(!(!Ie&&!ne))return Ae.createElement(Ae.Fragment,null,Ie&&Ae.createElement("div",{className:`${Ze}-title`},(0,je.Z)(Ie)),Ae.createElement("div",{className:`${Ze}-inner-content`},(0,je.Z)(ne)))},Ee=Ze=>{const{hashId:Ie,prefixCls:ne,className:a,style:y,placement:x="top",title:b,content:E,children:z}=Ze;return Ae.createElement("div",{className:Pe()(Ie,ne,`${ne}-pure`,`${ne}-placement-${x}`,a),style:y},Ae.createElement("div",{className:`${ne}-arrow`}),Ae.createElement(Ue.G,Object.assign({},Ze,{className:Ie,prefixCls:ne}),z||Oe(ne,b,E)))},Ce=Ze=>{const{prefixCls:Ie}=Ze,ne=Je(Ze,["prefixCls"]),{getPrefixCls:a}=Ae.useContext(fe.E_),y=a("popover",Ie),[x,b]=(0,me.Z)(y);return x(Ae.createElement(Ee,Object.assign({},ne,{prefixCls:y,hashId:b})))};tt.ZP=Ce},60324:function(Be,tt,ge){"use strict";var ae=ge(92310),Pe=ge.n(ae),Ue=ge(59301),Ae=ge(77578),fe=ge(62892),je=ge(36355),me=ge(6848),Je=ge(39722),Oe=ge(17356),Ee=function(Ie,ne){var a={};for(var y in Ie)Object.prototype.hasOwnProperty.call(Ie,y)&&ne.indexOf(y)<0&&(a[y]=Ie[y]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(Ie);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(Ie,y[x])&&(a[y[x]]=Ie[y[x]]);return a};const Ce=Ie=>{let{title:ne,content:a,prefixCls:y}=Ie;return Ue.createElement(Ue.Fragment,null,ne&&Ue.createElement("div",{className:`${y}-title`},(0,Ae.Z)(ne)),Ue.createElement("div",{className:`${y}-inner-content`},(0,Ae.Z)(a)))},Ze=Ue.forwardRef((Ie,ne)=>{const{prefixCls:a,title:y,content:x,overlayClassName:b,placement:E="top",trigger:z="hover",mouseEnterDelay:ee=.1,mouseLeaveDelay:te=.1,overlayStyle:oe={}}=Ie,re=Ee(Ie,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ie}=Ue.useContext(je.E_),ue=ie("popover",a),[se,Me]=(0,Oe.Z)(ue),ke=ie(),dt=Pe()(b,Me);return se(Ue.createElement(me.Z,Object.assign({placement:E,trigger:z,mouseEnterDelay:ee,mouseLeaveDelay:te,overlayStyle:oe},re,{prefixCls:ue,overlayClassName:dt,ref:ne,overlay:y||x?Ue.createElement(Ce,{prefixCls:ue,title:y,content:x}):null,transitionName:(0,fe.m)(ke,"zoom-big",re.transitionName),"data-popover-inject":!0})))});Ze._InternalPanelDoNotUseOrYouWillBeFired=Je.ZP,tt.Z=Ze},17356:function(Be,tt,ge){"use strict";var ae=ge(17313),Pe=ge(29878),Ue=ge(19447),Ae=ge(33166),fe=ge(83116),je=ge(37613);const me=Ee=>{const{componentCls:Ce,popoverColor:Ze,minWidth:Ie,fontWeightStrong:ne,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:x,borderRadiusLG:b,zIndexPopup:E,marginXS:z,colorBgElevated:ee,popoverBg:te}=Ee;return[{[Ce]:Object.assign(Object.assign({},(0,ae.Wf)(Ee)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:E,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ee,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ce}-content`]:{position:"relative"},[`${Ce}-inner`]:{backgroundColor:te,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${Ce}-title`]:{minWidth:Ie,marginBottom:z,color:x,fontWeight:ne},[`${Ce}-inner-content`]:{color:Ze}})},(0,Ue.ZP)(Ee,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ce}-pure`]:{position:"relative",maxWidth:"none",margin:Ee.sizePopupArrow,display:"inline-block",[`${Ce}-content`]:{display:"inline-block"}}}]},Je=Ee=>{const{componentCls:Ce}=Ee;return{[Ce]:Ae.i.map(Ze=>{const Ie=Ee[`${Ze}6`];return{[`&${Ce}-${Ze}`]:{"--antd-arrow-background-color":Ie,[`${Ce}-inner`]:{backgroundColor:Ie},[`${Ce}-arrow`]:{background:"transparent"}}}})}},Oe=Ee=>{const{componentCls:Ce,lineWidth:Ze,lineType:Ie,colorSplit:ne,paddingSM:a,controlHeight:y,fontSize:x,lineHeight:b,padding:E}=Ee,z=y-Math.round(x*b),ee=z/2,te=z/2-Ze,oe=E;return{[Ce]:{[`${Ce}-inner`]:{padding:0},[`${Ce}-title`]:{margin:0,padding:`${ee}px ${oe}px ${te}px`,borderBottom:`${Ze}px ${Ie} ${ne}`},[`${Ce}-inner-content`]:{padding:`${a}px ${oe}px`}}}};tt.Z=(0,fe.Z)("Popover",Ee=>{const{colorBgElevated:Ce,colorText:Ze,wireframe:Ie}=Ee,ne=(0,je.TS)(Ee,{popoverPadding:12,popoverBg:Ce,popoverColor:Ze});return[me(ne),Je(ne),Ie&&Oe(ne),(0,Pe._y)(ne,"zoom-big")]},Ee=>({width:177,minWidth:177,zIndexPopup:Ee.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(Be,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ct}});var ae=ge(59301),Pe=ge(29679),Ue=ge(40001),Ae=ge(19248),fe=ge(99267),je=ge(92310),me=ge.n(je),Je=ge(2738),Oe=ge(36355),Ee=ge(54476),Ce=ge(33885),Ze=ge(75931),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var be=(0,ae.useRef)([]),Te=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var at=Date.now(),ot=!1;be.current.forEach(function(Bt){if(Bt){ot=!0;var Gt=Bt.style;Gt.transitionDuration=".3s, .3s, .3s, .06s",Te.current&&at-Te.current<100&&(Gt.transitionDuration="0s, 0s")}}),ot&&(Te.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var Te=(0,Ce.Z)((0,Ce.Z)({},Ie),be),at=Te.className,ot=Te.percent,Bt=Te.prefixCls,Gt=Te.strokeColor,St=Te.strokeLinecap,Et=Te.strokeWidth,Wt=Te.style,Ht=Te.trailColor,Vt=Te.trailWidth,sn=Te.transition,Pn=(0,Ze.Z)(Te,a);delete Pn.gapPosition;var yn=Array.isArray(ot)?ot:[ot],en=Array.isArray(Gt)?Gt:[Gt],qt=ne(),hn=Et/2,En=100-Et/2,Cn="M ".concat(St==="round"?hn:0,",").concat(hn,`
L `).concat(St==="round"?En:100,",").concat(hn),rn="0 0 100 ".concat(Et),On=0;return ae.createElement("svg",(0,Ee.Z)({className:me()("".concat(Bt,"-line"),at),viewBox:rn,preserveAspectRatio:"none",style:Wt},Pn),ae.createElement("path",{className:"".concat(Bt,"-line-trail"),d:Cn,strokeLinecap:St,stroke:Ht,strokeWidth:Vt||Et,fillOpacity:"0"}),yn.map(function(Jn,zn){var Un=1;switch(St){case"round":Un=1-Et/100;break;case"square":Un=1-Et/2/100;break;default:Un=1;break}var ta={strokeDasharray:"".concat(Jn*Un,"px, 100px"),strokeDashoffset:"-".concat(On,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qn=en[zn]||en[en.length-1];return On+=Jn,ae.createElement("path",{key:zn,className:"".concat(Bt,"-line-path"),d:Cn,strokeLinecap:St,stroke:Qn,strokeWidth:Et,fillOpacity:"0",ref:function(ve){qt[zn]=ve},style:ta})}))},x=y,b=ge(76190),E=ge(42978),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var Se;return te?(Se=ee,ee+=1):Se="TEST_OR_SSR",Se}var re=function(Se){var be=ae.useState(),Te=(0,E.Z)(be,2),at=Te[0],ot=Te[1];return ae.useEffect(function(){ot("rc_progress_".concat(oe()))},[]),Se||at},ie=function(be){var Te=be.bg,at=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Te}},at)};function ue(Se,be){return Object.keys(Se).map(function(Te){var at=parseFloat(Te),ot="".concat(Math.floor(at*be),"%");return"".concat(Se[Te]," ").concat(ot)})}var se=ae.forwardRef(function(Se,be){var Te=Se.prefixCls,at=Se.color,ot=Se.gradientId,Bt=Se.radius,Gt=Se.style,St=Se.ptg,Et=Se.strokeLinecap,Wt=Se.strokeWidth,Ht=Se.size,Vt=Se.gapDegree,sn=at&&(0,b.Z)(at)==="object",Pn=sn?"#FFF":void 0,yn=Ht/2,en=ae.createElement("circle",{className:"".concat(Te,"-circle-path"),r:Bt,cx:yn,cy:yn,stroke:Pn,strokeLinecap:Et,strokeWidth:Wt,opacity:St===0?0:1,style:Gt,ref:be});if(!sn)return en;var qt="".concat(ot,"-conic"),hn=Vt?"".concat(180+Vt/2,"deg"):"0deg",En=ue(at,(360-Vt)/360),Cn=ue(at,1),rn="conic-gradient(from ".concat(hn,", ").concat(En.join(", "),")"),On="linear-gradient(to ".concat(Vt?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:qt},en),ae.createElement("foreignObject",{x:0,y:0,width:Ht,height:Ht,mask:"url(#".concat(qt,")")},ae.createElement(ie,{bg:On},ae.createElement(ie,{bg:rn}))))}),Me=se,ke=100,dt=function(be,Te,at,ot,Bt,Gt,St,Et,Wt,Ht){var Vt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=at/100*360*((360-Gt)/360),Pn=Gt===0?0:{bottom:0,top:180,left:90,right:-90}[St],yn=(100-ot)/100*Te;Wt==="round"&&ot!==100&&(yn+=Ht/2,yn>=Te&&(yn=Te-.01));var en=ke/2;return{stroke:typeof Et=="string"?Et:void 0,strokeDasharray:"".concat(Te,"px ").concat(be),strokeDashoffset:yn+Vt,transform:"rotate(".concat(Bt+sn+Pn,"deg)"),transformOrigin:"".concat(en,"px ").concat(en,"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}},At=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Jt(Se){var be=Se!=null?Se:[];return Array.isArray(be)?be:[be]}var _t=function(be){var Te=(0,Ce.Z)((0,Ce.Z)({},Ie),be),at=Te.id,ot=Te.prefixCls,Bt=Te.steps,Gt=Te.strokeWidth,St=Te.trailWidth,Et=Te.gapDegree,Wt=Et===void 0?0:Et,Ht=Te.gapPosition,Vt=Te.trailColor,sn=Te.strokeLinecap,Pn=Te.style,yn=Te.className,en=Te.strokeColor,qt=Te.percent,hn=(0,Ze.Z)(Te,At),En=ke/2,Cn=re(at),rn="".concat(Cn,"-gradient"),On=En-Gt/2,Jn=Math.PI*2*On,zn=Wt>0?90+Wt/2:-90,Un=Jn*((360-Wt)/360),ta=(0,b.Z)(Bt)==="object"?Bt:{count:Bt,space:2},Qn=ta.count,he=ta.space,ve=Jt(qt),ce=Jt(en),et=ce.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),pt=et&&(0,b.Z)(et)==="object",ut=pt?"butt":sn,tn=dt(Jn,Un,0,100,zn,Wt,Ht,Vt,ut,Gt),Tt=ne(),Xt=function(){var Ye=0;return ve.map(function(Kt,Dn){var Xn=ce[Dn]||ce[ce.length-1],Fn=dt(Jn,Un,Ye,Kt,zn,Wt,Ht,Xn,ut,Gt);return Ye+=Kt,ae.createElement(Me,{key:Dn,color:Xn,ptg:Kt,radius:On,prefixCls:ot,gradientId:rn,style:Fn,strokeLinecap:ut,strokeWidth:Gt,gapDegree:Wt,ref:function(Fe){Tt[Dn]=Fe},size:ke})}).reverse()},fn=function(){var Ye=Math.round(Qn*(ve[0]/100)),Kt=100/Qn,Dn=0;return new Array(Qn).fill(null).map(function(Xn,Fn){var le=Fn<=Ye-1?ce[0]:Vt,Fe=le&&(0,b.Z)(le)==="object"?"url(#".concat(rn,")"):void 0,we=dt(Jn,Un,Dn,Kt,zn,Wt,Ht,le,"butt",Gt,he);return Dn+=(Un-we.strokeDashoffset+he)*100/Un,ae.createElement("circle",{key:Fn,className:"".concat(ot,"-circle-path"),r:On,cx:En,cy:En,stroke:Fe,strokeWidth:Gt,opacity:1,style:we,ref:function(Xe){Tt[Fn]=Xe}})})};return ae.createElement("svg",(0,Ee.Z)({className:me()("".concat(ot,"-circle"),yn),viewBox:"0 0 ".concat(ke," ").concat(ke),style:Pn,id:at,role:"presentation"},hn),!Qn&&ae.createElement("circle",{className:"".concat(ot,"-circle-trail"),r:On,cx:En,cy:En,stroke:Vt,strokeLinecap:ut,strokeWidth:St||Gt,style:tn}),Qn?fn():Xt())},jt=_t,Zt={Line:x,Circle:jt},pn=ge(6848),Yt=ge(30071);function Qt(Se){return!Se||Se<0?0:Se>100?100:Se}function ln(Se){let{success:be,successPercent:Te}=Se,at=Te;return be&&"progress"in be&&(at=be.progress),be&&"percent"in be&&(at=be.percent),at}const xn=Se=>{let{percent:be,success:Te,successPercent:at}=Se;const ot=Qt(ln({success:Te,successPercent:at}));return[ot,Qt(Qt(be)-ot)]},An=Se=>{let{success:be={},strokeColor:Te}=Se;const{strokeColor:at}=be;return[at||Yt.presetPrimaryColors.green,Te||null]},xe=(Se,be,Te)=>{var at,ot,Bt,Gt;let St=-1,Et=-1;if(be==="step"){const Wt=Te.steps,Ht=Te.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?(St=Se==="small"?2:14,Et=Ht!=null?Ht:8):typeof Se=="number"?[St,Et]=[Se,Se]:[St=14,Et=8]=Se,St*=Wt}else if(be==="line"){const Wt=Te==null?void 0:Te.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?Et=Wt||(Se==="small"?6:8):typeof Se=="number"?[St,Et]=[Se,Se]:[St=-1,Et=8]=Se}else(be==="circle"||be==="dashboard")&&(typeof Se=="string"||typeof Se=="undefined"?[St,Et]=Se==="small"?[60,60]:[120,120]:typeof Se=="number"?[St,Et]=[Se,Se]:(St=(ot=(at=Se[0])!==null&&at!==void 0?at:Se[1])!==null&&ot!==void 0?ot:120,Et=(Gt=(Bt=Se[0])!==null&&Bt!==void 0?Bt:Se[1])!==null&&Gt!==void 0?Gt:120));return[St,Et]},ye=3,Ge=Se=>ye/Se*100;var Ve=Se=>{const{prefixCls:be,trailColor:Te=null,strokeLinecap:at="round",gapPosition:ot,gapDegree:Bt,width:Gt=120,type:St,children:Et,success:Wt,size:Ht=Gt}=Se,[Vt,sn]=xe(Ht,"circle");let{strokeWidth:Pn}=Se;Pn===void 0&&(Pn=Math.max(Ge(Vt),6));const yn={width:Vt,height:sn,fontSize:Vt*.15+6},en=ae.useMemo(()=>{if(Bt||Bt===0)return Bt;if(St==="dashboard")return 75},[Bt,St]),qt=ot||St==="dashboard"&&"bottom"||void 0,hn=Object.prototype.toString.call(Se.strokeColor)==="[object Object]",En=An({success:Wt,strokeColor:Se.strokeColor}),Cn=me()(`${be}-inner`,{[`${be}-circle-gradient`]:hn}),rn=ae.createElement(jt,{percent:xn(Se),strokeWidth:Pn,trailWidth:Pn,strokeColor:En,strokeLinecap:at,trailColor:Te,prefixCls:be,gapDegree:en,gapPosition:qt});return ae.createElement("div",{className:Cn,style:yn},Vt<=20?ae.createElement(pn.Z,{title:Et},ae.createElement("span",null,rn)):ae.createElement(ae.Fragment,null,rn,Et))},mt=function(Se,be){var Te={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&be.indexOf(at)<0&&(Te[at]=Se[at]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(Se);ot<at.length;ot++)be.indexOf(at[ot])<0&&Object.prototype.propertyIsEnumerable.call(Se,at[ot])&&(Te[at[ot]]=Se[at[ot]]);return Te};const de=Se=>{let be=[];return Object.keys(Se).forEach(Te=>{const at=parseFloat(Te.replace(/%/g,""));isNaN(at)||be.push({key:at,value:Se[Te]})}),be=be.sort((Te,at)=>Te.key-at.key),be.map(Te=>{let{key:at,value:ot}=Te;return`${ot} ${at}%`}).join(", ")},Qe=(Se,be)=>{const{from:Te=Yt.presetPrimaryColors.blue,to:at=Yt.presetPrimaryColors.blue,direction:ot=be==="rtl"?"to left":"to right"}=Se,Bt=mt(Se,["from","to","direction"]);if(Object.keys(Bt).length!==0){const Gt=de(Bt);return{backgroundImage:`linear-gradient(${ot}, ${Gt})`}}return{backgroundImage:`linear-gradient(${ot}, ${Te}, ${at})`}};var gt=Se=>{const{prefixCls:be,direction:Te,percent:at,size:ot,strokeWidth:Bt,strokeColor:Gt,strokeLinecap:St="round",children:Et,trailColor:Wt=null,success:Ht}=Se,Vt=Gt&&typeof Gt!="string"?Qe(Gt,Te):{backgroundColor:Gt},sn=St==="square"||St==="butt"?0:void 0,Pn={backgroundColor:Wt||void 0,borderRadius:sn},yn=ot!=null?ot:[-1,Bt||(ot==="small"?6:8)],[en,qt]=xe(yn,"line",{strokeWidth:Bt}),hn=Object.assign({width:`${Qt(at)}%`,height:qt,borderRadius:sn},Vt),En=ln(Se),Cn={width:`${Qt(En)}%`,height:qt,borderRadius:sn,backgroundColor:Ht==null?void 0:Ht.strokeColor},rn={width:en<0?"100%":en,height:qt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:rn},ae.createElement("div",{className:`${be}-inner`,style:Pn},ae.createElement("div",{className:`${be}-bg`,style:hn}),En!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:Cn}):null)),Et)},ze=Se=>{const{size:be,steps:Te,percent:at=0,strokeWidth:ot=8,strokeColor:Bt,trailColor:Gt=null,prefixCls:St,children:Et}=Se,Wt=Math.round(Te*(at/100)),Ht=be==="small"?2:14,Vt=be!=null?be:[Ht,ot],[sn,Pn]=xe(Vt,"step",{steps:Te,strokeWidth:ot}),yn=sn/Te,en=new Array(Te);for(let qt=0;qt<Te;qt++){const hn=Array.isArray(Bt)?Bt[qt]:Bt;en[qt]=ae.createElement("div",{key:qt,className:me()(`${St}-steps-item`,{[`${St}-steps-item-active`]:qt<=Wt-1}),style:{backgroundColor:qt<=Wt-1?hn:Gt,width:yn,height:Pn}})}return ae.createElement("div",{className:`${St}-steps-outer`},en,Et)},Le=ge(36237),pe=ge(17313),He=ge(83116),Re=ge(37613);const nt=Se=>{const be=Se?"100%":"-100%";return new Le.Keyframes(`antProgress${Se?"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}})},ft=Se=>{const{componentCls:be,iconCls:Te}=Se;return{[be]:Object.assign(Object.assign({},(0,pe.Wf)(Se)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Se.fontSize,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${Se.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Se.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Se.remainingColor,borderRadius:Se.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Se.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:Se.defaultColor,borderRadius:Se.lineBorderRadius,transition:`all ${Se.motionDurationSlow} ${Se.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Se.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Se.marginXS,color:Se.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Te]:{fontSize:Se.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Se.colorBgContainer,borderRadius:Se.lineBorderRadius,opacity:0,animationName:nt(),animationDuration:Se.progressActiveMotionDuration,animationTimingFunction:Se.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:nt(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:Se.colorError},[`${be}-text`]:{color:Se.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Se.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:Se.colorSuccess},[`${be}-text`]:{color:Se.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Se.colorSuccess}}})}},Lt=Se=>{const{componentCls:be,iconCls:Te}=Se;return{[be]:{[`${be}-circle-trail`]:{stroke:Se.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:Se.circleTextColor,fontSize:Se.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Te]:{fontSize:`${Se.fontSize/Se.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:Se.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:Se.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},Dt=Se=>{const{componentCls:be}=Se;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Se.progressStepMinWidth,marginInlineEnd:Se.progressStepMarginInlineEnd,backgroundColor:Se.remainingColor,transition:`all ${Se.motionDurationSlow}`,"&-active":{backgroundColor:Se.defaultColor}}}}}},Mt=Se=>{const{componentCls:be,iconCls:Te}=Se;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${Te}`]:{fontSize:Se.fontSizeSM}}}};var zt=(0,He.Z)("Progress",Se=>{const be=Se.marginXXS/2,Te=(0,Re.TS)(Se,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[ft(Te),Lt(Te),Dt(Te),Mt(Te)]},Se=>({circleTextColor:Se.colorText,defaultColor:Se.colorInfo,remainingColor:Se.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=function(Se,be){var Te={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&be.indexOf(at)<0&&(Te[at]=Se[at]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,at=Object.getOwnPropertySymbols(Se);ot<at.length;ot++)be.indexOf(at[ot])<0&&Object.prototype.propertyIsEnumerable.call(Se,at[ot])&&(Te[at[ot]]=Se[at[ot]]);return Te};const un=null,cn=["normal","exception","active","success"];var yt=ae.forwardRef((Se,be)=>{const{prefixCls:Te,className:at,rootClassName:ot,steps:Bt,strokeColor:Gt,percent:St=0,size:Et="default",showInfo:Wt=!0,type:Ht="line",status:Vt,format:sn,style:Pn}=Se,yn=Nt(Se,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),en=ae.useMemo(()=>{var ve,ce;const et=ln(Se);return parseInt(et!==void 0?(ve=et!=null?et:0)===null||ve===void 0?void 0:ve.toString():(ce=St!=null?St:0)===null||ce===void 0?void 0:ce.toString(),10)},[St,Se.success,Se.successPercent]),qt=ae.useMemo(()=>!cn.includes(Vt)&&en>=100?"success":Vt||"normal",[Vt,en]),{getPrefixCls:hn,direction:En,progress:Cn}=ae.useContext(Oe.E_),rn=hn("progress",Te),[On,Jn]=zt(rn),zn=ae.useMemo(()=>{if(!Wt)return null;const ve=ln(Se);let ce;const et=sn||(ut=>`${ut}%`),pt=Ht==="line";return sn||qt!=="exception"&&qt!=="success"?ce=et(Qt(St),Qt(ve)):qt==="exception"?ce=pt?ae.createElement(Ae.Z,null):ae.createElement(fe.Z,null):qt==="success"&&(ce=pt?ae.createElement(Pe.Z,null):ae.createElement(Ue.Z,null)),ae.createElement("span",{className:`${rn}-text`,title:typeof ce=="string"?ce:void 0},ce)},[Wt,St,en,qt,Ht,rn,sn]),Un=Array.isArray(Gt)?Gt[0]:Gt,ta=typeof Gt=="string"||Array.isArray(Gt)?Gt:void 0;let Qn;Ht==="line"?Qn=Bt?ae.createElement(ze,Object.assign({},Se,{strokeColor:ta,prefixCls:rn,steps:Bt}),zn):ae.createElement(gt,Object.assign({},Se,{strokeColor:Un,prefixCls:rn,direction:En}),zn):(Ht==="circle"||Ht==="dashboard")&&(Qn=ae.createElement(Ve,Object.assign({},Se,{strokeColor:Un,prefixCls:rn,progressStatus:qt}),zn));const he=me()(rn,`${rn}-status-${qt}`,`${rn}-${Ht==="dashboard"&&"circle"||Bt&&"steps"||Ht}`,{[`${rn}-inline-circle`]:Ht==="circle"&&xe(Et,"circle")[0]<=20,[`${rn}-show-info`]:Wt,[`${rn}-${Et}`]:typeof Et=="string",[`${rn}-rtl`]:En==="rtl"},Cn==null?void 0:Cn.className,at,ot,Jn);return On(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Pn),className:he,role:"progressbar","aria-valuenow":en},(0,Je.Z)(yn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qn))}),Ct=yt},54580:function(Be,tt,ge){"use strict";ge.d(tt,{default:function(){return Fn}});var ae=ge(59301),Pe=ge(94480),Ue=ge(92310),Ae=ge.n(Ue),fe=ge(54476),je=ge(67732),me=ge(83652),Je=ge(42403),Oe=ge(158),Ee=ge(20068),Ce=ge(75931),Ze=ge(75044),Ie=ge(76190),ne=ge(3202),a=ge(26112);function y(le,Fe){var we="cannot ".concat(le.method," ").concat(le.action," ").concat(Fe.status,"'"),Ne=new Error(we);return Ne.status=Fe.status,Ne.method=le.method,Ne.url=le.action,Ne}function x(le){var Fe=le.responseText||le.response;if(!Fe)return Fe;try{return JSON.parse(Fe)}catch(we){return Fe}}function b(le){var Fe=new XMLHttpRequest;le.onProgress&&Fe.upload&&(Fe.upload.onprogress=function(Ke){Ke.total>0&&(Ke.percent=Ke.loaded/Ke.total*100),le.onProgress(Ke)});var we=new FormData;le.data&&Object.keys(le.data).forEach(function(Xe){var Ke=le.data[Xe];if(Array.isArray(Ke)){Ke.forEach(function(_e){we.append("".concat(Xe,"[]"),_e)});return}we.append(Xe,Ke)}),le.file instanceof Blob?we.append(le.filename,le.file,le.file.name):we.append(le.filename,le.file),Fe.onerror=function(Ke){le.onError(Ke)},Fe.onload=function(){return Fe.status<200||Fe.status>=300?le.onError(y(le,Fe),x(Fe)):le.onSuccess(x(Fe),Fe)},Fe.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in Fe&&(Fe.withCredentials=!0);var Ne=le.headers||{};return Ne["X-Requested-With"]!==null&&Fe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ne).forEach(function(Xe){Ne[Xe]!==null&&Fe.setRequestHeader(Xe,Ne[Xe])}),Fe.send(we),{abort:function(){Fe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(48736),oe=function(le,Fe){if(le&&Fe){var we=Array.isArray(Fe)?Fe:Fe.split(","),Ne=le.name||"",Xe=le.type||"",Ke=Xe.replace(/\/.*$/,"");return we.some(function(_e){var De=_e.trim();if(/^\*(\/\*)?$/.test(_e))return!0;if(De.charAt(0)==="."){var bt=Ne.toLowerCase(),wt=De.toLowerCase(),Ft=[wt];return(wt===".jpg"||wt===".jpeg")&&(Ft=[".jpg",".jpeg"]),Ft.some(function($e){return bt.endsWith($e)})}return/\/\*$/.test(De)?Ke===De.replace(/\/.*$/,""):Xe===De?!0:/^\w+$/.test(De)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(De,"'.Skip for check.")),!0):!1})}return!0};function re(le,Fe){var we=le.createReader(),Ne=[];function Xe(){we.readEntries(function(Ke){var _e=Array.prototype.slice.apply(Ke);Ne=Ne.concat(_e);var De=!_e.length;De?Fe(Ne):Xe()})}Xe()}var ie=function(Fe,we,Ne){var Xe=function Ke(_e,De){_e&&(_e.path=De||"",_e.isFile?_e.file(function(bt){Ne(bt)&&(_e.fullPath&&!bt.webkitRelativePath&&(Object.defineProperties(bt,{webkitRelativePath:{writable:!0}}),bt.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(bt,{webkitRelativePath:{writable:!1}})),we([bt]))}):_e.isDirectory&&re(_e,function(bt){bt.forEach(function(wt){Ke(wt,"".concat(De).concat(_e.name,"/"))})}))};Fe.forEach(function(Ke){Xe(Ke.webkitGetAsEntry())})},ue=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Me=function(le){(0,Je.Z)(we,le);var Fe=(0,Oe.Z)(we);function we(){var Ne;(0,je.Z)(this,we);for(var Xe=arguments.length,Ke=new Array(Xe),_e=0;_e<Xe;_e++)Ke[_e]=arguments[_e];return Ne=Fe.call.apply(Fe,[this].concat(Ke)),Ne.state={uid:ee()},Ne.reqs={},Ne.fileInput=void 0,Ne._isMounted=void 0,Ne.onChange=function(De){var bt=Ne.props,wt=bt.accept,Ft=bt.directory,$e=De.target.files,nn=(0,Pe.Z)($e).filter(function(mn){return!Ft||oe(mn,wt)});Ne.uploadFiles(nn),Ne.reset()},Ne.onClick=function(De){var bt=Ne.fileInput;if(bt){var wt=De.target,Ft=Ne.props.onClick;if(wt&&wt.tagName==="BUTTON"){var $e=bt.parentNode;$e.focus(),wt.blur()}bt.click(),Ft&&Ft(De)}},Ne.onKeyDown=function(De){De.key==="Enter"&&Ne.onClick(De)},Ne.onFileDrop=function(De){var bt=Ne.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Ne.props.directory)ue(Array.prototype.slice.call(De.dataTransfer.items),Ne.uploadFiles,function(Ft){return oe(Ft,Ne.props.accept)});else{var wt=(0,Pe.Z)(De.dataTransfer.files).filter(function(Ft){return oe(Ft,Ne.props.accept)});bt===!1&&(wt=wt.slice(0,1)),Ne.uploadFiles(wt)}},Ne.uploadFiles=function(De){var bt=(0,Pe.Z)(De),wt=bt.map(function(Ft){return Ft.uid=ee(),Ne.processFile(Ft,bt)});Promise.all(wt).then(function(Ft){var $e=Ne.props.onBatchStart;$e==null||$e(Ft.map(function(nn){var mn=nn.origin,Tn=nn.parsedFile;return{file:mn,parsedFile:Tn}})),Ft.filter(function(nn){return nn.parsedFile!==null}).forEach(function(nn){Ne.post(nn)})})},Ne.processFile=function(){var De=(0,ne.Z)((0,Ze.Z)().mark(function bt(wt,Ft){var $e,nn,mn,Tn,We,st,Pt,vt,It;return(0,Ze.Z)().wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if($e=Ne.props.beforeUpload,nn=wt,!$e){$t.next=14;break}return $t.prev=3,$t.next=6,$e(wt,Ft);case 6:nn=$t.sent,$t.next=12;break;case 9:$t.prev=9,$t.t0=$t.catch(3),nn=!1;case 12:if(nn!==!1){$t.next=14;break}return $t.abrupt("return",{origin:wt,parsedFile:null,action:null,data:null});case 14:if(mn=Ne.props.action,typeof mn!="function"){$t.next=21;break}return $t.next=18,mn(wt);case 18:Tn=$t.sent,$t.next=22;break;case 21:Tn=mn;case 22:if(We=Ne.props.data,typeof We!="function"){$t.next=29;break}return $t.next=26,We(wt);case 26:st=$t.sent,$t.next=30;break;case 29:st=We;case 30:return Pt=((0,Ie.Z)(nn)==="object"||typeof nn=="string")&&nn?nn:wt,Pt instanceof File?vt=Pt:vt=new File([Pt],wt.name,{type:wt.type}),It=vt,It.uid=wt.uid,$t.abrupt("return",{origin:wt,data:st,parsedFile:It,action:Tn});case 35:case"end":return $t.stop()}},bt,null,[[3,9]])}));return function(bt,wt){return De.apply(this,arguments)}}(),Ne.saveFileInput=function(De){Ne.fileInput=De},Ne}return(0,me.Z)(we,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Xe){var Ke=this,_e=Xe.data,De=Xe.origin,bt=Xe.action,wt=Xe.parsedFile;if(this._isMounted){var Ft=this.props,$e=Ft.onStart,nn=Ft.customRequest,mn=Ft.name,Tn=Ft.headers,We=Ft.withCredentials,st=Ft.method,Pt=De.uid,vt=nn||b,It={action:bt,filename:mn,data:_e,file:wt,headers:Tn,withCredentials:We,method:st||"post",onProgress:function($t){var gn=Ke.props.onProgress;gn==null||gn($t,wt)},onSuccess:function($t,gn){var dn=Ke.props.onSuccess;dn==null||dn($t,wt,gn),delete Ke.reqs[Pt]},onError:function($t,gn){var dn=Ke.props.onError;dn==null||dn($t,gn,wt),delete Ke.reqs[Pt]}};$e(De),this.reqs[Pt]=vt(It)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Xe){var Ke=this.reqs;if(Xe){var _e=Xe.uid?Xe.uid:Xe;Ke[_e]&&Ke[_e].abort&&Ke[_e].abort(),delete Ke[_e]}else Object.keys(Ke).forEach(function(De){Ke[De]&&Ke[De].abort&&Ke[De].abort(),delete Ke[De]})}},{key:"render",value:function(){var Xe=this.props,Ke=Xe.component,_e=Xe.prefixCls,De=Xe.className,bt=Xe.disabled,wt=Xe.id,Ft=Xe.style,$e=Xe.multiple,nn=Xe.accept,mn=Xe.capture,Tn=Xe.children,We=Xe.directory,st=Xe.openFileDialogOnClick,Pt=Xe.onMouseEnter,vt=Xe.onMouseLeave,It=(0,Ce.Z)(Xe,se),Rt=Ae()((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},_e,!0),"".concat(_e,"-disabled"),bt),De,De)),$t=We?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},gn=bt?{}:{onClick:st?this.onClick:function(){},onKeyDown:st?this.onKeyDown:function(){},onMouseEnter:Pt,onMouseLeave:vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ke,(0,fe.Z)({},gn,{className:Rt,role:"button",style:Ft}),ae.createElement("input",(0,fe.Z)({},(0,a.Z)(It,{aria:!0,data:!0}),{id:wt,disabled:bt,type:"file",ref:this.saveFileInput,onClick:function(qn){return qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:nn},$t,{multiple:$e,onChange:this.onChange},mn!=null?{capture:mn}:{})),Tn)}}]),we}(ae.Component),ke=Me;function dt(){}var At=function(le){(0,Je.Z)(we,le);var Fe=(0,Oe.Z)(we);function we(){var Ne;(0,je.Z)(this,we);for(var Xe=arguments.length,Ke=new Array(Xe),_e=0;_e<Xe;_e++)Ke[_e]=arguments[_e];return Ne=Fe.call.apply(Fe,[this].concat(Ke)),Ne.uploader=void 0,Ne.saveUploader=function(De){Ne.uploader=De},Ne}return(0,me.Z)(we,[{key:"abort",value:function(Xe){this.uploader.abort(Xe)}},{key:"render",value:function(){return ae.createElement(ke,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),we}(ae.Component);At.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:dt,onError:dt,onSuccess:dt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Jt=At,_t=Jt,jt=ge(18929),Zt=ge(4676),pn=ge(36355),Yt=ge(1684),Qt=ge(9763),ln=ge(31724),xn={icon:function(Fe,we){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:we}},{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:Fe}}]}},name:"file",theme:"twotone"},An=xn,xe=ge(7657),ye=function(Fe,we){return ae.createElement(xe.Z,(0,fe.Z)({},Fe,{ref:we,icon:An}))},Ge=ae.forwardRef(ye),qe=Ge,Ve=ge(58617),mt={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=mt,Qe=function(Fe,we){return ae.createElement(xe.Z,(0,fe.Z)({},Fe,{ref:we,icon:de}))},lt=ae.forwardRef(Qe),gt=lt,xt={icon:function(Fe,we){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:Fe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:we}},{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:we}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:we}},{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:Fe}}]}},name:"picture",theme:"twotone"},ze=xt,Le=function(Fe,we){return ae.createElement(xe.Z,(0,fe.Z)({},Fe,{ref:we,icon:ze}))},pe=ae.forwardRef(Le),He=pe,Re=ge(77900),nt=ge(56762),ft=ge(62892),Lt=ge(92343),Dt=ge(3113);function Mt(le){return Object.assign(Object.assign({},le),{lastModified:le.lastModified,lastModifiedDate:le.lastModifiedDate,name:le.name,size:le.size,type:le.type,uid:le.uid,percent:0,originFileObj:le})}function zt(le,Fe){const we=(0,Pe.Z)(Fe),Ne=we.findIndex(Xe=>{let{uid:Ke}=Xe;return Ke===le.uid});return Ne===-1?we.push(le):we[Ne]=le,we}function Nt(le,Fe){const we=le.uid!==void 0?"uid":"name";return Fe.filter(Ne=>Ne[we]===le[we])[0]}function un(le,Fe){const we=le.uid!==void 0?"uid":"name",Ne=Fe.filter(Xe=>Xe[we]!==le[we]);return Ne.length===Fe.length?null:Ne}const cn=function(){const Fe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ne=Fe[Fe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ne)||[""])[0]},Sn=le=>le.indexOf("image/")===0,yt=le=>{if(le.type&&!le.thumbUrl)return Sn(le.type);const Fe=le.thumbUrl||le.url||"",we=cn(Fe);return/^data:image\//.test(Fe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(we)?!0:!(/^data:/.test(Fe)||we)},Ct=200;function Se(le){return new Promise(Fe=>{if(!le.type||!Sn(le.type)){Fe("");return}const we=document.createElement("canvas");we.width=Ct,we.height=Ct,we.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ct}px; height: ${Ct}px; z-index: 9999; display: none;`,document.body.appendChild(we);const Ne=we.getContext("2d"),Xe=new Image;if(Xe.onload=()=>{const{width:Ke,height:_e}=Xe;let De=Ct,bt=Ct,wt=0,Ft=0;Ke>_e?(bt=_e*(Ct/Ke),Ft=-(bt-De)/2):(De=Ke*(Ct/_e),wt=-(De-bt)/2),Ne.drawImage(Xe,wt,Ft,De,bt);const $e=we.toDataURL();document.body.removeChild(we),window.URL.revokeObjectURL(Xe.src),Fe($e)},Xe.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Ke=new FileReader;Ke.onload=()=>{Ke.result&&(Xe.src=Ke.result)},Ke.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Ke=new FileReader;Ke.onload=()=>{Ke.result&&Fe(Ke.result)},Ke.readAsDataURL(le)}else Xe.src=window.URL.createObjectURL(le)})}var be=ge(26227),Te=ge(41464),at=ge(15277),ot=ge(93948),Bt=ge(6848),St=ae.forwardRef((le,Fe)=>{let{prefixCls:we,className:Ne,style:Xe,locale:Ke,listType:_e,file:De,items:bt,progress:wt,iconRender:Ft,actionIconRender:$e,itemRender:nn,isImgUrl:mn,showPreviewIcon:Tn,showRemoveIcon:We,showDownloadIcon:st,previewIcon:Pt,removeIcon:vt,downloadIcon:It,onPreview:Rt,onDownload:$t,onClose:gn}=le;var dn,qn;const{status:aa}=De,[Kn,ca]=ae.useState(aa);ae.useEffect(()=>{aa!=="removed"&&ca(aa)},[aa]);const[Pa,Sa]=ae.useState(!1);ae.useEffect(()=>{const $n=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout($n)}},[]);const ia=Ft(De);let Vn=ae.createElement("div",{className:`${we}-icon`},ia);if(_e==="picture"||_e==="picture-card"||_e==="picture-circle")if(Kn==="uploading"||!De.thumbUrl&&!De.url){const $n=Ae()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:Kn!=="uploading"});Vn=ae.createElement("div",{className:$n},ia)}else{const $n=mn!=null&&mn(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${we}-list-item-image`,crossOrigin:De.crossOrigin}):ia,Mn=Ae()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:mn&&!mn(De)});Vn=ae.createElement("a",{className:Mn,onClick:ga=>Rt(De,ga),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},$n)}const Gn=Ae()(`${we}-list-item`,`${we}-list-item-${Kn}`),ma=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,ea=We?$e((typeof vt=="function"?vt(De):vt)||ae.createElement(be.Z,null),()=>gn(De),we,Ke.removeFile):null,ra=st&&Kn==="done"?$e((typeof It=="function"?It(De):It)||ae.createElement(Te.Z,null),()=>$t(De),we,Ke.downloadFile):null,na=_e!=="picture-card"&&_e!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ae()(`${we}-list-item-actions`,{picture:_e==="picture"})},ra,ea),Wn=Ae()(`${we}-list-item-name`),ha=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:De.name},ma,{href:De.url,onClick:$n=>Rt(De,$n)}),De.name),na]:[ae.createElement("span",{key:"view",className:Wn,onClick:$n=>Rt(De,$n),title:De.name},De.name),na],kt={pointerEvents:"none",opacity:.5},Nn=Tn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:kt,onClick:$n=>Rt(De,$n),title:Ke.previewFile},typeof Pt=="function"?Pt(De):Pt||ae.createElement(at.Z,null)):null,Yn=(_e==="picture-card"||_e==="picture-circle")&&Kn!=="uploading"&&ae.createElement("span",{className:`${we}-list-item-actions`},Nn,Kn==="done"&&ra,ea),{getPrefixCls:Bn}=ae.useContext(pn.E_),da=Bn(),jn=ae.createElement("div",{className:Gn},Vn,ha,Yn,Pa&&ae.createElement(Re.default,{motionName:`${da}-fade`,visible:Kn==="uploading",motionDeadline:2e3},$n=>{let{className:Mn}=$n;const ga="percent"in De?ae.createElement(ot.Z,Object.assign({},wt,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ae.createElement("div",{className:Ae()(`${we}-list-item-progress`,Mn)},ga)})),pa=De.response&&typeof De.response=="string"?De.response:((dn=De.error)===null||dn===void 0?void 0:dn.statusText)||((qn=De.error)===null||qn===void 0?void 0:qn.message)||Ke.uploadError,fa=Kn==="error"?ae.createElement(Bt.Z,{title:pa,getPopupContainer:$n=>$n.parentNode},jn):jn;return ae.createElement("div",{className:Ae()(`${we}-list-item-container`,Ne),style:Xe,ref:Fe},nn?nn(fa,De,bt,{download:$t.bind(null,De),preview:Rt.bind(null,De),remove:gn.bind(null,De)}):fa)});const Et=(le,Fe)=>{const{listType:we="text",previewFile:Ne=Se,onPreview:Xe,onDownload:Ke,onRemove:_e,locale:De,iconRender:bt,isImageUrl:wt=yt,prefixCls:Ft,items:$e=[],showPreviewIcon:nn=!0,showRemoveIcon:mn=!0,showDownloadIcon:Tn=!1,removeIcon:We,previewIcon:st,downloadIcon:Pt,progress:vt={size:[-1,2],showInfo:!1},appendAction:It,appendActionVisible:Rt=!0,itemRender:$t,disabled:gn}=le,dn=(0,nt.Z)(),[qn,aa]=ae.useState(!1);ae.useEffect(()=>{we!=="picture"&&we!=="picture-card"&&we!=="picture-circle"||($e||[]).forEach(kt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(kt.originFileObj instanceof File||kt.originFileObj instanceof Blob)||kt.thumbUrl!==void 0||(kt.thumbUrl="",Ne&&Ne(kt.originFileObj).then(Nn=>{kt.thumbUrl=Nn||"",dn()}))})},[we,$e,Ne]),ae.useEffect(()=>{aa(!0)},[]);const Kn=(kt,Nn)=>{if(Xe)return Nn==null||Nn.preventDefault(),Xe(kt)},ca=kt=>{typeof Ke=="function"?Ke(kt):kt.url&&window.open(kt.url)},Pa=kt=>{_e==null||_e(kt)},Sa=kt=>{if(bt)return bt(kt,we);const Nn=kt.status==="uploading",Yn=wt&&wt(kt)?ae.createElement(He,null):ae.createElement(qe,null);let Bn=Nn?ae.createElement(Ve.Z,null):ae.createElement(gt,null);return we==="picture"?Bn=Nn?ae.createElement(Ve.Z,null):Yn:(we==="picture-card"||we==="picture-circle")&&(Bn=Nn?De.uploading:Yn),Bn},ia=(kt,Nn,Yn,Bn)=>{const da={type:"text",size:"small",title:Bn,onClick:jn=>{Nn(),(0,Lt.l$)(kt)&&kt.props.onClick&&kt.props.onClick(jn)},className:`${Yn}-list-item-action`,disabled:gn};if((0,Lt.l$)(kt)){const jn=(0,Lt.Tm)(kt,Object.assign(Object.assign({},kt.props),{onClick:()=>{}}));return ae.createElement(Dt.ZP,Object.assign({},da,{icon:jn}))}return ae.createElement(Dt.ZP,Object.assign({},da),ae.createElement("span",null,kt))};ae.useImperativeHandle(Fe,()=>({handlePreview:Kn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(pn.E_),Gn=Vn("upload",Ft),ma=Vn(),ea=Ae()(`${Gn}-list`,`${Gn}-list-${we}`),ra=(0,Pe.Z)($e.map(kt=>({key:kt.uid,file:kt})));let Wn={motionDeadline:2e3,motionName:`${Gn}-${we==="picture-card"||we==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:qn};const ha=ae.useMemo(()=>{const kt=Object.assign({},(0,ft.Z)(ma));return delete kt.onAppearEnd,delete kt.onEnterEnd,delete kt.onLeaveEnd,kt},[ma]);return we!=="picture-card"&&we!=="picture-circle"&&(Wn=Object.assign(Object.assign({},ha),Wn)),ae.createElement("div",{className:ea},ae.createElement(Re.CSSMotionList,Object.assign({},Wn,{component:!1}),kt=>{let{key:Nn,file:Yn,className:Bn,style:da}=kt;return ae.createElement(St,{key:Nn,locale:De,prefixCls:Gn,className:Bn,style:da,file:Yn,items:$e,progress:vt,listType:we,isImgUrl:wt,showPreviewIcon:nn,showRemoveIcon:mn,showDownloadIcon:Tn,removeIcon:We,previewIcon:st,downloadIcon:Pt,iconRender:Sa,actionIconRender:ia,itemRender:$t,onPreview:Kn,onDownload:ca,onClose:Pa})}),It&&ae.createElement(Re.default,Object.assign({},Wn,{visible:Rt,forceRender:!0}),kt=>{let{className:Nn,style:Yn}=kt;return(0,Lt.Tm)(It,Bn=>({className:Ae()(Bn.className,Nn),style:Object.assign(Object.assign(Object.assign({},Yn),{pointerEvents:Nn?"none":void 0}),Bn.style)}))}))};var Ht=ae.forwardRef(Et),Vt=ge(17313),sn=ge(8378),Pn=ge(83116),yn=ge(37613),qt=le=>{const{componentCls:Fe,iconCls:we}=le;return{[`${Fe}-wrapper`]:{[`${Fe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[Fe]:{padding:`${le.padding}px 0`},[`${Fe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Fe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Fe}-disabled):hover`]:{borderColor:le.colorPrimaryHover},[`p${Fe}-drag-icon`]:{marginBottom:le.margin,[we]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${Fe}-text`]:{margin:`0 0 ${le.marginXXS}px`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${Fe}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${Fe}-disabled`]:{cursor:"not-allowed",[`p${Fe}-drag-icon ${we},
p${Fe}-text,
p${Fe}-hint
`]:{color:le.colorTextDisabled}}}}}},En=le=>{const{componentCls:Fe,antCls:we,iconCls:Ne,fontSize:Xe,lineHeight:Ke}=le,_e=`${Fe}-list-item`,De=`${_e}-actions`,bt=`${_e}-action`,wt=Math.round(Xe*Ke);return{[`${Fe}-wrapper`]:{[`${Fe}-list`]:Object.assign(Object.assign({},(0,Vt.dF)()),{lineHeight:le.lineHeight,[_e]:{position:"relative",height:le.lineHeight*Xe,marginTop:le.marginXS,fontSize:Xe,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${_e}-name`]:Object.assign(Object.assign({},Vt.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ke,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[De]:{[bt]:{opacity:0},[`${bt}${we}-btn-sm`]:{height:wt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${bt}:focus-visible,
&.picture ${bt}
`]:{opacity:1},[Ne]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${Ne}`]:{color:le.colorText}},[`${Fe}-icon ${Ne}`]:{color:le.colorTextDescription,fontSize:Xe},[`${_e}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:Xe+le.paddingXS,fontSize:Xe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${_e}:hover ${bt}`]:{opacity:1,color:le.colorText},[`${_e}-error`]:{color:le.colorError,[`${_e}-name, ${Fe}-icon ${Ne}`]:{color:le.colorError},[De]:{[`${Ne}, ${Ne}:hover`]:{color:le.colorError},[bt]:{opacity:1}}},[`${Fe}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=ge(36237),rn=ge(1950);const On=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Un=le=>{const{componentCls:Fe}=le,we=`${Fe}-animate-inline`;return[{[`${Fe}-wrapper`]:{[`${we}-appear, ${we}-enter, ${we}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${we}-appear, ${we}-enter`]:{animationName:On},[`${we}-leave`]:{animationName:Jn}}},{[`${Fe}-wrapper`]:(0,rn.J$)(le)},On,Jn]},ta=ge(30071),Qn=ge(64993);const he=le=>{const{componentCls:Fe,iconCls:we,uploadThumbnailSize:Ne,uploadProgressOffset:Xe}=le,Ke=`${Fe}-list`,_e=`${Ke}-item`;return{[`${Fe}-wrapper`]:{[`
${Ke}${Ke}-picture,
${Ke}${Ke}-picture-card,
${Ke}${Ke}-picture-circle
`]:{[_e]:{position:"relative",height:Ne+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${_e}-thumbnail`]:Object.assign(Object.assign({},Vt.vS),{width:Ne,height:Ne,lineHeight:`${Ne+le.paddingSM}px`,textAlign:"center",flex:"none",[we]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${_e}-progress`]:{bottom:Xe,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ne+le.paddingXS}},[`${_e}-error`]:{borderColor:le.colorError,[`${_e}-thumbnail ${we}`]:{[`svg path[fill='${ta.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${ta.blue.primary}']`]:{fill:le.colorError}}},[`${_e}-uploading`]:{borderStyle:"dashed",[`${_e}-name`]:{marginBottom:Xe}}},[`${Ke}${Ke}-picture-circle ${_e}`]:{[`&, &::before, ${_e}-thumbnail`]:{borderRadius:"50%"}}}}},ve=le=>{const{componentCls:Fe,iconCls:we,fontSizeLG:Ne,colorTextLightSolid:Xe}=le,Ke=`${Fe}-list`,_e=`${Ke}-item`,De=le.uploadPicCardSize;return{[`
${Fe}-wrapper${Fe}-picture-card-wrapper,
${Fe}-wrapper${Fe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Vt.dF)()),{display:"inline-block",width:"100%",[`${Fe}${Fe}-select`]:{width:De,height:De,marginInlineEnd:le.marginXS,marginBottom:le.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${Fe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Fe}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Ke}${Ke}-picture-card, ${Ke}${Ke}-picture-circle`]:{[`${Ke}-item-container`]:{display:"inline-block",width:De,height:De,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[_e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le.paddingXS*2}px)`,height:`calc(100% - ${le.paddingXS*2}px)`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${_e}:hover`]:{[`&::before, ${_e}-actions`]:{opacity:1}},[`${_e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${we}-eye, ${we}-download, ${we}-delete`]:{zIndex:10,width:Ne,margin:`0 ${le.marginXXS}px`,fontSize:Ne,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${_e}-actions, ${_e}-actions:hover`]:{[`${we}-eye, ${we}-download, ${we}-delete`]:{color:new Qn.C(Xe).setAlpha(.65).toRgbString(),"&:hover":{color:Xe}}},[`${_e}-thumbnail, ${_e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${_e}-name`]:{display:"none",textAlign:"center"},[`${_e}-file + ${_e}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${_e}-uploading`]:{[`&${_e}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${we}-eye, ${we}-download, ${we}-delete`]:{display:"none"}},[`${_e}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${le.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Fe}-wrapper${Fe}-picture-circle-wrapper`]:{[`${Fe}${Fe}-select`]:{borderRadius:"50%"}}}};var et=le=>{const{componentCls:Fe}=le;return{[`${Fe}-rtl`]:{direction:"rtl"}}};const pt=le=>{const{componentCls:Fe,colorTextDisabled:we}=le;return{[`${Fe}-wrapper`]:Object.assign(Object.assign({},(0,Vt.Wf)(le)),{[Fe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Fe}-select`]:{display:"inline-block"},[`${Fe}-disabled`]:{color:we,cursor:"not-allowed"}})}};var ut=(0,Pn.Z)("Upload",le=>{const{fontSizeHeading3:Fe,fontSize:we,lineHeight:Ne,lineWidth:Xe,controlHeightLG:Ke}=le,_e=Math.round(we*Ne),De=(0,yn.TS)(le,{uploadThumbnailSize:Fe*2,uploadProgressOffset:_e/2+Xe,uploadPicCardSize:Ke*2.55});return[pt(De),qt(De),he(De),ve(De),En(De),Un(De),et(De),(0,sn.Z)(De)]},le=>({actionsColor:le.colorTextDescription})),tn=function(le,Fe,we,Ne){function Xe(Ke){return Ke instanceof we?Ke:new we(function(_e){_e(Ke)})}return new(we||(we=Promise))(function(Ke,_e){function De(Ft){try{wt(Ne.next(Ft))}catch($e){_e($e)}}function bt(Ft){try{wt(Ne.throw(Ft))}catch($e){_e($e)}}function wt(Ft){Ft.done?Ke(Ft.value):Xe(Ft.value).then(De,bt)}wt((Ne=Ne.apply(le,Fe||[])).next())})};const Tt=`__LIST_IGNORE_${Date.now()}__`,Xt=(le,Fe)=>{const{fileList:we,defaultFileList:Ne,onRemove:Xe,showUploadList:Ke=!0,listType:_e="text",onPreview:De,onDownload:bt,onChange:wt,onDrop:Ft,previewFile:$e,disabled:nn,locale:mn,iconRender:Tn,isImageUrl:We,progress:st,prefixCls:Pt,className:vt,type:It="select",children:Rt,style:$t,itemRender:gn,maxCount:dn,data:qn={},multiple:aa=!1,action:Kn="",accept:ca="",supportServerRender:Pa=!0,rootClassName:Sa}=le,ia=ae.useContext(Yt.Z),Vn=nn!=null?nn:ia,[Gn,ma]=(0,jt.Z)(Ne||[],{value:we,postState:Ot=>Ot!=null?Ot:[]}),[ea,ra]=ae.useState("drop"),na=ae.useRef(null);ae.useMemo(()=>{const Ot=Date.now();(we||[]).forEach((an,vn)=>{!an.uid&&!Object.isFrozen(an)&&(an.uid=`__AUTO__${Ot}_${vn}__`)})},[we]);const Wn=(Ot,an,vn)=>{let Ut=(0,Pe.Z)(an),Ln=!1;dn===1?Ut=Ut.slice(-1):dn&&(Ln=Ut.length>dn,Ut=Ut.slice(0,dn)),(0,Zt.flushSync)(()=>{ma(Ut)});const In={file:Ot,fileList:Ut};vn&&(In.event=vn),(!Ln||Ut.some(la=>la.uid===Ot.uid))&&(0,Zt.flushSync)(()=>{wt==null||wt(In)})},ha=(Ot,an)=>tn(void 0,void 0,void 0,function*(){const{beforeUpload:vn,transformFile:Ut}=le;let Ln=Ot;if(vn){const In=yield vn(Ot,an);if(In===!1)return!1;if(delete Ot[Tt],In===Tt)return Object.defineProperty(Ot,Tt,{value:!0,configurable:!0}),!1;typeof In=="object"&&In&&(Ln=In)}return Ut&&(Ln=yield Ut(Ln)),Ln}),kt=Ot=>{const an=Ot.filter(Ln=>!Ln.file[Tt]);if(!an.length)return;const vn=an.map(Ln=>Mt(Ln.file));let Ut=(0,Pe.Z)(Gn);vn.forEach(Ln=>{Ut=zt(Ln,Ut)}),vn.forEach((Ln,In)=>{let la=Ln;if(an[In].parsedFile)Ln.status="uploading";else{const{originFileObj:wn}=Ln;let ua;try{ua=new File([wn],wn.name,{type:wn.type})}catch(Fa){ua=new Blob([wn],{type:wn.type}),ua.name=wn.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Ln.uid,la=ua}Wn(la,Ut)})},Nn=(Ot,an,vn)=>{try{typeof Ot=="string"&&(Ot=JSON.parse(Ot))}catch(In){}if(!Nt(an,Gn))return;const Ut=Mt(an);Ut.status="done",Ut.percent=100,Ut.response=Ot,Ut.xhr=vn;const Ln=zt(Ut,Gn);Wn(Ut,Ln)},Yn=(Ot,an)=>{if(!Nt(an,Gn))return;const vn=Mt(an);vn.status="uploading",vn.percent=Ot.percent;const Ut=zt(vn,Gn);Wn(vn,Ut,Ot)},Bn=(Ot,an,vn)=>{if(!Nt(vn,Gn))return;const Ut=Mt(vn);Ut.error=Ot,Ut.response=an,Ut.status="error";const Ln=zt(Ut,Gn);Wn(Ut,Ln)},da=Ot=>{let an;Promise.resolve(typeof Xe=="function"?Xe(Ot):Xe).then(vn=>{var Ut;if(vn===!1)return;const Ln=un(Ot,Gn);Ln&&(an=Object.assign(Object.assign({},Ot),{status:"removed"}),Gn==null||Gn.forEach(In=>{const la=an.uid!==void 0?"uid":"name";In[la]===an[la]&&!Object.isFrozen(In)&&(In.status="removed")}),(Ut=na.current)===null||Ut===void 0||Ut.abort(an),Wn(an,Ln))})},jn=Ot=>{ra(Ot.type),Ot.type==="drop"&&(Ft==null||Ft(Ot))};ae.useImperativeHandle(Fe,()=>({onBatchStart:kt,onSuccess:Nn,onProgress:Yn,onError:Bn,fileList:Gn,upload:na.current}));const{getPrefixCls:pa,direction:fa,upload:$n}=ae.useContext(pn.E_),Mn=pa("upload",Pt),ga=Object.assign(Object.assign({onBatchStart:kt,onError:Bn,onProgress:Yn,onSuccess:Nn},le),{data:qn,multiple:aa,action:Kn,accept:ca,supportServerRender:Pa,prefixCls:Mn,disabled:Vn,beforeUpload:ha,onChange:void 0});delete ga.className,delete ga.style,(!Rt||Vn)&&delete ga.id;const[va,La]=ut(Mn),[ya]=(0,Qt.Z)("Upload",ln.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:ht,showDownloadIcon:rt,removeIcon:it,previewIcon:ct,downloadIcon:on}=typeof Ke=="boolean"?{}:Ke,bn=(Ot,an)=>Ke?ae.createElement(Ht,{prefixCls:Mn,listType:_e,items:Gn,previewFile:$e,onPreview:De,onDownload:bt,onRemove:da,showRemoveIcon:!Vn&&ba,showPreviewIcon:ht,showDownloadIcon:rt,removeIcon:it,previewIcon:ct,downloadIcon:on,iconRender:Tn,locale:Object.assign(Object.assign({},ya),mn),isImageUrl:We,progress:st,appendAction:Ot,appendActionVisible:an,itemRender:gn,disabled:Vn}):Ot,Rn=Ae()(`${Mn}-wrapper`,vt,Sa,La,$n==null?void 0:$n.className,{[`${Mn}-rtl`]:fa==="rtl",[`${Mn}-picture-card-wrapper`]:_e==="picture-card",[`${Mn}-picture-circle-wrapper`]:_e==="picture-circle"}),kn=Object.assign(Object.assign({},$n==null?void 0:$n.style),$t);if(It==="drag"){const Ot=Ae()(La,Mn,`${Mn}-drag`,{[`${Mn}-drag-uploading`]:Gn.some(an=>an.status==="uploading"),[`${Mn}-drag-hover`]:ea==="dragover",[`${Mn}-disabled`]:Vn,[`${Mn}-rtl`]:fa==="rtl"});return va(ae.createElement("span",{className:Rn},ae.createElement("div",{className:Ot,style:kn,onDrop:jn,onDragOver:jn,onDragLeave:jn},ae.createElement(_t,Object.assign({},ga,{ref:na,className:`${Mn}-btn`}),ae.createElement("div",{className:`${Mn}-drag-container`},Rt))),bn()))}const Hn=Ae()(Mn,`${Mn}-select`,{[`${Mn}-disabled`]:Vn}),oa=(Ot=>ae.createElement("div",{className:Hn,style:Ot},ae.createElement(_t,Object.assign({},ga,{ref:na}))))(Rt?void 0:{display:"none"});return va(_e==="picture-card"||_e==="picture-circle"?ae.createElement("span",{className:Rn},bn(oa,!!Rt)):ae.createElement("span",{className:Rn},oa,bn()))};var _n=ae.forwardRef(Xt),Ye=function(le,Fe){var we={};for(var Ne in le)Object.prototype.hasOwnProperty.call(le,Ne)&&Fe.indexOf(Ne)<0&&(we[Ne]=le[Ne]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ne=Object.getOwnPropertySymbols(le);Xe<Ne.length;Xe++)Fe.indexOf(Ne[Xe])<0&&Object.prototype.propertyIsEnumerable.call(le,Ne[Xe])&&(we[Ne[Xe]]=le[Ne[Xe]]);return we},Dn=ae.forwardRef((le,Fe)=>{var{style:we,height:Ne}=le,Xe=Ye(le,["style","height"]);return ae.createElement(_n,Object.assign({ref:Fe},Xe,{type:"drag",style:Object.assign(Object.assign({},we),{height:Ne})}))});const Xn=_n;Xn.Dragger=Dn,Xn.LIST_IGNORE=Tt;var Fn=Xn}}]);