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 Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},41464:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},87169:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},33853:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},43531:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},38819:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Je}});var ae=ge(14809),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"},Ae=Ze,fe=ge(7657),je=function(Ce,Ge){return Pe.createElement(fe.Z,(0,ae.Z)({},Ce,{ref:Ge,icon:Ae}))},me=Pe.forwardRef(je),Je=me},99587: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"}},63720: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,ue=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ue=a);else{var se=(E-ee)/re,Me=E-se*b;ie=ne,ue=se*ie+Me}else if(re===0){var ke=(a-x)/oe,st=a-ke*ne;ie=b,ue=ke*ie+st}else{var ke=(a-x)/oe,se=(E-ee)/re,st=a-ke*ne,Me=E-se*b;ie=(Me-st)/(ke-se),ue=ke*ie+st}return te.x=ie,te.y=ue,te}function Ae(ne,a,y,x,b,E,z,ee,te,oe,re,ie,ue,se){var Me=1-te,ke=te,st=ne*Me+y*ke,Dt=a*Me+x*ke,qt=y*Me+b*ke,At=x*Me+E*ke,kt=b*Me+z*ke,Wt=E*Me+ee*ke,vn=st*Me+qt*ke,Vt=Dt*Me+At*ke,en=qt*Me+kt*ke,sn=At*Me+Wt*ke,Bn=vn*Me+en*ke,An=Vt*Me+sn*ke;oe.x=st,oe.y=Dt,re.x=vn,re.y=Vt,ie.x=Bn,ie.y=An,ue.x=en,ue.y=sn,se.x=kt,se.y=Wt}var fe=new go.Spot(.156,.156),je=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new 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*me,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=fe,b.spot2=je,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new 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 Je=[];function Oe(){var ne=Je.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,Je.push(ne)}function Ge(ne){for(var a=Oe(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function We(ne){var a=Ie(ne),y=Oe();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ce(a),y}function Ie(ne){for(var a=Ge(ne),y=Oe(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=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=Ge(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=Ge(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=Ge(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=Ge(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=Ge(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=Ge(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=Ge(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=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),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=je,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new 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=me/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new 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,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=me*.4;var oe=ae(),re=ae(),ie=ae(),ue=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ue,ue);var se=ae(),Me=ae(),ke=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,ke,se,Me);var st=ae(),Dt=ae(),qt=ae();Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,st,Dt,qt,ue,ue);var At=ae(),kt=ae(),Wt=ae();return Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,Wt,At,kt),te.add(new go.PathSegment(go.PathSegment.Move,Wt.x*a,Wt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,At.x*a,At.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,Wt.x*a,Wt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,qt.x*a,qt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Me.x*a,Me.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,qt.x*a,qt.y*y,st.x*a,st.y*y,Dt.x*a,Dt.y*y).close()),Pe(oe),Pe(re),Pe(ie),Pe(ue),Pe(se),Pe(Me),Pe(ke),Pe(st),Pe(Dt),Pe(qt),Pe(At),Pe(kt),Pe(Wt),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=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var se=ge(oe.x,oe.y);Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Me=ge(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*a,(Me.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=me*.35;var ke=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var st=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(st),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(se),Pe(Me),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new 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=me*.5,E=me*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=me*b,ee=me*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ue=me*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ue)*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ue=me*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ue=me*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ue=me*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ue=me*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y,(te-ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new 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=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=me*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ue=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var Me=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var ke=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var st=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(st),st.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)),st.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)),st.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)),st.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var ue=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=me*.3,E=.3,Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(oe),Pe(re),Pe(ie),Pe(ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ue=.5,se=0,Me=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Me.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Me.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Me.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ue=z,se=z,Me=re*ue,ke=re*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(Me+ue)/2)*a,(te+(se+ke)/2)*y,(ee-ue)*a,(te+ke)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ue)*a,(te-ke)*y,(ee-Me)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+Me)*a,(te-se)*y,(ee+ue)*a,(te-ke)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+ke)*y,(ee+(Me+ue)/2)*a,(te+(se+ke)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var st=new go.PathFigure(.2*a,y,!1);x.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Dt=new go.PathFigure(.8*a,y,!1);return x.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,re=.1,ie=.9,ue=new go.PathFigure((re-te)*a,ie*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=me*.05,ue=.175,se=.95,ee=new go.PathFigure((ue-re)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.375,se=.95,te=new go.PathFigure((ue-re)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.625,se=.95,oe=new go.PathFigure((ue-re)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=me*.05,ue=.825,se=.95,Me=new go.PathFigure((ue-re)*a,se*y,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y).close());var ke=new go.PathFigure(0,y,!1);return x.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*me,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001: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,Ae=null,fe=!1,je=null,me=null,Je=0;Je<arguments.length;Je++){var Oe=arguments[Je];if(Oe!==null)switch(typeof Oe){case"number":tt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=Oe:Ae=Oe;break;case"object":typeof Oe.is3D!="undefined"?ae=Oe:ge=Oe;break;case"boolean":Pe=Oe,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)),Ae!==null&&ge.id===void 0&&(ge.id=Ae);var Ce="",Ge="",We=!1,Ie=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};xe.setHTML5Codebase=function(Ee,be){me=Ee,sn(Ee,be)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(Ee,be){var $e=parseFloat(Ee);if($e!==NaN&&$e<5){console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead.");return}je=Ee,en(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",$e=ge.id,qe,Ve=!1,ut=0;ut<arguments.length;ut++){var de=arguments[ut];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?be=de:$e=arguments[ut]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&(qe=de)}Qe();function Qe(){if(!fe){setTimeout(Qe,200);return}be=vn(be);var mt=qe||document.getElementById($e);if(!mt){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(mt,!1),ge.width===void 0&&mt.clientWidth&&(ge.width=mt.clientWidth),ge.height===void 0&&mt.clientHeight&&(ge.height=mt.clientHeight),!(ge.width&&ge.height)&&be==="html5"&&(delete ge.width,delete ge.height),Ie=be,be==="screenshot")Dt(mt,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?(Ie="screenshot",At(mt,ge,Ve,be)):st(mt,ge,Ve)}}};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(ut){var de=JSON.parse(ut),Qe=function(Bt){return Bt.type=="G"||Bt.type=="E"},mt=de.elements?de.elements.filter(Qe)[0]:de;if(!mt||!mt.url){$e();return}ge.fileName=mt.url,ue(mt.settings||{}),ae.is3D=!0;var it="https://www.geogebra.org/images/";xe.setPreviewImage(x||mt.previewUrl,it+"GeoGebra_loading.png",it+"applet_play.png"),Ee()},$e=function(){ge.onError&&ge.onError(),Bn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},qe=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+ge.material_id+"?scope=basic";se("https://"+qe+"/api/proxy.php?path="+encodeURIComponent(Ve),be,$e)};function ue(Ee){var be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function($e){Ee[$e]=!!Ee[$e]}),be.forEach(function($e){ge[$e]===void 0&&Ee[$e]!==void 0&&(ge[$e]=Ee[$e])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(Ee,be,$e){var qe=new XMLHttpRequest;qe.open("GET",Ee),qe.onload=function(){be(qe.responseText)},qe.onerror=$e,qe.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return Ie},xe.setPreviewImage=function(Ee,be,$e){x=Ee,b=be,E=$e},xe.removeExistingApplet=function(Ee,be){var $e;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),Ie=null;var qe=null;for($e=0;$e<Ee.childNodes.length;$e++){var Ve=Ee.childNodes[$e],ut=Ve.className;ut==="applet_screenshot"?be?(Ve.style.display="block",Ie="screenshot"):Ve.style.display="none":ut!=="applet_scaler prerender"&&(Ee.removeChild(Ve),qe=ut&&ut.indexOf("appletParameters")!=-1?Ve.id:null,$e--)}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 Me=function(Ee,be,$e){var qe=document.createElement("param");qe.setAttribute("name",be),qe.setAttribute("value",$e),Ee.appendChild(qe)},ke=function(Ee){return Ee&&Ee!=="false"},st=function(Ee,be,$e){te(ne)<=4.2&&($e=!0);var qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var ut=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)ke(be.showToolBar)&&(be.height-=7),ke(be.showAlgebraInput)&&(be.height-=37),be.width<605&&ke(be.showToolBar)&&(be.width=605,ut=605);else{var Qe=100;(ke(be.showToolBar)||ke(be.showMenuBar))&&(be.hasOwnProperty("customToolBar")&&(be.customToolbar=be.customToolBar),Qe=ke(be.showMenuBar)?245:155),ut<Qe&&(be.width=Qe,ut=Qe)}Ve.style.border="none",Ve.style.display="inline-block";for(var mt in be)be.hasOwnProperty(mt)&&mt!=="appletOnLoad"&&Ve.setAttribute("data-param-"+mt,be[mt]);z&&Ve.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(!$e&&be.width!==void 0){be.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var Bt=Ee.querySelector(".applet_scaler.prerender"),ze=Bt!==null;if(ze)var ye=Bt.querySelector(".ggb_preview");else{var ye=Wt(ut,de,be.borderColor,!1);Bt=document.createElement("div"),Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.style.width=ut+"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)},ze||Bt.appendChild(ye)):Ve.appendChild(ye),Bt.appendChild(Ve),ze||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(Ve),Ee.appendChild(pe),be.appletOnLoad=function($t){xe.resize(),it($t)}}function He($t,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,Ot.appletOnLoad):renderGGBElement($t),Bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function Re($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){He(cn.article,cn.params)}),html5AppletsToProcess=null)},te(ne)<5&&($t.className+=" geogebraweb")):He($t,Ot)}if(qe){scriptLoadStarted=!0;for(var nt=0;nt<Ve.childNodes.length;nt++){var ft=Ve.childNodes[nt].tagName;ft==="TABLE"&&(Ve.removeChild(Ve.childNodes[nt]),nt--)}if(ggbHTML5LoadedScript!==null){var vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');vt!=null&&vt.parentNode.removeChild(vt)}var Nt=document.createElement("script"),zt=function(){Re(Ve,be)};Nt.src=Ge+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Nt.src,Bn("GeoGebra HTML5 codebase loaded: '"+Ge+"'.",be),!me&&(!je||je=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Ge.requirejs?__webpack_require__.e(7963).then(function(){var $t=[__webpack_require__(87963)];zt.apply(null,$t)}.bind(this)).catch(__webpack_require__.oe):(Nt.onload=zt,Ee.appendChild(Nt))}else Re(Ve,be);be.height=de,be.width=ut},Dt=function(Ee,be,$e){var qe=Wt(be.width,be.height,be.borderColor,$e),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=be.width+"px",Ve.style.height=be.height+"px",Ve.className="applet_screenshot applet_scaler"+($e?" applet_screenshot_play":""),Ve.appendChild(qe);var ut=GGBAppletUtils.getScale(be,Ee,$e);$e?(Ee.appendChild(kt()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),Ee.appendChild(Ve),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(Ve,ut),Ve.style.width=be.width+"px",Ve.style.height=be.height+"px",Ve.parentNode.style.width=be.width*ut+"px",Ve.parentNode.style.height=be.height*ut+"px"),xe.resize=function(){qt(Ee,qe,Ve,$e)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function qt(Ee,be,$e,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 Ve=GGBAppletUtils.getScale(ge,Ee,qe);$e.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement($e,Ve),$e.parentNode.style.width=ge.width*Ve+"px",$e.parentNode.style.height=ge.height*Ve+"px"):(GGBAppletUtils.scaleElement($e,1),$e.parentNode.style.width=ge.width+"px",$e.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 At=function(Ee,be,$e,qe){Dt(Ee,be,!0);for(var Ve=function(){var Qe=[];for(de=0;de<Ee.childNodes.length;de++)Qe.push(Ee.childNodes[de]);if(window.GGBT_wsf_view){var mt=window.GGBT_wsf_view.renderFullScreen(Ee,be.id),it=document.getElementById("fullscreencontainer"),Bt=jQuery(Ee).find(".fullscreencontent");Bt.length>0?(mt.remove(),Bt.attr("id","fullscreencontent").show(),jQuery(it).append(Bt),window.dispatchEvent(new Event("resize"))):st(mt,be,!1),window.GGBT_wsf_view.launchFullScreen(it)}else Ie=qe,st(Ee,be,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)Ee.removeChild(Qe[de])},ut=Ee.getElementsByClassName("ggb_preview_play"),de=0;de<ut.length;de++)ut[de].addEventListener("click",Ve,!1),ut[de].addEventListener("ontouchstart",Ve,!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");}',$e=document.createElement("style");$e.styleSheet?$e.styleSheet.cssText=be:$e.appendChild(document.createTextNode(be)),document.getElementsByTagName("head")[0].appendChild($e)}return Ee},Wt=function(Ee,be,$e,qe){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=Ee-2+"px",Ve.style.height=be-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var ut="lightgrey";$e!==void 0&&($e==="none"?ut="transparent":ut=$e),Ve.style.border="1px solid "+ut;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,mt,it;if(!qe){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,mt=360,mt>Ee/4*3&&(mt=Ee/4*3),it=mt/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",mt),Qe.setAttribute("height",it);var Bt=(Ee-mt)/2,ze=(be-it)/2;Qe.style.left=Bt+"px",Qe.style.top=ze+"px",Ve.appendChild(Qe)}}return Ve.appendChild(de),Ve},vn=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Vt=["web","webSimple","web3d","tablet","tablet3d","phone"],en=function(Ee,be){if(ne=Ee,be){sn(ne,!0);return}var $e=!Pe;if($e){var qe=te(ne);!isNaN(qe)&&qe<4.4&&($e=!1)}var Ve,ut;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ne.indexOf("//");de>0?ut=ne:de===0?ut=Ve+ne:ut="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(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&$e&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!ke(ge.showToolBar)&&!ke(ge.showMenuBar)&&!ke(ge.showAlgebraInput)&&!ke(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?ut+="webSimple/":ut+="web3d/",sn(ut,!1)},sn=function(Ee,be){if(Ee.requirejs){Ge=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Ge=Ee,be===null&&(be=Ee.indexOf("http")===-1),We=be,a="web.nocache.js",y=!1;var $e=Ge.split("/");$e.length>1&&(!be&&$e[$e.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Vt.indexOf($e[$e.length-2])>=0&&(a=$e[$e.length-2]+".nocache.js")),$e=Ee.split("/"),ne=$e[$e.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."),en("5.0",be))},Bn=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;je!==null?Ee=je:parseFloat(Ee)<5&&(Ee="5.0"),en(Ee,!1),me!==null&&sn(me,We),fe=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function tt(fe,je){je!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+je+","+je+")",fe.style.webkitTransform="scale("+je+","+je+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ge(fe,je,me,Je,Oe,Ce){var Ge=null;if(Ce!=null&&Ce!="")for(var We=fe.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+Ce+" ")>-1){Ge=We;break}else We=We.parentNode;var Ie=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ge)Ie=Ge.offsetWidth,ne=Math.max(Je?Ge.offsetWidth:0,Ge.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return fe&&((me===void 0||!me)&&je>0&&je+y<Ie?Ie=je:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=E)),{width:Ie,height:ne}}function ae(fe,je,me,Je,Oe){if(fe.isScreenshoGenerator)return 1;var Ce=Je!==void 0&&Je,Ge=fe.noScaleMargin!=null&&fe.noScaleMargin,We=function(ee){return ee&&ee!=="false"},Ie=We(fe.autoHeight),ne=ge(je,fe.width,me,Ie,Ce&&window.GGBT_wsf_view||Ge,Oe),a=parseInt(ne.width),y=fe.width,x=fe.height;if(y===void 0){var b=je.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ce?1:ne.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Pe(fe,je,me){var Je=1,Oe,Ce=!1;if(fe.hasOwnProperty("allowUpscale")&&(Ce=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Je=parseFloat(fe.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(Ce=!0)),je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Oe=ae(fe,je,Ce,me,fe.scaleContainerClass);else return Je;return Ce&&(!fe.hasOwnProperty("scale")||Je===1)?Oe:Math.min(Je,Oe)}function Ze(fe){var je=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=fe.getBoundingClientRect(),Oe=(je-Je.width)/2,Ce=(me-Je.height)/2;Ce<0&&(Ce=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?fe.style.left="40px":fe.style.left=Oe+"px",fe.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?fe.style.top="40px":fe.style.top=Ce+"px",fe.style.left=Oe+"px")}function Ae(fe,je){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(je.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Je=Pe(je,fe);xe()&&me.setAttribute("data-param-scale",Je);for(var Oe=null,Ce=0;Ce<fe.childNodes.length;Ce++)if(fe.childNodes[Ce].className!==void 0&&fe.childNodes[Ce].className.match(/^applet_scaler/)){Oe=fe.childNodes[Ce];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ge=je.id!==void 0?je.id:"ggbApplet",We=window[Ge];(We==null||!We.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Oe.parentNode.style.width=je.width*Je+"px",Oe.parentNode.style.height=je.height*Je+"px",tt(Oe,Je)):(tt(Oe,1),Oe.parentNode.style.width=je.width+"px",Oe.parentNode.style.height=je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ae,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 Ae(){if(!Ze){if(!Pe())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var fe=setInterval(function(){Ae()},$)}function ge(ae){var Pe=u(),Ze=Pe.body,Ae=Pe.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=ae,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(Ae)}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 je=fe.lastIndexOf(rb);je==-1&&(je=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Je=fe.lastIndexOf(tb,Math.min(me,je));return Je>=O?fe.substring(O,Je+P):W}function tt(fe){if(!fe.match(/^\w+:\/\//)){var je=o.createElement(ub);je.src=fe+vb,fe=xe(je.src)}return fe}function ge(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function ae(){for(var fe=o.getElementsByTagName(_),je=O;je<fe.length;++je)if(fe[je].src.indexOf(xb)!=-1)return xe(fe[je].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 Ae=ge();return Ae==W&&(Ae=ae()),Ae==W&&(Ae=Pe()),Ae==W&&Ze()&&(Ae=xe(o.location.href)),Ae=tt(Ae),Ae}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 je=ae[fe](),me=ge[fe];if(je in me)return je;var Je=[];for(var Oe in me)Je[me[Oe]]=Oe;throw r&&r(fe,Je,je),null}if(__gwt_isKnownPropertyValue=function(fe,je){return je in ge[fe]},webModule.__getPropMap=function(){var fe={};for(var je in ge)ge.hasOwnProperty(je)&&(fe[je]=Pe(je));return fe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var Ae=Ze.indexOf(Db);Ae!=-1&&(tt=parseInt(Ze.substring(Ae+P),$),Ze=Ze.substring(O,Ae))}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})()},46699:function(xe,tt,ge){"use strict";ge.d(tt,{Ax:function(){return Ae},Ds:function(){return fe},KI:function(){return me},SI:function(){return Ze},f1:function(){return Pe}});var ae=ge(346);function Pe(Je){let Oe=!0;if(Je.length>0){for(let Ce=0;Ce<Je.length;Ce++)if(Je[Ce].compile_success==0||!Je[Ce].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ze(Je,Oe=""){let Ce=[];for(let Ge=0;Ge<Je.length;Ge++){let We=Je[Ge],Ie=Oe?`${Oe}/${We.name}`:`${We.name}`;Ce.push({title:We.name,type:We.type,isLeaf:We.type!=="tree",key:Ie})}return Ce}function Ae(Je,Oe,Ce){for(let Ge=0;Ge<Je.length;Ge++){let We=Je[Ge];if(We.key===Oe){We.children=Ce;break}We.children&&Ae(We.children,Oe,Ce)}return Je}function fe(Je,Oe,Ce){let Ge;return function(){let We=this,Ie=arguments,ne=function(){Ge=null,Ce||Je.apply(We,Ie)},a=Ce&&!Ge;clearTimeout(Ge),Ge=setTimeout(ne,Oe),a&&Je.apply(We,Ie)}}const je=!0,me=ae.Z.API_SERVER},9507:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Ge}});var ae=ge(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ge(92310),Ae=ge.n(Ze),fe=ge(71418),je=ge(2859),me=ge(38986),Je=ge(51257),Oe=(We,Ie,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(We,Ie)).next())}),Ge=({data:We,className:Ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ue,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&Me()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[We==null?void 0:We.visible]);const Me=()=>Oe(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const At=yield(0,Je.ZJ)(We==null?void 0:We.src);z.current.src="",z.current.src=At,z.current.onload=function(){qt()},ie(!1),se("")}),ke=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},st=At=>Oe(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const kt=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:At.dataUrl}});kt!=null&&kt.id&&!E?(yield(0,me.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:kt==null?void 0:kt.id,settings:JSON.stringify(At.state)}})).status===0&&x():kt!=null&&kt.id&&x(kt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),Dt=()=>{const At=document.querySelector('a[href="https://markerjs.com/"]');At&&At.parentNode&&(At.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(Wt=>{const vn=document.querySelector(Wt.name);vn&&vn.setAttribute("title",Wt.title)})},qt=()=>{ee.current=new je.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",st),ee.current.addEventListener("beforeclose",ke),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),We!=null&&We.snapshotData&&ee.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Dt()},300)};return ae.createElement(ae.Fragment,null,(We==null?void 0:We.visible)&&ae.createElement(fe.Z,{spinning:re,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ae()(Pe.imageDimensions,Ie,ne?Pe.fullWidth:""),style:a},ae.createElement("img",{className:Pe.img,ref:z}))))}},76562:function(xe,tt,ge){"use strict";var ae=ge(59301),Pe=ge(95237),Ze=ge(43604),Ae=ge(99313),fe=ge(3113),je=ge(91842),me=ge(99587),Je=ge(48136),Oe=ge(59301);const Ce=(0,ae.forwardRef)(({callback:Ge,showSaveButton:We,value:Ie=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(je.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},Oe.createElement("h1",null,oe.name),Oe.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Oe.createElement(Ze.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Oe.createElement(je.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:me.Z.item},Oe.createElement("div",null,Oe.createElement(je.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Oe.createElement(Ze.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Oe.createElement(je.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ge&&Ge(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Oe.createElement("div",{className:me.Z.mathWrap},Oe.createElement(Ae.default,{defaultActiveKey:"1",items:E}),Oe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),We&&Oe.createElement("div",{className:me.Z.button},Oe.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=Ce},69720:function(xe,tt,ge){"use strict";ge.d(tt,{h:function(){return ee}});var ae=ge(59301),Pe=ge(57809),Ze=ge(78241),Ae=ge(3113),fe=ge(89780),je=ge.n(fe),me=ge(8336),Je=ge(12469),Oe=Object.defineProperty,Ce=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Oe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ie.call(oe,re)&&a(te,re,oe[re]);if(We)for(var re of We(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ce(te,Ge(oe));const b=Pe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};tt.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ue(Me){ie(z[Me][1])}function se(Me){te(Me)}return ae.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:Me=>Me.parentNode,onChange:ue},Object.keys(z).map(Me=>ae.createElement(b,{key:Me,value:Me},z[Me][0])))),ae.createElement(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(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ue=(0,ae.useRef)(),[se,Me]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let ke=function(st){const Dt=st.getValue();oe&&oe(Dt)};return se.on("change",ke),()=>{se.off("change",ke)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(ue.current&&!se){const ke=je().fromTextArea(ue.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Me(ke)}},[ue.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},39793:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Jn}});var ae=ge(59301),Pe=ge(89780),Ze=ge.n(Pe),Ae=ge(76374),fe=ge(8336),je=ge(6313),me=ge(25717),Je=ge(99498),Oe=ge(25419),Ce=ge(67549),Ge=ge(91842),We=({value:he="",className:ve,showTextOnly:ce,showLines:et,style:pt={}})=>{const ct=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},Ie=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(he,ve,ce)=>ve in he?ne(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,ee=(he,ve)=>{for(var ce in ve||(ve={}))b.call(ve,ce)&&z(he,ce,ve[ce]);if(x)for(var ce of x(ve))E.call(ve,ce)&&z(he,ce,ve[ce]);return he},te=(he,ve)=>a(he,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:he,title:ve,icon:ce,actionName:et,className:pt="",children:ct}){function nn(){he(et)}return Ie.createElement("a",{title:ve,className:pt,onClick:nn},Ie.createElement("i",{className:`${ce}`}),ct)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:ce,onActionCallback:et,fullScreen:pt,insertTemp:ct,hidetoolBar:nn,extraUse:Mt})=>{const Zt=[...oe,{title:`${he?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${he?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!nn&&Zt.map((pn,Rn)=>Ie.createElement("li",{key:Rn},pn.actionName?Ie.createElement(re,te(ee({},pn),{onActionCallback:et})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ct&&Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ct}`,onActionCallback:et},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Mt&&Ie.createElement("li",null,Mt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(re,{icon:`${pt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},ue=ge(91558),se=ge(78241),Me=ge(92832),ke=ge(3113),st=Object.defineProperty,Dt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,vn=(he,ve,ce)=>ve in he?st(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(At)for(var ce of At(ve))Wt.call(ve,ce)&&vn(he,ce,ve[ce]);return he},en=(he,ve)=>Dt(he,qt(ve));const sn={labelCol:{span:4},wrapperCol:{span:20}};var Bn=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(se.default,en(Vt({},sn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Me.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Me.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},An=ge(69720),Ee=ge(17077),be=ge(43418),$e=ge(95237),qe=ge(9507),Ve=ge(59301),ut=({callback:he,onCancel:ve})=>{const ce=document.createElement("canvas"),et=ce.getContext("2d");ce.width=1e3,ce.height=800,et.fillStyle="#ffffff",et.fillRect(0,0,ce.width,ce.height);const pt=ce.toDataURL("image/png");return Ve.createElement(be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement($e.Z,{style:{height:"100vh"}},Ve.createElement(qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pt,visible:!0,title:String(Date.now())},onOk:ct=>{he({src:ct.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(Mt){Mt instanceof go.Link||ce.push(Mt)});for(var et=0;et<ce.length-1;et++){var pt=ce[et],ct=pt.actualBounds.y+pt.actualBounds.height+he,nn=ce[et+1];nn.move(new go.Point(pt.actualBounds.x,ct))}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(Mt){Mt instanceof go.Link||ce.push(Mt)});for(var et=0;et<ce.length-1;et++){var pt=ce[et],ct=pt.actualBounds.x+pt.actualBounds.width+he,nn=ce[et+1];nn.move(new go.Point(ct,pt.actualBounds.y))}ve.commitTransaction("align Row")},Qe.prototype.canRotate=function(he){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},Qe.prototype.rotate=function(he){he===void 0&&(he=90);var ve=this.diagram;ve.startTransaction("rotate "+he.toString());var ve=this.diagram;ve.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=he)}),ve.commitTransaction("rotate "+he.toString())},Qe.prototype.pullToFront=function(){var he=this.diagram;he.startTransaction("pullToFront");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var et=0;ce.parts.each(function(pt){if(!pt.isSelected){var ct=pt.zOrder;isNaN(ct)?pt.zOrder=0:et=Math.max(et,ct)}}),ve.set(ce,et)}),he.selection.each(function(ce){Qe._assignZOrder(ce,ve.get(ce.layer)+1)}),he.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var he=this.diagram;he.startTransaction("pushToBack");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var et=0;ce.parts.each(function(pt){if(!pt.isSelected){var ct=pt.zOrder;isNaN(ct)?pt.zOrder=0:et=Math.min(et,ct)}}),ve.set(ce,et)}),he.selection.each(function(ce){Qe._assignZOrder(ce,ve.get(ce.layer)-1-Qe._findGroupDepth(ce))}),he.commitTransaction("pushToBack")},Qe._assignZOrder=function(he,ve,ce){ce===void 0&&(ce=he),he.layer===ce.layer&&(he.zOrder=ve),he instanceof go.Group&&he.memberParts.each(function(et){Qe._assignZOrder(et,ve+1,ce)})},Qe._findGroupDepth=function(he){if(he instanceof go.Group){var ve=0;return he.memberParts.each(function(ce){ve=Math.max(ve,Qe._findGroupDepth(ce))}),ve+1}else return 0},Qe.prototype.doKeyDown=function(){var he=this.diagram;if(he!==null){var ve=he.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var he=new Array;return this.diagram.nodes.each(function(ve){he.push(ve)}),this.diagram.parts.each(function(ve){he.push(ve)}),he},Qe.prototype._arrowKeyMove=function(){var he=this.diagram,ve=he.lastInput,ce=0,et=0;if(ve.control||ve.meta)ce=1,et=1;else if(he.grid!==null){var pt=he.grid.gridCellSize;et=pt.width,ce=pt.height}he.startTransaction("arrowKeyMove"),he.selection.each(function(ct){ve.key==="Up"?ct.move(new go.Point(ct.actualBounds.x,ct.actualBounds.y-ce)):ve.key==="Down"?ct.move(new go.Point(ct.actualBounds.x,ct.actualBounds.y+ce)):ve.key==="Left"?ct.move(new go.Point(ct.actualBounds.x-et,ct.actualBounds.y)):ve.key==="Right"&&ct.move(new go.Point(ct.actualBounds.x+et,ct.actualBounds.y))}),he.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var he=this.diagram,ve=he.lastInput,ce=null;ve.key==="Up"?ce=this._findNearestPartTowards(270):ve.key==="Down"?ce=this._findNearestPartTowards(90):ve.key==="Left"?ce=this._findNearestPartTowards(180):ve.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(ve.shift?ce.isSelected=!0:ve.control||ve.meta?ce.isSelected=!ce.isSelected:he.select(ce))},Qe.prototype._findNearestPartTowards=function(he){var ve=this.diagram.selection.first();if(ve===null)return null;for(var ce=ve.actualBounds.center,et=this._getAllParts(),pt=1/0,ct=ve,nn=0;nn<et.length;nn++){var Mt=et[nn];if(Mt!==ve&&Mt.canSelect()){var Zt=Mt.actualBounds.center,pn=ce.directionPoint(Zt),Rn=this._angleCloseness(pn,he);if(Rn<=45){var Ye=ce.distanceSquaredPoint(Zt);Ye*=1+Math.sin(Rn*Math.PI/180),Ye<pt&&(pt=Ye,ct=Mt)}}}return ct},Qe.prototype._angleCloseness=function(he,ve){return Math.min(Math.abs(ve-he),Math.min(Math.abs(ve+360-he),Math.abs(ve-360-he)))},Qe.prototype._arrowKeyTree=function(){var he=this.diagram,ve=he.selection.first();if(ve instanceof go.Node){var ce=he.lastInput;if(ce.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)he.commandHandler.canExpandTree(ve)&&he.commandHandler.expandTree(ve);else{var et=this._sortTreeChildrenByY(ve).first();et!==null&&he.select(et)}}else if(ce.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)he.commandHandler.canCollapseTree(ve)&&he.commandHandler.collapseTree(ve);else{var pt=ve.findTreeParentNode();pt!==null&&he.select(pt)}else if(ce.key==="Up"){var pt=ve.findTreeParentNode();if(pt!==null){var ct=this._sortTreeChildrenByY(pt),nn=ct.indexOf(ve);if(nn>0){for(var Mt=ct.elt(nn-1);Mt!==null&&Mt.isTreeExpanded&&!Mt.isTreeLeaf;){var Zt=this._sortTreeChildrenByY(Mt);Mt=Zt.last()}Mt!==null&&he.select(Mt)}else he.select(pt)}}else if(ce.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var et=this._sortTreeChildrenByY(ve).first();et!==null&&he.select(et)}else for(;ve!==null;){var pt=ve.findTreeParentNode();if(pt===null)break;var ct=this._sortTreeChildrenByY(pt),nn=ct.indexOf(ve);if(nn<ct.length-1){he.select(ct.elt(nn+1));break}else ve=pt}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 pt=ce.location,ct=et.location;return pt.y<ct.y?-1:pt.y>ct.y?1:pt.x<ct.x?-1:pt.x>ct.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 mt=Qe,it=ge(63720),Bt=ge(43604),ze=ge(38986),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),He=(he,ve,ce)=>new Promise((et,pt)=>{var ct=Zt=>{try{Mt(ce.next(Zt))}catch(pn){pt(pn)}},nn=Zt=>{try{Mt(ce.throw(Zt))}catch(pn){pt(pn)}},Mt=Zt=>Zt.done?et(Zt.value):Promise.resolve(Zt.value).then(ct,nn);Mt((ce=ce.apply(he,ve)).next())});function Re({onCancel:he,callback:ve}){let ce=(0,ae.useRef)(),et=(0,ae.useRef)(),pt=(0,ae.useRef)(),ct=(0,ae.useRef)(!1);const nn=(0,ae.useRef)(!1),[Mt,Zt]=(0,ae.useState)(0);function pn(){const Ye=de.bx.make,Ut={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ce.current=new de.S0(et.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xe=>{var dt=Xe.diagram.commandHandler.addTopLevelParts(Xe.diagram.selection,!0);dt||Xe.diagram.currentTool.doCancel()},commandHandler:Ye(mt),"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=Ye(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Ye(de.bn,{name:"SHAPE",fill:Ut.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function In(Xe,dt){var yt=(gt,_t)=>{gt.handled=!0,gt.diagram.model.commit(Ht=>{var Gt=_t.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=Ht.copyNodeData(Gt.data);Ht.setGroupKeyForNodeData(ln,Ht.getGroupKeyForNodeData(Gt.data)),Ht.addNodeData(ln);var oa={from:Gt.key,to:Ht.getKeyForNodeData(ln)};Ht.addLinkData(oa);var Qn=gt.diagram.findNodeForData(ln);Qn.location=dn,gt.diagram.select(Qn),setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()},20)})};return Ye(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:Ut.white,strokeWidth:4,mouseEnter:(gt,_t)=>_t.fill="dodgerblue",mouseLeave:(gt,_t)=>_t.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function Zn(Xe){return Ye(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(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=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),In(de.z6.Top,"TriangleUp"),In(de.z6.Left,"TriangleLeft"),In(de.z6.Right,"TriangleRight"),In(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function wn(Xe,dt){return(yt,gt)=>{yt.handled=!0,yt.diagram.model.commit(_t=>{_t.set(gt.part.adornedPart.data,Xe,dt)})}}function le(Xe,dt){return dt||(dt="color"),Ye(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:wn(dt,Xe),contextClick:wn(dt,Xe)})}function Be(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Ut.white,"fill"),le(Ut.beige,"fill"),le(Ut.extralightblue,"fill"),le(Ut.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Ut.lightgray,"fill"),le(Ut.lightgreen,"fill"),le(Ut.lightblue,"fill"),le(Ut.lightred,"fill")))]}function Fe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Ut.black),le(Ut.green),le(Ut.blue),le(Ut.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",le(Ut.white),le(Ut.magenta),le(Ut.purple),le(Ut.orange)))]}function Ne(Xe,dt){return dt||(dt="thickness"),Ye(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:wn(dt,Xe),contextClick:wn(dt,Xe)})}function Ue(Xe,dt){return dt||(dt="dash"),Ye(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:wn(dt,Xe),contextClick:wn(dt,Xe)})}function Ke(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ne(1),Ne(2),Ne(3),Ne(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ue(null),Ue([2,4]),Ue([4,4])))]}function _e(Xe,dt){return dt||(dt="figure"),Ye(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:wn(dt,Xe),contextClick:wn(dt,Xe)})}ce.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Rectangle"),_e("RoundedRectangle"),_e("Ellipse"),_e("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Parallelogram2"),_e("ManualOperation"),_e("Procedure"),_e("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",_e("Terminator"),_e("CreateRequest"),_e("Document"),_e("TriangleDown"))),Be(),Fe(),Ke()),ce.current.groupTemplate=Ye(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),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:Ut.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Ye("ContextMenu",Be(),Fe(),Ke()),ce.current.linkTemplate=Ye(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Xe=>Xe>=1?10:0),new de.KX("toShortLength","dir",Xe=>Xe>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Xe=>Xe===1)),Ye(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",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))),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",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))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:De(2)},new de.KX("pathPattern","thickness",De)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function De(Xe){return Ye(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"),Ye(de.bn,{geometryString:dt,margin:2,background:"transparent",mouseEnter:(yt,gt)=>gt.background="dodgerblue",mouseLeave:(yt,gt)=>gt.background="transparent",click:wn("dir",Xe),contextClick:wn("dir",Xe)})}function wt(Xe){var dt=(yt,gt)=>{yt.handled=!0,yt.diagram.model.commit(_t=>{var Ht=gt.part.adornedPart;_t.set(Ht.data,Xe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Xe?Ht.toNode:Ht.fromNode).invalidateConnectedLinks()})};return Ye(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 _t=(Ht,Gt)=>{Ht.handled=!0,Ht.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 Ye(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:(Ht,Gt)=>Gt.background="dodgerblue",mouseLeave:(Ht,Gt)=>Gt.background="transparent",click:_t,contextClick:_t})}ce.current.linkTemplate.contextMenu=Ye("ContextMenu",Fe(),Ke(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",bt(0),bt(1),bt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",wt(!1),Le(de.z6.Top,!1),Le(de.z6.Left,!1),Le(de.z6.Right,!1),Le(de.z6.Bottom,!1)),Ye(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 Kt=["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),Kt.indexOf(Xe)>=0}var Fn=new de.YI(pt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(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(_t){_t.set(yt.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Fn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Ye(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Rn=()=>He(this,null,function*(){var Ye=ce.current.makeImage();const Ut=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:Ut.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{pn()},500),Zt(Mt+1),()=>{ce.current=null}),[]),pe.createElement("div",{ref:nn,className:ct.current?`${ye.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Mt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement($e.Z,null,pe.createElement(Bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Bt.Z,{onClick:()=>{var Ye,Ut,In=ce.current.selection.first();if(ct.current=!ct.current,document.activeElement&&In){let Zn=(Ut=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:Ut.trim();typeof Zn=="string"&&ce.current.model.commit(function(wn){wn.set(In.data,"text",Zn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Zt(Mt+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:pt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:et,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(ke.ZP,{size:"large",onClick:Rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var nt=Re,ft=ge(5112),vt=ge(5871);const Nt=ft.ZP.Group,zt={margin:"0 8px"};var $t=({callback:he,onCancel:ve})=>{function ce(et){he(et)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:zt},"\u884C\u6570"),ae.createElement(se.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(se.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(se.default.Item,{name:"align"},ae.createElement(Nt,null,ae.createElement(ft.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ft.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ft.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ft.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Ot=ge(78673),cn=ge(43001),Sn=ge.n(cn),Lt=(0,ae.forwardRef)(({use3d:he,width:ve,height:ce,callback:et,showSaveButton:pt},ct)=>{const nn=(0,ae.useRef)(),Mt=(0,ae.useRef)(),[Zt,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)(()=>{Mt.current=new(Sn())(Rn.current,!0),window.onload=function(){Mt.current.inject("applet_container")}},[]);const Ye=()=>{var Ut=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(Ut),Ut};return(0,ae.useEffect)(()=>{Rn.current.appName=Zt?"3D":"graphing",Mt.current.inject("applet_container")},[Zt]),(0,ae.useEffect)(()=>{pn(he)},[he]),(0,ae.useImperativeHandle)(ct,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:nn}),ae.createElement($e.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:Zt,onChange:Ut=>pn(Ut)})),ae.createElement(Bt.Z,null,ae.createElement(ke.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Et=ge(76562),Se=ge(1012),we=ge(8591);const Te="link",at="upload-image",rt="add-flowchart",Ft="draw-image",Ct="add-flowchart",Pt="code-block",xt="add-table",jt="------------",Rt={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var Xt=ge(37808),mn=(he,ve,ce)=>new Promise((et,pt)=>{var ct=Zt=>{try{Mt(ce.next(Zt))}catch(pn){pt(pn)}},nn=Zt=>{try{Mt(ce.throw(Zt))}catch(pn){pt(pn)}},Mt=Zt=>Zt.done?et(Zt.value):Promise.resolve(Zt.value).then(ct,nn);Mt((ce=ce.apply(he,ve)).next())});function hn(){}let bn=0;const tn=1e4,Yt="\u2581",fn="@\u2581\u2581@",xn="@\u2581@",En=`
|
|
**\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 zn(he){return/^\d+$/.test(he)?`${he}px`:he}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Te]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\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:pt=!1,isFocus:ct=!1,watch:nn,insertTemp:Mt,mode:Zt="markdown",id:pn="markdown-editor-id",showResizeBar:Rn=!1,noStorage:Ye=!1,showNullButton:Ut=!1,showNullProgramButton:In=!1,hidetoolBar:Zn=!1,fullScreen:wn=!1,onBlur:le,onCMBeforeChange:Be,onFullScreen:Fe,className:Ne="",disablePaste:Ue=!1,disabled:Ke=!1,disabledFill:_e=!1,placeholder:De="",values:bt="",extraUse:wt})=>{const[Le,Jt]=(0,ae.useState)(null),[Kt,un]=(0,ae.useState)(he),[Fn,Xe]=(0,ae.useState)(nn),[dt,yt]=(0,ae.useState)(wn),[gt,_t]=(0,ae.useState)(""),[Ht,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,Cn]=(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 ht;const ot=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(ht=ot==null?void 0:ot.attachments)!=null&&ht.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 ht=window.scrollY||window.pageYOffset;un(bt),Le==null||Le.setValue(bt),window.scrollTo(0,ht)},[bt]),(0,ae.useEffect)(()=>{Fe==null||Fe(dt)},[dt]),(0,ae.useEffect)(()=>{if(ta.current){let ht=function(lt,St){var on;if(Ue){St.preventDefault();return}const On=St.clipboardData;if(On){const kn=On.types.toString(),Tn=On.items;if(kn==="Files"||On.types.indexOf("Files")>-1){if(St.preventDefault(),Zt=="stex")return;try{let _n=Tn[1];((on=Tn[0])==null?void 0:on.kind)==="file"&&(_n=Tn[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(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((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:Zt,lineNumbers:!pt,lineWrapping:!0,value:he,autoCloseTags:!In,autoCloseBrackets:!0});return ot.on("keyup",function(lt,St){St.keyCode===8&&(lt.getValue()==""?ot.setOption("placeholder",De):ot.setOption("placeholder",null))}),ot.on("keydown",function(lt,St){if(St.keyCode===8){var on=Tt(lt);on&&St.preventDefault()}}),ct&&ot.focus(),ot.on("paste",ht),ot.on("dragleave",function(lt,St){ga.current.classList.remove("mouse-hover-md")}),Ke&&ot.on("beforeChange",function(lt,St){(St.origin==="paste"||St.origin==="+input")&&St.cancel()}),Jt(ot),()=>{ot.off("paste",ht)}}},[]);const ha=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(ht){console.log(ht,"---- to set md editor body height")}},[dn,ga,dt]);(0,ae.useEffect)(()=>{function ht(){let ot=new Ae.Z(lt=>{for(let St of lt)(St.target.offsetHeight>0||St.target.offsetWidth>0)&&(ha(),Le.setSize("100%","100%"),Le.refresh())});return ot.observe(ta.current.parentElement),ot}if(Le){const ot=ht();return()=>{var lt,St;(lt=ta.current)!=null&<.parentElement&&ot.unobserve((St=ta.current)==null?void 0:St.parentElement)}}},[Le,ha]),(0,ae.useEffect)(()=>{if(Le){let ht=[];for(const[ot,lt]of Object.entries(Wn)){let St={[ot]:()=>{Gn(lt)}};ht.push(St),Le.addKeyMap(St)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ot of ht)Le.removeKeyMap(ot)}}},[Le]),(0,ae.useEffect)(()=>{wn!==dt&&yt(wn)},[wn]),(0,Xt.Z)(()=>{if(!Ye&&Ht>0){let ht=new Date().getTime(),ot=window.sessionStorage.getItem(pn);ht>=Ht+tn&&(!ot||ot!==Kt)&&(window.sessionStorage.setItem(pn,Kt),Qn(!0))}},tn),(0,ae.useEffect)(()=>{Xe(nn)},[Le,nn]),(0,ae.useEffect)(()=>{Le&&ct&&Le.focus()},[Le,ct]),(0,ae.useEffect)(()=>{if(Fn&&Le){let ht=function(lt){let St=lt.target;if(aa.current){let on=St.scrollTop/St.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*on}};const ot=Le.getScrollerElement();return ot.addEventListener("scroll",ht),()=>{ot.removeEventListener("scroll",ht)}}},[Le,Fn]),(0,ae.useEffect)(()=>{if(Le&&Be){let ht=function(ot,lt){Be(ot,lt)};return Le.on("beforeChange",ht),()=>{Le.off("beforeChange",ht)}}},[Le,Be]),(0,ae.useEffect)(()=>{if(Le&&le){let ht=function(){le(Le.getValue())};return Le.on("blur",ht),()=>{Le.off("blur",ht)}}},[Le,le]);function Tt(ht,ot){var lt=ht.getDoc(),St=lt.getCursor(),on=lt.getLine(St.line),On=on.charAt(St.ch-1),kn=on.lastIndexOf("@\u2581@",St.ch),Tn=on.lastIndexOf("@\u2581\u2581@",St.ch),_n=kn>Tn?kn:Tn,jn=kn>Tn?3:4;if(fn.indexOf(On)===-1)return null;if(console.log("change1:",ot,ht,on,St,_n,kn,Tn,On),_n>=0&&St.ch-_n<5){var sa=_n+jn;return lt.replaceRange("",{line:St.line,ch:_n},{line:St.line,ch:sa}),{line:St.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(Le){let ht=function(ot,lt){const St=ot.getValue();un(St),Gt(new Date().getTime()),ot.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(In?ve(St,$n(St)):ve(St))};return Le.on("change",ht),()=>{Le.off("change",ht)}}},[Le,ve]),(0,ae.useEffect)(()=>{if(Le)if(he==null)Le.setValue(""),un("");else{const ht=window.scrollY||window.pageYOffset;he!==Le.getValue()&&(Le.setValue(he),un(he),Le.setCursor(Ke?1:Le.lineCount(),0),window.scrollTo(0,ht))}},[Le,he]);const Gn=(0,ae.useCallback)(ht=>{const ot=Le.getCursor(),lt=Le.getSelection();let St=lt.split(`
|
|
`);switch(ht){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 _t("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(St.map(on=>on===""?"":`- ${on}`).join(`
|
|
`)),Le.focus();case"list-ol":return lt===""?Le.replaceSelection("1. "+lt):Le.replaceSelection(St.map((on,On)=>on===""?"":`${On+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(xn),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(En),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Xe(!Fn),Le.focus();case"trigger-full-screen":return yt(!dt),Le.focus();case Te:_t(Te);return;case Pt:_t(Pt);return;case at:_t(at);return;case Ft:_t(Ft);return;case"maths-latex":_t("maths-latex");return;case rt:_t(rt);return;case xt:_t(xt);return;default:throw new Error}},[Le,Fn,dt]),Mn=(0,ae.useCallback)((ht,ot)=>{var lt,St,on,On,kn,Tn;switch(_t(""),gt){case Te:const{title:It,link:an}=ht;return Le.replaceSelection(`[${It}](${an})`),Le.focus();case Pt:const{language:Ln,content:Qt}=ht;return Le.replaceSelection(["```"+Ln,Qt,"```"].join(`
|
|
`)),Le.focus();case"maths-latex":for(var _n=atob(ht),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("`$$"+ht+"$$`");break;case at:case Ft:case Ct:const{src:gn,alt:Hn}=ht,yn=ot,fa=(on=(St=(lt=yn==null?void 0:yn.name)==null?void 0:lt.split("."))==null?void 0:St.pop)==null?void 0:on.call(St);return((On=yn==null?void 0:yn.type)==null?void 0:On.indexOf("image"))>-1||!(yn!=null&&yn.type)?yn.align||yn.width?Le.replaceSelection(`<p style="text-align:${yn.align||"initial"}"><img width="${yn.width?yn.width+"%":"initial"}" src="${gn}" alt="${Hn||""}" /></p>`):Le.replaceSelection(`<img width="100%" src="${gn}" alt="${Hn||""}" />`):((kn=yn==null?void 0:yn.type)==null?void 0:kn.indexOf("video"))>-1?Le.replaceSelection(`<video width="100%" controls src="${gn}"></video>`):((Tn=yn==null?void 0:yn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Le.replaceSelection(`<a href="${gn}?type=${yn.type}&disposition=inline" target="_blank">${yn.name}</a>`):rn.includes(fa)?Le.replaceSelection(`<a href="${gn}?type=office&disposition=inline" target="_blank">${yn.name}</a>`):Le.replaceSelection(`[${yn.name}](${gn})`),Le.focus();case xt:const{row:ua,col:wa,align:Ca}=ht;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&xa.push(Rt[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 Te:return ae.createElement(Bn,{callback:Mn,onCancel:Xn});case Pt:return ae.createElement(An.Z,{callback:Mn,onCancel:Xn});case at:return ae.createElement(Ee.Z,{callback:Mn,onCancel:Xn});case rt:return ae.createElement(nt,{callback:Mn,onCancel:Xn});case xt:return ae.createElement($t,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(Lt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(Et.Z,{showSaveButton:!0,callback:Mn});default:return null}},[gt]);function Xn(){_t("")}(0,ae.useEffect)(()=>{if(ia.current){let ht=function(kn){on=!0,On=kn.pageY},ot=function(){on=!1},lt=function(kn){if(on){let Tn=kn.pageY-On;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let _n=et+Tn+"px";ln(_n)}},St=ia.current,on=!1,On=0;return St.addEventListener("mousedown",ht),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",ot),()=>{St.removeEventListener("mousedown",ht),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",ot)}}},[Le,ia]),(0,ae.useEffect)(()=>{ln(et)},[et]);const ra=zn(ce),va=zn(dn),pa={width:ra,height:va},Dn=(0,ae.useMemo)(()=>{if(Ht){let ht=new Date(Ht),ot=ht.getHours(),lt=ht.getMinutes(),St=ht.getSeconds();return ot=ot<10?"0"+ot:ot,lt=lt<10?"0"+lt:lt,St=St<10?"0"+St:St,`${ot}:${lt}:${St}`}return 0},[Ht]),$n=ht=>{const ot=[];if(In){let lt=-1;ht=ht.replace(/(@▁▁@|@▁@)/g,function(St,on,On){ot.push({multiLine:St!==xn})})}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 ht=document.getElementsByClassName("markdown-popup-form")[0],ot=window.innerWidth/2-ht.offsetWidth/2,lt=window.innerHeight/2-ht.offsetHeight/2;da(ot),Cn(lt)},0)},[gt]);const ya=ht=>{ht.preventDefault();const ot=ht.clientX-Pa,lt=ht.clientY-Vn;document.body.onmousemove=St=>{let on=St.clientX-ot,On=St.clientY-lt;const kn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-kn.offsetWidth,_n=window.innerHeight-kn.offsetHeight;on=Math.max(0,Math.min(on,Tn)),On=Math.max(0,Math.min(On,_n)),ba(St.clientX,St.clientY,ot,lt)&&(da(on),Cn(On))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(ht,ot,lt,St)=>{const on=document.body.clientHeight,On=document.body.clientWidth;return ht<20&<>ht||ht>On-20&<<ht||ot<20&&St>ot||ot>on-20&&St<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 ${Ne} ${Fn?"on-preview":""} ${pt?"mini":""} ${dt?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:Mt,watch:Fn,fullScreen:dt,showNullButton:Ut,showNullProgramButton:In,onActionCallback:Gn,hidetoolBar:Zn,extraUse:wt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:De})),Fn?ae.createElement("div",{ref:aa,className:"preview-container"},Zt==="stex"&&ae.createElement(We,{value:Kt}),Zt!=="stex"&&ae.createElement(Ge.Z,{disabledFill:_e,showProgramFill:In,value:Kt})):null))),Rn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,gt===Ft&&ae.createElement(ut,{callback:Mn,onCancel:Xn}),gt===rt&&ae.createElement(nt,{callback:Mn,onCancel:Xn}),ae.createElement(ue.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))}},17077:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return re},I:function(){return ue}});var ae=ge(78241),Pe=ge(8591),Ze=ge(92832),Ae=ge(81327),fe=ge(5871),je=ge(5112),me=ge(3113),Je=ge(46699),Oe=ge(59301),Ce=ge(48790),Ge=ge(59301),We=Object.defineProperty,Ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(se,Me,ke)=>Me in se?We(se,Me,{enumerable:!0,configurable:!0,writable:!0,value:ke}):se[Me]=ke,E=(se,Me)=>{for(var ke in Me||(Me={}))y.call(Me,ke)&&b(se,ke,Me[ke]);if(a)for(var ke of a(Me))x.call(Me,ke)&&b(se,ke,Me[ke]);return se},z=(se,Me)=>Ie(se,ne(Me));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:se,onCancel:Me})=>{const[ke]=ee();let st=(0,Oe.useRef)();function Dt(kt){st.current.width=ke.getFieldValue("width"),st.current.align=ke.getFieldValue("align"),se(kt,st.current)}function qt(kt,Wt){if(kt.status===-1){Pe.ZP.error(kt.message);return}ke.setFieldsValue({src:`/api/attachments/${kt.id}`,type:Wt.type})}function At(kt){let Wt=kt.target.files[0];st.current=Wt,ue(Wt,qt)}return Ge.createElement(ae.default,z(E({form:ke},oe),{className:"upload-image-panel",onFinish:Dt,style:{width:470,overflow:"hidden"}}),Ge.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ge.createElement("div",{className:"flex-container"},Ge.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ge.createElement(Ze.default,{style:te})),Ge.createElement(ie,{onFileChange:At}))),Ge.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ge.createElement(Ze.default,{style:{width:264}})),Ge.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ge.createElement(Ae.Z,null,Ge.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ge.createElement(fe.Z,{style:{width:264}})),Ge.createElement("span",{className:"ml8"},"%"))),Ge.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ge.createElement(je.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ge.createElement("aside",null,Ge.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ge.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ge.createElement(me.ZP,{type:"default",onClick:Me},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return Ge.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ge.createElement("input",{type:"file",onChange:se}))}function ue(se,Me){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ke=new FormData;ke.append("editormd-image-file",se),ke.append("file_param_name","editormd-image-file"),ke.append("byxhr","true");var st=new window.XMLHttpRequest;st.withCredentials=!0,st.addEventListener("load",function(Dt){Me(JSON.parse(Dt.target.responseText),se)},!1),st.addEventListener("error",function(Dt){console.error(Dt)},!1),st.open("POST",`${Je.KI}/api/attachments.json`),st.send(ke)}},91558: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 je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(xe,tt,ge){"use strict";ge.d(tt,{Z:function(){return Pe}});var ae=ge(59301);function Pe(Ze,Ae){const fe=(0,ae.useRef)();(0,ae.useEffect)(()=>{fe.current=Ze}),(0,ae.useEffect)(()=>{function je(){fe.current()}if(Ae!==null){let me=setInterval(je,Ae);return()=>clearInterval(me)}},[Ae])}},49851: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),Ae=ge(8591),fe=ge(43418),je=ge(60324),me=ge(346),Je={flex_box_center:"flex_box_center___GfbI9",flex_space_between:"flex_space_between___m14JJ",flex_box_vertical_center:"flex_box_vertical_center___IKGDg",flex_box_center_end:"flex_box_center_end___JZxvM",flex_box_column:"flex_box_column___WnVa8",SubMentItem:"SubMentItem___P0LXo",MenuItem:"MenuItem___p91mQ",wrp:"wrp___kMQ4i",classroomInfo:"classroomInfo___rb1qC",title:"title___AQndp",titleLeft:"titleLeft___K7c9u",titleRight:"titleRight___BUODH",classroomUser:"classroomUser___NkYxe",headPic:"headPic___RD_it",teacherInfo:"teacherInfo___Gyj_W",classroomDesc:"classroomDesc___ng_AB",classroomDescBg:"classroomDescBg___Dz_DM",joinCouses:"joinCouses___U2D0G",bg:"bg___IcypX",leftMenus:"leftMenus___fF5qD",titleSelected:"titleSelected___Rqtd8",menuText:"menuText___jhrfq",totalCount:"totalCount___fqkbl",actions:"actions___NAYZl",task_count:"task_count___a1sYB",container:"container___djeCS",leftMenuActions:"leftMenuActions___lRhBF"},Oe=ge(38986),Ce=ge(25690),Ge=ge(87169),We=ge(43531),Ie=ge(48790),ne=ge(92832),a=(be,$e,qe)=>new Promise((Ve,ut)=>{var de=it=>{try{mt(qe.next(it))}catch(Bt){ut(Bt)}},Qe=it=>{try{mt(qe.throw(it))}catch(Bt){ut(Bt)}},mt=it=>it.done?Ve(it.value):Promise.resolve(it.value).then(de,Qe);mt((qe=qe.apply(be,$e)).next())});function y({user:be,CategoryId:$e,IsShow:qe,setIsShow:Ve,dispatch:ut,init:de}){const[Qe,mt]=(0,ae.useState)();return ae.createElement(fe.default,{title:$e?"\u65B0\u5EFA\u4E09\u7EA7\u7C7B\u76EE":"\u65B0\u5EFA\u4E8C\u7EA7\u7C7B\u76EE",width:424,onCancel:()=>{Ve(!1)},onOk:()=>a(this,null,function*(){if(!Qe){Ae.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Oe.ZP)("/api/programas.json",{method:"post",body:{name:Qe,parent_id:$e}})).status===0&&(Ae.ZP.info("\u521B\u5EFA\u6210\u529F"),Ve(!1),mt(""),de())}),open:qe},ae.createElement(ne.default,{value:Qe,onChange:it=>mt(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,$e,qe)=>new Promise((Ve,ut)=>{var de=it=>{try{mt(qe.next(it))}catch(Bt){ut(Bt)}},Qe=it=>{try{mt(qe.throw(it))}catch(Bt){ut(Bt)}},mt=it=>it.done?Ve(it.value):Promise.resolve(it.value).then(de,Qe);mt((qe=qe.apply(be,$e)).next())});function E({user:be,CategoryId:$e,name:qe,IsShow:Ve,setIsShow:ut,dispatch:de,init:Qe}){const[mt,it]=(0,ae.useState)();return(0,ae.useEffect)(()=>{it(qe)},[qe]),ae.createElement(fe.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{ut(!1)},onOk:()=>b(this,null,function*(){if(!mt){Ae.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Oe.ZP)(`/api/programas/${$e}/rename.json`,{method:"put",body:{name:mt,id:$e}})).status===0&&(Ae.ZP.info("\u4FEE\u6539\u6210\u529F"),ut(!1),it(""),Qe())}),open:Ve},ae.createElement(ne.default,{value:mt,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(91842);function oe({user:be,ItemData:$e,setIssee:qe,dispatch:Ve,init:ut}){var de,Qe,mt,it;return ae.createElement("div",null,ae.createElement("div",{style:{textAlign:"right"}},(0,Ie.Ny)()&&ae.createElement(ee.ZP,{onClick:()=>qe(!1)},"\u7F16\u8F91")),ae.createElement(te.Z,{value:$e.content}),((de=$e==null?void 0:$e.attachment)==null?void 0:de.id)&&ae.createElement("div",null,ae.createElement("a",{href:(Qe=$e==null?void 0:$e.attachment)==null?void 0:Qe.url,target:"_self",download:(mt=$e==null?void 0:$e.attachment)==null?void 0:mt.title},ae.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),ae.createElement("span",{style:{color:"#000000"}},(it=$e==null?void 0:$e.attachment)==null?void 0:it.title))))}var re=(0,Ce.connect)(({user:be})=>({user:be}))(oe),ie=ge(54580),ue=ge(39793),se=ge(73801),Me=Object.defineProperty,ke=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,qt=(be,$e,qe)=>$e in be?Me(be,$e,{enumerable:!0,configurable:!0,writable:!0,value:qe}):be[$e]=qe,At=(be,$e)=>{for(var qe in $e||($e={}))st.call($e,qe)&&qt(be,qe,$e[qe]);if(ke)for(var qe of ke($e))Dt.call($e,qe)&&qt(be,qe,$e[qe]);return be},kt=(be,$e,qe)=>new Promise((Ve,ut)=>{var de=it=>{try{mt(qe.next(it))}catch(Bt){ut(Bt)}},Qe=it=>{try{mt(qe.throw(it))}catch(Bt){ut(Bt)}},mt=it=>it.done?Ve(it.value):Promise.resolve(it.value).then(de,Qe);mt((qe=qe.apply(be,$e)).next())});function Wt({user:be,ItemData:$e,setIssee:qe,CategoryId:Ve,dispatch:ut,init:de}){let[Qe,mt]=(0,ae.useState)([]);const[it,Bt]=(0,ae.useState)($e.content);function ze(){var Re;let nt=[];return(Re=$e==null?void 0:$e.attachments)==null||Re.map(ft=>{let vt={uid:ft==null?void 0:ft.id,name:ft.title,response:{id:ft.id}};nt.push(vt)}),nt}const ye={name:"file",multiple:!0,action:me.Z.API_SERVER+"/api/attachments.json",defaultFileList:ze(),onRemove(Re){(0,se.y8)({id:Re.uid})},onChange(Re){console.log("info",Re);const{status:nt}=Re.file;nt==="removed"&&mt(Re.fileList),nt==="done"?(mt(Re.fileList),Ae.ZP.success(`${Re.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):nt==="error"&&Ae.ZP.error(`${Re.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Re=>{const nt=Re.size/1024/1024<150;return nt||Ae.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),nt}};function pe(){return kt(this,null,function*(){(yield(0,Oe.ZP)(`/api/programas/${Ve}/update_content.json`,{method:"put",body:{id:Ve,content:it,attachment_id:He(Qe)}}))&&(Ae.ZP.info("\u63D0\u4EA4\u6210\u529F"),qe(!0))})}function He(Re){let nt;return Re&&Re.map(ft=>{nt=ft.response.id}),nt}return ae.createElement("div",null,ae.createElement(ue.Z,{defaultValue:it,onChange:Re=>Bt(Re)}),ae.createElement(ie.default,At({},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}))(Wt),Vt=(be,$e,qe)=>new Promise((Ve,ut)=>{var de=it=>{try{mt(qe.next(it))}catch(Bt){ut(Bt)}},Qe=it=>{try{mt(qe.throw(it))}catch(Bt){ut(Bt)}},mt=it=>it.done?Ve(it.value):Promise.resolve(it.value).then(de,Qe);mt((qe=qe.apply(be,$e)).next())});const{SubMenu:en}=Pe.default,{Content:sn,Sider:Bn}=Ze.default;function An({user:be,dispatch:$e,globalSetting:qe}){var Ve;const[ut,de]=(0,ae.useState)(),[Qe,mt]=(0,ae.useState)(!1),[it,Bt]=(0,ae.useState)();let[ze,ye]=(0,ae.useState)();const[pe,He]=(0,ae.useState)(!1),[Re,nt]=(0,ae.useState)(""),[ft,vt]=(0,ae.useState)(""),[Nt,zt]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{$t()},[]),console.log("globalSetting",qe);function $t(){return Vt(this,null,function*(){const Lt=yield(0,Oe.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),mt(!0);break;case 2:ye(Et==null?void 0:Et.id),He(!0),nt(Et==null?void 0:Et.name);break;case 3:(yield(0,Oe.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,Oe.ZP)(`/api/programas/${Et==null?void 0:Et.id}.json`,{method:"delete",body:{id:Et==null?void 0:Et.id}})).status===0&&(Ae.ZP.info("\u5220\u9664\u6210\u529F"),$t())}));break}}),cn=(Lt,Et)=>{fe.default.confirm({centered:!0,title:"\u63D0\u793A",icon:ae.createElement(Ge.Z,null),content:Lt,okText:"\u786E\u8BA4",onOk:()=>Et(),cancelText:"\u53D6\u6D88"})},Sn=(Lt,Et)=>ae.createElement("div",{className:Je.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,Oe.ZP)(`/api/programas/${ze}/content.json`,{method:"get",params:{id:ze}});Lt&&vt(Lt)})}return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("img",{style:{width:"100%"},src:me.Z.IMG_SERVER+`/${(Ve=qe==null?void 0:qe.setting)==null?void 0:Ve.shixun_banner_url}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement(Bn,{width:244,className:Je.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(en,{title:ae.createElement("span",{className:"font16"},ae.createElement("span",null,Lt.name),!(0,Ie.Ny)()&&ae.createElement("span",null),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>Sn(Lt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))},(Se=Lt==null?void 0:Lt.children)==null?void 0:Se.map((Te,at)=>{var rt;return ae.createElement(Pe.default.Item,{className:(rt=Je)==null?void 0:rt.SubMentItem,onClick:()=>{ye(Te==null?void 0:Te.id),ze=Te==null?void 0:Te.id,Pn()}},ae.createElement("span",{style:{flex:"1"}},Te==null?void 0:Te.name),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>Sn(Te,2),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))})):ae.createElement(Pe.default.Item,{className:(we=Je)==null?void 0:we.SubMentItem,onClick:()=>{ye(Lt==null?void 0:Lt.id),ze=Lt==null?void 0:Lt.id,Pn()}},ae.createElement("span",{style:{flex:"1"}},Lt==null?void 0:Lt.name),(0,Ie.Ny)()&&ae.createElement(je.Z,{placement:"right",content:()=>Sn(Lt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Je.actions].join(" ")})))}),ae.createElement(Pe.default.Item,{onClick:()=>{ye(""),ze="",mt(!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"}},Nt&&ae.createElement(re,{ItemData:ft,setIssee:zt}),Nt===!1&&ae.createElement(vn,{ItemData:ft,setIssee:zt,CategoryId:ze}))),ae.createElement(x,{CategoryId:ze,IsShow:Qe,setIsShow:mt,init:$t}),ae.createElement(z,{CategoryId:ze,name:Re,IsShow:pe,setIsShow:He,init:$t}))}var Ee=(0,Ce.connect)(({user:be,globalSetting:$e})=>({user:be,globalSetting:$e}))(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(Ae=>Ae+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(14809),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"},Ae=Ze,fe=ge(7657),je=function(ie,ue){return Pe.createElement(fe.Z,(0,ae.Z)({},ie,{ref:ue,icon:Ae}))},me=Pe.forwardRef(je),Je=me,Oe=ge(33853),Ce=ge(38819),Ge=ge(92310),We=ge.n(Ge),Ie=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ue={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(ue[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,se=Object.getOwnPropertySymbols(re);Me<se.length;Me++)ie.indexOf(se[Me])<0&&Object.prototype.propertyIsEnumerable.call(re,se[Me])&&(ue[se[Me]]=re[se[Me]]);return ue};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Pe.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=Pe.forwardRef((re,ie)=>{const{prefixCls:ue,className:se,trigger:Me,children:ke,defaultCollapsed:st=!1,theme:Dt="dark",style:qt={},collapsible:At=!1,reverseArrow:kt=!1,width:Wt=200,collapsedWidth:vn=80,zeroWidthTriggerStyle:Vt,breakpoint:en,onCollapse:sn,onBreakpoint:Bn}=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,$e]=(0,Pe.useState)("collapsed"in re?re.collapsed:st),[qe,Ve]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&$e(re.collapsed)},[re.collapsed]);const ut=(ze,ye)=>{"collapsed"in re||$e(ze),sn==null||sn(ze,ye)},de=(0,Pe.useRef)();de.current=ze=>{Ve(ze.matches),Bn==null||Bn(ze.matches),be!==ze.matches&&ut(ze.matches,"responsive")},(0,Pe.useEffect)(()=>{function ze(pe){return de.current(pe)}let ye;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&en&&en in E){ye=pe(`(max-width: ${E[en]})`);try{ye.addEventListener("change",ze)}catch(He){ye.addListener(ze)}ze(ye)}}return()=>{try{ye==null||ye.removeEventListener("change",ze)}catch(pe){ye==null||ye.removeListener(ze)}}},[en]),(0,Pe.useEffect)(()=>{const ze=ee("ant-sider-");return Ee.addSider(ze),()=>Ee.removeSider(ze)},[]);const Qe=()=>{ut(!be,"clickTrigger")},{getPrefixCls:mt}=(0,Pe.useContext)(y.E_),it=()=>{const ze=mt("layout-sider",ue),ye=(0,Ie.Z)(An,["collapsed"]),pe=be?vn:Wt,He=a(pe)?`${pe}px`:String(pe),Re=parseFloat(String(vn||0))===0?Pe.createElement("span",{onClick:Qe,className:We()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${kt?"right":"left"}`),style:Vt},Me||Pe.createElement(Je,null)):null,vt={expanded:kt?Pe.createElement(Ce.Z,null):Pe.createElement(Oe.Z,null),collapsed:kt?Pe.createElement(Oe.Z,null):Pe.createElement(Ce.Z,null)}[be?"collapsed":"expanded"],Nt=Me!==null?Re||Pe.createElement("div",{className:`${ze}-trigger`,onClick:Qe,style:{width:He}},Me||vt):null,zt=Object.assign(Object.assign({},qt),{flex:`0 0 ${He}`,maxWidth:He,minWidth:He,width:He}),$t=We()(ze,`${ze}-${Dt}`,{[`${ze}-collapsed`]:!!be,[`${ze}-has-trigger`]:At&&Me!==null&&!Re,[`${ze}-below`]:!!qe,[`${ze}-zero-width`]:parseFloat(He)===0},se);return Pe.createElement("aside",Object.assign({className:$t},ye,{style:zt,ref:ie}),Pe.createElement("div",{className:`${ze}-children`},ke),At||qe&&Re?Nt: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 Ie},ZP:function(){return ee}});var ae=ge(95190),Pe=ge(92310),Ze=ge.n(Pe),Ae=ge(2738),fe=ge(59301),je=ge(36355),me=ge(83116),Oe=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:se,background:ue,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ue,footerBg:se,triggerBg:Me,headerHeight:ke,headerPadding:st,headerColor:Dt,footerPadding:qt,triggerHeight:At,zeroTriggerHeight:kt,zeroTriggerWidth:Wt,motionDurationMid:vn,motionDurationSlow:Vt,fontSize:en,borderRadius:sn,bodyBg:Bn,headerBg:An,siderBg:Ee}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Bn,"&, *":{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:At},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:At,color:ue,lineHeight:`${At}px`,textAlign:"center",background:Me,cursor:"pointer",transition:`all ${vn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ke,insetInlineEnd:-Wt,zIndex:1,width:Wt,height:kt,color:ue,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:-Wt,borderStartStartRadius:sn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:sn}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:ke,padding:st,color:Dt,lineHeight:`${ke}px`,background:An,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:qt,color:ie,fontSize:en,background:se},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Ge=(0,me.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ue,controlHeightSM:se,marginXXS:Me,colorTextLightSolid:ke,colorBgContainer:st}=te,Dt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Dt}px`,headerColor:ue,footerPadding:`${se}px ${Dt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Me*2,triggerBg:"#002140",triggerColor:ke,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:st,lightTriggerBg:st,lightTriggerColor:ue}},{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 ue=0,ie=Object.getOwnPropertySymbols(te);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ue])&&(re[ie[ue]]=te[ie[ue]]);return re};const Ie=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ue=>fe.forwardRef((Me,ke)=>fe.createElement(ue,Object.assign({ref:ke,suffixCls:oe,tagName:re},Me)))}const a=fe.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ue,tagName:se}=te,Me=We(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ke}=fe.useContext(je.E_),st=ke("layout",re),[Dt,qt]=Ge(st),At=ie?`${st}-${ie}`:st;return Dt(fe.createElement(se,Object.assign({className:Ze()(re||At,ue,qt),ref:oe},Me)))}),y=fe.forwardRef((te,oe)=>{const{direction:re}=fe.useContext(je.E_),[ie,ue]=fe.useState([]),{prefixCls:se,className:Me,rootClassName:ke,children:st,hasSider:Dt,tagName:qt,style:At}=te,kt=We(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Wt=(0,Ae.Z)(kt,["suffixCls"]),{getPrefixCls:vn,layout:Vt}=fe.useContext(je.E_),en=vn("layout",se),[sn,Bn]=Ge(en),An=Ze()(en,{[`${en}-has-sider`]:typeof Dt=="boolean"?Dt:ie.length>0,[`${en}-rtl`]:re==="rtl"},Vt==null?void 0:Vt.className,Me,ke,Bn),Ee=fe.useMemo(()=>({siderHook:{addSider:be=>{ue($e=>[].concat((0,ae.Z)($e),[be]))},removeSider:be=>{ue($e=>$e.filter(qe=>qe!==be))}}}),[]);return sn(fe.createElement(Ie.Provider,{value:Ee},fe.createElement(qt,Object.assign({ref:oe,className:An,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),At)},Wt),st)))}),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 je}});var ae=ge(59301),Pe=ge(33234),Ze=ge(70425),Ae=function(me,Je){var Oe={};for(var Ce in me)Object.prototype.hasOwnProperty.call(me,Ce)&&Je.indexOf(Ce)<0&&(Oe[Ce]=me[Ce]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ce=Object.getOwnPropertySymbols(me);Ge<Ce.length;Ge++)Je.indexOf(Ce[Ge])<0&&Object.prototype.propertyIsEnumerable.call(me,Ce[Ge])&&(Oe[Ce[Ge]]=me[Ce[Ge]]);return Oe};const fe=ae.createContext(null),je=ae.forwardRef((me,Je)=>{const{children:Oe}=me,Ce=Ae(me,["children"]),Ge=ae.useContext(fe),We=ae.useMemo(()=>Object.assign(Object.assign({},Ge),Ce),[Ge,Ce.prefixCls,Ce.mode,Ce.selectable]);return ae.createElement(fe.Provider,{value:We},ae.createElement(Pe.BR,null,(0,Ze.supportNodeRef)(Oe)?ae.cloneElement(Oe,{ref:Je}):Oe))});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),Ae=ge(92310),fe=ge.n(Ae),je=ge(36355),me=function(ze,ye){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&ye.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)ye.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe},Oe=ze=>{const{prefixCls:ye,className:pe,dashed:He}=ze,Re=me(ze,["prefixCls","className","dashed"]),{getPrefixCls:nt}=Pe.useContext(je.E_),ft=nt("menu",ye),vt=fe()({[`${ft}-item-divider-dashed`]:!!He},pe);return Pe.createElement(ae.iz,Object.assign({className:vt},Re))},Ce=ge(11592),Ge=ge(2738),We=ge(6848),Ie=ge(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ze=>{var ye;const{className:pe,children:He,icon:Re,title:nt,danger:ft}=ze,{prefixCls:vt,firstLevel:Nt,direction:zt,disableMenuItemTitleTooltip:$t,inlineCollapsed:Ot}=Pe.useContext(a),cn=we=>{const Te=Pe.createElement("span",{className:`${vt}-title-content`},He);return(!Re||(0,Ie.l$)(He)&&He.type==="span")&&He&&we&&Nt&&typeof He=="string"?Pe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},He.charAt(0)):Te},{siderCollapsed:Sn}=Pe.useContext(Ze.D);let Pn=nt;typeof nt=="undefined"?Pn=Nt?He:"":nt===!1&&(Pn="");const Lt={title:Pn};!Sn&&!Ot&&(Lt.title=null,Lt.open=!1);const Et=(0,Ce.Z)(He).length;let Se=Pe.createElement(ae.ck,Object.assign({},(0,Ge.Z)(ze,["title","icon","danger"]),{className:fe()({[`${vt}-item-danger`]:ft,[`${vt}-item-only-child`]:(Re?Et+1:Et)===1},pe),title:typeof nt=="string"?nt:void 0}),(0,Ie.Tm)(Re,{className:fe()((0,Ie.l$)(Re)?(ye=Re.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=ze=>{var ye;const{popupClassName:pe,icon:He,title:Re,theme:nt}=ze,ft=Pe.useContext(a),{prefixCls:vt,inlineCollapsed:Nt,theme:zt}=ft,$t=(0,ae.Xl)();let Ot;if(!He)Ot=Nt&&!$t.length&&Re&&typeof Re=="string"?Pe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Re.charAt(0)):Pe.createElement("span",{className:`${vt}-title-content`},Re);else{const Sn=(0,Ie.l$)(Re)&&Re.type==="span";Ot=Pe.createElement(Pe.Fragment,null,(0,Ie.Tm)(He,{className:fe()((0,Ie.l$)(He)?(ye=He.props)===null||ye===void 0?void 0:ye.className:"",`${vt}-item-icon`)}),Sn?Re:Pe.createElement("span",{className:`${vt}-title-content`},Re))}const cn=Pe.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Pe.createElement(a.Provider,{value:cn},Pe.createElement(ae.Wd,Object.assign({},(0,Ge.Z)(ze,["icon"]),{title:Ot,popupClassName:fe()(vt,pe,`${vt}-${nt||zt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(ze,ye){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&ye.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)ye.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe};function ie(ze){return(ze||[]).map((ye,pe)=>{if(ye&&typeof ye=="object"){const He=ye,{label:Re,children:nt,key:ft,type:vt}=He,Nt=re(He,["label","children","key","type"]),zt=ft!=null?ft:`tmp-${pe}`;return nt||vt==="group"?vt==="group"?Pe.createElement(ae.BW,Object.assign({key:zt},Nt,{title:Re}),ie(nt)):Pe.createElement(E,Object.assign({key:zt},Nt,{title:Re}),ie(nt)):vt==="divider"?Pe.createElement(Oe,Object.assign({key:zt},Nt)):Pe.createElement(x,Object.assign({key:zt},Nt),Re)}return null}).filter(ye=>ye)}function ue(ze){return Pe.useMemo(()=>ze&&ie(ze),[ze])}var se=ge(64993),Me=ge(17313),ke=ge(8378),st=ge(13826),Dt=ge(29878),qt=ge(83116),At=ge(37613),Wt=ze=>{const{componentCls:ye,motionDurationSlow:pe,horizontalLineHeight:He,colorSplit:Re,lineWidth:nt,lineType:ft,itemPaddingInline:vt}=ze;return{[`${ye}-horizontal`]:{lineHeight:He,border:0,borderBottom:`${nt}px ${ft} ${Re}`,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=ze=>{let{componentCls:ye,menuArrowOffset:pe}=ze;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 en=ze=>Object.assign({},(0,Me.oN)(ze));var Bn=(ze,ye)=>{const{componentCls:pe,itemColor:He,itemSelectedColor:Re,groupTitleColor:nt,itemBg:ft,subMenuItemBg:vt,itemSelectedBg:Nt,activeBarHeight:zt,activeBarWidth:$t,activeBarBorderWidth:Ot,motionDurationSlow:cn,motionEaseInOut:Sn,motionEaseOut:Pn,itemPaddingInline:Lt,motionDurationMid:Et,itemHoverColor:Se,lineType:we,colorSplit:Te,itemDisabledColor:at,dangerItemColor:rt,dangerItemHoverColor:Ft,dangerItemSelectedColor:Ct,dangerItemActiveBg:Pt,dangerItemSelectedBg:xt,itemHoverBg:jt,itemActiveBg:Rt,menuSubMenuBg:Xt,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:tn,popupBg:Yt}=ze;return{[`${pe}-${ye}, ${pe}-${ye} > ${pe}`]:{color:He,background:ft,[`&${pe}-root:focus-visible`]:Object.assign({},en(ze)),[`${pe}-item-group-title`]:{color:nt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Re}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${at} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Se}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:Rt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:Rt}}},[`${pe}-item-danger`]:{color:rt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Ft}},[`&${pe}-item:active`]:{background:Pt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Re,[`&${pe}-item-danger`]:{color:Ct},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Nt,[`&${pe}-item-danger`]:{backgroundColor:xt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},en(ze))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Xt},[`&${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:bn,"&::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} ${Te}`}},[`&${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 ${Re}`,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=ze=>{const{componentCls:ye,itemHeight:pe,itemMarginInline:He,padding:Re,menuArrowSize:nt,marginXS:ft,itemMarginBlock:vt}=ze,Nt=Re+nt+ft;return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:He,marginBlock:vt,width:`calc(100% - ${He*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:Nt}}};var be=ze=>{const{componentCls:ye,iconCls:pe,itemHeight:He,colorTextLightSolid:Re,dropdownWidth:nt,controlHeightLG:ft,motionDurationMid:vt,motionEaseOut:Nt,paddingXL:zt,itemMarginInline:$t,fontSizeLG:Ot,motionDurationSlow:cn,paddingXS:Sn,boxShadowSecondary:Pn,collapsedWidth:Lt,collapsedIconSize:Et}=ze,Se={height:He,lineHeight:`${He}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},An(ze))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},An(ze)),{boxShadow:Pn})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:nt,maxHeight:`calc(100vh - ${ft*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} ${Nt}`].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:`${He}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:Re}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},Me.vS),{paddingInline:Sn})}}]};const $e=ze=>{const{componentCls:ye,motionDurationSlow:pe,motionDurationMid:He,motionEaseInOut:Re,motionEaseOut:nt,iconCls:ft,iconSize:vt,iconMarginInlineEnd:Nt}=ze;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Re}`].join(","),[`${ye}-item-icon, ${ft}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${He} ${nt}`,`margin ${pe} ${Re}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Nt,opacity:1,transition:[`opacity ${pe} ${Re}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,Me.Ro)()),[`&${ye}-item-only-child`]:{[`> ${ft}, > ${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=ze=>{const{componentCls:ye,motionDurationSlow:pe,motionEaseInOut:He,borderRadius:Re,menuArrowSize:nt,menuArrowOffset:ft}=ze;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:nt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${He}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:nt*.6,height:nt*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${pe} ${He}`,`transform ${pe} ${He}`,`top ${pe} ${He}`,`color ${pe} ${He}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},Ve=ze=>{const{antCls:ye,componentCls:pe,fontSize:He,motionDurationSlow:Re,motionDurationMid:nt,motionEaseInOut:ft,paddingXS:vt,padding:Nt,colorSplit:zt,lineWidth:$t,zIndexPopup:Ot,borderRadiusLG:cn,subMenuItemBorderRadius:Sn,menuArrowSize:Pn,menuArrowOffset:Lt,lineType:Et,menuPanelMaskInset:Se,groupTitleLineHeight:we,groupTitleFontSize:Te}=ze;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Me.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(ze)),(0,Me.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:He,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:ze.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${vt}px ${Nt}px`,fontSize:Te,lineHeight:we,transition:`all ${Re}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Re} ${ft}`,`background ${Re} ${ft}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Re} ${ft}`,`background ${Re} ${ft}`,`padding ${nt} ${ft}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Re} ${ft}`,`padding ${Re} ${ft}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Re}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:Et,borderWidth:0,borderTopWidth:$t,marginBlock:$t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$e(ze)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${He*2}px ${Nt}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:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:cn},$e(ze)),qe(ze)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:Sn},[`${pe}-submenu-title::after`]:{transition:`transform ${Re} ${ft}`}})}}),qe(ze)),{[`&-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 ut=(ze,ye)=>(0,qt.Z)("Menu",He=>{if(ye===!1)return[];const{colorBgElevated:Re,colorPrimary:nt,colorTextLightSolid:ft,controlHeightLG:vt,fontSize:Nt,darkItemColor:zt,darkDangerItemColor:$t,darkItemBg:Ot,darkSubMenuItemBg:cn,darkItemSelectedColor:Sn,darkItemSelectedBg:Pn,darkDangerItemSelectedBg:Lt,darkItemHoverBg:Et,darkGroupTitleColor:Se,darkItemHoverColor:we,darkItemDisabledColor:Te,darkDangerItemHoverColor:at,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:Ft}=He,Ct=Nt/7*5,Pt=(0,At.TS)(He,{menuArrowSize:Ct,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${Ct*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),xt=(0,At.TS)(Pt,{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:Te,dangerItemColor:$t,dangerItemHoverColor:at,dangerItemSelectedColor:rt,dangerItemActiveBg:Ft,dangerItemSelectedBg:Lt,menuSubMenuBg:cn,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:nt});return[Ve(Pt),Wt(Pt),be(Pt),Bn(Pt,"light"),Bn(xt,"dark"),Vt(Pt),(0,ke.Z)(Pt),(0,st.oN)(Pt,"slide-up"),(0,st.oN)(Pt,"slide-down"),(0,Dt._y)(Pt,"zoom-big")]},He=>{const{colorPrimary:Re,colorError:nt,colorTextDisabled:ft,colorErrorBg:vt,colorText:Nt,colorTextDescription:zt,colorBgContainer:$t,colorFillAlter:Ot,colorFillContent:cn,lineWidth:Sn,lineWidthBold:Pn,controlItemBgActive:Lt,colorBgTextHover:Et,controlHeightLG:Se,lineHeight:we,colorBgElevated:Te,marginXXS:at,padding:rt,fontSize:Ft,controlHeightSM:Ct,fontSizeLG:Pt,colorTextLightSolid:xt,colorErrorHover:jt}=He,Rt=new se.C(xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:He.zIndexPopupBase+50,radiusItem:He.borderRadiusLG,itemBorderRadius:He.borderRadiusLG,radiusSubMenuItem:He.borderRadiusSM,subMenuItemBorderRadius:He.borderRadiusSM,colorItemText:Nt,itemColor:Nt,colorItemTextHover:Nt,itemHoverColor:Nt,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,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:ft,itemDisabledColor:ft,colorDangerItemText:nt,dangerItemColor:nt,colorDangerItemTextHover:nt,dangerItemHoverColor:nt,colorDangerItemTextSelected:nt,dangerItemSelectedColor:nt,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:He.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Se,groupTitleLineHeight:we,collapsedWidth:Se*2,popupBg:Te,itemMarginBlock:at,itemPaddingInline:rt,horizontalLineHeight:`${Se*1.15}px`,iconSize:Ft,iconMarginInlineEnd:Ct-Ft,collapsedIconSize:Pt,groupTitleFontSize:Ft,darkItemDisabledColor:new se.C(xt).setAlpha(.25).toRgbString(),darkItemColor:Rt,darkDangerItemColor:nt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xt,darkItemSelectedBg:Re,darkDangerItemSelectedBg:nt,darkItemHoverBg:"transparent",darkGroupTitleColor:Rt,darkItemHoverColor:xt,darkDangerItemHoverColor:jt,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"]]})(ze),de=function(ze,ye){var pe={};for(var He in ze)Object.prototype.hasOwnProperty.call(ze,He)&&ye.indexOf(He)<0&&(pe[He]=ze[He]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ze);Re<He.length;Re++)ye.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ze,He[Re])&&(pe[He[Re]]=ze[He[Re]]);return pe},mt=(0,Pe.forwardRef)((ze,ye)=>{var pe,He;const Re=Pe.useContext(oe.Z),nt=Re||{},{getPrefixCls:ft,getPopupContainer:vt,direction:Nt,menu:zt}=Pe.useContext(je.E_),$t=ft(),{prefixCls:Ot,className:cn,style:Sn,theme:Pn="light",expandIcon:Lt,_internalDisableMenuItemTitleTooltip:Et,inlineCollapsed:Se,siderCollapsed:we,items:Te,children:at,rootClassName:rt,mode:Ft,selectable:Ct,onClick:Pt,overflowedIndicatorPopupClassName:xt}=ze,jt=de(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Rt=(0,Ge.Z)(jt,["collapsedWidth"]),Xt=ue(Te)||at;(pe=nt.validator)===null||pe===void 0||pe.call(nt,{mode:Ft});const mn=(0,ee.useEvent)(function(){var Nn;Pt==null||Pt.apply(void 0,arguments),(Nn=nt.onClick)===null||Nn===void 0||Nn.call(nt)}),hn=nt.mode||Ft,bn=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=ft("menu",Ot||nt.prefixCls),[xn,En]=ut(fn,!Re),rn=fe()(`${fn}-${Pn}`,zt==null?void 0:zt.className,cn);let zn;if(typeof Lt=="function")zn=Lt;else if(Lt===null||Lt===!1)zn=null;else if(nt.expandIcon===null||nt.expandIcon===!1)zn=null;else{const Nn=Lt!=null?Lt:nt.expandIcon;zn=(0,Ie.Tm)(Nn,{className:fe()(`${fn}-submenu-expand-icon`,(0,Ie.l$)(Nn)?(He=Nn.props)===null||He===void 0?void 0:He.className:"")})}const Yn=Pe.useMemo(()=>({prefixCls:fn,inlineCollapsed:tn||!1,direction:Nt,firstLevel:!0,theme:Pn,mode:hn,disableMenuItemTitleTooltip:Et}),[fn,tn,Nt,Et,Pn]);return xn(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:bn,onClick:mn},Rt,{inlineCollapsed:tn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Sn),className:rn,prefixCls:fn,direction:Nt,defaultMotions:Yt,expandIcon:zn,ref:ye,rootClassName:fe()(rt,En)}),Xt))))});const it=(0,Pe.forwardRef)((ze,ye)=>{const pe=(0,Pe.useRef)(null),He=Pe.useContext(Ze.D);return(0,Pe.useImperativeHandle)(ye,()=>({menu:pe.current,focus:Re=>{var nt;(nt=pe.current)===null||nt===void 0||nt.focus(Re)}})),Pe.createElement(mt,Object.assign({ref:pe},ze,He))});it.Item=x,it.SubMenu=E,it.Divider=Oe,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),Ae=ge(59301),fe=ge(36355),je=ge(77578),me=ge(17356),Je=function(We,Ie){var ne={};for(var a in We)Object.prototype.hasOwnProperty.call(We,a)&&Ie.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++)Ie.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(We,a[y])&&(ne[a[y]]=We[a[y]]);return ne};const Oe=(We,Ie,ne)=>{if(!(!Ie&&!ne))return Ae.createElement(Ae.Fragment,null,Ie&&Ae.createElement("div",{className:`${We}-title`},(0,je.Z)(Ie)),Ae.createElement("div",{className:`${We}-inner-content`},(0,je.Z)(ne)))},Ce=We=>{const{hashId:Ie,prefixCls:ne,className:a,style:y,placement:x="top",title:b,content:E,children:z}=We;return Ae.createElement("div",{className:Pe()(Ie,ne,`${ne}-pure`,`${ne}-placement-${x}`,a),style:y},Ae.createElement("div",{className:`${ne}-arrow`}),Ae.createElement(Ze.G,Object.assign({},We,{className:Ie,prefixCls:ne}),z||Oe(ne,b,E)))},Ge=We=>{const{prefixCls:Ie}=We,ne=Je(We,["prefixCls"]),{getPrefixCls:a}=Ae.useContext(fe.E_),y=a("popover",Ie),[x,b]=(0,me.Z)(y);return x(Ae.createElement(Ce,Object.assign({},ne,{prefixCls:y,hashId:b})))};tt.ZP=Ge},60324:function(xe,tt,ge){"use strict";var ae=ge(92310),Pe=ge.n(ae),Ze=ge(59301),Ae=ge(77578),fe=ge(62892),je=ge(36355),me=ge(6848),Je=ge(39722),Oe=ge(17356),Ce=function(Ie,ne){var a={};for(var y in Ie)Object.prototype.hasOwnProperty.call(Ie,y)&&ne.indexOf(y)<0&&(a[y]=Ie[y]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(Ie);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(Ie,y[x])&&(a[y[x]]=Ie[y[x]]);return a};const Ge=Ie=>{let{title:ne,content:a,prefixCls:y}=Ie;return Ze.createElement(Ze.Fragment,null,ne&&Ze.createElement("div",{className:`${y}-title`},(0,Ae.Z)(ne)),Ze.createElement("div",{className:`${y}-inner-content`},(0,Ae.Z)(a)))},We=Ze.forwardRef((Ie,ne)=>{const{prefixCls:a,title:y,content:x,overlayClassName:b,placement:E="top",trigger:z="hover",mouseEnterDelay:ee=.1,mouseLeaveDelay:te=.1,overlayStyle:oe={}}=Ie,re=Ce(Ie,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ie}=Ze.useContext(je.E_),ue=ie("popover",a),[se,Me]=(0,Oe.Z)(ue),ke=ie(),st=Pe()(b,Me);return se(Ze.createElement(me.Z,Object.assign({placement:E,trigger:z,mouseEnterDelay:ee,mouseLeaveDelay:te,overlayStyle:oe},re,{prefixCls:ue,overlayClassName:st,ref:ne,overlay:y||x?Ze.createElement(Ge,{prefixCls:ue,title:y,content:x}):null,transitionName:(0,fe.m)(ke,"zoom-big",re.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=Je.ZP,tt.Z=We},17356:function(xe,tt,ge){"use strict";var ae=ge(17313),Pe=ge(29878),Ze=ge(19447),Ae=ge(33166),fe=ge(83116),je=ge(37613);const me=Ce=>{const{componentCls:Ge,popoverColor:We,minWidth:Ie,fontWeightStrong:ne,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:x,borderRadiusLG:b,zIndexPopup:E,marginXS:z,colorBgElevated:ee,popoverBg:te}=Ce;return[{[Ge]: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"},[`${Ge}-content`]:{position:"relative"},[`${Ge}-inner`]:{backgroundColor:te,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${Ge}-title`]:{minWidth:Ie,marginBottom:z,color:x,fontWeight:ne},[`${Ge}-inner-content`]:{color:We}})},(0,Ze.ZP)(Ce,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ge}-pure`]:{position:"relative",maxWidth:"none",margin:Ce.sizePopupArrow,display:"inline-block",[`${Ge}-content`]:{display:"inline-block"}}}]},Je=Ce=>{const{componentCls:Ge}=Ce;return{[Ge]:Ae.i.map(We=>{const Ie=Ce[`${We}6`];return{[`&${Ge}-${We}`]:{"--antd-arrow-background-color":Ie,[`${Ge}-inner`]:{backgroundColor:Ie},[`${Ge}-arrow`]:{background:"transparent"}}}})}},Oe=Ce=>{const{componentCls:Ge,lineWidth:We,lineType:Ie,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{[Ge]:{[`${Ge}-inner`]:{padding:0},[`${Ge}-title`]:{margin:0,padding:`${ee}px ${oe}px ${te}px`,borderBottom:`${We}px ${Ie} ${ne}`},[`${Ge}-inner-content`]:{padding:`${a}px ${oe}px`}}}};tt.Z=(0,fe.Z)("Popover",Ce=>{const{colorBgElevated:Ge,colorText:We,wireframe:Ie}=Ce,ne=(0,je.TS)(Ce,{popoverPadding:12,popoverBg:Ge,popoverColor:We});return[me(ne),Je(ne),Ie&&Oe(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),Ae=ge(19248),fe=ge(99267),je=ge(92310),me=ge.n(je),Je=ge(2738),Oe=ge(36355),Ce=ge(14809),Ge=ge(20439),We=ge(62646),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var we=(0,ae.useRef)([]),Te=(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",Te.current&&at-Te.current<100&&(Ct.transitionDuration="0s, 0s")}}),rt&&(Te.current=Date.now())}),we.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(we){var Te=(0,Ge.Z)((0,Ge.Z)({},Ie),we),at=Te.className,rt=Te.percent,Ft=Te.prefixCls,Ct=Te.strokeColor,Pt=Te.strokeLinecap,xt=Te.strokeWidth,jt=Te.style,Rt=Te.trailColor,Xt=Te.trailWidth,mn=Te.transition,hn=(0,We.Z)(Te,a);delete hn.gapPosition;var bn=Array.isArray(rt)?rt:[rt],tn=Array.isArray(Ct)?Ct:[Ct],Yt=ne(),fn=xt/2,xn=100-xt/2,En="M ".concat(Pt==="round"?fn:0,",").concat(fn,`
|
|
L `).concat(Pt==="round"?xn:100,",").concat(fn),rn="0 0 100 ".concat(xt),zn=0;return ae.createElement("svg",(0,Ce.Z)({className:me()("".concat(Ft,"-line"),at),viewBox:rn,preserveAspectRatio:"none",style:jt},hn),ae.createElement("path",{className:"".concat(Ft,"-line-trail"),d:En,strokeLinecap:Pt,stroke:Rt,strokeWidth:Xt||xt,fillOpacity:"0"}),bn.map(function(Yn,Nn){var Wn=1;switch(Pt){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(zn,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=tn[Nn]||tn[tn.length-1];return zn+=Yn,ae.createElement("path",{key:Nn,className:"".concat(Ft,"-line-path"),d:En,strokeLinecap:Pt,stroke:Jn,strokeWidth:xt,fillOpacity:"0",ref:function(ve){Yt[Nn]=ve},style:na})}))},x=y,b=ge(93664),E=ge(50298),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(),Te=(0,E.Z)(we,2),at=Te[0],rt=Te[1];return ae.useEffect(function(){rt("rc_progress_".concat(oe()))},[]),Se||at},ie=function(we){var Te=we.bg,at=we.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Te}},at)};function ue(Se,we){return Object.keys(Se).map(function(Te){var at=parseFloat(Te),rt="".concat(Math.floor(at*we),"%");return"".concat(Se[Te]," ").concat(rt)})}var se=ae.forwardRef(function(Se,we){var Te=Se.prefixCls,at=Se.color,rt=Se.gradientId,Ft=Se.radius,Ct=Se.style,Pt=Se.ptg,xt=Se.strokeLinecap,jt=Se.strokeWidth,Rt=Se.size,Xt=Se.gapDegree,mn=at&&(0,b.Z)(at)==="object",hn=mn?"#FFF":void 0,bn=Rt/2,tn=ae.createElement("circle",{className:"".concat(Te,"-circle-path"),r:Ft,cx:bn,cy:bn,stroke:hn,strokeLinecap:xt,strokeWidth:jt,opacity:Pt===0?0:1,style:Ct,ref:we});if(!mn)return tn;var Yt="".concat(rt,"-conic"),fn=Xt?"".concat(180+Xt/2,"deg"):"0deg",xn=ue(at,(360-Xt)/360),En=ue(at,1),rn="conic-gradient(from ".concat(fn,", ").concat(xn.join(", "),")"),zn="linear-gradient(to ".concat(Xt?"bottom":"top",", ").concat(En.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Yt},tn),ae.createElement("foreignObject",{x:0,y:0,width:Rt,height:Rt,mask:"url(#".concat(Yt,")")},ae.createElement(ie,{bg:zn},ae.createElement(ie,{bg:rn}))))}),Me=se,ke=100,st=function(we,Te,at,rt,Ft,Ct,Pt,xt,jt,Rt){var Xt=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}[Pt],bn=(100-rt)/100*Te;jt==="round"&&rt!==100&&(bn+=Rt/2,bn>=Te&&(bn=Te-.01));var tn=ke/2;return{stroke:typeof xt=="string"?xt:void 0,strokeDasharray:"".concat(Te,"px ").concat(we),strokeDashoffset:bn+Xt,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}},Dt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qt(Se){var we=Se!=null?Se:[];return Array.isArray(we)?we:[we]}var At=function(we){var Te=(0,Ge.Z)((0,Ge.Z)({},Ie),we),at=Te.id,rt=Te.prefixCls,Ft=Te.steps,Ct=Te.strokeWidth,Pt=Te.trailWidth,xt=Te.gapDegree,jt=xt===void 0?0:xt,Rt=Te.gapPosition,Xt=Te.trailColor,mn=Te.strokeLinecap,hn=Te.style,bn=Te.className,tn=Te.strokeColor,Yt=Te.percent,fn=(0,We.Z)(Te,Dt),xn=ke/2,En=re(at),rn="".concat(En,"-gradient"),zn=xn-Ct/2,Yn=Math.PI*2*zn,Nn=jt>0?90+jt/2:-90,Wn=Yn*((360-jt)/360),na=(0,b.Z)(Ft)==="object"?Ft:{count:Ft,space:2},Jn=na.count,he=na.space,ve=qt(Yt),ce=qt(tn),et=ce.find(function(Rn){return Rn&&(0,b.Z)(Rn)==="object"}),pt=et&&(0,b.Z)(et)==="object",ct=pt?"butt":mn,nn=st(Yn,Wn,0,100,Nn,jt,Rt,Xt,ct,Ct),Mt=ne(),Zt=function(){var Ye=0;return ve.map(function(Ut,In){var Zn=ce[In]||ce[ce.length-1],wn=st(Yn,Wn,Ye,Ut,Nn,jt,Rt,Zn,ct,Ct);return Ye+=Ut,ae.createElement(Me,{key:In,color:Zn,ptg:Ut,radius:zn,prefixCls:rt,gradientId:rn,style:wn,strokeLinecap:ct,strokeWidth:Ct,gapDegree:jt,ref:function(Be){Mt[In]=Be},size:ke})}).reverse()},pn=function(){var Ye=Math.round(Jn*(ve[0]/100)),Ut=100/Jn,In=0;return new Array(Jn).fill(null).map(function(Zn,wn){var le=wn<=Ye-1?ce[0]:Xt,Be=le&&(0,b.Z)(le)==="object"?"url(#".concat(rn,")"):void 0,Fe=st(Yn,Wn,In,Ut,Nn,jt,Rt,le,"butt",Ct,he);return In+=(Wn-Fe.strokeDashoffset+he)*100/Wn,ae.createElement("circle",{key:wn,className:"".concat(rt,"-circle-path"),r:zn,cx:xn,cy:xn,stroke:Be,strokeWidth:Ct,opacity:1,style:Fe,ref:function(Ue){Mt[wn]=Ue}})})};return ae.createElement("svg",(0,Ce.Z)({className:me()("".concat(rt,"-circle"),bn),viewBox:"0 0 ".concat(ke," ").concat(ke),style:hn,id:at,role:"presentation"},fn),!Jn&&ae.createElement("circle",{className:"".concat(rt,"-circle-trail"),r:zn,cx:xn,cy:xn,stroke:Xt,strokeLinecap:ct,strokeWidth:Pt||Ct,style:nn}),Jn?pn():Zt())},kt=At,Wt={Line:x,Circle:kt},vn=ge(6848),Vt=ge(30071);function en(Se){return!Se||Se<0?0:Se>100?100:Se}function sn(Se){let{success:we,successPercent:Te}=Se,at=Te;return we&&"progress"in we&&(at=we.progress),we&&"percent"in we&&(at=we.percent),at}const Bn=Se=>{let{percent:we,success:Te,successPercent:at}=Se;const rt=en(sn({success:Te,successPercent:at}));return[rt,en(en(we)-rt)]},An=Se=>{let{success:we={},strokeColor:Te}=Se;const{strokeColor:at}=we;return[at||Vt.presetPrimaryColors.green,Te||null]},Ee=(Se,we,Te)=>{var at,rt,Ft,Ct;let Pt=-1,xt=-1;if(we==="step"){const jt=Te.steps,Rt=Te.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?(Pt=Se==="small"?2:14,xt=Rt!=null?Rt:8):typeof Se=="number"?[Pt,xt]=[Se,Se]:[Pt=14,xt=8]=Se,Pt*=jt}else if(we==="line"){const jt=Te==null?void 0:Te.strokeWidth;typeof Se=="string"||typeof Se=="undefined"?xt=jt||(Se==="small"?6:8):typeof Se=="number"?[Pt,xt]=[Se,Se]:[Pt=-1,xt=8]=Se}else(we==="circle"||we==="dashboard")&&(typeof Se=="string"||typeof Se=="undefined"?[Pt,xt]=Se==="small"?[60,60]:[120,120]:typeof Se=="number"?[Pt,xt]=[Se,Se]:(Pt=(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[Pt,xt]},be=3,$e=Se=>be/Se*100;var Ve=Se=>{const{prefixCls:we,trailColor:Te=null,strokeLinecap:at="round",gapPosition:rt,gapDegree:Ft,width:Ct=120,type:Pt,children:xt,success:jt,size:Rt=Ct}=Se,[Xt,mn]=Ee(Rt,"circle");let{strokeWidth:hn}=Se;hn===void 0&&(hn=Math.max($e(Xt),6));const bn={width:Xt,height:mn,fontSize:Xt*.15+6},tn=ae.useMemo(()=>{if(Ft||Ft===0)return Ft;if(Pt==="dashboard")return 75},[Ft,Pt]),Yt=rt||Pt==="dashboard"&&"bottom"||void 0,fn=Object.prototype.toString.call(Se.strokeColor)==="[object Object]",xn=An({success:jt,strokeColor:Se.strokeColor}),En=me()(`${we}-inner`,{[`${we}-circle-gradient`]:fn}),rn=ae.createElement(kt,{percent:Bn(Se),strokeWidth:hn,trailWidth:hn,strokeColor:xn,strokeLinecap:at,trailColor:Te,prefixCls:we,gapDegree:tn,gapPosition:Yt});return ae.createElement("div",{className:En,style:bn},Xt<=20?ae.createElement(vn.Z,{title:xt},ae.createElement("span",null,rn)):ae.createElement(ae.Fragment,null,rn,xt))},ut=function(Se,we){var Te={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&we.indexOf(at)<0&&(Te[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])&&(Te[at[rt]]=Se[at[rt]]);return Te};const de=Se=>{let we=[];return Object.keys(Se).forEach(Te=>{const at=parseFloat(Te.replace(/%/g,""));isNaN(at)||we.push({key:at,value:Se[Te]})}),we=we.sort((Te,at)=>Te.key-at.key),we.map(Te=>{let{key:at,value:rt}=Te;return`${rt} ${at}%`}).join(", ")},Qe=(Se,we)=>{const{from:Te=Vt.presetPrimaryColors.blue,to:at=Vt.presetPrimaryColors.blue,direction:rt=we==="rtl"?"to left":"to right"}=Se,Ft=ut(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}, ${Te}, ${at})`}};var it=Se=>{const{prefixCls:we,direction:Te,percent:at,size:rt,strokeWidth:Ft,strokeColor:Ct,strokeLinecap:Pt="round",children:xt,trailColor:jt=null,success:Rt}=Se,Xt=Ct&&typeof Ct!="string"?Qe(Ct,Te):{backgroundColor:Ct},mn=Pt==="square"||Pt==="butt"?0:void 0,hn={backgroundColor:jt||void 0,borderRadius:mn},bn=rt!=null?rt:[-1,Ft||(rt==="small"?6:8)],[tn,Yt]=Ee(bn,"line",{strokeWidth:Ft}),fn=Object.assign({width:`${en(at)}%`,height:Yt,borderRadius:mn},Xt),xn=sn(Se),En={width:`${en(xn)}%`,height:Yt,borderRadius:mn,backgroundColor:Rt==null?void 0:Rt.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}),xn!==void 0?ae.createElement("div",{className:`${we}-success-bg`,style:En}):null)),xt)},ze=Se=>{const{size:we,steps:Te,percent:at=0,strokeWidth:rt=8,strokeColor:Ft,trailColor:Ct=null,prefixCls:Pt,children:xt}=Se,jt=Math.round(Te*(at/100)),Rt=we==="small"?2:14,Xt=we!=null?we:[Rt,rt],[mn,hn]=Ee(Xt,"step",{steps:Te,strokeWidth:rt}),bn=mn/Te,tn=new Array(Te);for(let Yt=0;Yt<Te;Yt++){const fn=Array.isArray(Ft)?Ft[Yt]:Ft;tn[Yt]=ae.createElement("div",{key:Yt,className:me()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:Yt<=jt-1}),style:{backgroundColor:Yt<=jt-1?fn:Ct,width:bn,height:hn}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},tn,xt)},ye=ge(93083),pe=ge(17313),He=ge(83116),Re=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}})},ft=Se=>{const{componentCls:we,iconCls:Te}=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",[Te]:{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:Te}=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%)",[Te]:{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"}}}},Nt=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:Te}=Se;return{[we]:{[`${we}-small&-line, ${we}-small&-line ${we}-text ${Te}`]:{fontSize:Se.fontSizeSM}}}};var $t=(0,He.Z)("Progress",Se=>{const we=Se.marginXXS/2,Te=(0,Re.TS)(Se,{progressStepMarginInlineEnd:we,progressStepMinWidth:we,progressActiveMotionDuration:"2.4s"});return[ft(Te),vt(Te),Nt(Te),zt(Te)]},Se=>({circleTextColor:Se.colorText,defaultColor:Se.colorInfo,remainingColor:Se.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ot=function(Se,we){var Te={};for(var at in Se)Object.prototype.hasOwnProperty.call(Se,at)&&we.indexOf(at)<0&&(Te[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])&&(Te[at[rt]]=Se[at[rt]]);return Te};const cn=null,Sn=["normal","exception","active","success"];var Lt=ae.forwardRef((Se,we)=>{const{prefixCls:Te,className:at,rootClassName:rt,steps:Ft,strokeColor:Ct,percent:Pt=0,size:xt="default",showInfo:jt=!0,type:Rt="line",status:Xt,format:mn,style:hn}=Se,bn=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=Pt!=null?Pt:0)===null||ce===void 0?void 0:ce.toString(),10)},[Pt,Se.success,Se.successPercent]),Yt=ae.useMemo(()=>!Sn.includes(Xt)&&tn>=100?"success":Xt||"normal",[Xt,tn]),{getPrefixCls:fn,direction:xn,progress:En}=ae.useContext(Oe.E_),rn=fn("progress",Te),[zn,Yn]=$t(rn),Nn=ae.useMemo(()=>{if(!jt)return null;const ve=sn(Se);let ce;const et=mn||(ct=>`${ct}%`),pt=Rt==="line";return mn||Yt!=="exception"&&Yt!=="success"?ce=et(en(Pt),en(ve)):Yt==="exception"?ce=pt?ae.createElement(Ae.Z,null):ae.createElement(fe.Z,null):Yt==="success"&&(ce=pt?ae.createElement(Pe.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${rn}-text`,title:typeof ce=="string"?ce:void 0},ce)},[jt,Pt,tn,Yt,Rt,rn,mn]),Wn=Array.isArray(Ct)?Ct[0]:Ct,na=typeof Ct=="string"||Array.isArray(Ct)?Ct:void 0;let Jn;Rt==="line"?Jn=Ft?ae.createElement(ze,Object.assign({},Se,{strokeColor:na,prefixCls:rn,steps:Ft}),Nn):ae.createElement(it,Object.assign({},Se,{strokeColor:Wn,prefixCls:rn,direction:xn}),Nn):(Rt==="circle"||Rt==="dashboard")&&(Jn=ae.createElement(Ve,Object.assign({},Se,{strokeColor:Wn,prefixCls:rn,progressStatus:Yt}),Nn));const he=me()(rn,`${rn}-status-${Yt}`,`${rn}-${Rt==="dashboard"&&"circle"||Ft&&"steps"||Rt}`,{[`${rn}-inline-circle`]:Rt==="circle"&&Ee(xt,"circle")[0]<=20,[`${rn}-show-info`]:jt,[`${rn}-${xt}`]:typeof xt=="string",[`${rn}-rtl`]:xn==="rtl"},En==null?void 0:En.className,at,rt,Yn);return zn(ae.createElement("div",Object.assign({ref:we,style:Object.assign(Object.assign({},En==null?void 0:En.style),hn),className:he,role:"progressbar","aria-valuenow":tn},(0,Je.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Et=Lt},54580:function(xe,tt,ge){"use strict";ge.d(tt,{default:function(){return wn}});var ae=ge(59301),Pe=ge(95190),Ze=ge(92310),Ae=ge.n(Ze),fe=ge(14809),je=ge(99153),me=ge(84851),Je=ge(19257),Oe=ge(93046),Ce=ge(4635),Ge=ge(62646),We=ge(70539),Ie=ge(93664),ne=ge(95764),a=ge(26112);function y(le,Be){var Fe="cannot ".concat(le.method," ").concat(le.action," ").concat(Be.status,"'"),Ne=new Error(Fe);return Ne.status=Be.status,Ne.method=le.method,Ne.url=le.action,Ne}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(_e){Fe.append("".concat(Ue,"[]"),_e)});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 Ne=le.headers||{};return Ne["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ne).forEach(function(Ue){Ne[Ue]!==null&&Be.setRequestHeader(Ue,Ne[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(","),Ne=le.name||"",Ue=le.type||"",Ke=Ue.replace(/\/.*$/,"");return Fe.some(function(_e){var De=_e.trim();if(/^\*(\/\*)?$/.test(_e))return!0;if(De.charAt(0)==="."){var bt=Ne.toLowerCase(),wt=De.toLowerCase(),Le=[wt];return(wt===".jpg"||wt===".jpeg")&&(Le=[".jpg",".jpeg"]),Le.some(function(Jt){return bt.endsWith(Jt)})}return/\/\*$/.test(De)?Ke===De.replace(/\/.*$/,""):Ue===De?!0:/^\w+$/.test(De)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(De,"'.Skip for check.")),!0):!1})}return!0};function re(le,Be){var Fe=le.createReader(),Ne=[];function Ue(){Fe.readEntries(function(Ke){var _e=Array.prototype.slice.apply(Ke);Ne=Ne.concat(_e);var De=!_e.length;De?Be(Ne):Ue()})}Ue()}var ie=function(Be,Fe,Ne){var Ue=function Ke(_e,De){_e&&(_e.path=De||"",_e.isFile?_e.file(function(bt){Ne(bt)&&(_e.fullPath&&!bt.webkitRelativePath&&(Object.defineProperties(bt,{webkitRelativePath:{writable:!0}}),bt.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(bt,{webkitRelativePath:{writable:!1}})),Fe([bt]))}):_e.isDirectory&&re(_e,function(bt){bt.forEach(function(wt){Ke(wt,"".concat(De).concat(_e.name,"/"))})}))};Be.forEach(function(Ke){Ue(Ke.webkitGetAsEntry())})},ue=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Me=function(le){(0,Je.Z)(Fe,le);var Be=(0,Oe.Z)(Fe);function Fe(){var Ne;(0,je.Z)(this,Fe);for(var Ue=arguments.length,Ke=new Array(Ue),_e=0;_e<Ue;_e++)Ke[_e]=arguments[_e];return Ne=Be.call.apply(Be,[this].concat(Ke)),Ne.state={uid:ee()},Ne.reqs={},Ne.fileInput=void 0,Ne._isMounted=void 0,Ne.onChange=function(De){var bt=Ne.props,wt=bt.accept,Le=bt.directory,Jt=De.target.files,Kt=(0,Pe.Z)(Jt).filter(function(un){return!Le||oe(un,wt)});Ne.uploadFiles(Kt),Ne.reset()},Ne.onClick=function(De){var bt=Ne.fileInput;if(bt){var wt=De.target,Le=Ne.props.onClick;if(wt&&wt.tagName==="BUTTON"){var Jt=bt.parentNode;Jt.focus(),wt.blur()}bt.click(),Le&&Le(De)}},Ne.onKeyDown=function(De){De.key==="Enter"&&Ne.onClick(De)},Ne.onFileDrop=function(De){var bt=Ne.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Ne.props.directory)ue(Array.prototype.slice.call(De.dataTransfer.items),Ne.uploadFiles,function(Le){return oe(Le,Ne.props.accept)});else{var wt=(0,Pe.Z)(De.dataTransfer.files).filter(function(Le){return oe(Le,Ne.props.accept)});bt===!1&&(wt=wt.slice(0,1)),Ne.uploadFiles(wt)}},Ne.uploadFiles=function(De){var bt=(0,Pe.Z)(De),wt=bt.map(function(Le){return Le.uid=ee(),Ne.processFile(Le,bt)});Promise.all(wt).then(function(Le){var Jt=Ne.props.onBatchStart;Jt==null||Jt(Le.map(function(Kt){var un=Kt.origin,Fn=Kt.parsedFile;return{file:un,parsedFile:Fn}})),Le.filter(function(Kt){return Kt.parsedFile!==null}).forEach(function(Kt){Ne.post(Kt)})})},Ne.processFile=function(){var De=(0,ne.Z)((0,We.Z)().mark(function bt(wt,Le){var Jt,Kt,un,Fn,Xe,dt,yt,gt,_t;return(0,We.Z)().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(Jt=Ne.props.beforeUpload,Kt=wt,!Jt){Gt.next=14;break}return Gt.prev=3,Gt.next=6,Jt(wt,Le);case 6:Kt=Gt.sent,Gt.next=12;break;case 9:Gt.prev=9,Gt.t0=Gt.catch(3),Kt=!1;case 12:if(Kt!==!1){Gt.next=14;break}return Gt.abrupt("return",{origin:wt,parsedFile:null,action:null,data:null});case 14:if(un=Ne.props.action,typeof un!="function"){Gt.next=21;break}return Gt.next=18,un(wt);case 18:Fn=Gt.sent,Gt.next=22;break;case 21:Fn=un;case 22:if(Xe=Ne.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,Ie.Z)(Kt)==="object"||typeof Kt=="string")&&Kt?Kt:wt,yt instanceof File?gt=yt:gt=new File([yt],wt.name,{type:wt.type}),_t=gt,_t.uid=wt.uid,Gt.abrupt("return",{origin:wt,data:dt,parsedFile:_t,action:Fn});case 35:case"end":return Gt.stop()}},bt,null,[[3,9]])}));return function(bt,wt){return De.apply(this,arguments)}}(),Ne.saveFileInput=function(De){Ne.fileInput=De},Ne}return(0,me.Z)(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,_e=Ue.data,De=Ue.origin,bt=Ue.action,wt=Ue.parsedFile;if(this._isMounted){var Le=this.props,Jt=Le.onStart,Kt=Le.customRequest,un=Le.name,Fn=Le.headers,Xe=Le.withCredentials,dt=Le.method,yt=De.uid,gt=Kt||b,_t={action:bt,filename:un,data:_e,file:wt,headers:Fn,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(De),this.reqs[yt]=gt(_t)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ue){var Ke=this.reqs;if(Ue){var _e=Ue.uid?Ue.uid:Ue;Ke[_e]&&Ke[_e].abort&&Ke[_e].abort(),delete Ke[_e]}else Object.keys(Ke).forEach(function(De){Ke[De]&&Ke[De].abort&&Ke[De].abort(),delete Ke[De]})}},{key:"render",value:function(){var Ue=this.props,Ke=Ue.component,_e=Ue.prefixCls,De=Ue.className,bt=Ue.disabled,wt=Ue.id,Le=Ue.style,Jt=Ue.multiple,Kt=Ue.accept,un=Ue.capture,Fn=Ue.children,Xe=Ue.directory,dt=Ue.openFileDialogOnClick,yt=Ue.onMouseEnter,gt=Ue.onMouseLeave,_t=(0,Ge.Z)(Ue,se),Ht=Ae()((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},_e,!0),"".concat(_e,"-disabled"),bt),De,De)),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:Ht,role:"button",style:Le}),ae.createElement("input",(0,fe.Z)({},(0,a.Z)(_t,{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:Kt},Gt,{multiple:Jt,onChange:this.onChange},un!=null?{capture:un}:{})),Fn)}}]),Fe}(ae.Component),ke=Me;function st(){}var Dt=function(le){(0,Je.Z)(Fe,le);var Be=(0,Oe.Z)(Fe);function Fe(){var Ne;(0,je.Z)(this,Fe);for(var Ue=arguments.length,Ke=new Array(Ue),_e=0;_e<Ue;_e++)Ke[_e]=arguments[_e];return Ne=Be.call.apply(Be,[this].concat(Ke)),Ne.uploader=void 0,Ne.saveUploader=function(De){Ne.uploader=De},Ne}return(0,me.Z)(Fe,[{key:"abort",value:function(Ue){this.uploader.abort(Ue)}},{key:"render",value:function(){return ae.createElement(ke,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),Fe}(ae.Component);Dt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:st,onError:st,onSuccess:st,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var qt=Dt,At=qt,kt=ge(18929),Wt=ge(4676),vn=ge(36355),Vt=ge(1684),en=ge(9763),sn=ge(31724),Bn={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=Bn,Ee=ge(7657),be=function(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:An}))},$e=ae.forwardRef(be),qe=$e,Ve=ge(58617),ut={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=ut,Qe=function(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:de}))},mt=ae.forwardRef(Qe),it=mt,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"},ze=Bt,ye=function(Be,Fe){return ae.createElement(Ee.Z,(0,fe.Z)({},Be,{ref:Fe,icon:ze}))},pe=ae.forwardRef(ye),He=pe,Re=ge(77900),nt=ge(56762),ft=ge(62892),vt=ge(92343),Nt=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),Ne=Fe.findIndex(Ue=>{let{uid:Ke}=Ue;return Ke===le.uid});return Ne===-1?Fe.push(le):Fe[Ne]=le,Fe}function Ot(le,Be){const Fe=le.uid!==void 0?"uid":"name";return Be.filter(Ne=>Ne[Fe]===le[Fe])[0]}function cn(le,Be){const Fe=le.uid!==void 0?"uid":"name",Ne=Be.filter(Ue=>Ue[Fe]!==le[Fe]);return Ne.length===Be.length?null:Ne}const Sn=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ne=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ne)||[""])[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 Ne=Fe.getContext("2d"),Ue=new Image;if(Ue.onload=()=>{const{width:Ke,height:_e}=Ue;let De=Et,bt=Et,wt=0,Le=0;Ke>_e?(bt=_e*(Et/Ke),Le=-(bt-De)/2):(De=Ke*(Et/_e),wt=-(De-bt)/2),Ne.drawImage(Ue,wt,Le,De,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),Te=ge(41464),at=ge(15277),rt=ge(93948),Ft=ge(6848),Pt=ae.forwardRef((le,Be)=>{let{prefixCls:Fe,className:Ne,style:Ue,locale:Ke,listType:_e,file:De,items:bt,progress:wt,iconRender:Le,actionIconRender:Jt,itemRender:Kt,isImgUrl:un,showPreviewIcon:Fn,showRemoveIcon:Xe,showDownloadIcon:dt,previewIcon:yt,removeIcon:gt,downloadIcon:_t,onPreview:Ht,onDownload:Gt,onClose:dn}=le;var ln,oa;const{status:Qn}=De,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Dn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Dn)}},[]);const da=Le(De);let Vn=ae.createElement("div",{className:`${Fe}-icon`},da);if(_e==="picture"||_e==="picture-card"||_e==="picture-circle")if(qn==="uploading"||!De.thumbUrl&&!De.url){const Dn=Ae()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Dn},da)}else{const Dn=un!=null&&un(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${Fe}-list-item-image`,crossOrigin:De.crossOrigin}):da,$n=Ae()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:un&&!un(De)});Vn=ae.createElement("a",{className:$n,onClick:la=>Ht(De,la),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dn)}const Cn=Ae()(`${Fe}-list-item`,`${Fe}-list-item-${qn}`),ta=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,ga=Xe?Jt((typeof gt=="function"?gt(De):gt)||ae.createElement(we.Z,null),()=>dn(De),Fe,Ke.removeFile):null,ia=dt&&qn==="done"?Jt((typeof _t=="function"?_t(De):_t)||ae.createElement(Te.Z,null),()=>Gt(De),Fe,Ke.downloadFile):null,aa=_e!=="picture-card"&&_e!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ae()(`${Fe}-list-item-actions`,{picture:_e==="picture"})},ia,ga),ea=Ae()(`${Fe}-list-item-name`),ha=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:De.name},ta,{href:De.url,onClick:Dn=>Ht(De,Dn)}),De.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Dn=>Ht(De,Dn),title:De.name},De.name),aa],Tt={pointerEvents:"none",opacity:.5},Gn=Fn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:Tt,onClick:Dn=>Ht(De,Dn),title:Ke.previewFile},typeof yt=="function"?yt(De):yt||ae.createElement(at.Z,null)):null,Mn=(_e==="picture-card"||_e==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Fe}-list-item-actions`},Gn,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(vn.E_),Xn=Un(),ra=ae.createElement("div",{className:Cn},Vn,ha,Mn,Sa&&ae.createElement(Re.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Dn=>{let{className:$n}=Dn;const la="percent"in De?ae.createElement(rt.Z,Object.assign({},wt,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ae.createElement("div",{className:Ae()(`${Fe}-list-item-progress`,$n)},la)})),va=De.response&&typeof De.response=="string"?De.response:((ln=De.error)===null||ln===void 0?void 0:ln.statusText)||((oa=De.error)===null||oa===void 0?void 0:oa.message)||Ke.uploadError,pa=qn==="error"?ae.createElement(Ft.Z,{title:va,getPopupContainer:Dn=>Dn.parentNode},ra):ra;return ae.createElement("div",{className:Ae()(`${Fe}-list-item-container`,Ne),style:Ue,ref:Be},Kt?Kt(pa,De,bt,{download:Gt.bind(null,De),preview:Ht.bind(null,De),remove:dn.bind(null,De)}):pa)});const xt=(le,Be)=>{const{listType:Fe="text",previewFile:Ne=Se,onPreview:Ue,onDownload:Ke,onRemove:_e,locale:De,iconRender:bt,isImageUrl:wt=Lt,prefixCls:Le,items:Jt=[],showPreviewIcon:Kt=!0,showRemoveIcon:un=!0,showDownloadIcon:Fn=!1,removeIcon:Xe,previewIcon:dt,downloadIcon:yt,progress:gt={size:[-1,2],showInfo:!1},appendAction:_t,appendActionVisible:Ht=!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="",Ne&&Ne(Tt.originFileObj).then(Gn=>{Tt.thumbUrl=Gn||"",ln()}))})},[Fe,Jt,Ne]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(Tt,Gn)=>{if(Ue)return Gn==null||Gn.preventDefault(),Ue(Tt)},ca=Tt=>{typeof Ke=="function"?Ke(Tt):Tt.url&&window.open(Tt.url)},Sa=Tt=>{_e==null||_e(Tt)},Pa=Tt=>{if(bt)return bt(Tt,Fe);const Gn=Tt.status==="uploading",Mn=wt&&wt(Tt)?ae.createElement(He,null):ae.createElement(qe,null);let Un=Gn?ae.createElement(Ve.Z,null):ae.createElement(it,null);return Fe==="picture"?Un=Gn?ae.createElement(Ve.Z,null):Mn:(Fe==="picture-card"||Fe==="picture-circle")&&(Un=Gn?De.uploading:Mn),Un},da=(Tt,Gn,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{Gn(),(0,vt.l$)(Tt)&&Tt.props.onClick&&Tt.props.onClick(ra)},className:`${Mn}-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(Nt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Nt.ZP,Object.assign({},Xn),ae.createElement("span",null,Tt))};ae.useImperativeHandle(Be,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(vn.E_),Cn=Vn("upload",Le),ta=Vn(),ga=Ae()(`${Cn}-list`,`${Cn}-list-${Fe}`),ia=(0,Pe.Z)(Jt.map(Tt=>({key:Tt.uid,file:Tt})));let ea={motionDeadline:2e3,motionName:`${Cn}-${Fe==="picture-card"||Fe==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const ha=ae.useMemo(()=>{const Tt=Object.assign({},(0,ft.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(Re.CSSMotionList,Object.assign({},ea,{component:!1}),Tt=>{let{key:Gn,file:Mn,className:Un,style:Xn}=Tt;return ae.createElement(Pt,{key:Gn,locale:De,prefixCls:Cn,className:Un,style:Xn,file:Mn,items:Jt,progress:gt,listType:Fe,isImgUrl:wt,showPreviewIcon:Kt,showRemoveIcon:un,showDownloadIcon:Fn,removeIcon:Xe,previewIcon:dt,downloadIcon:yt,iconRender:Pa,actionIconRender:da,itemRender:Gt,onPreview:qn,onDownload:ca,onClose:Sa})}),_t&&ae.createElement(Re.default,Object.assign({},ea,{visible:Ht,forceRender:!0}),Tt=>{let{className:Gn,style:Mn}=Tt;return(0,vt.Tm)(_t,Un=>({className:Ae()(Un.className,Gn),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:Gn?"none":void 0}),Un.style)}))}))};var Rt=ae.forwardRef(xt),Xt=ge(17313),mn=ge(8378),hn=ge(83116),bn=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}}}}}},xn=le=>{const{componentCls:Be,antCls:Fe,iconCls:Ne,fontSize:Ue,lineHeight:Ke}=le,_e=`${Be}-list-item`,De=`${_e}-actions`,bt=`${_e}-action`,wt=Math.round(Ue*Ke);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,Xt.dF)()),{lineHeight:le.lineHeight,[_e]:{position:"relative",height:le.lineHeight*Ue,marginTop:le.marginXS,fontSize:Ue,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${_e}-name`]:Object.assign(Object.assign({},Xt.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ke,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[De]:{[bt]:{opacity:0},[`${bt}${Fe}-btn-sm`]:{height:wt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${bt}:focus-visible,
|
|
&.picture ${bt}
|
|
`]:{opacity:1},[Ne]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${Ne}`]:{color:le.colorText}},[`${Be}-icon ${Ne}`]:{color:le.colorTextDescription,fontSize:Ue},[`${_e}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:Ue+le.paddingXS,fontSize:Ue,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${_e}:hover ${bt}`]:{opacity:1,color:le.colorText},[`${_e}-error`]:{color:le.colorError,[`${_e}-name, ${Be}-icon ${Ne}`]:{color:le.colorError},[De]:{[`${Ne}, ${Ne}: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:'""'}}})}}},En=ge(93083),rn=ge(1950);const zn=new En.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new En.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:zn},[`${Fe}-leave`]:{animationName:Yn}}},{[`${Be}-wrapper`]:(0,rn.J$)(le)},zn,Yn]},na=ge(30071),Jn=ge(64993);const he=le=>{const{componentCls:Be,iconCls:Fe,uploadThumbnailSize:Ne,uploadProgressOffset:Ue}=le,Ke=`${Be}-list`,_e=`${Ke}-item`;return{[`${Be}-wrapper`]:{[`
|
|
${Ke}${Ke}-picture,
|
|
${Ke}${Ke}-picture-card,
|
|
${Ke}${Ke}-picture-circle
|
|
`]:{[_e]:{position:"relative",height:Ne+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${_e}-thumbnail`]:Object.assign(Object.assign({},Xt.vS),{width:Ne,height:Ne,lineHeight:`${Ne+le.paddingSM}px`,textAlign:"center",flex:"none",[Fe]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${_e}-progress`]:{bottom:Ue,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ne+le.paddingXS}},[`${_e}-error`]:{borderColor:le.colorError,[`${_e}-thumbnail ${Fe}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:le.colorError}}},[`${_e}-uploading`]:{borderStyle:"dashed",[`${_e}-name`]:{marginBottom:Ue}}},[`${Ke}${Ke}-picture-circle ${_e}`]:{[`&, &::before, ${_e}-thumbnail`]:{borderRadius:"50%"}}}}},ve=le=>{const{componentCls:Be,iconCls:Fe,fontSizeLG:Ne,colorTextLightSolid:Ue}=le,Ke=`${Be}-list`,_e=`${Ke}-item`,De=le.uploadPicCardSize;return{[`
|
|
${Be}-wrapper${Be}-picture-card-wrapper,
|
|
${Be}-wrapper${Be}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Xt.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:De,height:De,marginInlineEnd:le.marginXS,marginBottom:le.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${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:De,height:De,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[_e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le.paddingXS*2}px)`,height:`calc(100% - ${le.paddingXS*2}px)`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${_e}:hover`]:{[`&::before, ${_e}-actions`]:{opacity:1}},[`${_e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{zIndex:10,width:Ne,margin:`0 ${le.marginXXS}px`,fontSize:Ne,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${_e}-actions, ${_e}-actions:hover`]:{[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{color:new Jn.C(Ue).setAlpha(.65).toRgbString(),"&:hover":{color:Ue}}},[`${_e}-thumbnail, ${_e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${_e}-name`]:{display:"none",textAlign:"center"},[`${_e}-file + ${_e}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${_e}-uploading`]:{[`&${_e}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{display:"none"}},[`${_e}-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 pt=le=>{const{componentCls:Be,colorTextDisabled:Fe}=le;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,Xt.Wf)(le)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:Fe,cursor:"not-allowed"}})}};var ct=(0,hn.Z)("Upload",le=>{const{fontSizeHeading3:Be,fontSize:Fe,lineHeight:Ne,lineWidth:Ue,controlHeightLG:Ke}=le,_e=Math.round(Fe*Ne),De=(0,bn.TS)(le,{uploadThumbnailSize:Be*2,uploadProgressOffset:_e/2+Ue,uploadPicCardSize:Ke*2.55});return[pt(De),Yt(De),he(De),ve(De),xn(De),Wn(De),et(De),(0,mn.Z)(De)]},le=>({actionsColor:le.colorTextDescription})),nn=function(le,Be,Fe,Ne){function Ue(Ke){return Ke instanceof Fe?Ke:new Fe(function(_e){_e(Ke)})}return new(Fe||(Fe=Promise))(function(Ke,_e){function De(Le){try{wt(Ne.next(Le))}catch(Jt){_e(Jt)}}function bt(Le){try{wt(Ne.throw(Le))}catch(Jt){_e(Jt)}}function wt(Le){Le.done?Ke(Le.value):Ue(Le.value).then(De,bt)}wt((Ne=Ne.apply(le,Be||[])).next())})};const Mt=`__LIST_IGNORE_${Date.now()}__`,Zt=(le,Be)=>{const{fileList:Fe,defaultFileList:Ne,onRemove:Ue,showUploadList:Ke=!0,listType:_e="text",onPreview:De,onDownload:bt,onChange:wt,onDrop:Le,previewFile:Jt,disabled:Kt,locale:un,iconRender:Fn,isImageUrl:Xe,progress:dt,prefixCls:yt,className:gt,type:_t="select",children:Ht,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=Kt!=null?Kt:da,[Cn,ta]=(0,kt.Z)(Ne||[],{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,Wt.flushSync)(()=>{ta(Qt)});const Hn={file:It,fileList:Qt};Ln&&(Hn.event=Ln),(!gn||Qt.some(yn=>yn.uid===It.uid))&&(0,Wt.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[Mt],Hn===Mt)return Object.defineProperty(It,Mt,{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[Mt]);if(!an.length)return;const Ln=an.map(gn=>zt(gn.file));let Qt=(0,Pe.Z)(Cn);Ln.forEach(gn=>{Qt=$t(gn,Qt)}),Ln.forEach((gn,Hn)=>{let yn=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,yn=ua}ea(yn,Qt)})},Gn=(It,an,Ln)=>{try{typeof It=="string"&&(It=JSON.parse(It))}catch(Hn){}if(!Ot(an,Cn))return;const Qt=zt(an);Qt.status="done",Qt.percent=100,Qt.response=It,Qt.xhr=Ln;const gn=$t(Qt,Cn);ea(Qt,gn)},Mn=(It,an)=>{if(!Ot(an,Cn))return;const Ln=zt(an);Ln.status="uploading",Ln.percent=It.percent;const Qt=$t(Ln,Cn);ea(Ln,Qt,It)},Un=(It,an,Ln)=>{if(!Ot(Ln,Cn))return;const Qt=zt(Ln);Qt.error=It,Qt.response=an,Qt.status="error";const gn=$t(Qt,Cn);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,Cn);gn&&(an=Object.assign(Object.assign({},It),{status:"removed"}),Cn==null||Cn.forEach(Hn=>{const yn=an.uid!==void 0?"uid":"name";Hn[yn]===an[yn]&&!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:Gn,onProgress:Mn,onError:Un,fileList:Cn,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Dn}=ae.useContext(vn.E_),$n=va("upload",yt),la=Object.assign(Object.assign({onBatchStart:Tt,onError:Un,onProgress:Mn,onSuccess:Gn},le),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:$n,disabled:Vn,beforeUpload:ha,onChange:void 0});delete la.className,delete la.style,(!Ht||Vn)&&delete la.id;const[La,ya]=ct($n),[ba]=(0,en.Z)("Upload",sn.Z.Upload),{showRemoveIcon:ht,showPreviewIcon:ot,showDownloadIcon:lt,removeIcon:St,previewIcon:on,downloadIcon:On}=typeof Ke=="boolean"?{}:Ke,kn=(It,an)=>Ke?ae.createElement(Rt,{prefixCls:$n,listType:_e,items:Cn,previewFile:Jt,onPreview:De,onDownload:bt,onRemove:Xn,showRemoveIcon:!Vn&&ht,showPreviewIcon:ot,showDownloadIcon:lt,removeIcon:St,previewIcon:on,downloadIcon:On,iconRender:Fn,locale:Object.assign(Object.assign({},ba),un),isImageUrl:Xe,progress:dt,appendAction:It,appendActionVisible:an,itemRender:dn,disabled:Vn}):It,Tn=Ae()(`${$n}-wrapper`,gt,Pa,ya,Dn==null?void 0:Dn.className,{[`${$n}-rtl`]:pa==="rtl",[`${$n}-picture-card-wrapper`]:_e==="picture-card",[`${$n}-picture-circle-wrapper`]:_e==="picture-circle"}),_n=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Gt);if(_t==="drag"){const It=Ae()(ya,$n,`${$n}-drag`,{[`${$n}-drag-uploading`]:Cn.some(an=>an.status==="uploading"),[`${$n}-drag-hover`]:ga==="dragover",[`${$n}-disabled`]:Vn,[`${$n}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:Tn},ae.createElement("div",{className:It,style:_n,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(At,Object.assign({},la,{ref:aa,className:`${$n}-btn`}),ae.createElement("div",{className:`${$n}-drag-container`},Ht))),kn()))}const jn=Ae()($n,`${$n}-select`,{[`${$n}-disabled`]:Vn}),Kn=(It=>ae.createElement("div",{className:jn,style:It},ae.createElement(At,Object.assign({},la,{ref:aa}))))(Ht?void 0:{display:"none"});return La(_e==="picture-card"||_e==="picture-circle"?ae.createElement("span",{className:Tn},kn(Kn,!!Ht)):ae.createElement("span",{className:Tn},Kn,kn()))};var Rn=ae.forwardRef(Zt),Ye=function(le,Be){var Fe={};for(var Ne in le)Object.prototype.hasOwnProperty.call(le,Ne)&&Be.indexOf(Ne)<0&&(Fe[Ne]=le[Ne]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ne=Object.getOwnPropertySymbols(le);Ue<Ne.length;Ue++)Be.indexOf(Ne[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Ne[Ue])&&(Fe[Ne[Ue]]=le[Ne[Ue]]);return Fe},In=ae.forwardRef((le,Be)=>{var{style:Fe,height:Ne}=le,Ue=Ye(le,["style","height"]);return ae.createElement(Rn,Object.assign({ref:Be},Ue,{type:"drag",style:Object.assign(Object.assign({},Fe),{height:Ne})}))});const Zn=Rn;Zn.Dragger=In,Zn.LIST_IGNORE=Mt;var wn=Zn}}]);
|