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.
127 lines
382 KiB
127 lines
382 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8999],{26227:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},41464:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},87169:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={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"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},33853:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},43531:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={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"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},38819:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return He}});var ae=ge(92413),Pe=ge(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Te=Ze,fe=ge(7657),Re=function(Ce,_e){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:_e,icon:Te}))},ue=Pe.forwardRef(Re),He=ue},11570:function(xe,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"}},29277:function(){"use strict";function xe(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(xe.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(xe.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(xe.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(xe.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 xe))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 Ze(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,se=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,se=a);else{var me=(E-ee)/re,ke=E-me*b;ie=ne,se=me*ie+ke}else if(re===0){var Ve=(a-x)/oe,pt=a-Ve*ne;ie=b,se=Ve*ie+pt}else{var Ve=(a-x)/oe,me=(E-ee)/re,pt=a-Ve*ne,ke=E-me*b;ie=(ke-pt)/(Ve-me),se=Ve*ie+pt}return te.x=ie,te.y=se,te}function Te(ne,a,y,x,b,E,z,ee,te,oe,re,ie,se,me){var ke=1-te,Ve=te,pt=ne*ke+y*Ve,Nt=a*ke+x*Ve,Ht=y*ke+b*Ve,kt=x*ke+E*Ve,Kt=b*ke+z*Ve,en=E*ke+ee*Ve,vn=pt*ke+Ht*Ve,Vt=Nt*ke+kt*Ve,qt=Ht*ke+Kt*Ve,sn=kt*ke+en*Ve,Fn=vn*ke+qt*Ve,An=Vt*ke+sn*Ve;oe.x=pt,oe.y=Nt,re.x=vn,re.y=Vt,ie.x=Fn,ie.y=An,se.x=qt,se.y=sn,me.x=Kt,me.y=en}var fe=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xe("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*ue,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=Re,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,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 xe("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 xe("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 xe("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 xe("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 xe("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 He=[];function $e(){var ne=He.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,He.push(ne)}function _e(ne){for(var a=$e(),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 We(ne){var a=De(ne),y=$e();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 Ce(a),y}function De(ne){for(var a=_e(ne),y=$e(),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]=Ze(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],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=_e(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),Ce(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=_e(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()),Ce(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=De(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()),Ce(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=De(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()),Ce(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=De(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()),Ce(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=De(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()),Ce(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=De(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()),Ce(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=De(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()),Ce(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=We(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(),Ce(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=We(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(),Ce(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=We(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(),Ce(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=We(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(),Ce(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=We(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(),Ce(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=We(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(),Ce(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xe("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 xe("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=Re,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 xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xe("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=ue/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 xe("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 xe("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 xe("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 xe("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 xe("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 xe("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,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*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*ue;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*ue,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*ue,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=ue*.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=ue*.4;var oe=ae(),re=ae(),ie=ae(),se=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,se,se);var me=ae(),ke=ae(),Ve=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ve,me,ke);var pt=ae(),Nt=ae(),Ht=ae();Te(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,pt,Nt,Ht,se,se);var kt=ae(),Kt=ae(),en=ae();return Te(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,en,kt,Kt),te.add(new go.PathSegment(go.PathSegment.Move,en.x*a,en.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,kt.x*a,kt.y*y,Kt.x*a,Kt.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,en.x*a,en.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Ht.x*a,Ht.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ve.x*a,Ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,ke.x*a,ke.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,Ht.x*a,Ht.y*y,pt.x*a,pt.y*y,Nt.x*a,Nt.y*y).close()),Pe(oe),Pe(re),Pe(ie),Pe(se),Pe(me),Pe(ke),Pe(Ve),Pe(pt),Pe(Nt),Pe(Ht),Pe(kt),Pe(Kt),Pe(en),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 xe("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=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(se),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)),Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,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));var me=ge(oe.x,oe.y);Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var ke=ge(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,(ke.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y)),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)),E=.35,b=ue*.35;var Ve=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var pt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(pt),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(me),Pe(ke),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*ue,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*ue;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 xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xe("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=Ze(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 xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xe("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=Ze(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 xe("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=Ze(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ze(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xe("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=Ze(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ze(.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 xe("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=Ze(.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 xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xe("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=Ze(.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 xe("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=Ze(.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 xe("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=Ze(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 xe("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=Ze(.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 xe("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=Ze(.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 xe("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=ue*.5,E=ue*.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=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*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-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*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-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*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=ue*.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,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*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-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*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-ue*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-ue*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=ue*.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-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*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=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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-ue*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-ue*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=ue*b,ee=ue*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,se=ue*ie;te=.05,oe=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=ue*ie,te=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=ue*ie,te=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=ue*ie,te=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=ue*ie,te=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),me.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 xe("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=ue*.5,E=ue*.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=ue*.5,E=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.5,E=ue*.4,z=ue*.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=ue*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=ue*.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=ue*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=ue*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=ue*.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=ue*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=ue*.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=ue*.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=ue*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,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=ue*.4,ee=.4,te=.2,oe=.5;var me=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(me),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+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),me.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=ue*.2,ee=.2,te=.5,oe=.5;var ke=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(ke),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)*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)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var Ve=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(Ve),Ve.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)),Ve.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)),Ve.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)),Ve.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=ue*.8,ee=.8,te=1,oe=.5;var pt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(pt),pt.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)),pt.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)),pt.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)),pt.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=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var se=ge(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Te(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),me.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=ue*.3,E=.3,Te(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),me.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 me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(se),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*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,se=.5,me=0,ke=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ke.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)),ke.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)),ke.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ke.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ke.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,se=z,me=z,ke=re*se,Ve=re*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ke+se)/2)*a,(te+(me+Ve)/2)*y,(ee-se)*a,(te+Ve)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-se)*a,(te-Ve)*y,(ee-ke)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ke)*a,(te-me)*y,(ee+se)*a,(te-Ve)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ve)*y,(ee+(ke+se)/2)*a,(te+(me+Ve)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var pt=new go.PathFigure(.2*a,y,!1);x.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.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=ue*.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=ue*.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=ue*.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=ue*.1,re=.1,ie=.9,se=new go.PathFigure((re-te)*a,ie*y,!0);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)),te=.1,oe=ue*.1,re=.4,ie=.9;var me=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),me.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=ue*.05,se=.175,me=.95,ee=new go.PathFigure((se-re)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-re)*y,(se-re)*a,(me-ie)*y,(se-ie)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,me*y,(se+ie)*a,(me-re)*y,(se+re)*a,(me-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+re)*y,(se+re)*a,(me+ie)*y,(se+ie)*a,(me+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,me*y,(se-ie)*a,(me+re)*y,(se-re)*a,(me+ie)*y));var re=.05,ie=ue*.05,se=.375,me=.95,te=new go.PathFigure((se-re)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-re)*y,(se-re)*a,(me-ie)*y,(se-ie)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,me*y,(se+ie)*a,(me-re)*y,(se+re)*a,(me-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+re)*y,(se+re)*a,(me+ie)*y,(se+ie)*a,(me+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,me*y,(se-ie)*a,(me+re)*y,(se-re)*a,(me+ie)*y));var re=.05,ie=ue*.05,se=.625,me=.95,oe=new go.PathFigure((se-re)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-re)*y,(se-re)*a,(me-ie)*y,(se-ie)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,me*y,(se+ie)*a,(me-re)*y,(se+re)*a,(me-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+re)*y,(se+re)*a,(me+ie)*y,(se+ie)*a,(me+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,me*y,(se-ie)*a,(me+re)*y,(se-re)*a,(me+ie)*y));var re=.05,ie=ue*.05,se=.825,me=.95,ke=new go.PathFigure((se-re)*a,me*y,!0);x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-re)*y,(se-re)*a,(me-ie)*y,(se-ie)*a,(me-re)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,me*y,(se+ie)*a,(me-re)*y,(se+re)*a,(me-ie)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+re)*y,(se+re)*a,(me+ie)*y,(se+ie)*a,(me+re)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,me*y,(se-ie)*a,(me+re)*y,(se-re)*a,(me+ie)*y).close());var Ve=new go.PathFigure(0,y,!1);return x.add(Ve),Ve.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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*ue,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*ue,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*ue,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")},5559: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 xe={},tt="5.0",ge={},ae=null,Pe=!1,Ze=!1,Te=null,fe=!1,Re=null,ue=null,He=0;He<arguments.length;He++){var $e=arguments[He];if($e!==null)switch(typeof $e){case"number":tt=$e.toFixed(1);break;case"string":$e.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=$e:Te=$e;break;case"object":typeof $e.is3D!="undefined"?ae=$e:ge=$e;break;case"boolean":Pe=$e,Ze=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Ze&&(Pe=!0)),Te!==null&&ge.id===void 0&&(ge.id=Te);var Ce="",_e="",We=!1,De=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(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};xe.setHTML5Codebase=function(Ee,be){ue=Ee,sn(Ee,be)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(Ee,be){var Ge=parseFloat(Ee);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}Re=Ee,qt(Ee,be)},xe.getHTML5CodebaseVersion=function(){return ne},xe.getParameters=function(){return ge},xe.setFontsCSSURL=function(Ee){z=Ee},xe.setGiacJSURL=function(Ee){},xe.setJNLPFile=function(Ee){Ce=Ee},xe.setJNLPBaseDir=function(Ee){},xe.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var be="auto",Ge=ge.id,qe,Ye=!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)$/)?be=de:Ge=arguments[mt]):typeof de=="boolean"?Ye=de:de instanceof HTMLElement&&(qe=de)}Qe();function Qe(){if(!fe){setTimeout(Qe,200);return}be=vn(be);var st=qe||document.getElementById(Ge);if(!st){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(st,!1),ge.width===void 0&&st.clientWidth&&(ge.width=st.clientWidth),ge.height===void 0&&st.clientHeight&&(ge.height=st.clientHeight),!(ge.width&&ge.height)&&be==="html5"&&(delete ge.width,delete ge.height),De=be,be==="screenshot")Nt(st,ge);else{var it=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?it=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(it=(!oe()||Ee())&&re()),it?(De="screenshot",kt(st,ge,Ye,be)):pt(st,ge,Ye)}}};function oe(){try{return window.self!==window.top}catch(Ee){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xe.getViews=function(){return ae},xe.isJavaInstalled=function(){return!1};var ie=function(Ee){var be=function(mt){var de=JSON.parse(mt),Qe=function(Bt){return Bt.type=="G"||Bt.type=="E"},st=de.elements?de.elements.filter(Qe)[0]:de;if(!st||!st.url){Ge();return}ge.fileName=st.url,se(st.settings||{}),ae.is3D=!0;var it="https://www.geogebra.org/images/";xe.setPreviewImage(x||st.previewUrl,it+"GeoGebra_loading.png",it+"applet_play.png"),Ee()},Ge=function(){ge.onError&&ge.onError(),Fn("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",Ye="/materials/"+ge.material_id+"?scope=basic";me("https://"+qe+"/api/proxy.php?path="+encodeURIComponent(Ye),be,Ge)};function se(Ee){var be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){Ee[Ge]=!!Ee[Ge]}),be.forEach(function(Ge){ge[Ge]===void 0&&Ee[Ge]!==void 0&&(ge[Ge]=Ee[Ge])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function me(Ee,be,Ge){var qe=new XMLHttpRequest;qe.open("GET",Ee),qe.onload=function(){be(qe.responseText)},qe.onerror=Ge,qe.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return De},xe.setPreviewImage=function(Ee,be,Ge){x=Ee,b=be,E=Ge},xe.removeExistingApplet=function(Ee,be){var Ge;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),De=null;var qe=null;for(Ge=0;Ge<Ee.childNodes.length;Ge++){var Ye=Ee.childNodes[Ge],mt=Ye.className;mt==="applet_screenshot"?be?(Ye.style.display="block",De="screenshot"):Ye.style.display="none":mt!=="applet_scaler prerender"&&(Ee.removeChild(Ye),qe=mt&&mt.indexOf("appletParameters")!=-1?Ye.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)},xe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=xe.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},xe.startAnimation=function(){var Ee=xe.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},xe.stopAnimation=function(){var Ee=xe.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},xe.getAppletObject=function(){var Ee=ge.id!==void 0?ge.id:"ggbApplet";return window[Ee]},xe.resize=function(){};var ke=function(Ee,be,Ge){var qe=document.createElement("param");qe.setAttribute("name",be),qe.setAttribute("value",Ge),Ee.appendChild(qe)},Ve=function(Ee){return Ee&&Ee!=="false"},pt=function(Ee,be,Ge){te(ne)<=4.2&&(Ge=!0);var qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ye=document.createElement("div");Ye.classList.add("appletParameters","notranslate");var mt=be.width,de=be.height;if(be.disableAutoScale=be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():be.disableAutoScale,be.width!==void 0)if(te(ne)<=4.4)Ve(be.showToolBar)&&(be.height-=7),Ve(be.showAlgebraInput)&&(be.height-=37),be.width<605&&Ve(be.showToolBar)&&(be.width=605,mt=605);else{var Qe=100;(Ve(be.showToolBar)||Ve(be.showMenuBar))&&(be.hasOwnProperty("customToolBar")&&(be.customToolbar=be.customToolBar),Qe=Ve(be.showMenuBar)?245:155),mt<Qe&&(be.width=Qe,mt=Qe)}Ye.style.border="none",Ye.style.display="inline-block";for(var st in be)be.hasOwnProperty(st)&&st!=="appletOnLoad"&&Ye.setAttribute("data-param-"+st,be[st]);z&&Ye.setAttribute("data-param-fontscssurl",z),xe.resize=function(){GGBAppletUtils.responsiveResize(Ee,be)},window.addEventListener("resize",function($t){xe.resize()});var it=typeof be.appletOnLoad=="function"?be.appletOnLoad:function(){};if(!Ge&&be.width!==void 0){be.hasOwnProperty("showSplash")||Ye.setAttribute("data-param-showSplash","false");var Bt=Ee.querySelector(".applet_scaler.prerender"),Oe=Bt!==null;if(Oe)var ye=Bt.querySelector(".ggb_preview");else{var ye=en(mt,de,be.borderColor,!1);Bt=document.createElement("div"),Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.style.width=mt+"px",Bt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),te(ne)>=5?(be.appletOnLoad=function($t){var Ot=Ee.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Bt),window.GGBT_wsf_view&&$(window).trigger("resize"),it($t)},Oe||Bt.appendChild(ye)):Ye.appendChild(ye),Bt.appendChild(Ye),Oe||Ee.appendChild(Bt),setTimeout(function(){xe.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ye),Ee.appendChild(pe),be.appletOnLoad=function($t){xe.resize(),it($t)}}function je($t,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,Ot.appletOnLoad):renderGGBElement($t),Fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function Ie($t,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(cn){je(cn.article,cn.params)}),html5AppletsToProcess=null)},te(ne)<5&&($t.className+=" geogebraweb")):je($t,Ot)}if(qe){scriptLoadStarted=!0;for(var nt=0;nt<Ye.childNodes.length;nt++){var ht=Ye.childNodes[nt].tagName;ht==="TABLE"&&(Ye.removeChild(Ye.childNodes[nt]),nt--)}if(ggbHTML5LoadedScript!==null){var vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');vt!=null&&vt.parentNode.removeChild(vt)}var Mt=document.createElement("script"),zt=function(){Ie(Ye,be)};Mt.src=_e+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Mt.src,Fn("GeoGebra HTML5 codebase loaded: '"+_e+"'.",be),!ue&&(!Re||Re=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):_e.requirejs?__webpack_require__.e(777).then(function(){var $t=[__webpack_require__(70777)];zt.apply(null,$t)}.bind(this)).catch(__webpack_require__.oe):(Mt.onload=zt,Ee.appendChild(Mt))}else Ie(Ye,be);be.height=de,be.width=mt},Nt=function(Ee,be,Ge){var qe=en(be.width,be.height,be.borderColor,Ge),Ye=document.createElement("div");Ye.style.position="relative",Ye.style.display="block",Ye.style.width=be.width+"px",Ye.style.height=be.height+"px",Ye.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),Ye.appendChild(qe);var mt=GGBAppletUtils.getScale(be,Ee,Ge);Ge?(Ee.appendChild(Kt()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ye,"66%"),Ee.appendChild(Ye),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(Ye,mt),Ye.style.width=be.width+"px",Ye.style.height=be.height+"px",Ye.parentNode.style.width=be.width*mt+"px",Ye.parentNode.style.height=be.height*mt+"px"),xe.resize=function(){Ht(Ee,qe,Ye,Ge)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function Ht(Ee,be,Ge,qe){if(Ee.contains(be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var Ye=GGBAppletUtils.getScale(ge,Ee,qe);Ge.parentNode!==null&&(!isNaN(Ye)&&Ye!==1?(GGBAppletUtils.scaleElement(Ge,Ye),Ge.parentNode.style.width=ge.width*Ye+"px",Ge.parentNode.style.height=ge.height*Ye+"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(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xe.onExitFullscreen=function(Ee,be){be.appendChild(Ee)};var kt=function(Ee,be,Ge,qe){Nt(Ee,be,!0);for(var Ye=function(){var Qe=[];for(de=0;de<Ee.childNodes.length;de++)Qe.push(Ee.childNodes[de]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(Ee,be.id),it=document.getElementById("fullscreencontainer"),Bt=jQuery(Ee).find(".fullscreencontent");Bt.length>0?(st.remove(),Bt.attr("id","fullscreencontent").show(),jQuery(it).append(Bt),window.dispatchEvent(new Event("resize"))):pt(st,be,!1),window.GGBT_wsf_view.launchFullScreen(it)}else De=qe,pt(Ee,be,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)Ee.removeChild(Qe[de])},mt=Ee.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",Ye,!1),mt[de].addEventListener("ontouchstart",Ye,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Kt=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var be='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=be:Ge.appendChild(document.createTextNode(be)),document.getElementsByTagName("head")[0].appendChild(Ge)}return Ee},en=function(Ee,be,Ge,qe){var Ye=document.createElement("div");Ye.className="ggb_preview",Ye.style.position="absolute",Ye.style.zIndex="90",Ye.style.width=Ee-2+"px",Ye.style.height=be-2+"px",Ye.style.top="0px",Ye.style.left="0px",Ye.style.overflow="hidden",Ye.style.backgroundColor="white";var mt="lightgrey";Ge!==void 0&&(Ge==="none"?mt="transparent":mt=Ge),Ye.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,st,it;if(!qe){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,st=360,st>Ee/4*3&&(st=Ee/4*3),it=st/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",st),Qe.setAttribute("height",it);var Bt=(Ee-st)/2,Oe=(be-it)/2;Qe.style.left=Bt+"px",Qe.style.top=Oe+"px",Ye.appendChild(Qe)}}return Ye.appendChild(de),Ye},vn=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Vt=["web","webSimple","web3d","tablet","tablet3d","phone"],qt=function(Ee,be){if(ne=Ee,be){sn(ne,!0);return}var Ge=!Pe;if(Ge){var qe=te(ne);!isNaN(qe)&&qe<4.4&&(Ge=!1)}var Ye,mt;window.location.protocol.substr(0,4)==="http"?Ye=window.location.protocol:Ye="http:";var de=ne.indexOf("//");de>0?mt=ne:de===0?mt=Ye+ne:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in Vt)if(ne.slice(Vt[Qe].length*-1)===Vt[Qe]||ne.slice((Vt[Qe].length+1)*-1)===Vt[Qe]+"/"){sn(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&&!Ve(ge.showToolBar)&&!Ve(ge.showMenuBar)&&!Ve(ge.showAlgebraInput)&&!Ve(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?mt+="webSimple/":mt+="web3d/",sn(mt,!1)},sn=function(Ee,be){if(Ee.requirejs){_e=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),_e=Ee,be===null&&(be=Ee.indexOf("http")===-1),We=be,a="web.nocache.js",y=!1;var Ge=_e.split("/");Ge.length>1&&(!be&&Ge[Ge.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Vt.indexOf(Ge[Ge.length-2])>=0&&(a=Ge[Ge.length-2]+".nocache.js")),Ge=Ee.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&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead."),qt("5.0",be))},Fn=function(Ee,be){window.console&&window.console.log&&(!be||typeof be.showLogging=="undefined"||be.showLogging&&be.showLogging!=="false")&&console.log(Ee)};ge.material_id!==void 0?ie(An):An();function An(){var Ee=tt;Re!==null?Ee=Re:parseFloat(Ee)<5&&(Ee="5.0"),qt(Ee,!1),ue!==null&&sn(ue,We),fe=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function tt(fe,Re){Re!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Re+","+Re+")",fe.style.webkitTransform="scale("+Re+","+Re+")",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,Re,ue,He,$e,Ce){var _e=null;if(Ce!=null&&Ce!="")for(var We=fe.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+Ce+" ")>-1){_e=We;break}else We=We.parentNode;var De=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(_e)De=_e.offsetWidth,ne=Math.max(He?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=De):(De=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=De&&($e===void 0||!$e)&&(document.dir==="rtl"?(x=De-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&&((ue===void 0||!ue)&&Re>0&&Re+y<De?De=Re:De-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:De,height:ne}}function ae(fe,Re,ue,He,$e){if(fe.isScreenshoGenerator)return 1;var Ce=He!==void 0&&He,_e=fe.noScaleMargin!=null&&fe.noScaleMargin,We=function(ee){return ee&&ee!=="false"},De=We(fe.autoHeight),ne=ge(Re,fe.width,ue,De,Ce&&window.GGBT_wsf_view||_e,$e),a=parseInt(ne.width),y=fe.width,x=fe.height;if(y===void 0){var b=Re.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ce?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Pe(fe,Re,ue){var He=1,$e,Ce=!1;if(fe.hasOwnProperty("allowUpscale")&&(Ce=fe.allowUpscale),fe.hasOwnProperty("scale")&&(He=parseFloat(fe.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(Ce=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))$e=ae(fe,Re,Ce,ue,fe.scaleContainerClass);else return He;return Ce&&(!fe.hasOwnProperty("scale")||He===1)?$e:Math.min(He,$e)}function Ze(fe){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),He=fe.getBoundingClientRect(),$e=(Re-He.width)/2,Ce=(ue-He.height)/2;Ce<0&&(Ce=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?($e<40?fe.style.left="40px":fe.style.left=$e+"px",fe.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?fe.style.top="40px":fe.style.top=Ce+"px",fe.style.left=$e+"px")}function Te(fe,Re){var ue=fe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var He=Pe(Re,fe);xe()&&ue.setAttribute("data-param-scale",He);for(var $e=null,Ce=0;Ce<fe.childNodes.length;Ce++)if(fe.childNodes[Ce].className!==void 0&&fe.childNodes[Ce].className.match(/^applet_scaler/)){$e=fe.childNodes[Ce];break}if($e!==null&&$e.querySelector(".noscale")!==null)return;var _e=Re.id!==void 0?Re.id:"ggbApplet",We=window[_e];(We==null||!We.recalculateEnvironments)&&$e!==null&&!$e.className.match(/fullscreen/)&&($e.parentNode.style.transform="",!isNaN(He)&&He!==1?($e.parentNode.style.width=Re.width*He+"px",$e.parentNode.style.height=Re.height*He+"px",tt($e,He)):(tt($e,1),$e.parentNode.style.width=Re.width+"px",$e.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:xe,positionCenter:Ze,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 xe=n.location.search;return xe.indexOf(J)!=-1||xe.indexOf(K)!=-1}function q(xe,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(xe){var tt=s[L].bindings;s[L].bindings=function(){for(var ge=tt?tt():{},ae=xe[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var Ze=ae[Pe];ge[Ze[O]]=Ze[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var xe=o.createElement(Q);if(xe.id=L,xe.style.cssText=R+S,xe.tabIndex=-1,o.body.appendChild(xe),t=xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(xe){function tt(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=Pe();if(Ze){ae();return}function Te(){if(!Ze){if(!Pe())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var fe=setInterval(function(){Te()},$)}function ge(ae){var Pe=u(),Ze=Pe.body,Te=Pe.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=ae,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(Te)}tt(function(){ge(xe)})}webModule.__startLoadingFragment=function(xe){return C(xe)},webModule.__installRunAsyncCode=function(xe){var tt=u(),ge=tt.body,ae=tt.createElement(_);ae.language=ab,ae.text=xe,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(xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xe){var tt=c[xe];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function xe(fe){var Re=fe.lastIndexOf(rb);Re==-1&&(Re=fe.length);var ue=fe.indexOf(sb);ue==-1&&(ue=fe.length);var He=fe.lastIndexOf(tb,Math.min(ue,Re));return He>=O?fe.substring(O,He+P):W}function tt(fe){if(!fe.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=fe+vb,fe=xe(Re.src)}return fe}function ge(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function ae(){for(var fe=o.getElementsByTagName(_),Re=O;Re<fe.length;++Re)if(fe[Re].src.indexOf(xb)!=-1)return xe(fe[Re].src);return W}function Pe(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Ze(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Te=ge();return Te==W&&(Te=ae()),Te==W&&(Te=Pe()),Te==W&&Ze()&&(Te=xe(o.location.href)),Te=tt(Te),Te}function C(xe){return xe.match(/^\//)||xe.match(/^[a-zA-Z]+:\/\//)?xe:webModule.__moduleBase+xe}function D(){var xe=[],tt=O,ge=[],ae=[];function Pe(fe){var Re=ae[fe](),ue=ge[fe];if(Re in ue)return Re;var He=[];for(var $e in ue)He[ue[$e]]=$e;throw r&&r(fe,He,Re),null}if(__gwt_isKnownPropertyValue=function(fe,Re){return Re in ge[fe]},webModule.__getPropMap=function(){var fe={};for(var Re in ge)ge.hasOwnProperty(Re)&&(fe[Re]=Pe(Re));return fe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var Te=Ze.indexOf(Db);Te!=-1&&(tt=parseInt(Ze.substring(Te+P),$),Ze=Ze.substring(O,Te))}catch(fe){}return webModule.__softPermutationId=tt,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},49291:function(xe,tt,ge){"use strict";ge.d(tt,{Ax:function(){return Te},Ds:function(){return fe},KI:function(){return ue},SI:function(){return Ze},f1:function(){return Pe}});var ae=ge(38446);function Pe(He){let $e=!0;if(He.length>0){for(let Ce=0;Ce<He.length;Ce++)if(He[Ce].compile_success==0||!He[Ce].compile_success){$e=!1;break}}else $e=!1;return $e}function Ze(He,$e=""){let Ce=[];for(let _e=0;_e<He.length;_e++){let We=He[_e],De=$e?`${$e}/${We.name}`:`${We.name}`;Ce.push({title:We.name,type:We.type,isLeaf:We.type!=="tree",key:De})}return Ce}function Te(He,$e,Ce){for(let _e=0;_e<He.length;_e++){let We=He[_e];if(We.key===$e){We.children=Ce;break}We.children&&Te(We.children,$e,Ce)}return He}function fe(He,$e,Ce){let _e;return function(){let We=this,De=arguments,ne=function(){_e=null,Ce||He.apply(We,De)},a=Ce&&!_e;clearTimeout(_e),_e=setTimeout(ne,$e),a&&He.apply(We,De)}}const Re=!0,ue=ae.Z.API_SERVER},14573:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return _e}});var ae=ge(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ge(92310),Te=ge.n(Ze),fe=ge(71418),Re=ge(2859),ue=ge(7660),He=ge(88230),$e=(We,De,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(We,De)).next())}),_e=({data:We,className:De,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),[se,me]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&ke()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[We==null?void 0:We.visible]);const ke=()=>$e(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const kt=yield(0,He.ZJ)(We==null?void 0:We.src);z.current.src="",z.current.src=kt,z.current.onload=function(){Ht()},ie(!1),me("")}),Ve=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},pt=kt=>$e(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Kt=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:kt.dataUrl}});Kt!=null&&Kt.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:Kt==null?void 0:Kt.id,settings:JSON.stringify(kt.state)}})).status===0&&x():Kt!=null&&Kt.id&&x(Kt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),me("")}),Nt=()=>{const kt=document.querySelector('a[href="https://markerjs.com/"]');kt&&kt.parentNode&&(kt.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(en=>{const vn=document.querySelector(en.name);vn&&vn.setAttribute("title",en.title)})},Ht=()=>{ee.current=new Re.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",pt),ee.current.addEventListener("beforeclose",Ve),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(),We!=null&&We.snapshotData&&ee.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ae.createElement(ae.Fragment,null,(We==null?void 0:We.visible)&&ae.createElement(fe.Z,{spinning:re,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Te()(Pe.imageDimensions,De,ne?Pe.fullWidth:""),style:a},ae.createElement("img",{className:Pe.img,ref:z}))))}},46531:function(xe,tt,ge){"use strict";var ae=ge(59301),Pe=ge(95237),Ze=ge(43604),Te=ge(99313),fe=ge(3113),Re=ge(99325),ue=ge(11570),He=ge(48136),$e=ge(59301);const Ce=(0,ae.forwardRef)(({callback:_e,showSaveButton:We,value:De=""},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:$e.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>$e.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},$e.createElement("div",null,$e.createElement(Re.Z,{value:`$$${ee.value}$$`}),ee.name),$e.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>$e.createElement("div",{key:re},$e.createElement("h1",null,oe.name),$e.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>$e.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},$e.createElement(Re.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:$e.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>$e.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},$e.createElement("div",null,$e.createElement(Re.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),$e.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>$e.createElement("div",{key:re},oe.name&&$e.createElement("h1",null,oe.name),$e.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>$e.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},$e.createElement(Re.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return _e&&_e(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),$e.createElement("div",{className:ue.Z.mathWrap},$e.createElement(Te.default,{defaultActiveKey:"1",items:E}),$e.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},De||""),We&&$e.createElement("div",{className:ue.Z.button},$e.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=Ce},73278:function(xe,tt,ge){"use strict";ge.d(tt,{h:function(){return ee}});var ae=ge(59301),Pe=ge(57809),Ze=ge(78241),Te=ge(3113),fe=ge(89780),Re=ge.n(fe),ue=ge(78780),He=ge(19136),$e=Object.defineProperty,Ce=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?$e(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))De.call(oe,re)&&a(te,re,oe[re]);if(We)for(var re of We(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ce(te,_e(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 se(ke){ie(z[ke][1])}function me(ke){te(ke)}return ae.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:ke=>ke.parentNode,onChange:se},Object.keys(z).map(ke=>ae.createElement(b,{key:ke,value:ke},z[ke][0])))),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const se=(0,ae.useRef)(),[me,ke]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(me){let Ve=function(pt){const Nt=pt.getValue();oe&&oe(Nt)};return me.on("change",Ve),()=>{me.off("change",Ve)}}},[me,oe]),(0,ae.useEffect)(()=>{me&&me.setOption("mode",re)},[me,re]),(0,ae.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ae.useEffect)(()=>{if(se.current&&!me){const Ve=Re().fromTextArea(se.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ke(Ve)}},[se.current,me]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},64726:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Jn}});var ae=ge(59301),Pe=ge(89780),Ze=ge.n(Pe),Te=ge(76374),fe=ge(78780),Re=ge(6313),ue=ge(25717),He=ge(99498),$e=ge(25419),Ce=ge(67549),_e=ge(99325),We=({value:he="",className:ve,showTextOnly:ce,showLines:et,style:ft={}})=>{const ut=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},De=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:ft="",children:ut}){function nn(){he(et)}return De.createElement("a",{title:ve,className:ft,onClick:nn},De.createElement("i",{className:`${ce}`}),ut)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:ce,onActionCallback:et,fullScreen:ft,insertTemp:ut,hidetoolBar:nn,extraUse:Dt})=>{const Wt=[...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 De.createElement("ul",{className:"markdown-toolbar-container"},!nn&&Wt.map((pn,Rn)=>De.createElement("li",{key:Rn},pn.actionName?De.createElement(re,te(ee({},pn),{onActionCallback:et})):De.createElement("span",{className:"v-line"}))),ve?De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},De.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?De.createElement(De.Fragment,null,De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},De.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},De.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&De.createElement("li",null,De.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:et},De.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Dt&&De.createElement("li",null,Dt),De.createElement("li",{className:"btn-full-screen"},De.createElement(re,{icon:`${ft?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},se=ge(19647),me=ge(78241),ke=ge(92832),Ve=ge(3113),pt=Object.defineProperty,Nt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,vn=(he,ve,ce)=>ve in he?pt(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,Vt=(he,ve)=>{for(var ce in ve||(ve={}))Kt.call(ve,ce)&&vn(he,ce,ve[ce]);if(kt)for(var ce of kt(ve))en.call(ve,ce)&&vn(he,ce,ve[ce]);return he},qt=(he,ve)=>Nt(he,Ht(ve));const sn={labelCol:{span:4},wrapperCol:{span:20}};var Fn=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(me.default,qt(Vt({},sn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ke.default,null)),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ke.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ve.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},An=ge(73278),Ee=ge(56030),be=ge(43418),Ge=ge(95237),qe=ge(14573),Ye=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 ft=ce.toDataURL("image/png");return Ye.createElement(be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ye.createElement(Ge.Z,{style:{height:"100vh"}},Ye.createElement(qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ft,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(Dt){Dt instanceof go.Link||ce.push(Dt)});for(var et=0;et<ce.length-1;et++){var ft=ce[et],ut=ft.actualBounds.y+ft.actualBounds.height+he,nn=ce[et+1];nn.move(new go.Point(ft.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(Dt){Dt instanceof go.Link||ce.push(Dt)});for(var et=0;et<ce.length-1;et++){var ft=ce[et],ut=ft.actualBounds.x+ft.actualBounds.width+he,nn=ce[et+1];nn.move(new go.Point(ut,ft.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(ft){if(!ft.isSelected){var ut=ft.zOrder;isNaN(ut)?ft.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(ft){if(!ft.isSelected){var ut=ft.zOrder;isNaN(ut)?ft.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 ft=he.grid.gridCellSize;et=ft.width,ce=ft.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(),ft=1/0,ut=ve,nn=0;nn<et.length;nn++){var Dt=et[nn];if(Dt!==ve&&Dt.canSelect()){var Wt=Dt.actualBounds.center,pn=ce.directionPoint(Wt),Rn=this._angleCloseness(pn,he);if(Rn<=45){var Je=ce.distanceSquaredPoint(Wt);Je*=1+Math.sin(Rn*Math.PI/180),Je<ft&&(ft=Je,ut=Dt)}}}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 ft=ve.findTreeParentNode();ft!==null&&he.select(ft)}else if(ce.key==="Up"){var ft=ve.findTreeParentNode();if(ft!==null){var ut=this._sortTreeChildrenByY(ft),nn=ut.indexOf(ve);if(nn>0){for(var Dt=ut.elt(nn-1);Dt!==null&&Dt.isTreeExpanded&&!Dt.isTreeLeaf;){var Wt=this._sortTreeChildrenByY(Dt);Dt=Wt.last()}Dt!==null&&he.select(Dt)}else he.select(ft)}}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 ft=ve.findTreeParentNode();if(ft===null)break;var ut=this._sortTreeChildrenByY(ft),nn=ut.indexOf(ve);if(nn<ut.length-1){he.select(ut.elt(nn+1));break}else ve=ft}var pn=he.selection.first();pn!==null&&he.scrollToRect(pn.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(he){var ve=new go.List().addAll(he.findTreeChildrenNodes());return ve.sort(function(ce,et){var ft=ce.location,ut=et.location;return ft.y<ut.y?-1:ft.y>ut.y?1:ft.x<ut.x?-1:ft.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 st=Qe,it=ge(29277),Bt=ge(43604),Oe=ge(7660),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),je=(he,ve,ce)=>new Promise((et,ft)=>{var ut=Wt=>{try{Dt(ce.next(Wt))}catch(pn){ft(pn)}},nn=Wt=>{try{Dt(ce.throw(Wt))}catch(pn){ft(pn)}},Dt=Wt=>Wt.done?et(Wt.value):Promise.resolve(Wt.value).then(ut,nn);Dt((ce=ce.apply(he,ve)).next())});function Ie({onCancel:he,callback:ve}){let ce=(0,ae.useRef)(),et=(0,ae.useRef)(),ft=(0,ae.useRef)(),ut=(0,ae.useRef)(!1);const nn=(0,ae.useRef)(!1),[Dt,Wt]=(0,ae.useState)(0);function pn(){const Je=de.bx.make,Zt={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:Je(de.s_,"Grid",Je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xe=>{var dt=Xe.diagram.commandHandler.addTopLevelParts(Xe.diagram.selection,!0);dt||Xe.diagram.currentTool.doCancel()},commandHandler:Je(st),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xe=>{var dt=Xe.subject;dt.location=dt.location.copy().snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xe=>{var dt=Xe.subject;setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xe=>{var dt=Xe.parameter.part;dt.invalidateConnectedLinks();var yt=Xe.subject;Xe.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Je(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),Je(de.bn,{name:"SHAPE",fill:Zt.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")),Je(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Je(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=Je("ToolTip",Je(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Je(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Je(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(Xe,dt){var yt=(gt,Rt)=>{gt.handled=!0,gt.diagram.model.commit(jt=>{var Gt=Rt.part.adornedPart,dn=new de.E9().setRectSpot(Gt.actualBounds,Xe);dn.subtract(Gt.location),dn.scale(2,2),dn.x+=Math.sign(dn.x)*130,dn.y+=Math.sign(dn.y)*130,dn.add(Gt.location),dn.snapToGridPoint(gt.diagram.grid.gridOrigin,gt.diagram.grid.gridCellSize);var ln=jt.copyNodeData(Gt.data);jt.setGroupKeyForNodeData(ln,jt.getGroupKeyForNodeData(Gt.data)),jt.addNodeData(ln);var oa={from:Gt.key,to:jt.getKeyForNodeData(ln)};jt.addLinkData(oa);var Qn=gt.diagram.findNodeForData(ln);Qn.location=dn,gt.diagram.select(Qn),setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()},20)})};return Je(de.bn,{figure:dt,alignment:Xe,alignmentFocus:Xe.opposite(),width:Xe.equals(de.z6.Top)||Xe.equals(de.z6.Bottom)?25:18,height:Xe.equals(de.z6.Top)||Xe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Zt.white,strokeWidth:4,mouseEnter:(gt,Rt)=>Rt.fill="dodgerblue",mouseLeave:(gt,Rt)=>Rt.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function Zn(Xe){return Je(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:(dt,yt)=>yt.fill="dodgerblue",mouseLeave:(dt,yt)=>yt.fill="orange",click:(dt,yt)=>{dt.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},Xe||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Je(de.uz,"Spot",Je(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function bn(Xe,dt){return(yt,gt)=>{yt.handled=!0,yt.diagram.model.commit(Rt=>{Rt.set(gt.part.adornedPart.data,Xe,dt)})}}function le(Xe,dt){return dt||(dt="color"),Je(de.bn,{width:16,height:16,stroke:"lightgray",fill:Xe,margin:1,background:"transparent",mouseEnter:(yt,gt)=>gt.stroke="dodgerblue",mouseLeave:(yt,gt)=>gt.stroke="lightgray",click:bn(dt,Xe),contextClick:bn(dt,Xe)})}function Be(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",le(Zt.white,"fill"),le(Zt.beige,"fill"),le(Zt.extralightblue,"fill"),le(Zt.extralightred,"fill"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",le(Zt.lightgray,"fill"),le(Zt.lightgreen,"fill"),le(Zt.lightblue,"fill"),le(Zt.lightred,"fill")))]}function Fe(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",le(Zt.black),le(Zt.green),le(Zt.blue),le(Zt.red))),Je("ContextMenuButton",Je(de.s_,"Horizontal",le(Zt.white),le(Zt.magenta),le(Zt.purple),le(Zt.orange)))]}function ze(Xe,dt){return dt||(dt="thickness"),Je(de.bn,"LineH",{width:16,height:16,strokeWidth:Xe,margin:1,background:"transparent",mouseEnter:(yt,gt)=>gt.background="dodgerblue",mouseLeave:(yt,gt)=>gt.background="transparent",click:bn(dt,Xe),contextClick:bn(dt,Xe)})}function Ue(Xe,dt){return dt||(dt="dash"),Je(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xe,margin:1,background:"transparent",mouseEnter:(yt,gt)=>gt.background="dodgerblue",mouseLeave:(yt,gt)=>gt.background="transparent",click:bn(dt,Xe),contextClick:bn(dt,Xe)})}function Ke(){return[Je("ContextMenuButton",Je(de.s_,"Horizontal",ze(1),ze(2),ze(3),ze(4))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Ue(null),Ue([2,4]),Ue([4,4])))]}function Ae(Xe,dt){return dt||(dt="figure"),Je(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xe,margin:1,background:"transparent",mouseEnter:(yt,gt)=>gt.fill="dodgerblue",mouseLeave:(yt,gt)=>gt.fill="lightgray",click:bn(dt,Xe),contextClick:bn(dt,Xe)})}ce.current.nodeTemplate.contextMenu=Je("ContextMenu",Je("ContextMenuButton",Je(de.s_,"Horizontal",Ae("Rectangle"),Ae("RoundedRectangle"),Ae("Ellipse"),Ae("Diamond"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Ae("Parallelogram2"),Ae("ManualOperation"),Ae("Procedure"),Ae("Cylinder1"))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Ae("Terminator"),Ae("CreateRequest"),Ae("Document"),Ae("TriangleDown"))),Be(),Fe(),Ke()),ce.current.groupTemplate=Je(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xe,dt)=>{var yt=dt.addMembers(dt.diagram.selection,!0);yt||dt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Je(de.s_,"Auto",{name:"BODY"},Je(de.bn,{parameter1:10,fill:Zt.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")),Je(de.Vm,{background:"transparent",margin:20})),Je(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=Je(de.uz,"Spot",Je(de.s_,"Auto",Je(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Je(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Je("ContextMenu",Be(),Fe(),Ke()),ce.current.linkTemplate=Je(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",Xe=>Xe>=1?10:0),new de.KX("toShortLength","dir",Xe=>Xe>=1?10:0),new de.KX("points").makeTwoWay(),Je(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Je(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",Xe=>Xe===1)),Je(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",Xe=>Xe>=1),new de.KX("width","thickness",Xe=>7+3*Xe),new de.KX("height","thickness",Xe=>7+3*Xe),new de.KX("segmentOffset","thickness",Xe=>new de.E9(-15,4+1.5*Xe))),Je(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",Xe=>Xe===2),new de.KX("width","thickness",Xe=>7+3*Xe),new de.KX("height","thickness",Xe=>7+3*Xe),new de.KX("segmentOffset","thickness",Xe=>new de.E9(-15,4+1.5*Xe))),Je(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=Je(de.uz,Je(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ne(2)},new de.KX("pathPattern","thickness",Ne)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ne(Xe){return Je(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xe+4).toString()+" H3"})}function bt(Xe){var dt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xe===0?dt="M0 0 M16 16 M0 8 L16 8":Xe===2&&(dt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Je(de.bn,{geometryString:dt,margin:2,background:"transparent",mouseEnter:(yt,gt)=>gt.background="dodgerblue",mouseLeave:(yt,gt)=>gt.background="transparent",click:bn("dir",Xe),contextClick:bn("dir",Xe)})}function wt(Xe){var dt=(yt,gt)=>{yt.handled=!0,yt.diagram.model.commit(Rt=>{var jt=gt.part.adornedPart;Rt.set(jt.data,Xe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Xe?jt.toNode:jt.fromNode).invalidateConnectedLinks()})};return Je(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,gt)=>gt.background="dodgerblue",mouseLeave:(yt,gt)=>gt.background="transparent",click:dt,contextClick:dt})}function Le(Xe,dt){var yt=0,gt=de.z6.RightSide;Xe.equals(de.z6.Top)?(yt=270,gt=de.z6.TopSide):Xe.equals(de.z6.Left)?(yt=180,gt=de.z6.LeftSide):Xe.equals(de.z6.Bottom)&&(yt=90,gt=de.z6.BottomSide),dt||(yt-=180);var Rt=(jt,Gt)=>{jt.handled=!0,jt.diagram.model.commit(dn=>{var ln=Gt.part.adornedPart;dn.set(ln.data,dt?"toSpot":"fromSpot",de.z6.stringify(gt)),(dt?ln.toNode:ln.fromNode).invalidateConnectedLinks()})};return Je(de.bn,{alignment:Xe,alignmentFocus:Xe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(jt,Gt)=>Gt.background="dodgerblue",mouseLeave:(jt,Gt)=>Gt.background="transparent",click:Rt,contextClick:Rt})}ce.current.linkTemplate.contextMenu=Je("ContextMenu",Fe(),Ke(),Je("ContextMenuButton",Je(de.s_,"Horizontal",bt(0),bt(1),bt(2))),Je("ContextMenuButton",Je(de.s_,"Horizontal",Je(de.s_,"Spot",wt(!1),Le(de.z6.Top,!1),Le(de.z6.Left,!1),Le(de.z6.Right,!1),Le(de.z6.Bottom,!1)),Je(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},wt(!0),Le(de.z6.Top,!0),Le(de.z6.Left,!0),Le(de.z6.Right,!0),Le(de.z6.Bottom,!0)))));const Jt=`{ "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 Xt=["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 un(Xe){return console.log("shapeName:",Xe),Xt.indexOf(Xe)>=0}var wn=new de.YI(ft.current,{maxSelectionCount:1,linkTemplate:Je(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Je(de.uz,"Link",{locationSpot:de.z6.Center},Je(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Je(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Je(de.bn,{isPanelMain:!0,strokeWidth:2}),Je(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(Xe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Xe){var dt;const yt=Xe.subject.part;var gt=(dt=document.activeElement)==null?void 0:dt.value;typeof gt=="string"&>.trim()===""&&ce.current.model.commit(function(Rt){Rt.set(yt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=Je(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Je(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")),Je(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=Je(de.s_,"Grid",Je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(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 Rn=()=>je(this,null,function*(){var Je=ce.current.makeImage();const Zt=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Je.src}});ve({src:Zt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{pn()},500),Wt(Dt+1),()=>{ce.current=null}),[]),pe.createElement("div",{ref:nn,className:ut.current?`${ye.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Dt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ge.Z,null,pe.createElement(Bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Bt.Z,{onClick:()=>{var Je,Zt,Tn=ce.current.selection.first();if(ut.current=!ut.current,document.activeElement&&Tn){let Zn=(Zt=(Je=document.activeElement)==null?void 0:Je.value)==null?void 0:Zt.trim();typeof Zn=="string"&&ce.current.model.commit(function(bn){bn.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Wt(Dt+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:ye.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:ye.myPaletteDiv,ref:ft})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:et,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Ve.ZP,{size:"large",onClick:Rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var nt=Ie,ht=ge(5112),vt=ge(5871);const Mt=ht.ZP.Group,zt={margin:"0 8px"};var $t=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(me.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:zt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:zt},"\u884C\u6570"),ae.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(vt.Z,null)),ae.createElement("span",{style:zt},"\u5217\u6570"),ae.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(vt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(me.default.Item,{name:"align"},ae.createElement(Mt,null,ae.createElement(ht.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ht.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ht.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ht.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ve.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Ot=ge(78673),cn=ge(5559),Sn=ge.n(cn),Lt=(0,ae.forwardRef)(({use3d:he,width:ve,height:ce,callback:et,showSaveButton:ft},ut)=>{const nn=(0,ae.useRef)(),Dt=(0,ae.useRef)(),[Wt,pn]=(0,ae.useState)(!1),Rn=(0,ae.useRef)({id:nn,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)(()=>{Dt.current=new(Sn())(Rn.current,!0),window.onload=function(){Dt.current.inject("applet_container")}},[]);const Je=()=>{var Zt=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(Zt),Zt};return(0,ae.useEffect)(()=>{Rn.current.appName=Wt?"3D":"graphing",Dt.current.inject("applet_container")},[Wt]),(0,ae.useEffect)(()=>{pn(he)},[he]),(0,ae.useImperativeHandle)(ut,()=>({getImgData:Je})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:nn}),ae.createElement(Ge.Z,{align:"middle"},ae.createElement(Bt.Z,{flex:1},ae.createElement(Ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wt,onChange:Zt=>pn(Zt)})),ae.createElement(Bt.Z,null,ae.createElement(Ve.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Et=ge(46531),Se=ge(1012),we=ge(8591);const Me="link",at="upload-image",rt="add-flowchart",Ft="draw-image",Ct="add-flowchart",St="code-block",xt="add-table",_t="------------",At={default:_t,left:`:${_t}`,center:`:${_t}:`,right:`${_t}:`};var Ut=ge(50505),mn=(he,ve,ce)=>new Promise((et,ft)=>{var ut=Wt=>{try{Dt(ce.next(Wt))}catch(pn){ft(pn)}},nn=Wt=>{try{Dt(ce.throw(Wt))}catch(pn){ft(pn)}},Dt=Wt=>Wt.done?et(Wt.value):Promise.resolve(Wt.value).then(ut,nn);Dt((ce=ce.apply(he,ve)).next())});function hn(){}let yn=0;const tn=1e4,Yt="\u2581",fn="@\u2581\u2581@",Bn="@\u2581@",xn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,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",Wn={[zn+"-B"]:"bold",[zn+"-I"]:"italic"},na={[Me]:"\u6DFB\u52A0\u94FE\u63A5",[St]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[at]:"\u6DFB\u52A0\u56FE\u7247",[Ft]:"\u6DFB\u52A0\u753B\u56FE",[rt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:he="",onChange:ve,width:ce="100%",height:et=400,miniToolbar:ft=!1,isFocus:ut=!1,watch:nn,insertTemp:Dt,mode:Wt="markdown",id:pn="markdown-editor-id",showResizeBar:Rn=!1,noStorage:Je=!1,showNullButton:Zt=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:bn=!1,onBlur:le,onCMBeforeChange:Be,onFullScreen:Fe,className:ze="",disablePaste:Ue=!1,disabled:Ke=!1,disabledFill:Ae=!1,placeholder:Ne="",values:bt="",extraUse:wt})=>{const[Le,Jt]=(0,ae.useState)(null),[Xt,un]=(0,ae.useState)(he),[wn,Xe]=(0,ae.useState)(nn),[dt,yt]=(0,ae.useState)(bn),[gt,Rt]=(0,ae.useState)(""),[jt,Gt]=(0,ae.useState)(0),[dn,ln]=(0,ae.useState)(et),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,Se.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,En]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>mn(void 0,null,function*(){var Pt;const ot=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Pt=ot==null?void 0:ot.attachments)!=null&&Pt.length&&(console.log("cm:",Le,ta),ot.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?Le.replaceSelection(``):lt.content_type.indexOf("video")>-1?Le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?Le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):Le.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,ae.useEffect)(()=>{const Pt=window.scrollY||window.pageYOffset;un(bt),Le==null||Le.setValue(bt),window.scrollTo(0,Pt)},[bt]),(0,ae.useEffect)(()=>{Fe==null||Fe(dt)},[dt]),(0,ae.useEffect)(()=>{if(ta.current){let Pt=function(lt,ct){var on;if(Ue){ct.preventDefault();return}const $n=ct.clipboardData;if($n){const kn=$n.types.toString(),Dn=$n.items;if(kn==="Files"||$n.types.indexOf("Files")>-1){if(ct.preventDefault(),Wt=="stex")return;try{let _n=Dn[1];((on=Dn[0])==null?void 0:on.kind)==="file"&&(_n=Dn[0]);const jn=_n.getAsFile(),sa=jn.name.split(".").pop();(0,Ee.I)(jn,Kn=>{var It,an,Ln;Kn.id?((It=jn==null?void 0:jn.type)==null?void 0:It.indexOf("image"))>-1?ot.replaceSelection(``):((an=jn==null?void 0:jn.type)==null?void 0:an.indexOf("video"))>-1?ot.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((Ln=jn==null?void 0:jn.type)==null?void 0:Ln.indexOf("pdf"))>-1?ot.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):rn.includes(sa)?ot.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):ot.replaceSelection(`[${jn.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(we.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(_n){we.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ot=Ze().fromTextArea(ta.current,{mode:Wt,lineNumbers:!ft,lineWrapping:!0,value:he,autoCloseTags:!Tn,autoCloseBrackets:!0});return ot.on("keyup",function(lt,ct){ct.keyCode===8&&(lt.getValue()==""?ot.setOption("placeholder",Ne):ot.setOption("placeholder",null))}),ot.on("keydown",function(lt,ct){if(ct.keyCode===8){var on=Tt(lt);on&&ct.preventDefault()}}),ut&&ot.focus(),ot.on("paste",Pt),ot.on("dragleave",function(lt,ct){ga.current.classList.remove("mouse-hover-md")}),Ke&&ot.on("beforeChange",function(lt,ct){(ct.origin==="paste"||ct.origin==="+input")&&ct.cancel()}),Jt(ot),()=>{ot.off("paste",Pt)}}},[]);const ha=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(Pt){console.log(Pt,"---- to set md editor body height")}},[dn,ga,dt]);(0,ae.useEffect)(()=>{function Pt(){let ot=new Te.Z(lt=>{for(let ct of lt)(ct.target.offsetHeight>0||ct.target.offsetWidth>0)&&(ha(),Le.setSize("100%","100%"),Le.refresh())});return ot.observe(ta.current.parentElement),ot}if(Le){const ot=Pt();return()=>{var lt,ct;(lt=ta.current)!=null&<.parentElement&&ot.unobserve((ct=ta.current)==null?void 0:ct.parentElement)}}},[Le,ha]),(0,ae.useEffect)(()=>{if(Le){let Pt=[];for(const[ot,lt]of Object.entries(Wn)){let ct={[ot]:()=>{Cn(lt)}};Pt.push(ct),Le.addKeyMap(ct)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ot of Pt)Le.removeKeyMap(ot)}}},[Le]),(0,ae.useEffect)(()=>{bn!==dt&&yt(bn)},[bn]),(0,Ut.Z)(()=>{if(!Je&&jt>0){let Pt=new Date().getTime(),ot=window.sessionStorage.getItem(pn);Pt>=jt+tn&&(!ot||ot!==Xt)&&(window.sessionStorage.setItem(pn,Xt),Qn(!0))}},tn),(0,ae.useEffect)(()=>{Xe(nn)},[Le,nn]),(0,ae.useEffect)(()=>{Le&&ut&&Le.focus()},[Le,ut]),(0,ae.useEffect)(()=>{if(wn&&Le){let Pt=function(lt){let ct=lt.target;if(aa.current){let on=ct.scrollTop/ct.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*on}};const ot=Le.getScrollerElement();return ot.addEventListener("scroll",Pt),()=>{ot.removeEventListener("scroll",Pt)}}},[Le,wn]),(0,ae.useEffect)(()=>{if(Le&&Be){let Pt=function(ot,lt){Be(ot,lt)};return Le.on("beforeChange",Pt),()=>{Le.off("beforeChange",Pt)}}},[Le,Be]),(0,ae.useEffect)(()=>{if(Le&&le){let Pt=function(){le(Le.getValue())};return Le.on("blur",Pt),()=>{Le.off("blur",Pt)}}},[Le,le]);function Tt(Pt,ot){var lt=Pt.getDoc(),ct=lt.getCursor(),on=lt.getLine(ct.line),$n=on.charAt(ct.ch-1),kn=on.lastIndexOf("@\u2581@",ct.ch),Dn=on.lastIndexOf("@\u2581\u2581@",ct.ch),_n=kn>Dn?kn:Dn,jn=kn>Dn?3:4;if(fn.indexOf($n)===-1)return null;if(console.log("change1:",ot,Pt,on,ct,_n,kn,Dn,$n),_n>=0&&ct.ch-_n<5){var sa=_n+jn;return lt.replaceRange("",{line:ct.line,ch:_n},{line:ct.line,ch:sa}),{line:ct.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(Le){let Pt=function(ot,lt){const ct=ot.getValue();un(ct),Gt(new Date().getTime()),ot.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Tn?ve(ct,Gn(ct)):ve(ct))};return Le.on("change",Pt),()=>{Le.off("change",Pt)}}},[Le,ve]),(0,ae.useEffect)(()=>{if(Le)if(he==null)Le.setValue(""),un("");else{const Pt=window.scrollY||window.pageYOffset;he!==Le.getValue()&&(Le.setValue(he),un(he),Le.setCursor(Ke?1:Le.lineCount(),0),window.scrollTo(0,Pt))}},[Le,he]);const Cn=(0,ae.useCallback)(Pt=>{const ot=Le.getCursor(),lt=Le.getSelection();let ct=lt.split(`
|
|
`);switch(Pt){case"bold":return Le.replaceSelection("**"+lt+"**"),lt===""&&Le.setCursor(ot.line,ot.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+lt+"*"),lt===""&&Le.setCursor(ot.line,ot.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+lt+"`"),lt===""&&Le.setCursor(ot.line,ot.ch+1),Le.focus();case"inline-latex":return Rt("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+lt+"\n```"),Le.setCursor(ot.line+1,lt.length+1),Le.focus();case"line-break":return Le.replaceSelection(`<br/>
|
|
`),Le.focus();case"list-ul":return lt===""?Le.replaceSelection("- "+lt):Le.replaceSelection(ct.map(on=>on===""?"":`- ${on}`).join(`
|
|
`)),Le.focus();case"list-ol":return lt===""?Le.replaceSelection("1. "+lt):Le.replaceSelection(ct.map((on,$n)=>on===""?"":`${$n+1}. ${on}`).join(`
|
|
`)),Le.focus();case"add-null-ch":return lt===""&&Le.setCursor(ot.line,ot.ch),Le.replaceSelection(Yt),Le.focus();case"add-signal":return lt===""&&Le.setCursor(ot.line,ot.ch),Le.replaceSelection(Bn),Le.focus();case"add-multiple":return lt===""&&Le.setCursor(ot.line,ot.ch),Le.replaceSelection(fn),Le.focus();case"inster-template-1":return lt===""&&Le.setCursor(ot.line,ot.ch),Le.replaceSelection(xn),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Xe(!wn),Le.focus();case"trigger-full-screen":return yt(!dt),Le.focus();case Me:Rt(Me);return;case St:Rt(St);return;case at:Rt(at);return;case Ft:Rt(Ft);return;case"maths-latex":Rt("maths-latex");return;case rt:Rt(rt);return;case xt:Rt(xt);return;default:throw new Error}},[Le,wn,dt]),Nn=(0,ae.useCallback)((Pt,ot)=>{var lt,ct,on,$n,kn,Dn;switch(Rt(""),gt){case Me:const{title:It,link:an}=Pt;return Le.replaceSelection(`[${It}](${an})`),Le.focus();case St:const{language:Ln,content:Qt}=Pt;return Le.replaceSelection(["```"+Ln,Qt,"```"].join(`
|
|
`)),Le.focus();case"maths-latex":for(var _n=atob(Pt),jn=new Uint8Array(_n.length),sa=0;sa<_n.length;sa++)jn[sa]=_n.charCodeAt(sa);var Kn=new Blob([jn],{type:"image/png"});(0,Ee.I)(Kn,ma=>{ma.id?Le.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Le.replaceSelection("`$$"+Pt+"$$`");break;case at:case Ft:case Ct:const{src:gn,alt:Hn}=Pt,In=ot,fa=(on=(ct=(lt=In==null?void 0:In.name)==null?void 0:lt.split("."))==null?void 0:ct.pop)==null?void 0:on.call(ct);return(($n=In==null?void 0:In.type)==null?void 0:$n.indexOf("image"))>-1||!(In!=null&&In.type)?Hn?Le.replaceSelection(``):Le.replaceSelection(``):((kn=In==null?void 0:In.type)==null?void 0:kn.indexOf("video"))>-1?Le.replaceSelection(`<video width="100%" controls src="${gn}"></video>`):((Dn=In==null?void 0:In.type)==null?void 0:Dn.indexOf("pdf"))>-1?Le.replaceSelection(`<a href="${gn}?type=${In.type}&disposition=inline" target="_blank">${In.name}</a>`):rn.includes(fa)?Le.replaceSelection(`<a href="${gn}?type=office&disposition=inline" target="_blank">${In.name}</a>`):Le.replaceSelection(`[${In.name}](${gn})`),Le.focus();case xt:const{row:ua,col:wa,align:Ca}=Pt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&xa.push(At[Ca]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
|
|
`}return Le.replaceSelection(Fa+`
|
|
`),Le.focus();default:throw new Error}},[Le,gt]),Un=(0,ae.useMemo)(()=>{switch(gt){case Me:return ae.createElement(Fn,{callback:Nn,onCancel:Xn});case St:return ae.createElement(An.Z,{callback:Nn,onCancel:Xn});case at:return ae.createElement(Ee.Z,{callback:Nn,onCancel:Xn});case rt:return ae.createElement(nt,{callback:Nn,onCancel:Xn});case xt:return ae.createElement($t,{callback:Nn,onCancel:Xn});case"maths-latex":return ae.createElement(Lt,{showSaveButton:!0,callback:Nn});case"inline-latex":return ae.createElement(Et.Z,{showSaveButton:!0,callback:Nn});default:return null}},[gt]);function Xn(){Rt("")}(0,ae.useEffect)(()=>{if(ia.current){let Pt=function(kn){on=!0,$n=kn.pageY},ot=function(){on=!1},lt=function(kn){if(on){let Dn=kn.pageY-$n;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let _n=et+Dn+"px";ln(_n)}},ct=ia.current,on=!1,$n=0;return ct.addEventListener("mousedown",Pt),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",ot),()=>{ct.removeEventListener("mousedown",Pt),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",ot)}}},[Le,ia]),(0,ae.useEffect)(()=>{ln(et)},[et]);const ra=On(ce),va=On(dn),pa={width:ra,height:va},Mn=(0,ae.useMemo)(()=>{if(jt){let Pt=new Date(jt),ot=Pt.getHours(),lt=Pt.getMinutes(),ct=Pt.getSeconds();return ot=ot<10?"0"+ot:ot,lt=lt<10?"0"+lt:lt,ct=ct<10?"0"+ct:ct,`${ot}:${lt}:${ct}`}return 0},[jt]),Gn=Pt=>{const ot=[];if(Tn){let lt=-1;Pt=Pt.replace(/(@▁▁@|@▁@)/g,function(ct,on,$n){ot.push({multiLine:ct!==Bn})})}return ot};function la(){window.sessionStorage.removeItem(pn),Qn(!1),Gt(0)}function La(){Qn(!1),Gt(0),Le.setValue(window.sessionStorage.getItem(pn))}(0,ae.useEffect)(()=>{na[gt]&>!==Ft&>!==rt&&setTimeout(()=>{const Pt=document.getElementsByClassName("markdown-popup-form")[0],ot=window.innerWidth/2-Pt.offsetWidth/2,lt=window.innerHeight/2-Pt.offsetHeight/2;da(ot),En(lt)},0)},[gt]);const ya=Pt=>{Pt.preventDefault();const ot=Pt.clientX-Pa,lt=Pt.clientY-Vn;document.body.onmousemove=ct=>{let on=ct.clientX-ot,$n=ct.clientY-lt;const kn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-kn.offsetWidth,_n=window.innerHeight-kn.offsetHeight;on=Math.max(0,Math.min(on,Dn)),$n=Math.max(0,Math.min($n,_n)),ba(ct.clientX,ct.clientY,ot,lt)&&(da(on),En($n))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Pt,ot,lt,ct)=>{const on=document.body.clientHeight,$n=document.body.clientWidth;return Pt<20&<>Pt||Pt>$n-20&<<Pt||ot<20&&ct>ot||ot>on-20&&ct<ot?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${ze} ${wn?"on-preview":""} ${ft?"mini":""} ${dt?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:Dt,watch:wn,fullScreen:dt,showNullButton:Zt,showNullProgramButton:Tn,onActionCallback:Cn,hidetoolBar:Zn,extraUse:wt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:Ne})),wn?ae.createElement("div",{ref:aa,className:"preview-container"},Wt==="stex"&&ae.createElement(We,{value:Xt}),Wt!=="stex"&&ae.createElement(_e.Z,{disabledFill:Ae,showProgramFill:Tn,value:Xt})):null))),Rn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,gt===Ft&&ae.createElement(mt,{callback:Nn,onCancel:Xn}),gt===rt&&ae.createElement(nt,{callback:Nn,onCancel:Xn}),ae.createElement(se.Z,null,na[gt]&>!==Ft&>!==rt?ae.createElement(be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},na[gt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:gt===rt?"1200px":null,height:gt===rt?"80vh":null,className:"markdown-popup-form"},Un):null))}},56030:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return ee},I:function(){return oe}});var ae=ge(78241),Pe=ge(8591),Ze=ge(92832),Te=ge(3113),fe=ge(49291),Re=ge(59301),ue=ge(73898),He=ge(59301),$e=Object.defineProperty,Ce=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(re,ie,se)=>ie in re?$e(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:se}):re[ie]=se,y=(re,ie)=>{for(var se in ie||(ie={}))De.call(ie,se)&&a(re,se,ie[se]);if(We)for(var se of We(ie))ne.call(ie,se)&&a(re,se,ie[se]);return re},x=(re,ie)=>Ce(re,_e(ie));const{useForm:b}=ae.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:re,onCancel:ie})=>{const[se]=b();let me=(0,Re.useRef)();function ke(Nt){re(Nt,me.current)}function Ve(Nt,Ht){if(Nt.status===-1){Pe.ZP.error(Nt.message);return}se.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:Ht.type})}function pt(Nt){let Ht=Nt.target.files[0];me.current=Ht,oe(Ht,Ve)}return He.createElement(ae.default,x(y({form:se},z),{className:"upload-image-panel",onFinish:ke,style:{width:470,overflow:"hidden"}}),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(Ze.default,{style:E})),He.createElement(te,{onFileChange:pt}))),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ze.default,{style:{width:264}})),He.createElement(ae.default.Item,{style:{textAlign:"right"}},He.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Te.ZP,{type:"default",onClick:ie},"\u53D6\u6D88")))};function te({onFileChange:re}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:re}))}function oe(re,ie){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let se=new FormData;se.append("editormd-image-file",re),se.append("file_param_name","editormd-image-file"),se.append("byxhr","true");var me=new window.XMLHttpRequest;me.withCredentials=!0,me.addEventListener("load",function(ke){ie(JSON.parse(ke.target.responseText),re)},!1),me.addEventListener("error",function(ke){console.error(ke)},!1),me.open("POST",`${fe.KI}/api/attachments.json`),me.send(se)}},19647:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ze}});var ae=ge(59301),Pe=ge(4676);class Ze extends ae.Component{constructor(fe){super(fe);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50505:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Pe}});var ae=ge(59301);function Pe(Ze,Te){const fe=(0,ae.useRef)();(0,ae.useEffect)(()=>{fe.current=Ze}),(0,ae.useEffect)(()=>{function Re(){fe.current()}if(Te!==null){let ue=setInterval(Re,Te);return()=>clearInterval(ue)}},[Te])}},23170:function(xe,tt,ge){"use strict";ge.r(tt),ge.d(tt,{default:function(){return Ee}});var ae=ge(59301),Pe=ge(20834),Ze=ge(44e3),Te=ge(8591),fe=ge(43418),Re=ge(60324),ue=ge(38446),He={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"},$e=ge(7660),Ce=ge(24459),_e=ge(87169),We=ge(43531),De=ge(73898),ne=ge(92832),a=(be,Ge,qe)=>new Promise((Ye,mt)=>{var de=it=>{try{st(qe.next(it))}catch(Bt){mt(Bt)}},Qe=it=>{try{st(qe.throw(it))}catch(Bt){mt(Bt)}},st=it=>it.done?Ye(it.value):Promise.resolve(it.value).then(de,Qe);st((qe=qe.apply(be,Ge)).next())});function y({user:be,CategoryId:Ge,IsShow:qe,setIsShow:Ye,dispatch:mt,init:de}){const[Qe,st]=(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:()=>{Ye(!1)},onOk:()=>a(this,null,function*(){if(!Qe){Te.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,$e.ZP)("/api/programas.json",{method:"post",body:{name:Qe,parent_id:Ge}})).status===0&&(Te.ZP.info("\u521B\u5EFA\u6210\u529F"),Ye(!1),st(""),de())}),open:qe},ae.createElement(ne.default,{value:Qe,onChange:it=>st(it.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var x=(0,Ce.connect)(({user:be})=>({user:be}))(y),b=(be,Ge,qe)=>new Promise((Ye,mt)=>{var de=it=>{try{st(qe.next(it))}catch(Bt){mt(Bt)}},Qe=it=>{try{st(qe.throw(it))}catch(Bt){mt(Bt)}},st=it=>it.done?Ye(it.value):Promise.resolve(it.value).then(de,Qe);st((qe=qe.apply(be,Ge)).next())});function E({user:be,CategoryId:Ge,name:qe,IsShow:Ye,setIsShow:mt,dispatch:de,init:Qe}){const[st,it]=(0,ae.useState)();return(0,ae.useEffect)(()=>{it(qe)},[qe]),ae.createElement(fe.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{mt(!1)},onOk:()=>b(this,null,function*(){if(!st){Te.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,$e.ZP)(`/api/programas/${Ge}/rename.json`,{method:"put",body:{name:st,id:Ge}})).status===0&&(Te.ZP.info("\u4FEE\u6539\u6210\u529F"),mt(!1),it(""),Qe())}),open:Ye},ae.createElement(ne.default,{value:st,onChange:Bt=>it(Bt.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var z=(0,Ce.connect)(({user:be})=>({user:be}))(E),ee=ge(3113),te=ge(99325);function oe({user:be,ItemData:Ge,setIssee:qe,dispatch:Ye,init:mt}){var de,Qe,st,it;return ae.createElement("div",null,ae.createElement("div",{style:{textAlign:"right"}},(0,De.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:(st=Ge==null?void 0:Ge.attachment)==null?void 0:st.title},ae.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),ae.createElement("span",{style:{color:"#000000"}},(it=Ge==null?void 0:Ge.attachment)==null?void 0:it.title))))}var re=(0,Ce.connect)(({user:be})=>({user:be}))(oe),ie=ge(54580),se=ge(64726),me=ge(20813),ke=Object.defineProperty,Ve=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ht=(be,Ge,qe)=>Ge in be?ke(be,Ge,{enumerable:!0,configurable:!0,writable:!0,value:qe}):be[Ge]=qe,kt=(be,Ge)=>{for(var qe in Ge||(Ge={}))pt.call(Ge,qe)&&Ht(be,qe,Ge[qe]);if(Ve)for(var qe of Ve(Ge))Nt.call(Ge,qe)&&Ht(be,qe,Ge[qe]);return be},Kt=(be,Ge,qe)=>new Promise((Ye,mt)=>{var de=it=>{try{st(qe.next(it))}catch(Bt){mt(Bt)}},Qe=it=>{try{st(qe.throw(it))}catch(Bt){mt(Bt)}},st=it=>it.done?Ye(it.value):Promise.resolve(it.value).then(de,Qe);st((qe=qe.apply(be,Ge)).next())});function en({user:be,ItemData:Ge,setIssee:qe,CategoryId:Ye,dispatch:mt,init:de}){let[Qe,st]=(0,ae.useState)([]);const[it,Bt]=(0,ae.useState)(Ge.content);function Oe(){var Ie;let nt=[];return(Ie=Ge==null?void 0:Ge.attachments)==null||Ie.map(ht=>{let vt={uid:ht==null?void 0:ht.id,name:ht.title,response:{id:ht.id}};nt.push(vt)}),nt}const ye={name:"file",multiple:!0,action:ue.Z.API_SERVER+"/api/attachments.json",defaultFileList:Oe(),onRemove(Ie){(0,me.y8)({id:Ie.uid})},onChange(Ie){console.log("info",Ie);const{status:nt}=Ie.file;nt==="removed"&&st(Ie.fileList),nt==="done"?(st(Ie.fileList),Te.ZP.success(`${Ie.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):nt==="error"&&Te.ZP.error(`${Ie.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Ie=>{const nt=Ie.size/1024/1024<150;return nt||Te.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),nt}};function pe(){return Kt(this,null,function*(){(yield(0,$e.ZP)(`/api/programas/${Ye}/update_content.json`,{method:"put",body:{id:Ye,content:it,attachment_id:je(Qe)}}))&&(Te.ZP.info("\u63D0\u4EA4\u6210\u529F"),qe(!0))})}function je(Ie){let nt;return Ie&&Ie.map(ht=>{nt=ht.response.id}),nt}return ae.createElement("div",null,ae.createElement(se.Z,{defaultValue:it,onChange:Ie=>Bt(Ie)}),ae.createElement(ie.default,kt({},ye),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 vn=(0,Ce.connect)(({user:be})=>({user:be}))(en),Vt=(be,Ge,qe)=>new Promise((Ye,mt)=>{var de=it=>{try{st(qe.next(it))}catch(Bt){mt(Bt)}},Qe=it=>{try{st(qe.throw(it))}catch(Bt){mt(Bt)}},st=it=>it.done?Ye(it.value):Promise.resolve(it.value).then(de,Qe);st((qe=qe.apply(be,Ge)).next())});const{SubMenu:qt}=Pe.default,{Content:sn,Sider:Fn}=Ze.default;function An({user:be,dispatch:Ge,globalSetting:qe}){var Ye;const[mt,de]=(0,ae.useState)(),[Qe,st]=(0,ae.useState)(!1),[it,Bt]=(0,ae.useState)();let[Oe,ye]=(0,ae.useState)();const[pe,je]=(0,ae.useState)(!1),[Ie,nt]=(0,ae.useState)(""),[ht,vt]=(0,ae.useState)(""),[Mt,zt]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{$t()},[]),console.log("globalSetting",qe);function $t(){return Vt(this,null,function*(){const Lt=yield(0,$e.ZP)("/api/programas.json",{method:"get"});Lt&&Bt(Lt==null?void 0:Lt.programas)})}const Ot=(Lt,Et,Se)=>Vt(this,null,function*(){switch(Lt){case 1:ye(Et==null?void 0:Et.id),st(!0);break;case 2:ye(Et==null?void 0:Et.id),je(!0),nt(Et==null?void 0:Et.name);break;case 3:(yield(0,$e.ZP)(`/api/programas/${Et==null?void 0:Et.id}/top.json`,{method:"post",body:{id:Et==null?void 0:Et.id}})).status===0&&$t();break;case 4:cn(ae.createElement("p",null,"\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u6062\u590D,",ae.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),()=>Vt(this,null,function*(){(yield(0,$e.ZP)(`/api/programas/${Et==null?void 0:Et.id}.json`,{method:"delete",body:{id:Et==null?void 0:Et.id}})).status===0&&(Te.ZP.info("\u5220\u9664\u6210\u529F"),$t())}));break}}),cn=(Lt,Et)=>{fe.default.confirm({centered:!0,title:"\u63D0\u793A",icon:ae.createElement(_e.Z,null),content:Lt,okText:"\u786E\u8BA4",onOk:()=>Et(),cancelText:"\u53D6\u6D88"})},Sn=(Lt,Et)=>ae.createElement("div",{className:He.leftMenuActions},Et===1&&ae.createElement("p",{className:"current",onClick:()=>Ot(1,Lt,Et)},"\u65B0\u5EFA"),ae.createElement("p",{className:"current",onClick:()=>Ot(2,Lt,Et)},"\u91CD\u547D\u540D"),ae.createElement("p",{className:"current",onClick:()=>Ot(3,Lt,Et)},"\u7F6E\u9876"),ae.createElement("p",{className:"current",onClick:()=>Ot(4,Lt,Et)},"\u5220\u9664"));function Pn(){return Vt(this,null,function*(){const Lt=yield(0,$e.ZP)(`/api/programas/${Oe}/content.json`,{method:"get",params:{id:Oe}});Lt&&vt(Lt)})}return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("img",{style:{width:"100%"},src:ue.Z.IMG_SERVER+`/${(Ye=qe==null?void 0:qe.setting)==null?void 0:Ye.shixun_banner_url}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement(Fn,{width:244,className:He.leftMenus,style:{background:"none",marginTop:"20px",height:"auto"}},ae.createElement(Pe.default,{mode:"inline"},it==null?void 0:it.map((Lt,Et)=>{var Se,we;return(Lt==null?void 0:Lt.children.length)>0?ae.createElement(qt,{title:ae.createElement("span",{className:"font16"},ae.createElement("span",null,Lt.name),!(0,De.Ny)()&&ae.createElement("span",null),(0,De.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Sn(Lt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",He.actions].join(" ")})))},(Se=Lt==null?void 0:Lt.children)==null?void 0:Se.map((Me,at)=>{var rt;return ae.createElement(Pe.default.Item,{className:(rt=He)==null?void 0:rt.SubMentItem,onClick:()=>{ye(Me==null?void 0:Me.id),Oe=Me==null?void 0:Me.id,Pn()}},ae.createElement("span",{style:{flex:"1"}},Me==null?void 0:Me.name),(0,De.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Sn(Me,2),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",He.actions].join(" ")})))})):ae.createElement(Pe.default.Item,{className:(we=He)==null?void 0:we.SubMentItem,onClick:()=>{ye(Lt==null?void 0:Lt.id),Oe=Lt==null?void 0:Lt.id,Pn()}},ae.createElement("span",{style:{flex:"1"}},Lt==null?void 0:Lt.name),(0,De.Ny)()&&ae.createElement(Re.Z,{placement:"right",content:()=>Sn(Lt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",He.actions].join(" ")})))}),ae.createElement(Pe.default.Item,{onClick:()=>{ye(""),Oe="",st(!0)},style:{color:"#0152d9",fontSize:"16px",height:"40px",display:"flex",alignItems:"center"},icon:ae.createElement(We.Z,{style:{color:"#0152d9",fontSize:"16px"}})},"\u65B0\u589E\u4E8C\u7EA7\u7C7B\u76EE"))),ae.createElement("div",{style:{width:"937px",marginLeft:"17px",background:"#fff",padding:"20px"}},Mt&&ae.createElement(re,{ItemData:ht,setIssee:zt}),Mt===!1&&ae.createElement(vn,{ItemData:ht,setIssee:zt,CategoryId:Oe}))),ae.createElement(x,{CategoryId:Oe,IsShow:Qe,setIsShow:st,init:$t}),ae.createElement(z,{CategoryId:Oe,name:Ie,IsShow:pe,setIsShow:je,init:$t}))}var Ee=(0,Ce.connect)(({user:be,globalSetting:Ge})=>({user:be,globalSetting:Ge}))(An)},77578:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return ae}});const ae=Pe=>Pe?typeof Pe=="function"?Pe():Pe:null},56762:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Pe}});var ae=ge(59301);function Pe(){const[,Ze]=ae.useReducer(Te=>Te+1,0);return Ze}},45818:function(xe,tt,ge){"use strict";ge.d(tt,{D:function(){return z},Z:function(){return oe}});var ae=ge(92413),Pe=ge(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Te=Ze,fe=ge(7657),Re=function(ie,se){return Pe.createElement(fe.Z,(0,ae.Z)({},ie,{ref:se,icon:Te}))},ue=Pe.forwardRef(Re),He=ue,$e=ge(33853),Ce=ge(38819),_e=ge(92310),We=ge.n(_e),De=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var se={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(se[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,me=Object.getOwnPropertySymbols(re);ke<me.length;ke++)ie.indexOf(me[ke])<0&&Object.prototype.propertyIsEnumerable.call(re,me[ke])&&(se[me[ke]]=re[me[ke]]);return se};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:se,className:me,trigger:ke,children:Ve,defaultCollapsed:pt=!1,theme:Nt="dark",style:Ht={},collapsible:kt=!1,reverseArrow:Kt=!1,width:en=200,collapsedWidth:vn=80,zeroWidthTriggerStyle:Vt,breakpoint:qt,onCollapse:sn,onBreakpoint:Fn}=re,An=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,Pe.useContext)(x.Gs),[be,Ge]=(0,Pe.useState)("collapsed"in re?re.collapsed:pt),[qe,Ye]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&Ge(re.collapsed)},[re.collapsed]);const mt=(Oe,ye)=>{"collapsed"in re||Ge(Oe),sn==null||sn(Oe,ye)},de=(0,Pe.useRef)();de.current=Oe=>{Ye(Oe.matches),Fn==null||Fn(Oe.matches),be!==Oe.matches&&mt(Oe.matches,"responsive")},(0,Pe.useEffect)(()=>{function Oe(pe){return de.current(pe)}let ye;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&qt&&qt in E){ye=pe(`(max-width: ${E[qt]})`);try{ye.addEventListener("change",Oe)}catch(je){ye.addListener(Oe)}Oe(ye)}}return()=>{try{ye==null||ye.removeEventListener("change",Oe)}catch(pe){ye==null||ye.removeListener(Oe)}}},[qt]),(0,Pe.useEffect)(()=>{const Oe=ee("ant-sider-");return Ee.addSider(Oe),()=>Ee.removeSider(Oe)},[]);const Qe=()=>{mt(!be,"clickTrigger")},{getPrefixCls:st}=(0,Pe.useContext)(y.E_),it=()=>{const Oe=st("layout-sider",se),ye=(0,De.Z)(An,["collapsed"]),pe=be?vn:en,je=a(pe)?`${pe}px`:String(pe),Ie=parseFloat(String(vn||0))===0?Pe.createElement("span",{onClick:Qe,className:We()(`${Oe}-zero-width-trigger`,`${Oe}-zero-width-trigger-${Kt?"right":"left"}`),style:Vt},ke||Pe.createElement(He,null)):null,vt={expanded:Kt?Pe.createElement(Ce.Z,null):Pe.createElement($e.Z,null),collapsed:Kt?Pe.createElement($e.Z,null):Pe.createElement(Ce.Z,null)}[be?"collapsed":"expanded"],Mt=ke!==null?Ie||Pe.createElement("div",{className:`${Oe}-trigger`,onClick:Qe,style:{width:je}},ke||vt):null,zt=Object.assign(Object.assign({},Ht),{flex:`0 0 ${je}`,maxWidth:je,minWidth:je,width:je}),$t=We()(Oe,`${Oe}-${Nt}`,{[`${Oe}-collapsed`]:!!be,[`${Oe}-has-trigger`]:kt&&ke!==null&&!Ie,[`${Oe}-below`]:!!qe,[`${Oe}-zero-width`]:parseFloat(je)===0},me);return Pe.createElement("aside",Object.assign({className:$t},ye,{style:zt,ref:ie}),Pe.createElement("div",{className:`${Oe}-children`},Ve),kt||qe&&Ie?Mt:null)},Bt=Pe.useMemo(()=>({siderCollapsed:be}),[be]);return Pe.createElement(z.Provider,{value:Bt},it())})},44e3:function(xe,tt,ge){"use strict";var ae=ge(84966),Pe=ge(45818);const Ze=ae.ZP;Ze.Header=ae.h4,Ze.Footer=ae.$_,Ze.Content=ae.VY,Ze.Sider=Pe.Z,tt.default=Ze},84966:function(xe,tt,ge){"use strict";ge.d(tt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return De},ZP:function(){return ee}});var ae=ge(26407),Pe=ge(92310),Ze=ge.n(Pe),Te=ge(2738),fe=ge(59301),Re=ge(36355),ue=ge(83116),$e=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:me}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:me,background:se},[`${oe}-sider-zero-width-trigger`]:{color:me,background:se,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:se,footerBg:me,triggerBg:ke,headerHeight:Ve,headerPadding:pt,headerColor:Nt,footerPadding:Ht,triggerHeight:kt,zeroTriggerHeight:Kt,zeroTriggerWidth:en,motionDurationMid:vn,motionDurationSlow:Vt,fontSize:qt,borderRadius:sn,bodyBg:Fn,headerBg:An,siderBg:Ee}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Fn,"&, *":{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:Ee,transition:`all ${vn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:kt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:kt,color:se,lineHeight:`${kt}px`,textAlign:"center",background:ke,cursor:"pointer",transition:`all ${vn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ve,insetInlineEnd:-en,zIndex:1,width:en,height:Kt,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:sn,borderEndEndRadius:sn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Vt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Vt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-en,borderStartStartRadius:sn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:sn}}}}},$e(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Ve,padding:pt,color:Nt,lineHeight:`${Ve}px`,background:An,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Ht,color:ie,fontSize:qt,background:me},[`${re}-content`]:{flex:"auto",minHeight:0}}};var _e=(0,ue.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:se,controlHeightSM:me,marginXXS:ke,colorTextLightSolid:Ve,colorBgContainer:pt}=te,Nt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Nt}px`,headerColor:se,footerPadding:`${me}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ke*2,triggerBg:"#002140",triggerColor:Ve,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),We=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 se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(re[ie[se]]=te[ie[se]]);return re};const De=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return se=>fe.forwardRef((ke,Ve)=>fe.createElement(se,Object.assign({ref:Ve,suffixCls:oe,tagName:re},ke)))}const a=fe.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:se,tagName:me}=te,ke=We(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ve}=fe.useContext(Re.E_),pt=Ve("layout",re),[Nt,Ht]=_e(pt),kt=ie?`${pt}-${ie}`:pt;return Nt(fe.createElement(me,Object.assign({className:Ze()(re||kt,se,Ht),ref:oe},ke)))}),y=fe.forwardRef((te,oe)=>{const{direction:re}=fe.useContext(Re.E_),[ie,se]=fe.useState([]),{prefixCls:me,className:ke,rootClassName:Ve,children:pt,hasSider:Nt,tagName:Ht,style:kt}=te,Kt=We(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),en=(0,Te.Z)(Kt,["suffixCls"]),{getPrefixCls:vn,layout:Vt}=fe.useContext(Re.E_),qt=vn("layout",me),[sn,Fn]=_e(qt),An=Ze()(qt,{[`${qt}-has-sider`]:typeof Nt=="boolean"?Nt:ie.length>0,[`${qt}-rtl`]:re==="rtl"},Vt==null?void 0:Vt.className,ke,Ve,Fn),Ee=fe.useMemo(()=>({siderHook:{addSider:be=>{se(Ge=>[].concat((0,ae.Z)(Ge),[be]))},removeSider:be=>{se(Ge=>Ge.filter(qe=>qe!==be))}}}),[]);return sn(fe.createElement(De.Provider,{value:Ee},fe.createElement(Ht,Object.assign({ref:oe,className:An,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),kt)},en),pt)))}),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(xe,tt,ge){"use strict";ge.d(tt,{J:function(){return Re}});var ae=ge(59301),Pe=ge(33234),Ze=ge(70425),Te=function(ue,He){var $e={};for(var Ce in ue)Object.prototype.hasOwnProperty.call(ue,Ce)&&He.indexOf(Ce)<0&&($e[Ce]=ue[Ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ce=Object.getOwnPropertySymbols(ue);_e<Ce.length;_e++)He.indexOf(Ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[_e])&&($e[Ce[_e]]=ue[Ce[_e]]);return $e};const fe=ae.createContext(null),Re=ae.forwardRef((ue,He)=>{const{children:$e}=ue,Ce=Te(ue,["children"]),_e=ae.useContext(fe),We=ae.useMemo(()=>Object.assign(Object.assign({},_e),Ce),[_e,Ce.prefixCls,Ce.mode,Ce.selectable]);return ae.createElement(fe.Provider,{value:We},ae.createElement(Pe.BR,null,(0,Ze.supportNodeRef)($e)?ae.cloneElement($e,{ref:He}):$e))});tt.Z=fe},20834:function(xe,tt,ge){"use strict";ge.d(tt,{default:function(){return Bt}});var ae=ge(15285),Pe=ge(59301),Ze=ge(45818),Te=ge(92310),fe=ge.n(Te),Re=ge(36355),ue=function(Oe,ye){var pe={};for(var je in Oe)Object.prototype.hasOwnProperty.call(Oe,je)&&ye.indexOf(je)<0&&(pe[je]=Oe[je]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,je=Object.getOwnPropertySymbols(Oe);Ie<je.length;Ie++)ye.indexOf(je[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Oe,je[Ie])&&(pe[je[Ie]]=Oe[je[Ie]]);return pe},$e=Oe=>{const{prefixCls:ye,className:pe,dashed:je}=Oe,Ie=ue(Oe,["prefixCls","className","dashed"]),{getPrefixCls:nt}=Pe.useContext(Re.E_),ht=nt("menu",ye),vt=fe()({[`${ht}-item-divider-dashed`]:!!je},pe);return Pe.createElement(ae.iz,Object.assign({className:vt},Ie))},Ce=ge(11592),_e=ge(2738),We=ge(6848),De=ge(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Oe=>{var ye;const{className:pe,children:je,icon:Ie,title:nt,danger:ht}=Oe,{prefixCls:vt,firstLevel:Mt,direction:zt,disableMenuItemTitleTooltip:$t,inlineCollapsed:Ot}=Pe.useContext(a),cn=we=>{const Me=Pe.createElement("span",{className:`${vt}-title-content`},je);return(!Ie||(0,De.l$)(je)&&je.type==="span")&&je&&we&&Mt&&typeof je=="string"?Pe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},je.charAt(0)):Me},{siderCollapsed:Sn}=Pe.useContext(Ze.D);let Pn=nt;typeof nt=="undefined"?Pn=Mt?je:"":nt===!1&&(Pn="");const Lt={title:Pn};!Sn&&!Ot&&(Lt.title=null,Lt.open=!1);const Et=(0,Ce.Z)(je).length;let Se=Pe.createElement(ae.ck,Object.assign({},(0,_e.Z)(Oe,["title","icon","danger"]),{className:fe()({[`${vt}-item-danger`]:ht,[`${vt}-item-only-child`]:(Ie?Et+1:Et)===1},pe),title:typeof nt=="string"?nt:void 0}),(0,De.Tm)(Ie,{className:fe()((0,De.l$)(Ie)?(ye=Ie.props)===null||ye===void 0?void 0:ye.className:"",`${vt}-item-icon`)}),cn(Ot));return $t||(Se=Pe.createElement(We.Z,Object.assign({},Lt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${vt}-inline-collapsed-tooltip`}),Se)),Se},E=Oe=>{var ye;const{popupClassName:pe,icon:je,title:Ie,theme:nt}=Oe,ht=Pe.useContext(a),{prefixCls:vt,inlineCollapsed:Mt,theme:zt}=ht,$t=(0,ae.Xl)();let Ot;if(!je)Ot=Mt&&!$t.length&&Ie&&typeof Ie=="string"?Pe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Ie.charAt(0)):Pe.createElement("span",{className:`${vt}-title-content`},Ie);else{const Sn=(0,De.l$)(Ie)&&Ie.type==="span";Ot=Pe.createElement(Pe.Fragment,null,(0,De.Tm)(je,{className:fe()((0,De.l$)(je)?(ye=je.props)===null||ye===void 0?void 0:ye.className:"",`${vt}-item-icon`)}),Sn?Ie:Pe.createElement("span",{className:`${vt}-title-content`},Ie))}const cn=Pe.useMemo(()=>Object.assign(Object.assign({},ht),{firstLevel:!1}),[ht]);return Pe.createElement(a.Provider,{value:cn},Pe.createElement(ae.Wd,Object.assign({},(0,_e.Z)(Oe,["icon"]),{title:Ot,popupClassName:fe()(vt,pe,`${vt}-${nt||zt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(Oe,ye){var pe={};for(var je in Oe)Object.prototype.hasOwnProperty.call(Oe,je)&&ye.indexOf(je)<0&&(pe[je]=Oe[je]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,je=Object.getOwnPropertySymbols(Oe);Ie<je.length;Ie++)ye.indexOf(je[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Oe,je[Ie])&&(pe[je[Ie]]=Oe[je[Ie]]);return pe};function ie(Oe){return(Oe||[]).map((ye,pe)=>{if(ye&&typeof ye=="object"){const je=ye,{label:Ie,children:nt,key:ht,type:vt}=je,Mt=re(je,["label","children","key","type"]),zt=ht!=null?ht:`tmp-${pe}`;return nt||vt==="group"?vt==="group"?Pe.createElement(ae.BW,Object.assign({key:zt},Mt,{title:Ie}),ie(nt)):Pe.createElement(E,Object.assign({key:zt},Mt,{title:Ie}),ie(nt)):vt==="divider"?Pe.createElement($e,Object.assign({key:zt},Mt)):Pe.createElement(x,Object.assign({key:zt},Mt),Ie)}return null}).filter(ye=>ye)}function se(Oe){return Pe.useMemo(()=>Oe&&ie(Oe),[Oe])}var me=ge(64993),ke=ge(17313),Ve=ge(8378),pt=ge(13826),Nt=ge(29878),Ht=ge(83116),kt=ge(37613),en=Oe=>{const{componentCls:ye,motionDurationSlow:pe,horizontalLineHeight:je,colorSplit:Ie,lineWidth:nt,lineType:ht,itemPaddingInline:vt}=Oe;return{[`${ye}-horizontal`]:{lineHeight:je,border:0,borderBottom:`${nt}px ${ht} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:vt},[`> ${ye}-item:hover,
|
|
> ${ye}-item-active,
|
|
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},Vt=Oe=>{let{componentCls:ye,menuArrowOffset:pe}=Oe;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
|
|
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const qt=Oe=>Object.assign({},(0,ke.oN)(Oe));var Fn=(Oe,ye)=>{const{componentCls:pe,itemColor:je,itemSelectedColor:Ie,groupTitleColor:nt,itemBg:ht,subMenuItemBg:vt,itemSelectedBg:Mt,activeBarHeight:zt,activeBarWidth:$t,activeBarBorderWidth:Ot,motionDurationSlow:cn,motionEaseInOut:Sn,motionEaseOut:Pn,itemPaddingInline:Lt,motionDurationMid:Et,itemHoverColor:Se,lineType:we,colorSplit:Me,itemDisabledColor:at,dangerItemColor:rt,dangerItemHoverColor:Ft,dangerItemSelectedColor:Ct,dangerItemActiveBg:St,dangerItemSelectedBg:xt,itemHoverBg:_t,itemActiveBg:At,menuSubMenuBg:Ut,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:yn,horizontalItemHoverBg:tn,popupBg:Yt}=Oe;return{[`${pe}-${ye}, ${pe}-${ye} > ${pe}`]:{color:je,background:ht,[`&${pe}-root:focus-visible`]:Object.assign({},qt(Oe)),[`${pe}-item-group-title`]:{color:nt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Ie}},[`${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:_t},"&:active":{backgroundColor:At}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:At}}},[`${pe}-item-danger`]:{color:rt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Ft}},[`&${pe}-item:active`]:{background:St}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Ie,[`&${pe}-item-danger`]:{color:Ct},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Mt,[`&${pe}-item-danger`]:{backgroundColor:xt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},qt(Oe))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Ut},[`&${pe}-popup > ${pe}`]:{backgroundColor:Yt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Ot,marginTop:-Ot,marginBottom:0,borderRadius:yn,"&::after":{position:"absolute",insetInline:Lt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${cn} ${Sn}`,content:'""'},"&:hover, &-active, &-open":{background:tn,"&::after":{borderBottomWidth:zt,borderBottomColor:mn}},"&-selected":{color:mn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:zt,borderBottomColor:mn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Ot}px ${we} ${Me}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:vt},[`${pe}-item, ${pe}-submenu-title`]:Ot&&$t?{width:`calc(100% + ${Ot}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$t}px solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Et} ${Pn}`,`opacity ${Et} ${Pn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Ct}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Et} ${Sn}`,`opacity ${Et} ${Sn}`].join(",")}}}}}};const An=Oe=>{const{componentCls:ye,itemHeight:pe,itemMarginInline:je,padding:Ie,menuArrowSize:nt,marginXS:ht,itemMarginBlock:vt}=Oe,Mt=Ie+nt+ht;return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Ie,overflow:"hidden",textOverflow:"ellipsis",marginInline:je,marginBlock:vt,width:`calc(100% - ${je*2}px)`},[`> ${ye}-item,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${ye}-item-group-list ${ye}-submenu-title,
|
|
${ye}-submenu-title`]:{paddingInlineEnd:Mt}}};var be=Oe=>{const{componentCls:ye,iconCls:pe,itemHeight:je,colorTextLightSolid:Ie,dropdownWidth:nt,controlHeightLG:ht,motionDurationMid:vt,motionEaseOut:Mt,paddingXL:zt,itemMarginInline:$t,fontSizeLG:Ot,motionDurationSlow:cn,paddingXS:Sn,boxShadowSecondary:Pn,collapsedWidth:Lt,collapsedIconSize:Et}=Oe,Se={height:je,lineHeight:`${je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},An(Oe))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},An(Oe)),{boxShadow:Pn})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:nt,maxHeight:`calc(100vh - ${ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${cn}`,`background ${cn}`,`padding ${vt} ${Mt}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:Se,[`& ${ye}-item-group-title`]:{paddingInlineStart:zt}},[`${ye}-item`]:Se}},{[`${ye}-inline-collapsed`]:{width:Lt,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:Ot,textAlign:"center"}}},[`> ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ot/2}px - ${$t}px)`,textOverflow:"clip",[`
|
|
${ye}-submenu-arrow,
|
|
${ye}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ye}-item-icon, ${pe}`]:{margin:0,fontSize:Et,lineHeight:`${je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},ke.vS),{paddingInline:Sn})}}]};const Ge=Oe=>{const{componentCls:ye,motionDurationSlow:pe,motionDurationMid:je,motionEaseInOut:Ie,motionEaseOut:nt,iconCls:ht,iconSize:vt,iconMarginInlineEnd:Mt}=Oe;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Ie}`].join(","),[`${ye}-item-icon, ${ht}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${je} ${nt}`,`margin ${pe} ${Ie}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${pe} ${Ie}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,ke.Ro)()),[`&${ye}-item-only-child`]:{[`> ${ht}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qe=Oe=>{const{componentCls:ye,motionDurationSlow:pe,motionEaseInOut:je,borderRadius:Ie,menuArrowSize:nt,menuArrowOffset:ht}=Oe;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Oe.margin,width:nt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${je}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:nt*.6,height:nt*.15,backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${pe} ${je}`,`transform ${pe} ${je}`,`top ${pe} ${je}`,`color ${pe} ${je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ht})`},"&::after":{transform:`rotate(-45deg) translateY(${ht})`}}}}},Ye=Oe=>{const{antCls:ye,componentCls:pe,fontSize:je,motionDurationSlow:Ie,motionDurationMid:nt,motionEaseInOut:ht,paddingXS:vt,padding:Mt,colorSplit:zt,lineWidth:$t,zIndexPopup:Ot,borderRadiusLG:cn,subMenuItemBorderRadius:Sn,menuArrowSize:Pn,menuArrowOffset:Lt,lineType:Et,menuPanelMaskInset:Se,groupTitleLineHeight:we,groupTitleFontSize:Me}=Oe;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,ke.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,ke.Wf)(Oe)),(0,ke.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} 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:Oe.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${vt}px ${Mt}px`,fontSize:Me,lineHeight:we,transition:`all ${Ie}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Ie} ${ht}`,`background ${Ie} ${ht}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Ie} ${ht}`,`background ${Ie} ${ht}`,`padding ${nt} ${ht}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${ht}`,`padding ${Ie} ${ht}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Ie}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:Et,borderWidth:0,borderTopWidth:$t,marginBlock:$t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ge(Oe)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${je*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:cn,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:Oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Oe.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:cn},Ge(Oe)),qe(Oe)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:Sn},[`${pe}-submenu-title::after`]:{transition:`transform ${Ie} ${ht}`}})}}),qe(Oe)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Lt})`},"&::after":{transform:`rotate(45deg) translateX(-${Lt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Pn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Lt})`},"&::before":{transform:`rotate(45deg) translateX(${Lt})`}}})},{[`${ye}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var mt=(Oe,ye)=>(0,Ht.Z)("Menu",je=>{if(ye===!1)return[];const{colorBgElevated:Ie,colorPrimary:nt,colorTextLightSolid:ht,controlHeightLG:vt,fontSize:Mt,darkItemColor:zt,darkDangerItemColor:$t,darkItemBg:Ot,darkSubMenuItemBg:cn,darkItemSelectedColor:Sn,darkItemSelectedBg:Pn,darkDangerItemSelectedBg:Lt,darkItemHoverBg:Et,darkGroupTitleColor:Se,darkItemHoverColor:we,darkItemDisabledColor:Me,darkDangerItemHoverColor:at,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:Ft}=je,Ct=Mt/7*5,St=(0,kt.TS)(je,{menuArrowSize:Ct,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${Ct*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ie}),xt=(0,kt.TS)(St,{itemColor:zt,itemHoverColor:we,groupTitleColor:Se,itemSelectedColor:Sn,itemBg:Ot,popupBg:Ot,subMenuItemBg:cn,itemActiveBg:"transparent",itemSelectedBg:Pn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Et,itemDisabledColor:Me,dangerItemColor:$t,dangerItemHoverColor:at,dangerItemSelectedColor:rt,dangerItemActiveBg:Ft,dangerItemSelectedBg:Lt,menuSubMenuBg:cn,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:nt});return[Ye(St),en(St),be(St),Fn(St,"light"),Fn(xt,"dark"),Vt(St),(0,Ve.Z)(St),(0,pt.oN)(St,"slide-up"),(0,pt.oN)(St,"slide-down"),(0,Nt._y)(St,"zoom-big")]},je=>{const{colorPrimary:Ie,colorError:nt,colorTextDisabled:ht,colorErrorBg:vt,colorText:Mt,colorTextDescription:zt,colorBgContainer:$t,colorFillAlter:Ot,colorFillContent:cn,lineWidth:Sn,lineWidthBold:Pn,controlItemBgActive:Lt,colorBgTextHover:Et,controlHeightLG:Se,lineHeight:we,colorBgElevated:Me,marginXXS:at,padding:rt,fontSize:Ft,controlHeightSM:Ct,fontSizeLG:St,colorTextLightSolid:xt,colorErrorHover:_t}=je,At=new me.C(xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:je.zIndexPopupBase+50,radiusItem:je.borderRadiusLG,itemBorderRadius:je.borderRadiusLG,radiusSubMenuItem:je.borderRadiusSM,subMenuItemBorderRadius:je.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Ie,itemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:$t,itemBg:$t,colorItemBgHover:Et,itemHoverBg:Et,colorItemBgActive:cn,itemActiveBg:Lt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pn,activeBarHeight:Pn,colorActiveBarBorderSize:Sn,activeBarBorderWidth:Sn,colorItemTextDisabled:ht,itemDisabledColor:ht,colorDangerItemText:nt,dangerItemColor:nt,colorDangerItemTextHover:nt,dangerItemHoverColor:nt,colorDangerItemTextSelected:nt,dangerItemSelectedColor:nt,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Se,groupTitleLineHeight:we,collapsedWidth:Se*2,popupBg:Me,itemMarginBlock:at,itemPaddingInline:rt,horizontalLineHeight:`${Se*1.15}px`,iconSize:Ft,iconMarginInlineEnd:Ct-Ft,collapsedIconSize:St,groupTitleFontSize:Ft,darkItemDisabledColor:new me.C(xt).setAlpha(.25).toRgbString(),darkItemColor:At,darkDangerItemColor:nt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xt,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:nt,darkItemHoverBg:"transparent",darkGroupTitleColor:At,darkItemHoverColor:xt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:xt,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"]]})(Oe),de=function(Oe,ye){var pe={};for(var je in Oe)Object.prototype.hasOwnProperty.call(Oe,je)&&ye.indexOf(je)<0&&(pe[je]=Oe[je]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,je=Object.getOwnPropertySymbols(Oe);Ie<je.length;Ie++)ye.indexOf(je[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Oe,je[Ie])&&(pe[je[Ie]]=Oe[je[Ie]]);return pe},st=(0,Pe.forwardRef)((Oe,ye)=>{var pe,je;const Ie=Pe.useContext(oe.Z),nt=Ie||{},{getPrefixCls:ht,getPopupContainer:vt,direction:Mt,menu:zt}=Pe.useContext(Re.E_),$t=ht(),{prefixCls:Ot,className:cn,style:Sn,theme:Pn="light",expandIcon:Lt,_internalDisableMenuItemTitleTooltip:Et,inlineCollapsed:Se,siderCollapsed:we,items:Me,children:at,rootClassName:rt,mode:Ft,selectable:Ct,onClick:St,overflowedIndicatorPopupClassName:xt}=Oe,_t=de(Oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),At=(0,_e.Z)(_t,["collapsedWidth"]),Ut=se(Me)||at;(pe=nt.validator)===null||pe===void 0||pe.call(nt,{mode:Ft});const mn=(0,ee.useEvent)(function(){var zn;St==null||St.apply(void 0,arguments),(zn=nt.onClick)===null||zn===void 0||zn.call(nt)}),hn=nt.mode||Ft,yn=Ct!=null?Ct:nt.selectable,tn=Pe.useMemo(()=>we!==void 0?we:Se,[Se,we]),Yt={horizontal:{motionName:`${$t}-slide-up`},inline:(0,te.Z)($t),other:{motionName:`${$t}-zoom-big`}},fn=ht("menu",Ot||nt.prefixCls),[Bn,xn]=mt(fn,!Ie),rn=fe()(`${fn}-${Pn}`,zt==null?void 0:zt.className,cn);let On;if(typeof Lt=="function")On=Lt;else if(Lt===null||Lt===!1)On=null;else if(nt.expandIcon===null||nt.expandIcon===!1)On=null;else{const zn=Lt!=null?Lt:nt.expandIcon;On=(0,De.Tm)(zn,{className:fe()(`${fn}-submenu-expand-icon`,(0,De.l$)(zn)?(je=zn.props)===null||je===void 0?void 0:je.className:"")})}const Yn=Pe.useMemo(()=>({prefixCls:fn,inlineCollapsed:tn||!1,direction:Mt,firstLevel:!0,theme:Pn,mode:hn,disableMenuItemTitleTooltip:Et}),[fn,tn,Mt,Et,Pn]);return Bn(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Yn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(fn,`${fn}-${Pn}`,xt),mode:hn,selectable:yn,onClick:mn},At,{inlineCollapsed:tn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Sn),className:rn,prefixCls:fn,direction:Mt,defaultMotions:Yt,expandIcon:On,ref:ye,rootClassName:fe()(rt,xn)}),Ut))))});const it=(0,Pe.forwardRef)((Oe,ye)=>{const pe=(0,Pe.useRef)(null),je=Pe.useContext(Ze.D);return(0,Pe.useImperativeHandle)(ye,()=>({menu:pe.current,focus:Ie=>{var nt;(nt=pe.current)===null||nt===void 0||nt.focus(Ie)}})),Pe.createElement(st,Object.assign({ref:pe},Oe,je))});it.Item=x,it.SubMenu=E,it.Divider=$e,it.ItemGroup=ae.BW;var Bt=it},39722:function(xe,tt,ge){"use strict";ge.d(tt,{t5:function(){return Ce}});var ae=ge(92310),Pe=ge.n(ae),Ze=ge(55477),Te=ge(59301),fe=ge(36355),Re=ge(77578),ue=ge(17356),He=function(We,De){var ne={};for(var a in We)Object.prototype.hasOwnProperty.call(We,a)&&De.indexOf(a)<0&&(ne[a]=We[a]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(We);y<a.length;y++)De.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(We,a[y])&&(ne[a[y]]=We[a[y]]);return ne};const $e=(We,De,ne)=>{if(!(!De&&!ne))return Te.createElement(Te.Fragment,null,De&&Te.createElement("div",{className:`${We}-title`},(0,Re.Z)(De)),Te.createElement("div",{className:`${We}-inner-content`},(0,Re.Z)(ne)))},Ce=We=>{const{hashId:De,prefixCls:ne,className:a,style:y,placement:x="top",title:b,content:E,children:z}=We;return Te.createElement("div",{className:Pe()(De,ne,`${ne}-pure`,`${ne}-placement-${x}`,a),style:y},Te.createElement("div",{className:`${ne}-arrow`}),Te.createElement(Ze.G,Object.assign({},We,{className:De,prefixCls:ne}),z||$e(ne,b,E)))},_e=We=>{const{prefixCls:De}=We,ne=He(We,["prefixCls"]),{getPrefixCls:a}=Te.useContext(fe.E_),y=a("popover",De),[x,b]=(0,ue.Z)(y);return x(Te.createElement(Ce,Object.assign({},ne,{prefixCls:y,hashId:b})))};tt.ZP=_e},60324:function(xe,tt,ge){"use strict";var ae=ge(92310),Pe=ge.n(ae),Ze=ge(59301),Te=ge(77578),fe=ge(62892),Re=ge(36355),ue=ge(6848),He=ge(39722),$e=ge(17356),Ce=function(De,ne){var a={};for(var y in De)Object.prototype.hasOwnProperty.call(De,y)&&ne.indexOf(y)<0&&(a[y]=De[y]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(De);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(De,y[x])&&(a[y[x]]=De[y[x]]);return a};const _e=De=>{let{title:ne,content:a,prefixCls:y}=De;return Ze.createElement(Ze.Fragment,null,ne&&Ze.createElement("div",{className:`${y}-title`},(0,Te.Z)(ne)),Ze.createElement("div",{className:`${y}-inner-content`},(0,Te.Z)(a)))},We=Ze.forwardRef((De,ne)=>{const{prefixCls:a,title:y,content:x,overlayClassName:b,placement:E="top",trigger:z="hover",mouseEnterDelay:ee=.1,mouseLeaveDelay:te=.1,overlayStyle:oe={}}=De,re=Ce(De,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ie}=Ze.useContext(Re.E_),se=ie("popover",a),[me,ke]=(0,$e.Z)(se),Ve=ie(),pt=Pe()(b,ke);return me(Ze.createElement(ue.Z,Object.assign({placement:E,trigger:z,mouseEnterDelay:ee,mouseLeaveDelay:te,overlayStyle:oe},re,{prefixCls:se,overlayClassName:pt,ref:ne,overlay:y||x?Ze.createElement(_e,{prefixCls:se,title:y,content:x}):null,transitionName:(0,fe.m)(Ve,"zoom-big",re.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=He.ZP,tt.Z=We},17356:function(xe,tt,ge){"use strict";var ae=ge(17313),Pe=ge(29878),Ze=ge(19447),Te=ge(33166),fe=ge(83116),Re=ge(37613);const ue=Ce=>{const{componentCls:_e,popoverColor:We,minWidth:De,fontWeightStrong:ne,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:x,borderRadiusLG:b,zIndexPopup:E,marginXS:z,colorBgElevated:ee,popoverBg:te}=Ce;return[{[_e]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{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"},[`${_e}-content`]:{position:"relative"},[`${_e}-inner`]:{backgroundColor:te,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${_e}-title`]:{minWidth:De,marginBottom:z,color:x,fontWeight:ne},[`${_e}-inner-content`]:{color:We}})},(0,Ze.ZP)(Ce,{colorBg:"var(--antd-arrow-background-color)"}),{[`${_e}-pure`]:{position:"relative",maxWidth:"none",margin:Ce.sizePopupArrow,display:"inline-block",[`${_e}-content`]:{display:"inline-block"}}}]},He=Ce=>{const{componentCls:_e}=Ce;return{[_e]:Te.i.map(We=>{const De=Ce[`${We}6`];return{[`&${_e}-${We}`]:{"--antd-arrow-background-color":De,[`${_e}-inner`]:{backgroundColor:De},[`${_e}-arrow`]:{background:"transparent"}}}})}},$e=Ce=>{const{componentCls:_e,lineWidth:We,lineType:De,colorSplit:ne,paddingSM:a,controlHeight:y,fontSize:x,lineHeight:b,padding:E}=Ce,z=y-Math.round(x*b),ee=z/2,te=z/2-We,oe=E;return{[_e]:{[`${_e}-inner`]:{padding:0},[`${_e}-title`]:{margin:0,padding:`${ee}px ${oe}px ${te}px`,borderBottom:`${We}px ${De} ${ne}`},[`${_e}-inner-content`]:{padding:`${a}px ${oe}px`}}}};tt.Z=(0,fe.Z)("Popover",Ce=>{const{colorBgElevated:_e,colorText:We,wireframe:De}=Ce,ne=(0,Re.TS)(Ce,{popoverPadding:12,popoverBg:_e,popoverColor:We});return[ue(ne),He(ne),De&&$e(ne),(0,Pe._y)(ne,"zoom-big")]},Ce=>({width:177,minWidth:177,zIndexPopup:Ce.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Et}});var ae=ge(59301),Pe=ge(29679),Ze=ge(40001),Te=ge(19248),fe=ge(99267),Re=ge(92310),ue=ge.n(Re),He=ge(2738),$e=ge(36355),Ce=ge(92413),_e=ge(33708),We=ge(37061),De={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var we=(0,ae.useRef)([]),Me=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var at=Date.now(),rt=!1;we.current.forEach(function(Ft){if(Ft){rt=!0;var Ct=Ft.style;Ct.transitionDuration=".3s, .3s, .3s, .06s",Me.current&&at-Me.current<100&&(Ct.transitionDuration="0s, 0s")}}),rt&&(Me.current=Date.now())}),we.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(we){var Me=(0,_e.Z)((0,_e.Z)({},De),we),at=Me.className,rt=Me.percent,Ft=Me.prefixCls,Ct=Me.strokeColor,St=Me.strokeLinecap,xt=Me.strokeWidth,_t=Me.style,At=Me.trailColor,Ut=Me.trailWidth,mn=Me.transition,hn=(0,We.Z)(Me,a);delete hn.gapPosition;var yn=Array.isArray(rt)?rt:[rt],tn=Array.isArray(Ct)?Ct:[Ct],Yt=ne(),fn=xt/2,Bn=100-xt/2,xn="M ".concat(St==="round"?fn:0,",").concat(fn,`
|
|
L `).concat(St==="round"?Bn:100,",").concat(fn),rn="0 0 100 ".concat(xt),On=0;return ae.createElement("svg",(0,Ce.Z)({className:ue()("".concat(Ft,"-line"),at),viewBox:rn,preserveAspectRatio:"none",style:_t},hn),ae.createElement("path",{className:"".concat(Ft,"-line-trail"),d:xn,strokeLinecap:St,stroke:At,strokeWidth:Ut||xt,fillOpacity:"0"}),yn.map(function(Yn,zn){var Wn=1;switch(St){case"round":Wn=1-xt/100;break;case"square":Wn=1-xt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(On,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=tn[zn]||tn[tn.length-1];return On+=Yn,ae.createElement("path",{key:zn,className:"".concat(Ft,"-line-path"),d:xn,strokeLinecap:St,stroke:Jn,strokeWidth:xt,fillOpacity:"0",ref:function(ve){Yt[zn]=ve},style:na})}))},x=y,b=ge(39559),E=ge(33606),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 we=ae.useState(),Me=(0,E.Z)(we,2),at=Me[0],rt=Me[1];return ae.useEffect(function(){rt("rc_progress_".concat(oe()))},[]),Se||at},ie=function(we){var Me=we.bg,at=we.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Me}},at)};function se(Se,we){return Object.keys(Se).map(function(Me){var at=parseFloat(Me),rt="".concat(Math.floor(at*we),"%");return"".concat(Se[Me]," ").concat(rt)})}var me=ae.forwardRef(function(Se,we){var Me=Se.prefixCls,at=Se.color,rt=Se.gradientId,Ft=Se.radius,Ct=Se.style,St=Se.ptg,xt=Se.strokeLinecap,_t=Se.strokeWidth,At=Se.size,Ut=Se.gapDegree,mn=at&&(0,b.Z)(at)==="object",hn=mn?"#FFF":void 0,yn=At/2,tn=ae.createElement("circle",{className:"".concat(Me,"-circle-path"),r:Ft,cx:yn,cy:yn,stroke:hn,strokeLinecap:xt,strokeWidth:_t,opacity:St===0?0:1,style:Ct,ref:we});if(!mn)return tn;var Yt="".concat(rt,"-conic"),fn=Ut?"".concat(180+Ut/2,"deg"):"0deg",Bn=se(at,(360-Ut)/360),xn=se(at,1),rn="conic-gradient(from ".concat(fn,", ").concat(Bn.join(", "),")"),On="linear-gradient(to ".concat(Ut?"bottom":"top",", ").concat(xn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Yt},tn),ae.createElement("foreignObject",{x:0,y:0,width:At,height:At,mask:"url(#".concat(Yt,")")},ae.createElement(ie,{bg:On},ae.createElement(ie,{bg:rn}))))}),ke=me,Ve=100,pt=function(we,Me,at,rt,Ft,Ct,St,xt,_t,At){var Ut=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mn=at/100*360*((360-Ct)/360),hn=Ct===0?0:{bottom:0,top:180,left:90,right:-90}[St],yn=(100-rt)/100*Me;_t==="round"&&rt!==100&&(yn+=At/2,yn>=Me&&(yn=Me-.01));var tn=Ve/2;return{stroke:typeof xt=="string"?xt:void 0,strokeDasharray:"".concat(Me,"px ").concat(we),strokeDashoffset:yn+Ut,transform:"rotate(".concat(Ft+mn+hn,"deg)"),transformOrigin:"".concat(tn,"px ").concat(tn,"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}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ht(Se){var we=Se!=null?Se:[];return Array.isArray(we)?we:[we]}var kt=function(we){var Me=(0,_e.Z)((0,_e.Z)({},De),we),at=Me.id,rt=Me.prefixCls,Ft=Me.steps,Ct=Me.strokeWidth,St=Me.trailWidth,xt=Me.gapDegree,_t=xt===void 0?0:xt,At=Me.gapPosition,Ut=Me.trailColor,mn=Me.strokeLinecap,hn=Me.style,yn=Me.className,tn=Me.strokeColor,Yt=Me.percent,fn=(0,We.Z)(Me,Nt),Bn=Ve/2,xn=re(at),rn="".concat(xn,"-gradient"),On=Bn-Ct/2,Yn=Math.PI*2*On,zn=_t>0?90+_t/2:-90,Wn=Yn*((360-_t)/360),na=(0,b.Z)(Ft)==="object"?Ft:{count:Ft,space:2},Jn=na.count,he=na.space,ve=Ht(Yt),ce=Ht(tn),et=ce.find(function(Rn){return Rn&&(0,b.Z)(Rn)==="object"}),ft=et&&(0,b.Z)(et)==="object",ut=ft?"butt":mn,nn=pt(Yn,Wn,0,100,zn,_t,At,Ut,ut,Ct),Dt=ne(),Wt=function(){var Je=0;return ve.map(function(Zt,Tn){var Zn=ce[Tn]||ce[ce.length-1],bn=pt(Yn,Wn,Je,Zt,zn,_t,At,Zn,ut,Ct);return Je+=Zt,ae.createElement(ke,{key:Tn,color:Zn,ptg:Zt,radius:On,prefixCls:rt,gradientId:rn,style:bn,strokeLinecap:ut,strokeWidth:Ct,gapDegree:_t,ref:function(Be){Dt[Tn]=Be},size:Ve})}).reverse()},pn=function(){var Je=Math.round(Jn*(ve[0]/100)),Zt=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,bn){var le=bn<=Je-1?ce[0]:Ut,Be=le&&(0,b.Z)(le)==="object"?"url(#".concat(rn,")"):void 0,Fe=pt(Yn,Wn,Tn,Zt,zn,_t,At,le,"butt",Ct,he);return Tn+=(Wn-Fe.strokeDashoffset+he)*100/Wn,ae.createElement("circle",{key:bn,className:"".concat(rt,"-circle-path"),r:On,cx:Bn,cy:Bn,stroke:Be,strokeWidth:Ct,opacity:1,style:Fe,ref:function(Ue){Dt[bn]=Ue}})})};return ae.createElement("svg",(0,Ce.Z)({className:ue()("".concat(rt,"-circle"),yn),viewBox:"0 0 ".concat(Ve," ").concat(Ve),style:hn,id:at,role:"presentation"},fn),!Jn&&ae.createElement("circle",{className:"".concat(rt,"-circle-trail"),r:On,cx:Bn,cy:Bn,stroke:Ut,strokeLinecap:ut,strokeWidth:St||Ct,style:nn}),Jn?pn():Wt())},Kt=kt,en={Line:x,Circle:Kt},vn=ge(6848),Vt=ge(93398);function qt(Se){return!Se||Se<0?0:Se>100?100:Se}function sn(Se){let{success:we,successPercent:Me}=Se,at=Me;return we&&"progress"in we&&(at=we.progress),we&&"percent"in we&&(at=we.percent),at}const Fn=Se=>{let{percent:we,success:Me,successPercent:at}=Se;const rt=qt(sn({success:Me,successPercent:at}));return[rt,qt(qt(we)-rt)]},An=Se=>{let{success:we={},strokeColor:Me}=Se;const{strokeColor:at}=we;return[at||Vt.presetPrimaryColors.green,Me||null]},Ee=(Se,we,Me)=>{var at,rt,Ft,Ct;let St=-1,xt=-1;if(we==="step"){const _t=Me.steps,At=Me.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?(St=Se==="small"?2:14,xt=At!=null?At:8):typeof Se=="number"?[St,xt]=[Se,Se]:[St=14,xt=8]=Se,St*=_t}else if(we==="line"){const _t=Me==null?void 0:Me.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?xt=_t||(Se==="small"?6:8):typeof Se=="number"?[St,xt]=[Se,Se]:[St=-1,xt=8]=Se}else(we==="circle"||we==="dashboard")&&(typeof Se=="string"||typeof Se=="undefined"?[St,xt]=Se==="small"?[60,60]:[120,120]:typeof Se=="number"?[St,xt]=[Se,Se]:(St=(rt=(at=Se[0])!==null&&at!==void 0?at:Se[1])!==null&&rt!==void 0?rt:120,xt=(Ct=(Ft=Se[0])!==null&&Ft!==void 0?Ft:Se[1])!==null&&Ct!==void 0?Ct:120));return[St,xt]},be=3,Ge=Se=>be/Se*100;var Ye=Se=>{const{prefixCls:we,trailColor:Me=null,strokeLinecap:at="round",gapPosition:rt,gapDegree:Ft,width:Ct=120,type:St,children:xt,success:_t,size:At=Ct}=Se,[Ut,mn]=Ee(At,"circle");let{strokeWidth:hn}=Se;hn===void 0&&(hn=Math.max(Ge(Ut),6));const yn={width:Ut,height:mn,fontSize:Ut*.15+6},tn=ae.useMemo(()=>{if(Ft||Ft===0)return Ft;if(St==="dashboard")return 75},[Ft,St]),Yt=rt||St==="dashboard"&&"bottom"||void 0,fn=Object.prototype.toString.call(Se.strokeColor)==="[object Object]",Bn=An({success:_t,strokeColor:Se.strokeColor}),xn=ue()(`${we}-inner`,{[`${we}-circle-gradient`]:fn}),rn=ae.createElement(Kt,{percent:Fn(Se),strokeWidth:hn,trailWidth:hn,strokeColor:Bn,strokeLinecap:at,trailColor:Me,prefixCls:we,gapDegree:tn,gapPosition:Yt});return ae.createElement("div",{className:xn,style:yn},Ut<=20?ae.createElement(vn.Z,{title:xt},ae.createElement("span",null,rn)):ae.createElement(ae.Fragment,null,rn,xt))},mt=function(Se,we){var Me={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&we.indexOf(at)<0&&(Me[at]=Se[at]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(Se);rt<at.length;rt++)we.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(Se,at[rt])&&(Me[at[rt]]=Se[at[rt]]);return Me};const de=Se=>{let we=[];return Object.keys(Se).forEach(Me=>{const at=parseFloat(Me.replace(/%/g,""));isNaN(at)||we.push({key:at,value:Se[Me]})}),we=we.sort((Me,at)=>Me.key-at.key),we.map(Me=>{let{key:at,value:rt}=Me;return`${rt} ${at}%`}).join(", ")},Qe=(Se,we)=>{const{from:Me=Vt.presetPrimaryColors.blue,to:at=Vt.presetPrimaryColors.blue,direction:rt=we==="rtl"?"to left":"to right"}=Se,Ft=mt(Se,["from","to","direction"]);if(Object.keys(Ft).length!==0){const Ct=de(Ft);return{backgroundImage:`linear-gradient(${rt}, ${Ct})`}}return{backgroundImage:`linear-gradient(${rt}, ${Me}, ${at})`}};var it=Se=>{const{prefixCls:we,direction:Me,percent:at,size:rt,strokeWidth:Ft,strokeColor:Ct,strokeLinecap:St="round",children:xt,trailColor:_t=null,success:At}=Se,Ut=Ct&&typeof Ct!="string"?Qe(Ct,Me):{backgroundColor:Ct},mn=St==="square"||St==="butt"?0:void 0,hn={backgroundColor:_t||void 0,borderRadius:mn},yn=rt!=null?rt:[-1,Ft||(rt==="small"?6:8)],[tn,Yt]=Ee(yn,"line",{strokeWidth:Ft}),fn=Object.assign({width:`${qt(at)}%`,height:Yt,borderRadius:mn},Ut),Bn=sn(Se),xn={width:`${qt(Bn)}%`,height:Yt,borderRadius:mn,backgroundColor:At==null?void 0:At.strokeColor},rn={width:tn<0?"100%":tn,height:Yt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${we}-outer`,style:rn},ae.createElement("div",{className:`${we}-inner`,style:hn},ae.createElement("div",{className:`${we}-bg`,style:fn}),Bn!==void 0?ae.createElement("div",{className:`${we}-success-bg`,style:xn}):null)),xt)},Oe=Se=>{const{size:we,steps:Me,percent:at=0,strokeWidth:rt=8,strokeColor:Ft,trailColor:Ct=null,prefixCls:St,children:xt}=Se,_t=Math.round(Me*(at/100)),At=we==="small"?2:14,Ut=we!=null?we:[At,rt],[mn,hn]=Ee(Ut,"step",{steps:Me,strokeWidth:rt}),yn=mn/Me,tn=new Array(Me);for(let Yt=0;Yt<Me;Yt++){const fn=Array.isArray(Ft)?Ft[Yt]:Ft;tn[Yt]=ae.createElement("div",{key:Yt,className:ue()(`${St}-steps-item`,{[`${St}-steps-item-active`]:Yt<=_t-1}),style:{backgroundColor:Yt<=_t-1?fn:Ct,width:yn,height:hn}})}return ae.createElement("div",{className:`${St}-steps-outer`},tn,xt)},ye=ge(93083),pe=ge(17313),je=ge(83116),Ie=ge(37613);const nt=Se=>{const we=Se?"100%":"-100%";return new ye.Keyframes(`antProgress${Se?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${we}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${we}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ht=Se=>{const{componentCls:we,iconCls:Me}=Se;return{[we]: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},[`${we}-outer`]:{display:"inline-block",width:"100%"},[`&${we}-show-info`]:{[`${we}-outer`]:{marginInlineEnd:`calc(-2em - ${Se.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Se.paddingXS}px)`}},[`${we}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Se.remainingColor,borderRadius:Se.lineBorderRadius},[`${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Se.defaultColor}},[`${we}-success-bg, ${we}-bg`]:{position:"relative",backgroundColor:Se.defaultColor,borderRadius:Se.lineBorderRadius,transition:`all ${Se.motionDurationSlow} ${Se.motionEaseInOutCirc}`},[`${we}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Se.colorSuccess},[`${we}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Se.marginXS,color:Se.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Me]:{fontSize:Se.fontSize}},[`&${we}-status-active`]:{[`${we}-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:'""'}},[`&${we}-rtl${we}-status-active`]:{[`${we}-bg::before`]:{animationName:nt(!0)}},[`&${we}-status-exception`]:{[`${we}-bg`]:{backgroundColor:Se.colorError},[`${we}-text`]:{color:Se.colorError}},[`&${we}-status-exception ${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Se.colorError}},[`&${we}-status-success`]:{[`${we}-bg`]:{backgroundColor:Se.colorSuccess},[`${we}-text`]:{color:Se.colorSuccess}},[`&${we}-status-success ${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Se.colorSuccess}}})}},vt=Se=>{const{componentCls:we,iconCls:Me}=Se;return{[we]:{[`${we}-circle-trail`]:{stroke:Se.remainingColor},[`&${we}-circle ${we}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${we}-circle ${we}-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%)",[Me]:{fontSize:`${Se.fontSize/Se.fontSizeSM}em`}},[`${we}-circle&-status-exception`]:{[`${we}-text`]:{color:Se.colorError}},[`${we}-circle&-status-success`]:{[`${we}-text`]:{color:Se.colorSuccess}}},[`${we}-inline-circle`]:{lineHeight:1,[`${we}-inner`]:{verticalAlign:"bottom"}}}},Mt=Se=>{const{componentCls:we}=Se;return{[we]:{[`${we}-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}}}}}},zt=Se=>{const{componentCls:we,iconCls:Me}=Se;return{[we]:{[`${we}-small&-line, ${we}-small&-line ${we}-text ${Me}`]:{fontSize:Se.fontSizeSM}}}};var $t=(0,je.Z)("Progress",Se=>{const we=Se.marginXXS/2,Me=(0,Ie.TS)(Se,{progressStepMarginInlineEnd:we,progressStepMinWidth:we,progressActiveMotionDuration:"2.4s"});return[ht(Me),vt(Me),Mt(Me),zt(Me)]},Se=>({circleTextColor:Se.colorText,defaultColor:Se.colorInfo,remainingColor:Se.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ot=function(Se,we){var Me={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&we.indexOf(at)<0&&(Me[at]=Se[at]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(Se);rt<at.length;rt++)we.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(Se,at[rt])&&(Me[at[rt]]=Se[at[rt]]);return Me};const cn=null,Sn=["normal","exception","active","success"];var Lt=ae.forwardRef((Se,we)=>{const{prefixCls:Me,className:at,rootClassName:rt,steps:Ft,strokeColor:Ct,percent:St=0,size:xt="default",showInfo:_t=!0,type:At="line",status:Ut,format:mn,style:hn}=Se,yn=Ot(Se,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),tn=ae.useMemo(()=>{var ve,ce;const et=sn(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]),Yt=ae.useMemo(()=>!Sn.includes(Ut)&&tn>=100?"success":Ut||"normal",[Ut,tn]),{getPrefixCls:fn,direction:Bn,progress:xn}=ae.useContext($e.E_),rn=fn("progress",Me),[On,Yn]=$t(rn),zn=ae.useMemo(()=>{if(!_t)return null;const ve=sn(Se);let ce;const et=mn||(ut=>`${ut}%`),ft=At==="line";return mn||Yt!=="exception"&&Yt!=="success"?ce=et(qt(St),qt(ve)):Yt==="exception"?ce=ft?ae.createElement(Te.Z,null):ae.createElement(fe.Z,null):Yt==="success"&&(ce=ft?ae.createElement(Pe.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${rn}-text`,title:typeof ce=="string"?ce:void 0},ce)},[_t,St,tn,Yt,At,rn,mn]),Wn=Array.isArray(Ct)?Ct[0]:Ct,na=typeof Ct=="string"||Array.isArray(Ct)?Ct:void 0;let Jn;At==="line"?Jn=Ft?ae.createElement(Oe,Object.assign({},Se,{strokeColor:na,prefixCls:rn,steps:Ft}),zn):ae.createElement(it,Object.assign({},Se,{strokeColor:Wn,prefixCls:rn,direction:Bn}),zn):(At==="circle"||At==="dashboard")&&(Jn=ae.createElement(Ye,Object.assign({},Se,{strokeColor:Wn,prefixCls:rn,progressStatus:Yt}),zn));const he=ue()(rn,`${rn}-status-${Yt}`,`${rn}-${At==="dashboard"&&"circle"||Ft&&"steps"||At}`,{[`${rn}-inline-circle`]:At==="circle"&&Ee(xt,"circle")[0]<=20,[`${rn}-show-info`]:_t,[`${rn}-${xt}`]:typeof xt=="string",[`${rn}-rtl`]:Bn==="rtl"},xn==null?void 0:xn.className,at,rt,Yn);return On(ae.createElement("div",Object.assign({ref:we,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),hn),className:he,role:"progressbar","aria-valuenow":tn},(0,He.Z)(yn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Et=Lt},54580:function(xe,tt,ge){"use strict";ge.d(tt,{default:function(){return bn}});var ae=ge(59301),Pe=ge(26407),Ze=ge(92310),Te=ge.n(Ze),fe=ge(92413),Re=ge(6909),ue=ge(4771),He=ge(9427),$e=ge(25440),Ce=ge(400),_e=ge(37061),We=ge(85195),De=ge(39559),ne=ge(20569),a=ge(26112);function y(le,Be){var Fe="cannot ".concat(le.method," ").concat(le.action," ").concat(Be.status,"'"),ze=new Error(Fe);return ze.status=Be.status,ze.method=le.method,ze.url=le.action,ze}function x(le){var Be=le.responseText||le.response;if(!Be)return Be;try{return JSON.parse(Be)}catch(Fe){return Be}}function b(le){var Be=new XMLHttpRequest;le.onProgress&&Be.upload&&(Be.upload.onprogress=function(Ke){Ke.total>0&&(Ke.percent=Ke.loaded/Ke.total*100),le.onProgress(Ke)});var Fe=new FormData;le.data&&Object.keys(le.data).forEach(function(Ue){var Ke=le.data[Ue];if(Array.isArray(Ke)){Ke.forEach(function(Ae){Fe.append("".concat(Ue,"[]"),Ae)});return}Fe.append(Ue,Ke)}),le.file instanceof Blob?Fe.append(le.filename,le.file,le.file.name):Fe.append(le.filename,le.file),Be.onerror=function(Ke){le.onError(Ke)},Be.onload=function(){return Be.status<200||Be.status>=300?le.onError(y(le,Be),x(Be)):le.onSuccess(x(Be),Be)},Be.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in Be&&(Be.withCredentials=!0);var ze=le.headers||{};return ze["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ze).forEach(function(Ue){ze[Ue]!==null&&Be.setRequestHeader(Ue,ze[Ue])}),Be.send(Fe),{abort:function(){Be.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(48736),oe=function(le,Be){if(le&&Be){var Fe=Array.isArray(Be)?Be:Be.split(","),ze=le.name||"",Ue=le.type||"",Ke=Ue.replace(/\/.*$/,"");return Fe.some(function(Ae){var Ne=Ae.trim();if(/^\*(\/\*)?$/.test(Ae))return!0;if(Ne.charAt(0)==="."){var bt=ze.toLowerCase(),wt=Ne.toLowerCase(),Le=[wt];return(wt===".jpg"||wt===".jpeg")&&(Le=[".jpg",".jpeg"]),Le.some(function(Jt){return bt.endsWith(Jt)})}return/\/\*$/.test(Ne)?Ke===Ne.replace(/\/.*$/,""):Ue===Ne?!0:/^\w+$/.test(Ne)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ne,"'.Skip for check.")),!0):!1})}return!0};function re(le,Be){var Fe=le.createReader(),ze=[];function Ue(){Fe.readEntries(function(Ke){var Ae=Array.prototype.slice.apply(Ke);ze=ze.concat(Ae);var Ne=!Ae.length;Ne?Be(ze):Ue()})}Ue()}var ie=function(Be,Fe,ze){var Ue=function Ke(Ae,Ne){Ae&&(Ae.path=Ne||"",Ae.isFile?Ae.file(function(bt){ze(bt)&&(Ae.fullPath&&!bt.webkitRelativePath&&(Object.defineProperties(bt,{webkitRelativePath:{writable:!0}}),bt.webkitRelativePath=Ae.fullPath.replace(/^\//,""),Object.defineProperties(bt,{webkitRelativePath:{writable:!1}})),Fe([bt]))}):Ae.isDirectory&&re(Ae,function(bt){bt.forEach(function(wt){Ke(wt,"".concat(Ne).concat(Ae.name,"/"))})}))};Be.forEach(function(Ke){Ue(Ke.webkitGetAsEntry())})},se=ie,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ke=function(le){(0,He.Z)(Fe,le);var Be=(0,$e.Z)(Fe);function Fe(){var ze;(0,Re.Z)(this,Fe);for(var Ue=arguments.length,Ke=new Array(Ue),Ae=0;Ae<Ue;Ae++)Ke[Ae]=arguments[Ae];return ze=Be.call.apply(Be,[this].concat(Ke)),ze.state={uid:ee()},ze.reqs={},ze.fileInput=void 0,ze._isMounted=void 0,ze.onChange=function(Ne){var bt=ze.props,wt=bt.accept,Le=bt.directory,Jt=Ne.target.files,Xt=(0,Pe.Z)(Jt).filter(function(un){return!Le||oe(un,wt)});ze.uploadFiles(Xt),ze.reset()},ze.onClick=function(Ne){var bt=ze.fileInput;if(bt){var wt=Ne.target,Le=ze.props.onClick;if(wt&&wt.tagName==="BUTTON"){var Jt=bt.parentNode;Jt.focus(),wt.blur()}bt.click(),Le&&Le(Ne)}},ze.onKeyDown=function(Ne){Ne.key==="Enter"&&ze.onClick(Ne)},ze.onFileDrop=function(Ne){var bt=ze.props.multiple;if(Ne.preventDefault(),Ne.type!=="dragover")if(ze.props.directory)se(Array.prototype.slice.call(Ne.dataTransfer.items),ze.uploadFiles,function(Le){return oe(Le,ze.props.accept)});else{var wt=(0,Pe.Z)(Ne.dataTransfer.files).filter(function(Le){return oe(Le,ze.props.accept)});bt===!1&&(wt=wt.slice(0,1)),ze.uploadFiles(wt)}},ze.uploadFiles=function(Ne){var bt=(0,Pe.Z)(Ne),wt=bt.map(function(Le){return Le.uid=ee(),ze.processFile(Le,bt)});Promise.all(wt).then(function(Le){var Jt=ze.props.onBatchStart;Jt==null||Jt(Le.map(function(Xt){var un=Xt.origin,wn=Xt.parsedFile;return{file:un,parsedFile:wn}})),Le.filter(function(Xt){return Xt.parsedFile!==null}).forEach(function(Xt){ze.post(Xt)})})},ze.processFile=function(){var Ne=(0,ne.Z)((0,We.Z)().mark(function bt(wt,Le){var Jt,Xt,un,wn,Xe,dt,yt,gt,Rt;return(0,We.Z)().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(Jt=ze.props.beforeUpload,Xt=wt,!Jt){Gt.next=14;break}return Gt.prev=3,Gt.next=6,Jt(wt,Le);case 6:Xt=Gt.sent,Gt.next=12;break;case 9:Gt.prev=9,Gt.t0=Gt.catch(3),Xt=!1;case 12:if(Xt!==!1){Gt.next=14;break}return Gt.abrupt("return",{origin:wt,parsedFile:null,action:null,data:null});case 14:if(un=ze.props.action,typeof un!="function"){Gt.next=21;break}return Gt.next=18,un(wt);case 18:wn=Gt.sent,Gt.next=22;break;case 21:wn=un;case 22:if(Xe=ze.props.data,typeof Xe!="function"){Gt.next=29;break}return Gt.next=26,Xe(wt);case 26:dt=Gt.sent,Gt.next=30;break;case 29:dt=Xe;case 30:return yt=((0,De.Z)(Xt)==="object"||typeof Xt=="string")&&Xt?Xt:wt,yt instanceof File?gt=yt:gt=new File([yt],wt.name,{type:wt.type}),Rt=gt,Rt.uid=wt.uid,Gt.abrupt("return",{origin:wt,data:dt,parsedFile:Rt,action:wn});case 35:case"end":return Gt.stop()}},bt,null,[[3,9]])}));return function(bt,wt){return Ne.apply(this,arguments)}}(),ze.saveFileInput=function(Ne){ze.fileInput=Ne},ze}return(0,ue.Z)(Fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ue){var Ke=this,Ae=Ue.data,Ne=Ue.origin,bt=Ue.action,wt=Ue.parsedFile;if(this._isMounted){var Le=this.props,Jt=Le.onStart,Xt=Le.customRequest,un=Le.name,wn=Le.headers,Xe=Le.withCredentials,dt=Le.method,yt=Ne.uid,gt=Xt||b,Rt={action:bt,filename:un,data:Ae,file:wt,headers:wn,withCredentials:Xe,method:dt||"post",onProgress:function(Gt){var dn=Ke.props.onProgress;dn==null||dn(Gt,wt)},onSuccess:function(Gt,dn){var ln=Ke.props.onSuccess;ln==null||ln(Gt,wt,dn),delete Ke.reqs[yt]},onError:function(Gt,dn){var ln=Ke.props.onError;ln==null||ln(Gt,dn,wt),delete Ke.reqs[yt]}};Jt(Ne),this.reqs[yt]=gt(Rt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ue){var Ke=this.reqs;if(Ue){var Ae=Ue.uid?Ue.uid:Ue;Ke[Ae]&&Ke[Ae].abort&&Ke[Ae].abort(),delete Ke[Ae]}else Object.keys(Ke).forEach(function(Ne){Ke[Ne]&&Ke[Ne].abort&&Ke[Ne].abort(),delete Ke[Ne]})}},{key:"render",value:function(){var Ue=this.props,Ke=Ue.component,Ae=Ue.prefixCls,Ne=Ue.className,bt=Ue.disabled,wt=Ue.id,Le=Ue.style,Jt=Ue.multiple,Xt=Ue.accept,un=Ue.capture,wn=Ue.children,Xe=Ue.directory,dt=Ue.openFileDialogOnClick,yt=Ue.onMouseEnter,gt=Ue.onMouseLeave,Rt=(0,_e.Z)(Ue,me),jt=Te()((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Ae,!0),"".concat(Ae,"-disabled"),bt),Ne,Ne)),Gt=Xe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},dn=bt?{}:{onClick:dt?this.onClick:function(){},onKeyDown:dt?this.onKeyDown:function(){},onMouseEnter:yt,onMouseLeave:gt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ke,(0,fe.Z)({},dn,{className:jt,role:"button",style:Le}),ae.createElement("input",(0,fe.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:wt,disabled:bt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Xt},Gt,{multiple:Jt,onChange:this.onChange},un!=null?{capture:un}:{})),wn)}}]),Fe}(ae.Component),Ve=ke;function pt(){}var Nt=function(le){(0,He.Z)(Fe,le);var Be=(0,$e.Z)(Fe);function Fe(){var ze;(0,Re.Z)(this,Fe);for(var Ue=arguments.length,Ke=new Array(Ue),Ae=0;Ae<Ue;Ae++)Ke[Ae]=arguments[Ae];return ze=Be.call.apply(Be,[this].concat(Ke)),ze.uploader=void 0,ze.saveUploader=function(Ne){ze.uploader=Ne},ze}return(0,ue.Z)(Fe,[{key:"abort",value:function(Ue){this.uploader.abort(Ue)}},{key:"render",value:function(){return ae.createElement(Ve,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),Fe}(ae.Component);Nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pt,onError:pt,onSuccess:pt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ht=Nt,kt=Ht,Kt=ge(18929),en=ge(4676),vn=ge(36355),Vt=ge(1684),qt=ge(9763),sn=ge(31724),Fn={icon:function(Be,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Fe}},{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:Be}}]}},name:"file",theme:"twotone"},An=Fn,Ee=ge(7657),be=function(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:An}))},Ge=ae.forwardRef(be),qe=Ge,Ye=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(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:de}))},st=ae.forwardRef(Qe),it=st,Bt={icon:function(Be,Fe){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:Be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Fe}},{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:Fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Fe}},{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:Be}}]}},name:"picture",theme:"twotone"},Oe=Bt,ye=function(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:Oe}))},pe=ae.forwardRef(ye),je=pe,Ie=ge(77900),nt=ge(56762),ht=ge(62892),vt=ge(92343),Mt=ge(3113);function zt(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 $t(le,Be){const Fe=(0,Pe.Z)(Be),ze=Fe.findIndex(Ue=>{let{uid:Ke}=Ue;return Ke===le.uid});return ze===-1?Fe.push(le):Fe[ze]=le,Fe}function Ot(le,Be){const Fe=le.uid!==void 0?"uid":"name";return Be.filter(ze=>ze[Fe]===le[Fe])[0]}function cn(le,Be){const Fe=le.uid!==void 0?"uid":"name",ze=Be.filter(Ue=>Ue[Fe]!==le[Fe]);return ze.length===Be.length?null:ze}const Sn=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ze=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ze)||[""])[0]},Pn=le=>le.indexOf("image/")===0,Lt=le=>{if(le.type&&!le.thumbUrl)return Pn(le.type);const Be=le.thumbUrl||le.url||"",Fe=Sn(Be);return/^data:image\//.test(Be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Fe)?!0:!(/^data:/.test(Be)||Fe)},Et=200;function Se(le){return new Promise(Be=>{if(!le.type||!Pn(le.type)){Be("");return}const Fe=document.createElement("canvas");Fe.width=Et,Fe.height=Et,Fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Et}px; height: ${Et}px; z-index: 9999; display: none;`,document.body.appendChild(Fe);const ze=Fe.getContext("2d"),Ue=new Image;if(Ue.onload=()=>{const{width:Ke,height:Ae}=Ue;let Ne=Et,bt=Et,wt=0,Le=0;Ke>Ae?(bt=Ae*(Et/Ke),Le=-(bt-Ne)/2):(Ne=Ke*(Et/Ae),wt=-(Ne-bt)/2),ze.drawImage(Ue,wt,Le,Ne,bt);const Jt=Fe.toDataURL();document.body.removeChild(Fe),window.URL.revokeObjectURL(Ue.src),Be(Jt)},Ue.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Ke=new FileReader;Ke.onload=()=>{Ke.result&&(Ue.src=Ke.result)},Ke.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Ke=new FileReader;Ke.onload=()=>{Ke.result&&Be(Ke.result)},Ke.readAsDataURL(le)}else Ue.src=window.URL.createObjectURL(le)})}var we=ge(26227),Me=ge(41464),at=ge(15277),rt=ge(93948),Ft=ge(6848),St=ae.forwardRef((le,Be)=>{let{prefixCls:Fe,className:ze,style:Ue,locale:Ke,listType:Ae,file:Ne,items:bt,progress:wt,iconRender:Le,actionIconRender:Jt,itemRender:Xt,isImgUrl:un,showPreviewIcon:wn,showRemoveIcon:Xe,showDownloadIcon:dt,previewIcon:yt,removeIcon:gt,downloadIcon:Rt,onPreview:jt,onDownload:Gt,onClose:dn}=le;var ln,oa;const{status:Qn}=Ne,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=Le(Ne);let Vn=ae.createElement("div",{className:`${Fe}-icon`},da);if(Ae==="picture"||Ae==="picture-card"||Ae==="picture-circle")if(qn==="uploading"||!Ne.thumbUrl&&!Ne.url){const Mn=Te()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Mn},da)}else{const Mn=un!=null&&un(Ne)?ae.createElement("img",{src:Ne.thumbUrl||Ne.url,alt:Ne.name,className:`${Fe}-list-item-image`,crossOrigin:Ne.crossOrigin}):da,Gn=Te()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:un&&!un(Ne)});Vn=ae.createElement("a",{className:Gn,onClick:la=>jt(Ne,la),href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const En=Te()(`${Fe}-list-item`,`${Fe}-list-item-${qn}`),ta=typeof Ne.linkProps=="string"?JSON.parse(Ne.linkProps):Ne.linkProps,ga=Xe?Jt((typeof gt=="function"?gt(Ne):gt)||ae.createElement(we.Z,null),()=>dn(Ne),Fe,Ke.removeFile):null,ia=dt&&qn==="done"?Jt((typeof Rt=="function"?Rt(Ne):Rt)||ae.createElement(Me.Z,null),()=>Gt(Ne),Fe,Ke.downloadFile):null,aa=Ae!=="picture-card"&&Ae!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Te()(`${Fe}-list-item-actions`,{picture:Ae==="picture"})},ia,ga),ea=Te()(`${Fe}-list-item-name`),ha=Ne.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ne.name},ta,{href:Ne.url,onClick:Mn=>jt(Ne,Mn)}),Ne.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Mn=>jt(Ne,Mn),title:Ne.name},Ne.name),aa],Tt={pointerEvents:"none",opacity:.5},Cn=wn?ae.createElement("a",{href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ne.url||Ne.thumbUrl?void 0:Tt,onClick:Mn=>jt(Ne,Mn),title:Ke.previewFile},typeof yt=="function"?yt(Ne):yt||ae.createElement(at.Z,null)):null,Nn=(Ae==="picture-card"||Ae==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Fe}-list-item-actions`},Cn,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(vn.E_),Xn=Un(),ra=ae.createElement("div",{className:En},Vn,ha,Nn,Sa&&ae.createElement(Ie.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:Gn}=Mn;const la="percent"in Ne?ae.createElement(rt.Z,Object.assign({},wt,{type:"line",percent:Ne.percent,"aria-label":Ne["aria-label"],"aria-labelledby":Ne["aria-labelledby"]})):null;return ae.createElement("div",{className:Te()(`${Fe}-list-item-progress`,Gn)},la)})),va=Ne.response&&typeof Ne.response=="string"?Ne.response:((ln=Ne.error)===null||ln===void 0?void 0:ln.statusText)||((oa=Ne.error)===null||oa===void 0?void 0:oa.message)||Ke.uploadError,pa=qn==="error"?ae.createElement(Ft.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ae.createElement("div",{className:Te()(`${Fe}-list-item-container`,ze),style:Ue,ref:Be},Xt?Xt(pa,Ne,bt,{download:Gt.bind(null,Ne),preview:jt.bind(null,Ne),remove:dn.bind(null,Ne)}):pa)});const xt=(le,Be)=>{const{listType:Fe="text",previewFile:ze=Se,onPreview:Ue,onDownload:Ke,onRemove:Ae,locale:Ne,iconRender:bt,isImageUrl:wt=Lt,prefixCls:Le,items:Jt=[],showPreviewIcon:Xt=!0,showRemoveIcon:un=!0,showDownloadIcon:wn=!1,removeIcon:Xe,previewIcon:dt,downloadIcon:yt,progress:gt={size:[-1,2],showInfo:!1},appendAction:Rt,appendActionVisible:jt=!0,itemRender:Gt,disabled:dn}=le,ln=(0,nt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Fe!=="picture"&&Fe!=="picture-card"&&Fe!=="picture-circle"||(Jt||[]).forEach(Tt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Tt.originFileObj instanceof File||Tt.originFileObj instanceof Blob)||Tt.thumbUrl!==void 0||(Tt.thumbUrl="",ze&&ze(Tt.originFileObj).then(Cn=>{Tt.thumbUrl=Cn||"",ln()}))})},[Fe,Jt,ze]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(Tt,Cn)=>{if(Ue)return Cn==null||Cn.preventDefault(),Ue(Tt)},ca=Tt=>{typeof Ke=="function"?Ke(Tt):Tt.url&&window.open(Tt.url)},Sa=Tt=>{Ae==null||Ae(Tt)},Pa=Tt=>{if(bt)return bt(Tt,Fe);const Cn=Tt.status==="uploading",Nn=wt&&wt(Tt)?ae.createElement(je,null):ae.createElement(qe,null);let Un=Cn?ae.createElement(Ye.Z,null):ae.createElement(it,null);return Fe==="picture"?Un=Cn?ae.createElement(Ye.Z,null):Nn:(Fe==="picture-card"||Fe==="picture-circle")&&(Un=Cn?Ne.uploading:Nn),Un},da=(Tt,Cn,Nn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{Cn(),(0,vt.l$)(Tt)&&Tt.props.onClick&&Tt.props.onClick(ra)},className:`${Nn}-list-item-action`,disabled:dn};if((0,vt.l$)(Tt)){const ra=(0,vt.Tm)(Tt,Object.assign(Object.assign({},Tt.props),{onClick:()=>{}}));return ae.createElement(Mt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Mt.ZP,Object.assign({},Xn),ae.createElement("span",null,Tt))};ae.useImperativeHandle(Be,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(vn.E_),En=Vn("upload",Le),ta=Vn(),ga=Te()(`${En}-list`,`${En}-list-${Fe}`),ia=(0,Pe.Z)(Jt.map(Tt=>({key:Tt.uid,file:Tt})));let ea={motionDeadline:2e3,motionName:`${En}-${Fe==="picture-card"||Fe==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const ha=ae.useMemo(()=>{const Tt=Object.assign({},(0,ht.Z)(ta));return delete Tt.onAppearEnd,delete Tt.onEnterEnd,delete Tt.onLeaveEnd,Tt},[ta]);return Fe!=="picture-card"&&Fe!=="picture-circle"&&(ea=Object.assign(Object.assign({},ha),ea)),ae.createElement("div",{className:ga},ae.createElement(Ie.CSSMotionList,Object.assign({},ea,{component:!1}),Tt=>{let{key:Cn,file:Nn,className:Un,style:Xn}=Tt;return ae.createElement(St,{key:Cn,locale:Ne,prefixCls:En,className:Un,style:Xn,file:Nn,items:Jt,progress:gt,listType:Fe,isImgUrl:wt,showPreviewIcon:Xt,showRemoveIcon:un,showDownloadIcon:wn,removeIcon:Xe,previewIcon:dt,downloadIcon:yt,iconRender:Pa,actionIconRender:da,itemRender:Gt,onPreview:qn,onDownload:ca,onClose:Sa})}),Rt&&ae.createElement(Ie.default,Object.assign({},ea,{visible:jt,forceRender:!0}),Tt=>{let{className:Cn,style:Nn}=Tt;return(0,vt.Tm)(Rt,Un=>({className:Te()(Un.className,Cn),style:Object.assign(Object.assign(Object.assign({},Nn),{pointerEvents:Cn?"none":void 0}),Un.style)}))}))};var At=ae.forwardRef(xt),Ut=ge(17313),mn=ge(8378),hn=ge(83116),yn=ge(37613),Yt=le=>{const{componentCls:Be,iconCls:Fe}=le;return{[`${Be}-wrapper`]:{[`${Be}-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}`,[Be]:{padding:`${le.padding}px 0`},[`${Be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Be}-disabled):hover`]:{borderColor:le.colorPrimaryHover},[`p${Be}-drag-icon`]:{marginBottom:le.margin,[Fe]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${Be}-text`]:{margin:`0 0 ${le.marginXXS}px`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${Be}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${Be}-disabled`]:{cursor:"not-allowed",[`p${Be}-drag-icon ${Fe},
|
|
p${Be}-text,
|
|
p${Be}-hint
|
|
`]:{color:le.colorTextDisabled}}}}}},Bn=le=>{const{componentCls:Be,antCls:Fe,iconCls:ze,fontSize:Ue,lineHeight:Ke}=le,Ae=`${Be}-list-item`,Ne=`${Ae}-actions`,bt=`${Ae}-action`,wt=Math.round(Ue*Ke);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,Ut.dF)()),{lineHeight:le.lineHeight,[Ae]:{position:"relative",height:le.lineHeight*Ue,marginTop:le.marginXS,fontSize:Ue,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${Ae}-name`]:Object.assign(Object.assign({},Ut.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ke,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[Ne]:{[bt]:{opacity:0},[`${bt}${Fe}-btn-sm`]:{height:wt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${bt}:focus-visible,
|
|
&.picture ${bt}
|
|
`]:{opacity:1},[ze]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${ze}`]:{color:le.colorText}},[`${Be}-icon ${ze}`]:{color:le.colorTextDescription,fontSize:Ue},[`${Ae}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:Ue+le.paddingXS,fontSize:Ue,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ae}:hover ${bt}`]:{opacity:1,color:le.colorText},[`${Ae}-error`]:{color:le.colorError,[`${Ae}-name, ${Be}-icon ${ze}`]:{color:le.colorError},[Ne]:{[`${ze}, ${ze}:hover`]:{color:le.colorError},[bt]:{opacity:1}}},[`${Be}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=ge(93083),rn=ge(1950);const On=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=le=>{const{componentCls:Be}=le,Fe=`${Be}-animate-inline`;return[{[`${Be}-wrapper`]:{[`${Fe}-appear, ${Fe}-enter, ${Fe}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Fe}-appear, ${Fe}-enter`]:{animationName:On},[`${Fe}-leave`]:{animationName:Yn}}},{[`${Be}-wrapper`]:(0,rn.J$)(le)},On,Yn]},na=ge(93398),Jn=ge(64993);const he=le=>{const{componentCls:Be,iconCls:Fe,uploadThumbnailSize:ze,uploadProgressOffset:Ue}=le,Ke=`${Be}-list`,Ae=`${Ke}-item`;return{[`${Be}-wrapper`]:{[`
|
|
${Ke}${Ke}-picture,
|
|
${Ke}${Ke}-picture-card,
|
|
${Ke}${Ke}-picture-circle
|
|
`]:{[Ae]:{position:"relative",height:ze+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ae}-thumbnail`]:Object.assign(Object.assign({},Ut.vS),{width:ze,height:ze,lineHeight:`${ze+le.paddingSM}px`,textAlign:"center",flex:"none",[Fe]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ae}-progress`]:{bottom:Ue,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ze+le.paddingXS}},[`${Ae}-error`]:{borderColor:le.colorError,[`${Ae}-thumbnail ${Fe}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:le.colorError}}},[`${Ae}-uploading`]:{borderStyle:"dashed",[`${Ae}-name`]:{marginBottom:Ue}}},[`${Ke}${Ke}-picture-circle ${Ae}`]:{[`&, &::before, ${Ae}-thumbnail`]:{borderRadius:"50%"}}}}},ve=le=>{const{componentCls:Be,iconCls:Fe,fontSizeLG:ze,colorTextLightSolid:Ue}=le,Ke=`${Be}-list`,Ae=`${Ke}-item`,Ne=le.uploadPicCardSize;return{[`
|
|
${Be}-wrapper${Be}-picture-card-wrapper,
|
|
${Be}-wrapper${Be}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ut.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:Ne,height:Ne,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}`,[`> ${Be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Be}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Ke}${Ke}-picture-card, ${Ke}${Ke}-picture-circle`]:{[`${Ke}-item-container`]:{display:"inline-block",width:Ne,height:Ne,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ae]:{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:'" "'}},[`${Ae}:hover`]:{[`&::before, ${Ae}-actions`]:{opacity:1}},[`${Ae}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{zIndex:10,width:ze,margin:`0 ${le.marginXXS}px`,fontSize:ze,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ae}-actions, ${Ae}-actions:hover`]:{[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{color:new Jn.C(Ue).setAlpha(.65).toRgbString(),"&:hover":{color:Ue}}},[`${Ae}-thumbnail, ${Ae}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ae}-name`]:{display:"none",textAlign:"center"},[`${Ae}-file + ${Ae}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${Ae}-uploading`]:{[`&${Ae}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{display:"none"}},[`${Ae}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${le.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Be}-wrapper${Be}-picture-circle-wrapper`]:{[`${Be}${Be}-select`]:{borderRadius:"50%"}}}};var et=le=>{const{componentCls:Be}=le;return{[`${Be}-rtl`]:{direction:"rtl"}}};const ft=le=>{const{componentCls:Be,colorTextDisabled:Fe}=le;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,Ut.Wf)(le)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:Fe,cursor:"not-allowed"}})}};var ut=(0,hn.Z)("Upload",le=>{const{fontSizeHeading3:Be,fontSize:Fe,lineHeight:ze,lineWidth:Ue,controlHeightLG:Ke}=le,Ae=Math.round(Fe*ze),Ne=(0,yn.TS)(le,{uploadThumbnailSize:Be*2,uploadProgressOffset:Ae/2+Ue,uploadPicCardSize:Ke*2.55});return[ft(Ne),Yt(Ne),he(Ne),ve(Ne),Bn(Ne),Wn(Ne),et(Ne),(0,mn.Z)(Ne)]},le=>({actionsColor:le.colorTextDescription})),nn=function(le,Be,Fe,ze){function Ue(Ke){return Ke instanceof Fe?Ke:new Fe(function(Ae){Ae(Ke)})}return new(Fe||(Fe=Promise))(function(Ke,Ae){function Ne(Le){try{wt(ze.next(Le))}catch(Jt){Ae(Jt)}}function bt(Le){try{wt(ze.throw(Le))}catch(Jt){Ae(Jt)}}function wt(Le){Le.done?Ke(Le.value):Ue(Le.value).then(Ne,bt)}wt((ze=ze.apply(le,Be||[])).next())})};const Dt=`__LIST_IGNORE_${Date.now()}__`,Wt=(le,Be)=>{const{fileList:Fe,defaultFileList:ze,onRemove:Ue,showUploadList:Ke=!0,listType:Ae="text",onPreview:Ne,onDownload:bt,onChange:wt,onDrop:Le,previewFile:Jt,disabled:Xt,locale:un,iconRender:wn,isImageUrl:Xe,progress:dt,prefixCls:yt,className:gt,type:Rt="select",children:jt,style:Gt,itemRender:dn,maxCount:ln,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=le,da=ae.useContext(Vt.Z),Vn=Xt!=null?Xt:da,[En,ta]=(0,Kt.Z)(ze||[],{value:Fe,postState:It=>It!=null?It:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const It=Date.now();(Fe||[]).forEach((an,Ln)=>{!an.uid&&!Object.isFrozen(an)&&(an.uid=`__AUTO__${It}_${Ln}__`)})},[Fe]);const ea=(It,an,Ln)=>{let Qt=(0,Pe.Z)(an),gn=!1;ln===1?Qt=Qt.slice(-1):ln&&(gn=Qt.length>ln,Qt=Qt.slice(0,ln)),(0,en.flushSync)(()=>{ta(Qt)});const Hn={file:It,fileList:Qt};Ln&&(Hn.event=Ln),(!gn||Qt.some(In=>In.uid===It.uid))&&(0,en.flushSync)(()=>{wt==null||wt(Hn)})},ha=(It,an)=>nn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Qt}=le;let gn=It;if(Ln){const Hn=yield Ln(It,an);if(Hn===!1)return!1;if(delete It[Dt],Hn===Dt)return Object.defineProperty(It,Dt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(gn=Hn)}return Qt&&(gn=yield Qt(gn)),gn}),Tt=It=>{const an=It.filter(gn=>!gn.file[Dt]);if(!an.length)return;const Ln=an.map(gn=>zt(gn.file));let Qt=(0,Pe.Z)(En);Ln.forEach(gn=>{Qt=$t(gn,Qt)}),Ln.forEach((gn,Hn)=>{let In=gn;if(an[Hn].parsedFile)gn.status="uploading";else{const{originFileObj:fa}=gn;let ua;try{ua=new File([fa],fa.name,{type:fa.type})}catch(wa){ua=new Blob([fa],{type:fa.type}),ua.name=fa.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=gn.uid,In=ua}ea(In,Qt)})},Cn=(It,an,Ln)=>{try{typeof It=="string"&&(It=JSON.parse(It))}catch(Hn){}if(!Ot(an,En))return;const Qt=zt(an);Qt.status="done",Qt.percent=100,Qt.response=It,Qt.xhr=Ln;const gn=$t(Qt,En);ea(Qt,gn)},Nn=(It,an)=>{if(!Ot(an,En))return;const Ln=zt(an);Ln.status="uploading",Ln.percent=It.percent;const Qt=$t(Ln,En);ea(Ln,Qt,It)},Un=(It,an,Ln)=>{if(!Ot(Ln,En))return;const Qt=zt(Ln);Qt.error=It,Qt.response=an,Qt.status="error";const gn=$t(Qt,En);ea(Qt,gn)},Xn=It=>{let an;Promise.resolve(typeof Ue=="function"?Ue(It):Ue).then(Ln=>{var Qt;if(Ln===!1)return;const gn=cn(It,En);gn&&(an=Object.assign(Object.assign({},It),{status:"removed"}),En==null||En.forEach(Hn=>{const In=an.uid!==void 0?"uid":"name";Hn[In]===an[In]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(Qt=aa.current)===null||Qt===void 0||Qt.abort(an),ea(an,gn))})},ra=It=>{ia(It.type),It.type==="drop"&&(Le==null||Le(It))};ae.useImperativeHandle(Be,()=>({onBatchStart:Tt,onSuccess:Cn,onProgress:Nn,onError:Un,fileList:En,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ae.useContext(vn.E_),Gn=va("upload",yt),la=Object.assign(Object.assign({onBatchStart:Tt,onError:Un,onProgress:Nn,onSuccess:Cn},le),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:ha,onChange:void 0});delete la.className,delete la.style,(!jt||Vn)&&delete la.id;const[La,ya]=ut(Gn),[ba]=(0,qt.Z)("Upload",sn.Z.Upload),{showRemoveIcon:Pt,showPreviewIcon:ot,showDownloadIcon:lt,removeIcon:ct,previewIcon:on,downloadIcon:$n}=typeof Ke=="boolean"?{}:Ke,kn=(It,an)=>Ke?ae.createElement(At,{prefixCls:Gn,listType:Ae,items:En,previewFile:Jt,onPreview:Ne,onDownload:bt,onRemove:Xn,showRemoveIcon:!Vn&&Pt,showPreviewIcon:ot,showDownloadIcon:lt,removeIcon:ct,previewIcon:on,downloadIcon:$n,iconRender:wn,locale:Object.assign(Object.assign({},ba),un),isImageUrl:Xe,progress:dt,appendAction:It,appendActionVisible:an,itemRender:dn,disabled:Vn}):It,Dn=Te()(`${Gn}-wrapper`,gt,Pa,ya,Mn==null?void 0:Mn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Ae==="picture-card",[`${Gn}-picture-circle-wrapper`]:Ae==="picture-circle"}),_n=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Gt);if(Rt==="drag"){const It=Te()(ya,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:En.some(an=>an.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:Dn},ae.createElement("div",{className:It,style:_n,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(kt,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},jt))),kn()))}const jn=Te()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(It=>ae.createElement("div",{className:jn,style:It},ae.createElement(kt,Object.assign({},la,{ref:aa}))))(jt?void 0:{display:"none"});return La(Ae==="picture-card"||Ae==="picture-circle"?ae.createElement("span",{className:Dn},kn(Kn,!!jt)):ae.createElement("span",{className:Dn},Kn,kn()))};var Rn=ae.forwardRef(Wt),Je=function(le,Be){var Fe={};for(var ze in le)Object.prototype.hasOwnProperty.call(le,ze)&&Be.indexOf(ze)<0&&(Fe[ze]=le[ze]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ze=Object.getOwnPropertySymbols(le);Ue<ze.length;Ue++)Be.indexOf(ze[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,ze[Ue])&&(Fe[ze[Ue]]=le[ze[Ue]]);return Fe},Tn=ae.forwardRef((le,Be)=>{var{style:Fe,height:ze}=le,Ue=Je(le,["style","height"]);return ae.createElement(Rn,Object.assign({ref:Be},Ue,{type:"drag",style:Object.assign(Object.assign({},Fe),{height:ze})}))});const Zn=Rn;Zn.Dragger=Tn,Zn.LIST_IGNORE=Dt;var bn=Zn}}]);
|