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

144 lines
398 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4795],{26227:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},_e=Ze,ce=re(7657),He=function(Ie,Re){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:Re,icon:_e}))},ue=fe.forwardRef(He),Ve=ue},41464:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},_e=Ze,ce=re(7657),He=function(Ie,Re){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:Re,icon:_e}))},ue=fe.forwardRef(He),Ve=ue},61481:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},_e=Ze,ce=re(7657),He=function(Ie,Re){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:Re,icon:_e}))},ue=fe.forwardRef(He),Ve=ue},33853:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_e=Ze,ce=re(7657),He=function(Ie,Re){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:Re,icon:_e}))},ue=fe.forwardRef(He),Ve=ue},38819:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=Ze,ce=re(7657),He=function(Ie,Re){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:Re,icon:_e}))},ue=fe.forwardRef(He),Ve=ue},96408:function(Ce,lt){"use strict";lt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function Ce(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(Ce.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(Ce.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(Ce.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(Ce.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 Ce))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 lt=[];function re(ne,a){var y=lt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=lt.pop();return ne===void 0?new go.Point:ne}function fe(ne){lt.push(ne)}function Ze(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,se=a);else{var le=(E-ee)/ge,Be=E-le*b;ie=ne,se=le*ie+Be}else if(ge===0){var Ne=(a-x)/oe,ut=a-Ne*ne;ie=b,se=Ne*ie+ut}else{var Ne=(a-x)/oe,le=(E-ee)/ge,ut=a-Ne*ne,Be=E-le*b;ie=(Be-ut)/(Ne-le),se=Ne*ie+ut}return te.x=ie,te.y=se,te}function _e(ne,a,y,x,b,E,z,ee,te,oe,ge,ie,se,le){var Be=1-te,Ne=te,ut=ne*Be+y*Ne,Bt=a*Be+x*Ne,Wt=y*Be+b*Ne,ye=x*Be+E*Ne,Ke=b*Be+z*Ne,it=E*Be+ee*Ne,et=ut*Be+Wt*Ne,st=Bt*Be+ye*Ne,tt=Wt*Be+Ke*Ne,at=ye*Be+it*Ne,qe=et*Be+tt*Ne,Vt=st*Be+at*Ne;oe.x=ut,oe.y=Bt,ge.x=et,ge.y=st,ie.x=qe,ie.y=Vt,se.x=tt,se.y=at,le.x=Ke,le.y=it}var ce=new go.Spot(.156,.156),He=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ce("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=He,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ue*y,(1-ue)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ue*y,ue*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ce("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 Ce("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 Ce("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 Ce("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 Ce("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 Ve=[];function Oe(){var ne=Ve.pop();return ne===void 0?[]:ne}function Ie(ne){ne.length=0,Ve.push(ne)}function Re(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 Me(ne){var a=be(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 Ie(a),y}function be(ne){for(var a=Re(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],ge=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,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ie(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Re(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()),Ie(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=Re(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()),Ie(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=Re(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()),Ie(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=Re(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()),Ie(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=Re(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()),Ie(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=Re(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()),Ie(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=Re(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()),Ie(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=be(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()),Ie(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=be(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()),Ie(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=be(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()),Ie(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=be(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()),Ie(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=be(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()),Ie(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=be(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()),Ie(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=Me(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(),Ie(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=Me(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(),Ie(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=Me(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(),Ie(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=Me(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(),Ie(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=Me(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(),Ie(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=Me(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(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ce("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ce("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 Ce("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=ce,E.spot2=He,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 Ce("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ce("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ce("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 Ce("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 Ce("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,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ce("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 Ce("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 Ce("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=ue*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,ie,se,se);var le=ae(),Be=ae(),Ne=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ne,le,Be);var ut=ae(),Bt=ae(),Wt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ut,Bt,Wt,se,se);var ye=ae(),Ke=ae(),it=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,it,ye,Ke),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ye.x*a,ye.y*y,Ke.x*a,Ke.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Wt.x*a,Wt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Be.x*a,Be.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,Wt.x*a,Wt.y*y,ut.x*a,ut.y*y,Bt.x*a,Bt.y*y).close()),fe(oe),fe(ge),fe(ie),fe(se),fe(le),fe(Be),fe(Ne),fe(ut),fe(Bt),fe(Wt),fe(ye),fe(Ke),fe(it),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 Ce("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var le=re(oe.x,oe.y);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,ie);var Be=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var Ne=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ne.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 ut=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ut),fe(te),fe(oe),fe(ge),fe(ie),fe(le),fe(Be),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ce("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ce("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 ge=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Ce("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ce("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 ge=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),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 Ce("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),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ce("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ce("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,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.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),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ce("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),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ce("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ce("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,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.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),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ce("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),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ce("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),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ce("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),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ce("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),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ce("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ue*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-ue*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ue*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-ue*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,se=ue*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=ue*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=ue*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=ue*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=ue*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),le.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 Ce("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ue*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(E-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Be=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var Ne=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);x.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var ut=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.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(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=ue*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.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(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(oe),fe(ge),fe(ie),fe(se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,Be=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Be.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)),Be.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)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Be.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,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,se=z,le=z,Be=ge*se,Ne=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(Be+se)/2)*a,(te+(le+Ne)/2)*y,(ee-se)*a,(te+Ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ne)*y,(ee-Be)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+Be)*a,(te-le)*y,(ee+se)*a,(te-Ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ne)*y,(ee+(Be+se)/2)*a,(te+(le+Ne)/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 ut=new go.PathFigure(.2*a,y,!1);x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Bt=new go.PathFigure(.8*a,y,!1);return x.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=ue*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=ue*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*a,ie*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=ue*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-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 ge=.05,ie=ue*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.825,le=.95,Be=new go.PathFigure((se-ge)*a,le*y,!0);x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y).close());var Ne=new go.PathFigure(0,y,!1);return x.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ue*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=ue*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*ue,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ce={},lt="5.0",re={},ae=null,fe=!1,Ze=!1,_e=null,ce=!1,He=null,ue=null,Ve=0;Ve<arguments.length;Ve++){var Oe=arguments[Ve];if(Oe!==null)switch(typeof Oe){case"number":lt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Oe:_e=Oe;break;case"object":typeof Oe.is3D!="undefined"?ae=Oe:re=Oe;break;case"boolean":fe=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},re.material_id!==void 0&&!Ze&&(fe=!0)),_e!==null&&re.id===void 0&&(re.id=_e);var Ie="",Re="",Me=!1,be=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(Le){return parseFloat(Le)>4?parseFloat(Le):5};Ce.setHTML5Codebase=function(Le,$e){ue=Le,at(Le,$e)},Ce.setJavaCodebase=Ce.setJavaCodebaseVersion=Ce.isCompiledInstalled=Ce.setPreCompiledScriptPath=Ce.setPreCompiledResourcePath=function(){},Ce.setHTML5CodebaseVersion=function(Le,$e){var Je=parseFloat(Le);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}He=Le,tt(Le,$e)},Ce.getHTML5CodebaseVersion=function(){return ne},Ce.getParameters=function(){return re},Ce.setFontsCSSURL=function(Le){z=Le},Ce.setGiacJSURL=function(Le){},Ce.setJNLPFile=function(Le){Ie=Le},Ce.setJNLPBaseDir=function(Le){},Ce.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Je=re.id,ht,Xe=!1,gt=0;gt<arguments.length;gt++){var de=arguments[gt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:Je=arguments[gt]):typeof de=="boolean"?Xe=de:de instanceof HTMLElement&&(ht=de)}ot();function ot(){if(!ce){setTimeout(ot,200);return}$e=et($e);var At=ht||document.getElementById(Je);if(!At){console.log("possibly bug on ajax loading? ");return}if(Ce.removeExistingApplet(At,!1),re.width===void 0&&At.clientWidth&&(re.width=At.clientWidth),re.height===void 0&&At.clientHeight&&(re.height=At.clientHeight),!(re.width&&re.height)&&$e==="html5"&&(delete re.width,delete re.height),be=$e,$e==="screenshot")Bt(At,re);else{var Yt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Yt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Yt=(!oe()||Le())&&ge()),Yt?(be="screenshot",ye(At,re,Xe,$e)):ut(At,re,Xe)}}};function oe(){try{return window.self!==window.top}catch(Le){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ce.getViews=function(){return ae},Ce.isJavaInstalled=function(){return!1};var ie=function(Le){var $e=function(gt){var de=JSON.parse(gt),ot=function(kt){return kt.type=="G"||kt.type=="E"},At=de.elements?de.elements.filter(ot)[0]:de;if(!At||!At.url){Je();return}re.fileName=At.url,se(At.settings||{}),ae.is3D=!0;var Yt="https://www.geogebra.org/images/";Ce.setPreviewImage(x||At.previewUrl,Yt+"GeoGebra_loading.png",Yt+"applet_play.png"),Le()},Je=function(){re.onError&&re.onError(),qe("Error: Fetching material (id "+re.material_id+") failed.",re)},ht=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xe="/materials/"+re.material_id+"?scope=basic";le("https://"+ht+"/api/proxy.php?path="+encodeURIComponent(Xe),$e,Je)};function se(Le){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Le[Je]=!!Le[Je]}),$e.forEach(function(Je){re[Je]===void 0&&Le[Je]!==void 0&&(re[Je]=Le[Je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Le,$e,Je){var ht=new XMLHttpRequest;ht.open("GET",Le),ht.onload=function(){$e(ht.responseText)},ht.onerror=Je,ht.send()}Ce.isHTML5Installed=function(){return!0},Ce.getLoadedAppletType=function(){return be},Ce.setPreviewImage=function(Le,$e,Je){x=Le,b=$e,E=Je},Ce.removeExistingApplet=function(Le,$e){var Je;typeof Le=="string"&&(Le=document.getElementById(Le)),be=null;var ht=null;for(Je=0;Je<Le.childNodes.length;Je++){var Xe=Le.childNodes[Je],gt=Xe.className;gt==="applet_screenshot"?$e?(Xe.style.display="block",be="screenshot"):Xe.style.display="none":gt!=="applet_scaler prerender"&&(Le.removeChild(Xe),ht=gt&&gt.indexOf("appletParameters")!=-1?Xe.id:null,Je--)}var de=re.id!==void 0?re.id:ht,ot=window[de];ot&&typeof ot.getBase64=="function"&&(ot.remove(),window[de]=null)},Ce.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=Ce.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},Ce.startAnimation=function(){var Le=Ce.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},Ce.stopAnimation=function(){var Le=Ce.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},Ce.getAppletObject=function(){var Le=re.id!==void 0?re.id:"ggbApplet";return window[Le]},Ce.resize=function(){};var Be=function(Le,$e,Je){var ht=document.createElement("param");ht.setAttribute("name",$e),ht.setAttribute("value",Je),Le.appendChild(ht)},Ne=function(Le){return Le&&Le!=="false"},ut=function(Le,$e,Je){te(ne)<=4.2&&(Je=!0);var ht=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ht=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var gt=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ne)<=4.4)Ne($e.showToolBar)&&($e.height-=7),Ne($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Ne($e.showToolBar)&&($e.width=605,gt=605);else{var ot=100;(Ne($e.showToolBar)||Ne($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),ot=Ne($e.showMenuBar)?245:155),gt<ot&&($e.width=ot,gt=ot)}Xe.style.border="none",Xe.style.display="inline-block";for(var At in $e)$e.hasOwnProperty(At)&&At!=="appletOnLoad"&&Xe.setAttribute("data-param-"+At,$e[At]);z&&Xe.setAttribute("data-param-fontscssurl",z),Ce.resize=function(){GGBAppletUtils.responsiveResize(Le,$e)},window.addEventListener("resize",function(vt){Ce.resize()});var Yt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Je&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||Xe.setAttribute("data-param-showSplash","false");var kt=Le.querySelector(".applet_scaler.prerender"),Ge=kt!==null;if(Ge)var we=kt.querySelector(".ggb_preview");else{var we=it(gt,de,$e.borderColor,!1);kt=document.createElement("div"),kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.style.width=gt+"px",kt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),te(ne)>=5?($e.appletOnLoad=function(vt){var ft=Le.querySelector(".ggb_preview");ft&&ft.parentNode.removeChild(ft),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(kt),window.GGBT_wsf_view&&$(window).trigger("resize"),Yt(vt)},Ge||kt.appendChild(we)):Xe.appendChild(we),kt.appendChild(Xe),Ge||Le.appendChild(kt),setTimeout(function(){Ce.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Xe),Le.appendChild(pe),$e.appletOnLoad=function(vt){Ce.resize(),Yt(vt)}}function ke(vt,ft){ft&&typeof ft.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vt,ft.appletOnLoad):renderGGBElement(vt),qe("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ft)}function Ae(vt,ft){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vt,params:ft}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(nn){ke(nn.article,nn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(vt.className+=" geogebraweb")):ke(vt,ft)}if(ht){scriptLoadStarted=!0;for(var mt=0;mt<Xe.childNodes.length;mt++){var Et=Xe.childNodes[mt].tagName;Et==="TABLE"&&(Xe.removeChild(Xe.childNodes[mt]),mt--)}if(ggbHTML5LoadedScript!==null){var Ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ct!=null&&Ct.parentNode.removeChild(Ct)}var Rt=document.createElement("script"),jt=function(){Ae(Xe,$e)};Rt.src=Re+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Rt.src,qe("GeoGebra HTML5 codebase loaded: '"+Re+"'.",$e),!ue&&(!He||He=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),jt()):Re.requirejs?__webpack_require__.e(3861).then(function(){var vt=[__webpack_require__(40341)];jt.apply(null,vt)}.bind(this)).catch(__webpack_require__.oe):(Rt.onload=jt,Le.appendChild(Rt))}else Ae(Xe,$e);$e.height=de,$e.width=gt},Bt=function(Le,$e,Je){var ht=it($e.width,$e.height,$e.borderColor,Je),Xe=document.createElement("div");Xe.style.position="relative",Xe.style.display="block",Xe.style.width=$e.width+"px",Xe.style.height=$e.height+"px",Xe.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),Xe.appendChild(ht);var gt=GGBAppletUtils.getScale($e,Le,Je);Je?(Le.appendChild(Ke()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xe,"66%"),Le.appendChild(Xe),gt!==1&&!isNaN(gt)&&(GGBAppletUtils.scaleElement(Xe,gt),Xe.style.width=$e.width+"px",Xe.style.height=$e.height+"px",Xe.parentNode.style.width=$e.width*gt+"px",Xe.parentNode.style.height=$e.height*gt+"px"),Ce.resize=function(){Wt(Le,ht,Xe,Je)},window.addEventListener("resize",function(de){Ce.resize()}),Ce.resize()};function Wt(Le,$e,Je,ht){if(Le.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var Xe=GGBAppletUtils.getScale(re,Le,ht);Je.parentNode!==null&&(!isNaN(Xe)&&Xe!==1?(GGBAppletUtils.scaleElement(Je,Xe),Je.parentNode.style.width=re.width*Xe+"px",Je.parentNode.style.height=re.height*Xe+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=re.width+"px",Je.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Le),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ce.onExitFullscreen=function(Le,$e){$e.appendChild(Le)};var ye=function(Le,$e,Je,ht){Bt(Le,$e,!0);for(var Xe=function(){var ot=[];for(de=0;de<Le.childNodes.length;de++)ot.push(Le.childNodes[de]);if(window.GGBT_wsf_view){var At=window.GGBT_wsf_view.renderFullScreen(Le,$e.id),Yt=document.getElementById("fullscreencontainer"),kt=jQuery(Le).find(".fullscreencontent");kt.length>0?(At.remove(),kt.attr("id","fullscreencontent").show(),jQuery(Yt).append(kt),window.dispatchEvent(new Event("resize"))):ut(At,$e,!1),window.GGBT_wsf_view.launchFullScreen(Yt)}else be=ht,ut(Le,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<ot.length;de++)Le.removeChild(ot[de])},gt=Le.getElementsByClassName("ggb_preview_play"),de=0;de<gt.length;de++)gt[de].addEventListener("click",Xe,!1),gt[de].addEventListener("ontouchstart",Xe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=$e:Je.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Je)}return Le},it=function(Le,$e,Je,ht){var Xe=document.createElement("div");Xe.className="ggb_preview",Xe.style.position="absolute",Xe.style.zIndex="90",Xe.style.width=Le-2+"px",Xe.style.height=$e-2+"px",Xe.style.top="0px",Xe.style.left="0px",Xe.style.overflow="hidden",Xe.style.backgroundColor="white";var gt="lightgrey";Je!==void 0&&(Je==="none"?gt="transparent":gt=Je),Xe.style.border="1px solid "+gt;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 ot,At,Yt;if(!ht){ot=document.createElement("img"),ot.style.position="absolute",ot.style.zIndex="1001",ot.style.opacity=1,de.style.opacity=.3,At=360,At>Le/4*3&&(At=Le/4*3),Yt=At/5.8,ot.setAttribute("src",b),ot.setAttribute("width",At),ot.setAttribute("height",Yt);var kt=(Le-At)/2,Ge=($e-Yt)/2;ot.style.left=kt+"px",ot.style.top=Ge+"px",Xe.appendChild(ot)}}return Xe.appendChild(de),Xe},et=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],tt=function(Le,$e){if(ne=Le,$e){at(ne,!0);return}var Je=!fe;if(Je){var ht=te(ne);!isNaN(ht)&&ht<4.4&&(Je=!1)}var Xe,gt;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var de=ne.indexOf("//");de>0?gt=ne:de===0?gt=Xe+ne:gt="https://www.geogebra.org/apps/5.2.814.0/";for(var ot in st)if(ne.slice(st[ot].length*-1)===st[ot]||ne.slice((st[ot].length+1)*-1)===st[ot]+"/"){at(gt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ne(re.showToolBar)&&!Ne(re.showMenuBar)&&!Ne(re.showAlgebraInput)&&!Ne(re.enableRightClick)&&(!re.appName||re.appName=="classic")?gt+="webSimple/":gt+="web3d/",at(gt,!1)},at=function(Le,$e){if(Le.requirejs){Re=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),Re=Le,$e===null&&($e=Le.indexOf("http")===-1),Me=$e,a="web.nocache.js",y=!1;var Je=Re.split("/");Je.length>1&&(!$e&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):st.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Le.split("/"),ne=Je[Je.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 ht=parseFloat(ne);ht!==NaN&&ht<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead."),tt("5.0",$e))},qe=function(Le,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Le)};re.material_id!==void 0?ie(Vt):Vt();function Vt(){var Le=lt;He!==null?Le=He:parseFloat(Le)<5&&(Le="5.0"),tt(Le,!1),ue!==null&&at(ue,Me),ce=!0}return Ce},GGBAppletUtils=function(){"use strict";function Ce(){return window.GGBT_wsf_edit!==void 0}function lt(ce,He){He!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+He+","+He+")",ce.style.webkitTransform="scale("+He+","+He+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,He,ue,Ve,Oe,Ie){var Re=null;if(Ie!=null&&Ie!="")for(var Me=ce.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+Ie+" ")>-1){Re=Me;break}else Me=Me.parentNode;var be=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Re)be=Re.offsetWidth,ne=Math.max(Ve?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(be=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=be):(be=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=be&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=be-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((ue===void 0||!ue)&&He>0&&He+y<be?be=He:be-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:be,height:ne}}function ae(ce,He,ue,Ve,Oe){if(ce.isScreenshoGenerator)return 1;var Ie=Ve!==void 0&&Ve,Re=ce.noScaleMargin!=null&&ce.noScaleMargin,Me=function(ee){return ee&&ee!=="false"},be=Me(ce.autoHeight),ne=re(He,ce.width,ue,be,Ie&&window.GGBT_wsf_view||Re,Oe),a=parseInt(ne.width),y=ce.width,x=ce.height;if(y===void 0){var b=He.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ie?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(ce,He,ue){var Ve=1,Oe,Ie=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ie=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ve=parseFloat(ce.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(Ie=!0)),He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Oe=ae(ce,He,Ie,ue,ce.scaleContainerClass);else return Ve;return Ie&&(!ce.hasOwnProperty("scale")||Ve===1)?Oe:Math.min(Ve,Oe)}function Ze(ce){var He=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=ce.getBoundingClientRect(),Oe=(He-Ve.width)/2,Ie=(ue-Ve.height)/2;Ie<0&&(Ie=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?ce.style.left="40px":ce.style.left=Oe+"px",ce.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ce.style.top="40px":ce.style.top=Ie+"px",ce.style.left=Oe+"px")}function _e(ce,He){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(He.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ve=fe(He,ce);Ce()&&ue.setAttribute("data-param-scale",Ve);for(var Oe=null,Ie=0;Ie<ce.childNodes.length;Ie++)if(ce.childNodes[Ie].className!==void 0&&ce.childNodes[Ie].className.match(/^applet_scaler/)){Oe=ce.childNodes[Ie];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Re=He.id!==void 0?He.id:"ggbApplet",Me=window[Re];(Me==null||!Me.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(Oe.parentNode.style.width=He.width*Ve+"px",Oe.parentNode.style.height=He.height*Ve+"px",lt(Oe,Ve)):(lt(Oe,1),Oe.parentNode.style.width=He.width+"px",Oe.parentNode.style.height=He.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:Ce,positionCenter:Ze,getScale:fe,scaleElement:lt}}();__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 Ce=n.location.search;return Ce.indexOf(J)!=-1||Ce.indexOf(K)!=-1}function q(Ce,lt){}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(Ce){var lt=s[L].bindings;s[L].bindings=function(){for(var re=lt?lt():{},ae=Ce[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var Ze=ae[fe];re[Ze[O]]=Ze[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ce=o.createElement(Q);if(Ce.id=L,Ce.style.cssText=R+S,Ce.tabIndex=-1,o.body.appendChild(Ce),t=Ce.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w(Ce){function lt(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=fe();if(Ze){ae();return}function _e(){if(!Ze){if(!fe())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var ce=setInterval(function(){_e()},$)}function re(ae){var fe=u(),Ze=fe.body,_e=fe.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=ae,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(_e)}lt(function(){re(Ce)})}webModule.__startLoadingFragment=function(Ce){return C(Ce)},webModule.__installRunAsyncCode=function(Ce){var lt=u(),re=lt.body,ae=lt.createElement(_);ae.language=ab,ae.text=Ce,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ce){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ce){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ce){var lt=c[Ce];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function Ce(ce){var He=ce.lastIndexOf(rb);He==-1&&(He=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var Ve=ce.lastIndexOf(tb,Math.min(ue,He));return Ve>=O?ce.substring(O,Ve+P):W}function lt(ce){if(!ce.match(/^\w+:\/\//)){var He=o.createElement(ub);He.src=ce+vb,ce=Ce(He.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),He=O;He<ce.length;++He)if(ce[He].src.indexOf(xb)!=-1)return Ce(ce[He].src);return W}function fe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ze(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var _e=re();return _e==W&&(_e=ae()),_e==W&&(_e=fe()),_e==W&&Ze()&&(_e=Ce(o.location.href)),_e=lt(_e),_e}function C(Ce){return Ce.match(/^\//)||Ce.match(/^[a-zA-Z]+:\/\//)?Ce:webModule.__moduleBase+Ce}function D(){var Ce=[],lt=O,re=[],ae=[];function fe(ce){var He=ae[ce](),ue=re[ce];if(He in ue)return He;var Ve=[];for(var Oe in ue)Ve[ue[Oe]]=Oe;throw r&&r(ce,Ve,He),null}if(__gwt_isKnownPropertyValue=function(ce,He){return He in re[ce]},webModule.__getPropMap=function(){var ce={};for(var He in re)re.hasOwnProperty(He)&&(ce[He]=fe(He));return ce},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var _e=Ze.indexOf(Db);_e!=-1&&(lt=parseInt(Ze.substring(_e+P),$),Ze=Ze.substring(O,_e))}catch(ce){}return webModule.__softPermutationId=lt,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})()},28735:function(Ce,lt,re){"use strict";re.d(lt,{Ax:function(){return _e},Ds:function(){return ce},KI:function(){return ue},SI:function(){return Ze},f1:function(){return fe}});var ae=re(74128);function fe(Ve){let Oe=!0;if(Ve.length>0){for(let Ie=0;Ie<Ve.length;Ie++)if(Ve[Ie].compile_success==0||!Ve[Ie].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ze(Ve,Oe=""){let Ie=[];for(let Re=0;Re<Ve.length;Re++){let Me=Ve[Re],be=Oe?`${Oe}/${Me.name}`:`${Me.name}`;Ie.push({title:Me.name,type:Me.type,isLeaf:Me.type!=="tree",key:be})}return Ie}function _e(Ve,Oe,Ie){for(let Re=0;Re<Ve.length;Re++){let Me=Ve[Re];if(Me.key===Oe){Me.children=Ie;break}Me.children&&_e(Me.children,Oe,Ie)}return Ve}function ce(Ve,Oe,Ie){let Re;return function(){let Me=this,be=arguments,ne=function(){Re=null,Ie||Ve.apply(Me,be)},a=Ie&&!Re;clearTimeout(Re),Re=setTimeout(ne,Oe),a&&Ve.apply(Me,be)}}const He=!0,ue=ae.Z.API_SERVER},16750:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Re}});var ae=re(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=re(92310),_e=re.n(Ze),ce=re(71418),He=re(2859),ue=re(38147),Ve=re(65862),Oe=(Me,be,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(Me,be)).next())}),Re=({data:Me,className:be,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),[ge,ie]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Me!=null&&Me.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Me!=null&&Me.src&&Be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Me==null?void 0:Me.visible]);const Be=()=>Oe(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ve.ZJ)(Me==null?void 0:Me.src);z.current.src="",z.current.src=ye,z.current.onload=function(){Wt()},ie(!1),le("")}),Ne=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ut=ye=>Oe(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ke=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:ye.dataUrl}});Ke!=null&&Ke.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ke==null?void 0:Ke.id,settings:JSON.stringify(ye.state)}})).status===0&&x():Ke!=null&&Ke.id&&x(Ke),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Bt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(it=>{const et=document.querySelector(it.name);et&&et.setAttribute("title",it.title)})},Wt=()=>{ee.current=new He.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ut),ee.current.addEventListener("beforeclose",Ne),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(),Me!=null&&Me.snapshotData&&ee.current.restoreState(Me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Bt()},300)};return ae.createElement(ae.Fragment,null,(Me==null?void 0:Me.visible)&&ae.createElement(ce.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(fe.imageDimensions,be,ne?fe.fullWidth:""),style:a},ae.createElement("img",{className:fe.img,ref:z}))))}},99298:function(Ce,lt,re){"use strict";var ae=re(59301),fe=re(95237),Ze=re(43604),_e=re(99313),ce=re(3113),He=re(6339),ue=re(96408),Ve=re(48136),Oe=re(59301);const Ie=(0,ae.forwardRef)(({callback:Re,showSaveButton:Me,value:be=""},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(fe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(He.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Oe.createElement("div",{key:ge},Oe.createElement("h1",null,oe.name),Oe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Oe.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Oe.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(He.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Oe.createElement("div",{key:ge},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Oe.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Oe.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Re&&Re(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Oe.createElement("div",{className:ue.Z.mathWrap},Oe.createElement(_e.default,{defaultActiveKey:"1",items:E}),Oe.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},be||""),Me&&Oe.createElement("div",{className:ue.Z.button},Oe.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=Ie},57146:function(Ce,lt,re){"use strict";re.d(lt,{z:function(){return et},Z:function(){return st}});var ae=re(59301),fe=re(54580),Ze=re(8591),_e=re(43418),ce=re(3113),He=re(74128),ue=re(80024),Ve=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Me=(tt,at,qe)=>at in tt?Ve(tt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):tt[at]=qe,be=(tt,at)=>{for(var qe in at||(at={}))Ie.call(at,qe)&&Me(tt,qe,at[qe]);if(Oe)for(var qe of Oe(at))Re.call(at,qe)&&Me(tt,qe,at[qe]);return tt},ne=(tt,at,qe)=>new Promise((Vt,Le)=>{var $e=Xe=>{try{ht(qe.next(Xe))}catch(gt){Le(gt)}},Je=Xe=>{try{ht(qe.throw(Xe))}catch(gt){Le(gt)}},ht=Xe=>Xe.done?Vt(Xe.value):Promise.resolve(Xe.value).then($e,Je);ht((qe=qe.apply(tt,at)).next())});const a="\u3000\u3000";function y(tt){var at=["Bytes","KB","MB","GB","TB"];if(tt==0)return"0 Byte";var qe=parseInt(""+Math.floor(Math.log(tt)/Math.log(1024)),10);return(tt/Math.pow(1024,qe)).toFixed(1)+" "+at[qe]}var x=({value:tt=[],action:at,onChange:qe,className:Vt,maxSize:Le=150,title:$e="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const ht={multiple:!1,fileList:tt,accept:Je,withCredentials:!0,beforeUpload:gt=>gt.size/1024/1024<Le?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Le}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(gt){var de,ot,At,Yt;let kt=[...gt.fileList];if(kt=kt.map(Ge=>(Ge.name.indexOf(a)===-1&&(Ge.name=`${Ge.name}${a}${y(Ge.size)}`),be({},Ge))),gt.file.status==="done"&&((ot=(de=gt.file)==null?void 0:de.response)==null?void 0:ot.status)===-1){message.error((Yt=(At=gt.file)==null?void 0:At.response)==null?void 0:Yt.message),qe([]);return}qe(kt)},onRemove:gt=>ne(void 0,null,function*(){const de=gt.size/1024/1024;return gt.status==="uploading"?!0:de<Le&&(gt.response?gt.response.id:gt.uid)?yield removeAttachment(gt.response?gt.response.id:gt.id):!0})};function Xe(gt){gt.preventDefault(),gt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Vt||""}`},React.createElement(Upload,be({},ht),React.createElement(Button,{type:"primary",title:tt.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:tt.length>0,ghost:!0},$e),React.createElement("span",{onClick:Xe,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Le,"M)"," ")))},b=re(61481),E=re(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ge=(tt,at,qe)=>at in tt?z(tt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):tt[at]=qe,ie=(tt,at)=>{for(var qe in at||(at={}))te.call(at,qe)&&ge(tt,qe,at[qe]);if(ee)for(var qe of ee(at))oe.call(at,qe)&&ge(tt,qe,at[qe]);return tt};const se=tt=>React.createElement("svg",ie({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},tt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Be=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Wt=(tt,at,qe)=>at in tt?Be(tt,at,{enumerable:!0,configurable:!0,writable:!0,value:qe}):tt[at]=qe,ye=(tt,at)=>{for(var qe in at||(at={}))ut.call(at,qe)&&Wt(tt,qe,at[qe]);if(Ne)for(var qe of Ne(at))Bt.call(at,qe)&&Wt(tt,qe,at[qe]);return tt},Ke=(tt,at,qe)=>new Promise((Vt,Le)=>{var $e=Xe=>{try{ht(qe.next(Xe))}catch(gt){Le(gt)}},Je=Xe=>{try{ht(qe.throw(Xe))}catch(gt){Le(gt)}},ht=Xe=>Xe.done?Vt(Xe.value):Promise.resolve(Xe.value).then($e,Je);ht((qe=qe.apply(tt,at)).next())});const{Dragger:it}=fe.default;function et(tt){let at=[];return tt&&tt.length>0&&(at=tt.map(qe=>({uid:qe.id,id:qe.id,name:qe.title+a+qe.filesize,url:qe.url,filesize:qe.filesize,status:"done",response:{id:qe.id}}))),at}var st=({value:tt,onChange:at,action:qe,data:Vt,className:Le,maxSize:$e=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ht=!1,accept:Xe="",additionalText:gt,isDragger:de,number:ot=1e3,aloneClear:At=!1,realTimeRemove:Yt=!0,uploadText:kt,setFileProgress:Ge,showFileProgress:we})=>{const[pe,ke]=(0,ae.useState)(!1);let[Ae,mt]=(0,ae.useState)(tt||[]),[Et,Ct]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{tt&&(Et===1&&mt([...tt]),Ct(2),ot===(tt==null?void 0:tt.length)&&ke(!0))},[tt]);const Rt=()=>{setTimeout(()=>{Ae.pop(),mt([...Ae])},500)};we&&Ge(Ae.some(ft=>ft.status==="uploading"));const jt={multiple:!0,disabled:pe,accept:Xe,withCredentials:!0,fileList:Ae,beforeUpload:(ft,nn)=>{const on=ft.size/1024/1024;return Ae.concat(nn).length>ot?(Ae.pop(),mt([...Ae]),Ze.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${ot}\u4E2A\u6587\u4EF6`),At?Promise.reject():(Rt(),!1)):on<$e?!0:(Ze.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${$e}MB).`),At?Promise.reject():(Rt(),!1))},data:Vt,action:qe||`${He.Z.API_SERVER}/api/attachments.json`,onChange(ft){var nn,on,mn,qt;if(ft.file.status==="removed"?Ae=ft.fileList:Ae=(0,E.uniqBy)([...ft.fileList,...Ae],"uid"),ft.file.status==="done"&&((on=(nn=ft.file)==null?void 0:nn.response)==null?void 0:on.status)===-1){Ze.ZP.error((qt=(mn=ft.file)==null?void 0:mn.response)==null?void 0:qt.message);return}Ae.length>=ot?ke(!0):ke(!1),mt([...Ae]),Ae=Ae.map(Zt=>{var Pe,Fe;return(Pe=Zt==null?void 0:Zt.response)!=null&&Pe.id&&(Zt.url=(Fe=Zt==null?void 0:Zt.response)==null?void 0:Fe.url),Zt.name.indexOf(a)===-1&&(Zt.name=`${Zt.name}${a}${y(Zt.size)}`),ye({},Zt)}),console.log("info:",ft,Ae),at(Ae)},onRemove:ft=>Ke(void 0,null,function*(){if(!Yt)return!0;const nn=()=>Ke(void 0,null,function*(){if(ft.response?ft.response.id:ft.id){let mn=yield(0,ue.JZ)(ft.response?ft.response.id:ft.uid);return Promise.resolve(mn)}else return!0});return ht?new Promise((on,mn)=>{_e.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ke(void 0,null,function*(){const qt=yield nn();Ze.ZP.success("\u5220\u9664\u6210\u529F"),on(!0)}),onCancel:()=>on(!1)})}):yield nn()})};function vt(ft){ft.preventDefault(),ft.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${Le||""}`},de&&ae.createElement(it,ye({},jt),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(b.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",$e,"MB)"," "),gt),!de&&ae.createElement(fe.default,ye({},jt),ae.createElement(ce.ZP,{disabled:pe,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:le}),Je),ae.createElement("span",{onClick:vt,className:"upload_text"},kt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${$e}MB)`)))}},85533:function(Ce,lt,re){"use strict";re.d(lt,{h:function(){return ee}});var ae=re(59301),fe=re(57809),Ze=re(78241),_e=re(3113),ce=re(89780),He=re.n(ce),ue=re(45559),Ve=re(42313),Oe=Object.defineProperty,Ie=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Oe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))be.call(oe,ge)&&a(te,ge,oe[ge]);if(Me)for(var ge of Me(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>Ie(te,Re(oe));const b=fe.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"]};lt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(Be){ie(z[Be][1])}function le(Be){te(Be)}return ae.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:Be=>Be.parentNode,onChange:se},Object.keys(z).map(Be=>ae.createElement(b,{key:Be,value:Be},z[Be][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:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,Be]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ne=function(ut){const Bt=ut.getValue();oe&&oe(Bt)};return le.on("change",Ne),()=>{le.off("change",Ne)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ne=He().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Be(Ne)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},96565:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Qn}});var ae=re(59301),fe=re(89780),Ze=re.n(fe),_e=re(76374),ce=re(45559),He=re(6313),ue=re(25717),Ve=re(99498),Oe=re(25419),Ie=re(67549),Re=re(6339),Me=({value:he="",className:ve,showTextOnly:Se,showLines:rt,style:xt={}})=>{const yt=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:yt}}))},be=re(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(he,ve,Se)=>ve in he?ne(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):he[ve]=Se,ee=(he,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(he,Se,ve[Se]);if(x)for(var Se of x(ve))E.call(ve,Se)&&z(he,Se,ve[Se]);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 ge({onActionCallback:he,title:ve,icon:Se,actionName:rt,className:xt="",children:yt}){function dn(){he(rt)}return be.createElement("a",{title:ve,className:xt,onClick:dn},be.createElement("i",{className:`${Se}`}),yt)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:Se,onActionCallback:rt,fullScreen:xt,insertTemp:yt,hidetoolBar:dn,extraUse:Ht})=>{const en=[...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 be.createElement("ul",{className:"markdown-toolbar-container"},!dn&&en.map((yn,jn)=>be.createElement("li",{key:jn},yn.actionName?be.createElement(ge,te(ee({},yn),{onActionCallback:rt})):be.createElement("span",{className:"v-line"}))),ve?be.createElement("li",null,be.createElement(ge,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Se?be.createElement(be.Fragment,null,be.createElement("li",null,be.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),be.createElement("li",null,be.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,yt&&be.createElement("li",null,be.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yt}`,onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ht&&be.createElement("li",null,Ht),be.createElement("li",{className:"btn-full-screen"},be.createElement(ge,{icon:`${xt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rt})))},se=re(57261),le=re(78241),Be=re(92832),Ne=re(3113),ut=Object.defineProperty,Bt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,et=(he,ve,Se)=>ve in he?ut(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):he[ve]=Se,st=(he,ve)=>{for(var Se in ve||(ve={}))Ke.call(ve,Se)&&et(he,Se,ve[Se]);if(ye)for(var Se of ye(ve))it.call(ve,Se)&&et(he,Se,ve[Se]);return he},tt=(he,ve)=>Bt(he,Wt(ve));const at={labelCol:{span:4},wrapperCol:{span:20}};var qe=({callback:he,onCancel:ve})=>{function Se(rt){he(rt)}return ae.createElement(le.default,tt(st({},at),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Be.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Be.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ne.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Vt=re(85533),Le=re(45053),$e=re(43418),Je=re(95237),ht=re(16750),Xe=re(59301),gt=({callback:he,onCancel:ve})=>{const Se=document.createElement("canvas"),rt=Se.getContext("2d");Se.width=1e3,Se.height=800,rt.fillStyle="#ffffff",rt.fillRect(0,0,Se.width,Se.height);const xt=Se.toDataURL("image/png");return Xe.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(Je.Z,{style:{height:"100vh"}},Xe.createElement(ht.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xt,visible:!0,title:String(Date.now())},onOk:yt=>{he({src:yt.url})},onClose:ve})))},de=re(12378);function ot(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ot,go.CommandHandler),ot.prototype.canAlignSelection=function(){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<2)},ot.prototype.alignLeft=function(){var he=this.diagram;he.startTransaction("aligning left");var ve=1/0;he.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),he.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),he.commitTransaction("aligning left")},ot.prototype.alignRight=function(){var he=this.diagram;he.startTransaction("aligning right");var ve=-1/0;he.selection.each(function(Se){if(!(Se instanceof go.Link)){var rt=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(rt,ve)}}),he.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),he.commitTransaction("aligning right")},ot.prototype.alignTop=function(){var he=this.diagram;he.startTransaction("alignTop");var ve=1/0;he.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),he.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),he.commitTransaction("alignTop")},ot.prototype.alignBottom=function(){var he=this.diagram;he.startTransaction("aligning bottom");var ve=-1/0;he.selection.each(function(Se){if(!(Se instanceof go.Link)){var rt=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(rt,ve)}}),he.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),he.commitTransaction("aligning bottom")},ot.prototype.alignCenterX=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;he.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(Se-rt.actualBounds.width/2,rt.actualBounds.y))}),he.commitTransaction("aligning Center X")}},ot.prototype.alignCenterY=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;he.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(rt.actualBounds.x,Se-rt.actualBounds.height/2))}),he.commitTransaction("aligning Center Y")}},ot.prototype.alignColumn=function(he){var ve=this.diagram;ve.startTransaction("align Column"),he===void 0&&(he=0),he=parseFloat(he);var Se=new Array;ve.selection.each(function(Ht){Ht instanceof go.Link||Se.push(Ht)});for(var rt=0;rt<Se.length-1;rt++){var xt=Se[rt],yt=xt.actualBounds.y+xt.actualBounds.height+he,dn=Se[rt+1];dn.move(new go.Point(xt.actualBounds.x,yt))}ve.commitTransaction("align Column")},ot.prototype.alignRow=function(he){he===void 0&&(he=0),he=parseFloat(he);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(Ht){Ht instanceof go.Link||Se.push(Ht)});for(var rt=0;rt<Se.length-1;rt++){var xt=Se[rt],yt=xt.actualBounds.x+xt.actualBounds.width+he,dn=Se[rt+1];dn.move(new go.Point(yt,xt.actualBounds.y))}ve.commitTransaction("align Row")},ot.prototype.canRotate=function(he){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},ot.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(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=he)}),ve.commitTransaction("rotate "+he.toString())},ot.prototype.pullToFront=function(){var he=this.diagram;he.startTransaction("pullToFront");var ve=new go.Map;he.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var rt=0;Se.parts.each(function(xt){if(!xt.isSelected){var yt=xt.zOrder;isNaN(yt)?xt.zOrder=0:rt=Math.max(rt,yt)}}),ve.set(Se,rt)}),he.selection.each(function(Se){ot._assignZOrder(Se,ve.get(Se.layer)+1)}),he.commitTransaction("pullToFront")},ot.prototype.pushToBack=function(){var he=this.diagram;he.startTransaction("pushToBack");var ve=new go.Map;he.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var rt=0;Se.parts.each(function(xt){if(!xt.isSelected){var yt=xt.zOrder;isNaN(yt)?xt.zOrder=0:rt=Math.min(rt,yt)}}),ve.set(Se,rt)}),he.selection.each(function(Se){ot._assignZOrder(Se,ve.get(Se.layer)-1-ot._findGroupDepth(Se))}),he.commitTransaction("pushToBack")},ot._assignZOrder=function(he,ve,Se){Se===void 0&&(Se=he),he.layer===Se.layer&&(he.zOrder=ve),he instanceof go.Group&&he.memberParts.each(function(rt){ot._assignZOrder(rt,ve+1,Se)})},ot._findGroupDepth=function(he){if(he instanceof go.Group){var ve=0;return he.memberParts.each(function(Se){ve=Math.max(ve,ot._findGroupDepth(Se))}),ve+1}else return 0},ot.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 Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ot.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},ot.prototype._arrowKeyMove=function(){var he=this.diagram,ve=he.lastInput,Se=0,rt=0;if(ve.control||ve.meta)Se=1,rt=1;else if(he.grid!==null){var xt=he.grid.gridCellSize;rt=xt.width,Se=xt.height}he.startTransaction("arrowKeyMove"),he.selection.each(function(yt){ve.key==="Up"?yt.move(new go.Point(yt.actualBounds.x,yt.actualBounds.y-Se)):ve.key==="Down"?yt.move(new go.Point(yt.actualBounds.x,yt.actualBounds.y+Se)):ve.key==="Left"?yt.move(new go.Point(yt.actualBounds.x-rt,yt.actualBounds.y)):ve.key==="Right"&&yt.move(new go.Point(yt.actualBounds.x+rt,yt.actualBounds.y))}),he.commitTransaction("arrowKeyMove")},ot.prototype._arrowKeySelect=function(){var he=this.diagram,ve=he.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:he.select(Se))},ot.prototype._findNearestPartTowards=function(he){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,rt=this._getAllParts(),xt=1/0,yt=ve,dn=0;dn<rt.length;dn++){var Ht=rt[dn];if(Ht!==ve&&Ht.canSelect()){var en=Ht.actualBounds.center,yn=Se.directionPoint(en),jn=this._angleCloseness(yn,he);if(jn<=45){var nt=Se.distanceSquaredPoint(en);nt*=1+Math.sin(jn*Math.PI/180),nt<xt&&(xt=nt,yt=Ht)}}}return yt},ot.prototype._angleCloseness=function(he,ve){return Math.min(Math.abs(ve-he),Math.min(Math.abs(ve+360-he),Math.abs(ve-360-he)))},ot.prototype._arrowKeyTree=function(){var he=this.diagram,ve=he.selection.first();if(ve instanceof go.Node){var Se=he.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)he.commandHandler.canExpandTree(ve)&&he.commandHandler.expandTree(ve);else{var rt=this._sortTreeChildrenByY(ve).first();rt!==null&&he.select(rt)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)he.commandHandler.canCollapseTree(ve)&&he.commandHandler.collapseTree(ve);else{var xt=ve.findTreeParentNode();xt!==null&&he.select(xt)}else if(Se.key==="Up"){var xt=ve.findTreeParentNode();if(xt!==null){var yt=this._sortTreeChildrenByY(xt),dn=yt.indexOf(ve);if(dn>0){for(var Ht=yt.elt(dn-1);Ht!==null&&Ht.isTreeExpanded&&!Ht.isTreeLeaf;){var en=this._sortTreeChildrenByY(Ht);Ht=en.last()}Ht!==null&&he.select(Ht)}else he.select(xt)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var rt=this._sortTreeChildrenByY(ve).first();rt!==null&&he.select(rt)}else for(;ve!==null;){var xt=ve.findTreeParentNode();if(xt===null)break;var yt=this._sortTreeChildrenByY(xt),dn=yt.indexOf(ve);if(dn<yt.length-1){he.select(yt.elt(dn+1));break}else ve=xt}var yn=he.selection.first();yn!==null&&he.scrollToRect(yn.actualBounds)}},ot.prototype._sortTreeChildrenByY=function(he){var ve=new go.List().addAll(he.findTreeChildrenNodes());return ve.sort(function(Se,rt){var xt=Se.location,yt=rt.location;return xt.y<yt.y?-1:xt.y>yt.y?1:xt.x<yt.x?-1:xt.x>yt.x?1:0}),ve},ot.prototype.copyToClipboard=function(he){go.CommandHandler.prototype.copyToClipboard.call(this,he),this._lastPasteOffset.set(this.pasteOffset)},ot.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(ot.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(ot.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 At=ot,Yt=re(25863),kt=re(43604),Ge=re(38147),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=re(59301),ke=(he,ve,Se)=>new Promise((rt,xt)=>{var yt=en=>{try{Ht(Se.next(en))}catch(yn){xt(yn)}},dn=en=>{try{Ht(Se.throw(en))}catch(yn){xt(yn)}},Ht=en=>en.done?rt(en.value):Promise.resolve(en.value).then(yt,dn);Ht((Se=Se.apply(he,ve)).next())});function Ae({onCancel:he,callback:ve}){let Se=(0,ae.useRef)(),rt=(0,ae.useRef)(),xt=(0,ae.useRef)(),yt=(0,ae.useRef)(!1);const dn=(0,ae.useRef)(!1),[Ht,en]=(0,ae.useState)(0);function yn(){const nt=de.bx.make,tn={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"};Se.current=new de.S0(rt.current,{padding:20,grid:nt(de.s_,"Grid",nt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),nt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ue=>{var pt=Ue.diagram.commandHandler.addTopLevelParts(Ue.diagram.selection,!0);pt||Ue.diagram.currentTool.doCancel()},commandHandler:nt(At),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ue=>{var pt=Ue.subject;pt.location=pt.location.copy().snapToGridPoint(Ue.diagram.grid.gridOrigin,Ue.diagram.grid.gridCellSize),setTimeout(()=>{Ue.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ue=>{var pt=Ue.subject;setTimeout(()=>{Ue.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ue=>{var pt=Ue.parameter.part;pt.invalidateConnectedLinks();var wt=Ue.subject;Ue.diagram.toolManager.linkingTool.isForwards?wt.toNode.invalidateConnectedLinks():wt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=nt(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),nt(de.bn,{name:"SHAPE",fill:tn.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")),nt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),nt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=nt("ToolTip",nt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},nt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),nt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(Ue,pt){var wt=($t,_t)=>{$t.handled=!0,$t.diagram.model.commit(Xt=>{var Tt=_t.part.adornedPart,Sn=new de.E9().setRectSpot(Tt.actualBounds,Ue);Sn.subtract(Tt.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(Tt.location),Sn.snapToGridPoint($t.diagram.grid.gridOrigin,$t.diagram.grid.gridCellSize);var Pn=Xt.copyNodeData(Tt.data);Xt.setGroupKeyForNodeData(Pn,Xt.getGroupKeyForNodeData(Tt.data)),Xt.addNodeData(Pn);var qn={from:Tt.key,to:Xt.getKeyForNodeData(Pn)};Xt.addLinkData(qn);var aa=$t.diagram.findNodeForData(Pn);aa.location=Sn,$t.diagram.select(aa),setTimeout(()=>{$t.diagram.commandHandler.editTextBlock()},20)})};return nt(de.bn,{figure:pt,alignment:Ue,alignmentFocus:Ue.opposite(),width:Ue.equals(de.z6.Top)||Ue.equals(de.z6.Bottom)?25:18,height:Ue.equals(de.z6.Top)||Ue.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:($t,_t)=>_t.fill="dodgerblue",mouseLeave:($t,_t)=>_t.fill="orange",isActionable:!0,click:wt,contextClick:wt})}function Xn(Ue){return nt(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:(pt,wt)=>wt.fill="dodgerblue",mouseLeave:(pt,wt)=>wt.fill="orange",click:(pt,wt)=>{pt.diagram.commandHandler.showContextMenu(wt.part.adornedPart)}},Ue||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=nt(de.uz,"Spot",nt(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Xn({alignment:new de.z6(.75,0)}));function xn(Ue,pt){return(wt,$t)=>{wt.handled=!0,wt.diagram.model.commit(_t=>{_t.set($t.part.adornedPart.data,Ue,pt)})}}function me(Ue,pt){return pt||(pt="color"),nt(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ue,margin:1,background:"transparent",mouseEnter:(wt,$t)=>$t.stroke="dodgerblue",mouseLeave:(wt,$t)=>$t.stroke="lightgray",click:xn(pt,Ue),contextClick:xn(pt,Ue)})}function Ee(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",me(tn.white,"fill"),me(tn.beige,"fill"),me(tn.extralightblue,"fill"),me(tn.extralightred,"fill"))),nt("ContextMenuButton",nt(de.s_,"Horizontal",me(tn.lightgray,"fill"),me(tn.lightgreen,"fill"),me(tn.lightblue,"fill"),me(tn.lightred,"fill")))]}function xe(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",me(tn.black),me(tn.green),me(tn.blue),me(tn.red))),nt("ContextMenuButton",nt(de.s_,"Horizontal",me(tn.white),me(tn.magenta),me(tn.purple),me(tn.orange)))]}function Te(Ue,pt){return pt||(pt="thickness"),nt(de.bn,"LineH",{width:16,height:16,strokeWidth:Ue,margin:1,background:"transparent",mouseEnter:(wt,$t)=>$t.background="dodgerblue",mouseLeave:(wt,$t)=>$t.background="transparent",click:xn(pt,Ue),contextClick:xn(pt,Ue)})}function Ye(Ue,pt){return pt||(pt="dash"),nt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ue,margin:1,background:"transparent",mouseEnter:(wt,$t)=>$t.background="dodgerblue",mouseLeave:(wt,$t)=>$t.background="transparent",click:xn(pt,Ue),contextClick:xn(pt,Ue)})}function Qe(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",Te(1),Te(2),Te(3),Te(4))),nt("ContextMenuButton",nt(de.s_,"Horizontal",Ye(null),Ye([2,4]),Ye([4,4])))]}function We(Ue,pt){return pt||(pt="figure"),nt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ue,margin:1,background:"transparent",mouseEnter:(wt,$t)=>$t.fill="dodgerblue",mouseLeave:(wt,$t)=>$t.fill="lightgray",click:xn(pt,Ue),contextClick:xn(pt,Ue)})}Se.current.nodeTemplate.contextMenu=nt("ContextMenu",nt("ContextMenuButton",nt(de.s_,"Horizontal",We("Rectangle"),We("RoundedRectangle"),We("Ellipse"),We("Diamond"))),nt("ContextMenuButton",nt(de.s_,"Horizontal",We("Parallelogram2"),We("ManualOperation"),We("Procedure"),We("Cylinder1"))),nt("ContextMenuButton",nt(de.s_,"Horizontal",We("Terminator"),We("CreateRequest"),We("Document"),We("TriangleDown"))),Ee(),xe(),Qe()),Se.current.groupTemplate=nt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ue,pt)=>{var wt=pt.addMembers(pt.diagram.selection,!0);wt||pt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),nt(de.s_,"Auto",{name:"BODY"},nt(de.bn,{parameter1:10,fill:tn.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")),nt(de.Vm,{background:"transparent",margin:20})),nt(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"))),Se.current.groupTemplate.selectionAdornmentTemplate=nt(de.uz,"Spot",nt(de.s_,"Auto",nt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),nt(de.Vm,{margin:1.5})),Xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=nt("ContextMenu",Ee(),xe(),Qe()),Se.current.linkTemplate=nt(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",Ue=>Ue>=1?10:0),new de.KX("toShortLength","dir",Ue=>Ue>=1?10:0),new de.KX("points").makeTwoWay(),nt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),nt(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",Ue=>Ue===1)),nt(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",Ue=>Ue>=1),new de.KX("width","thickness",Ue=>7+3*Ue),new de.KX("height","thickness",Ue=>7+3*Ue),new de.KX("segmentOffset","thickness",Ue=>new de.E9(-15,4+1.5*Ue))),nt(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",Ue=>Ue===2),new de.KX("width","thickness",Ue=>7+3*Ue),new de.KX("height","thickness",Ue=>7+3*Ue),new de.KX("segmentOffset","thickness",Ue=>new de.E9(-15,4+1.5*Ue))),nt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=nt(de.uz,nt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:De(2)},new de.KX("pathPattern","thickness",De)),Xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function De(Ue){return nt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ue+4).toString()+" H3"})}function Ot(Ue){var pt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ue===0?pt="M0 0 M16 16 M0 8 L16 8":Ue===2&&(pt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),nt(de.bn,{geometryString:pt,margin:2,background:"transparent",mouseEnter:(wt,$t)=>$t.background="dodgerblue",mouseLeave:(wt,$t)=>$t.background="transparent",click:xn("dir",Ue),contextClick:xn("dir",Ue)})}function Gt(Ue){var pt=(wt,$t)=>{wt.handled=!0,wt.diagram.model.commit(_t=>{var Xt=$t.part.adornedPart;_t.set(Xt.data,Ue?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ue?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return nt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wt,$t)=>$t.background="dodgerblue",mouseLeave:(wt,$t)=>$t.background="transparent",click:pt,contextClick:pt})}function zt(Ue,pt){var wt=0,$t=de.z6.RightSide;Ue.equals(de.z6.Top)?(wt=270,$t=de.z6.TopSide):Ue.equals(de.z6.Left)?(wt=180,$t=de.z6.LeftSide):Ue.equals(de.z6.Bottom)&&(wt=90,$t=de.z6.BottomSide),pt||(wt-=180);var _t=(Xt,Tt)=>{Xt.handled=!0,Xt.diagram.model.commit(Sn=>{var Pn=Tt.part.adornedPart;Sn.set(Pn.data,pt?"toSpot":"fromSpot",de.z6.stringify($t)),(pt?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return nt(de.bn,{alignment:Ue,alignmentFocus:Ue.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wt,background:"transparent",mouseEnter:(Xt,Tt)=>Tt.background="dodgerblue",mouseLeave:(Xt,Tt)=>Tt.background="transparent",click:_t,contextClick:_t})}Se.current.linkTemplate.contextMenu=nt("ContextMenu",xe(),Qe(),nt("ContextMenuButton",nt(de.s_,"Horizontal",Ot(0),Ot(1),Ot(2))),nt("ContextMenuButton",nt(de.s_,"Horizontal",nt(de.s_,"Spot",Gt(!1),zt(de.z6.Top,!1),zt(de.z6.Left,!1),zt(de.z6.Right,!1),zt(de.z6.Bottom,!1)),nt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Gt(!0),zt(de.z6.Top,!0),zt(de.z6.Left,!0),zt(de.z6.Right,!0),zt(de.z6.Bottom,!0)))));const ze=`{ "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 ln=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function hn(Ue){return console.log("shapeName:",Ue),ln.indexOf(Ue)>=0}var Dn=new de.YI(xt.current,{maxSelectionCount:1,linkTemplate:nt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:nt(de.uz,"Link",{locationSpot:de.z6.Center},nt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),nt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),nt(de.bn,{isPanelMain:!0,strokeWidth:2}),nt(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(Ue=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ue.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Ue){var pt;const wt=Ue.subject.part;var $t=(pt=document.activeElement)==null?void 0:pt.value;typeof $t=="string"&&$t.trim()===""&&Se.current.model.commit(function(_t){_t.set(wt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Dn.nodeTemplate=nt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),nt(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")),nt(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(()=>{Se.current.grid=nt(de.s_,"Grid",nt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),nt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const jn=()=>ke(this,null,function*(){var nt=Se.current.makeImage();const tn=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:nt.src}});ve({src:tn.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{yn()},500),en(Ht+1),()=>{Se.current=null}),[]),pe.createElement("div",{ref:dn,className:yt.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ht,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Je.Z,null,pe.createElement(kt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(kt.Z,{onClick:()=>{var nt,tn,Tn=Se.current.selection.first();if(yt.current=!yt.current,document.activeElement&&Tn){let Xn=(tn=(nt=document.activeElement)==null?void 0:nt.value)==null?void 0:tn.trim();typeof Xn=="string"&&Se.current.model.commit(function(xn){xn.set(Tn.data,"text",Xn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}en(Ht+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:we.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:we.myPaletteDiv,ref:xt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:rt,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Ne.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var mt=Ae,Et=re(5112),Ct=re(5871);const Rt=Et.ZP.Group,jt={margin:"0 8px"};var vt=({callback:he,onCancel:ve})=>{function Se(rt){he(rt)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:jt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Ct.Z,null)),ae.createElement("span",{style:jt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Ct.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Rt,null,ae.createElement(Et.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Et.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Et.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Et.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ne.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},ft=re(78673),nn=re(93510),on=re.n(nn),qt=(0,ae.forwardRef)(({use3d:he,width:ve,height:Se,callback:rt,showSaveButton:xt},yt)=>{const dn=(0,ae.useRef)(),Ht=(0,ae.useRef)(),[en,yn]=(0,ae.useState)(!1),jn=(0,ae.useRef)({id:dn,appName:"graphing",width:ve||1e3,height:Se||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)(()=>{Ht.current=new(on())(jn.current,!0),window.onload=function(){Ht.current.inject("applet_container")}},[]);const nt=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return rt&&rt(tn),tn};return(0,ae.useEffect)(()=>{jn.current.appName=en?"3D":"graphing",Ht.current.inject("applet_container")},[en]),(0,ae.useEffect)(()=>{yn(he)},[he]),(0,ae.useImperativeHandle)(yt,()=>({getImgData:nt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dn}),ae.createElement(Je.Z,{align:"middle"},ae.createElement(kt.Z,{flex:1},ae.createElement(ft.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>yn(tn)})),ae.createElement(kt.Z,null,ae.createElement(Ne.ZP,{size:"large",onClick:nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Zt=re(99298),Pe=re(1012),Fe=re(8591);const je="link",dt="upload-image",St="add-flowchart",Nt="draw-image",Mt="add-flowchart",bt="code-block",It="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var an=re(31103),fn=(he,ve,Se)=>new Promise((rt,xt)=>{var yt=en=>{try{Ht(Se.next(en))}catch(yn){xt(yn)}},dn=en=>{try{Ht(Se.throw(en))}catch(yn){xt(yn)}},Ht=en=>en.done?rt(en.value):Promise.resolve(en.value).then(yt,dn);Ht((Se=Se.apply(he,ve)).next())});function pn(){}let wn=0;const gn=1e4,rn="\u2581",vn="@\u2581\u2581@",Cn="@\u2581@",$n=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(he){return/^\d+$/.test(he)?`${he}px`:he}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Un={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},ta={[je]:"\u6DFB\u52A0\u94FE\u63A5",[bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dt]:"\u6DFB\u52A0\u56FE\u7247",[Nt]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:he="",onChange:ve,width:Se="100%",height:rt=400,miniToolbar:xt=!1,isFocus:yt=!1,watch:dn,insertTemp:Ht,mode:en="markdown",id:yn="markdown-editor-id",showResizeBar:jn=!1,noStorage:nt=!1,showNullButton:tn=!1,showNullProgramButton:Tn=!1,hidetoolBar:Xn=!1,fullScreen:xn=!1,onBlur:me,onCMBeforeChange:Ee,onFullScreen:xe,className:Te="",disablePaste:Ye=!1,disabled:Qe=!1,disabledFill:We=!1,placeholder:De="",values:Ot="",extraUse:Gt,onAddBlank:zt})=>{const[ze,ln]=(0,ae.useState)(null),[hn,Dn]=(0,ae.useState)(he),[Ue,pt]=(0,ae.useState)(dn),[wt,$t]=(0,ae.useState)(xn),[_t,Xt]=(0,ae.useState)(""),[Tt,Sn]=(0,ae.useState)(0),[Pn,qn]=(0,ae.useState)(rt),[aa,Kn]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,Pe.Z)()),Pa=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[ia,Vn]=(0,ae.useState)(0),[On,ma]=(0,ae.useState)(0),ea=(0,ae.useRef)(),ra=(0,ae.useRef)(),na=(0,ae.useRef)(),Wn=(0,ae.useRef)(),fa=()=>fn(void 0,null,function*(){var Ft;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Ft=ct==null?void 0:ct.attachments)!=null&&Ft.length&&(console.log("cm:",ze,ea),ct.attachments.map(Pt=>{Pt.content_type.indexOf("image")>-1?ze.replaceSelection(`![,](/api/attachments/${Pt.id}?type=${Pt.content_type})`):Pt.content_type.indexOf("video")>-1?ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Pt.content_type.indexOf("pdf")>-1?ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Pt.id}?type=${Pt.content_type}&disposition=inline" target="_blank">${Pt.name}</a>`):ze.replaceSelection(`[${Pt.name}](${ENV.API_SERVER}/api/attachments/${Pt.id}?type=${Pt.content_type})`)}))});(0,ae.useEffect)(()=>{const Ft=window.scrollY||window.pageYOffset;Dn(Ot),ze==null||ze.setValue(Ot),window.scrollTo(0,Ft)},[Ot]),(0,ae.useEffect)(()=>{xe==null||xe(wt)},[wt]),(0,ae.useEffect)(()=>{if(ea.current){let Ft=function(Pt,Lt){var un;if(Ye){Lt.preventDefault();return}const Fn=Lt.clipboardData;if(Fn){const kn=Fn.types.toString(),Rn=Fn.items;if(kn==="Files"||Fn.types.indexOf("Files")>-1){if(Lt.preventDefault(),en=="stex")return;try{let _n=Rn[1];((un=Rn[0])==null?void 0:un.kind)==="file"&&(_n=Rn[0]);const Zn=_n.getAsFile(),oa=Zn.name.split(".").pop();(0,Le.I)(Zn,Dt=>{var sn,Ln,Qt;Dt.id?((sn=Zn==null?void 0:Zn.type)==null?void 0:sn.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Dt.id}?type=${Dt.content_type})" alt="" />`):((Ln=Zn==null?void 0:Zn.type)==null?void 0:Ln.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dt.id}"></video>`):((Qt=Zn==null?void 0:Zn.type)==null?void 0:Qt.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):cn.includes(oa)?ct.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):ct.replaceSelection(`[${Zn.name}](/api/attachments/${Dt.id}?type=${Dt.content_type})`):(Dt==null?void 0:Dt.status)===401&&(Fe.ZP.warning((Dt==null?void 0:Dt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(_n){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=Ze().fromTextArea(ea.current,{mode:en,lineNumbers:!xt,lineWrapping:!0,value:he,autoCloseTags:!Tn,autoCloseBrackets:!0});return ct.on("keyup",function(Pt,Lt){Lt.keyCode===8&&(Pt.getValue()==""?ct.setOption("placeholder",De):ct.setOption("placeholder",null))}),ct.on("keydown",function(Pt,Lt){if(Lt.keyCode===8){var un=In(Pt);un&&Lt.preventDefault()}}),yt&&ct.focus(),ct.on("paste",Ft),ct.on("dragleave",function(Pt,Lt){ra.current.classList.remove("mouse-hover-md")}),Qe&&ct.on("beforeChange",function(Pt,Lt){(Lt.origin==="paste"||Lt.origin==="+input")&&Lt.cancel()}),ln(ct),()=>{ct.off("paste",Ft)}}},[]);const Ut=(0,ae.useCallback)(()=>{if(ra.current)try{}catch(Ft){console.log(Ft,"---- to set md editor body height")}},[Pn,ra,wt]);(0,ae.useEffect)(()=>{function Ft(){let ct=new _e.Z(Pt=>{for(let Lt of Pt)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&(Ut(),ze.setSize("100%","100%"),ze.refresh())});return ct.observe(ea.current.parentElement),ct}if(ze){const ct=Ft();return()=>{var Pt,Lt;(Pt=ea.current)!=null&&Pt.parentElement&&ct.unobserve((Lt=ea.current)==null?void 0:Lt.parentElement)}}},[ze,Ut]),(0,ae.useEffect)(()=>{if(ze){let Ft=[];for(const[ct,Pt]of Object.entries(Un)){let Lt={[ct]:()=>{Yn(Pt)}};Ft.push(Lt),ze.addKeyMap(Lt)}return Sa.current=setInterval(()=>{Pa.current&&fa()},4e3),()=>{clearInterval(Sa.current);for(let ct of Ft)ze.removeKeyMap(ct)}}},[ze]),(0,ae.useEffect)(()=>{xn!==wt&&$t(xn)},[xn]),(0,an.Z)(()=>{if(!nt&&Tt>0){let Ft=new Date().getTime(),ct=window.sessionStorage.getItem(yn);Ft>=Tt+gn&&(!ct||ct!==hn)&&(window.sessionStorage.setItem(yn,hn),Kn(!0))}},gn),(0,ae.useEffect)(()=>{pt(dn)},[ze,dn]),(0,ae.useEffect)(()=>{ze&&yt&&ze.focus()},[ze,yt]),(0,ae.useEffect)(()=>{if(Ue&&ze){let Ft=function(Pt){let Lt=Pt.target;if(Wn.current){let un=Lt.scrollTop/Lt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*un}};const ct=ze.getScrollerElement();return ct.addEventListener("scroll",Ft),()=>{ct.removeEventListener("scroll",Ft)}}},[ze,Ue]),(0,ae.useEffect)(()=>{if(ze&&Ee){let Ft=function(ct,Pt){Ee(ct,Pt)};return ze.on("beforeChange",Ft),()=>{ze.off("beforeChange",Ft)}}},[ze,Ee]),(0,ae.useEffect)(()=>{if(ze&&me){let Ft=function(){me(ze.getValue())};return ze.on("blur",Ft),()=>{ze.off("blur",Ft)}}},[ze,me]);function In(Ft,ct){var Pt=Ft.getDoc(),Lt=Pt.getCursor(),un=Pt.getLine(Lt.line),Fn=un.charAt(Lt.ch-1),kn=un.lastIndexOf("@\u2581@",Lt.ch),Rn=un.lastIndexOf("@\u2581\u2581@",Lt.ch),_n=kn>Rn?kn:Rn,Zn=kn>Rn?3:4;if(vn.indexOf(Fn)===-1)return null;if(console.log("change1:",ct,Ft,un,Lt,_n,kn,Rn,Fn),_n>=0&&Lt.ch-_n<5){var oa=_n+Zn;return Pt.replaceRange("",{line:Lt.line,ch:_n},{line:Lt.line,ch:oa}),{line:Lt.line,ch:oa}}return null}(0,ae.useEffect)(()=>{if(ze){let Ft=function(ct,Pt){const Lt=ct.getValue();Dn(Lt),Sn(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Tn?ve(Lt,ga(Lt)):ve(Lt))};return ze.on("change",Ft),()=>{ze.off("change",Ft)}}},[ze,ve]),(0,ae.useEffect)(()=>{if(ze)if(he==null)ze.setValue(""),Dn("");else{const Ft=window.scrollY||window.pageYOffset;he!==ze.getValue()&&(ze.setValue(he),Dn(he),ze.setCursor(Qe?1:ze.lineCount(),0),window.scrollTo(0,Ft))}},[ze,he]);const Yn=(0,ae.useCallback)(Ft=>{const ct=ze.getCursor(),Pt=ze.getSelection();let Lt=Pt.split(`
`);switch(Ft){case"bold":return ze.replaceSelection("**"+Pt+"**"),Pt===""&&ze.setCursor(ct.line,ct.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+Pt+"*"),Pt===""&&ze.setCursor(ct.line,ct.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+Pt+"`"),Pt===""&&ze.setCursor(ct.line,ct.ch+1),ze.focus();case"inline-latex":return Xt("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+Pt+"\n```"),ze.setCursor(ct.line+1,Pt.length+1),ze.focus();case"line-break":return ze.replaceSelection(`<br/>
`),ze.focus();case"list-ul":return Pt===""?ze.replaceSelection("- "+Pt):ze.replaceSelection(Lt.map(un=>un===""?"":`- ${un}`).join(`
`)),ze.focus();case"list-ol":return Pt===""?ze.replaceSelection("1. "+Pt):ze.replaceSelection(Lt.map((un,Fn)=>un===""?"":`${Fn+1}. ${un}`).join(`
`)),ze.focus();case"add-null-ch":zt==null||zt();return;case"add-signal":return Pt===""&&ze.setCursor(ct.line,ct.ch),ze.replaceSelection(Cn),ze.focus();case"add-multiple":return Pt===""&&ze.setCursor(ct.line,ct.ch),ze.replaceSelection(vn),ze.focus();case"inster-template-1":return Pt===""&&ze.setCursor(ct.line,ct.ch),ze.replaceSelection($n),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return pt(!Ue),ze.focus();case"trigger-full-screen":return $t(!wt),ze.focus();case je:Xt(je);return;case bt:Xt(bt);return;case dt:Xt(dt);return;case Nt:Xt(Nt);return;case"maths-latex":Xt("maths-latex");return;case St:Xt(St);return;case It:Xt(It);return;default:throw new Error}},[ze,Ue,wt]),En=(0,ae.useCallback)((Ft,ct)=>{var Pt,Lt,un,Fn,kn,Rn;switch(Xt(""),_t){case je:const{title:sn,link:Ln}=Ft;return ze.replaceSelection(`[${sn}](${Ln})`),ze.focus();case bt:const{language:Qt,content:bn}=Ft;return ze.replaceSelection(["```"+Qt,bn,"```"].join(`
`)),ze.focus();case"maths-latex":for(var _n=atob(Ft),Zn=new Uint8Array(_n.length),oa=0;oa<_n.length;oa++)Zn[oa]=_n.charCodeAt(oa);var Dt=new Blob([Zn],{type:"image/png"});(0,Le.I)(Dt,sa=>{sa.id?ze.replaceSelection(`![,](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ze.replaceSelection("`$$"+Ft+"$$`");break;case dt:case Nt:case Mt:const{src:An,alt:la}=Ft,Bn=ct,ua=(un=(Lt=(Pt=Bn==null?void 0:Bn.name)==null?void 0:Pt.split("."))==null?void 0:Lt.pop)==null?void 0:un.call(Lt);return((Fn=Bn==null?void 0:Bn.type)==null?void 0:Fn.indexOf("image"))>-1||!(Bn!=null&&Bn.type)?Bn.align||Bn.width?ze.replaceSelection(`<p style="text-align:${Bn.align||"initial"}"><img width="${Bn.width?Bn.width+"%":"initial"}" src="${An}" alt="${la||""}" /></p>`):ze.replaceSelection(`<img width="100%" src="${An}" alt="${la||""}" />`):((kn=Bn==null?void 0:Bn.type)==null?void 0:kn.indexOf("video"))>-1?ze.replaceSelection(`<video width="100%" controls src="${An}"></video>`):((Rn=Bn==null?void 0:Bn.type)==null?void 0:Rn.indexOf("pdf"))>-1?ze.replaceSelection(`<a href="${An}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):cn.includes(ua)?ze.replaceSelection(`<a href="${An}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):ze.replaceSelection(`[${Bn.name}](${An})`),ze.focus();case It:const{row:Fa,col:Ba,align:$a}=Ft;let wa=`
`;for(let sa=0;sa<Fa;sa++){let xa=[],Ea=[];for(let Ca=0;Ca<Ba;Ca++)sa===1&&Ea.push(Kt[$a]),xa.push(" ");sa===1&&(wa+=`| ${Ea.join(" | ")} |
`),wa+=`| ${xa.join(Ba===1?"":" | ")} |
`}return ze.replaceSelection(wa+`
`),ze.focus();default:throw new Error}},[ze,_t]),da=(0,ae.useMemo)(()=>{switch(_t){case je:return ae.createElement(qe,{callback:En,onCancel:Hn});case bt:return ae.createElement(Vt.Z,{callback:En,onCancel:Hn});case dt:return ae.createElement(Le.Z,{callback:En,onCancel:Hn});case St:return ae.createElement(mt,{callback:En,onCancel:Hn});case It:return ae.createElement(vt,{callback:En,onCancel:Hn});case"maths-latex":return ae.createElement(qt,{showSaveButton:!0,callback:En});case"inline-latex":return ae.createElement(Zt.Z,{showSaveButton:!0,callback:En});default:return null}},[_t]);function Hn(){Xt("")}(0,ae.useEffect)(()=>{if(na.current){let Ft=function(kn){un=!0,Fn=kn.pageY},ct=function(){un=!1},Pt=function(kn){if(un){let Rn=kn.pageY-Fn;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let _n=rt+Rn+"px";qn(_n)}},Lt=na.current,un=!1,Fn=0;return Lt.addEventListener("mousedown",Ft),document.addEventListener("mousemove",Pt),document.addEventListener("mouseup",ct),()=>{Lt.removeEventListener("mousedown",Ft),document.removeEventListener("mousemove",Pt),document.removeEventListener("mouseup",ct)}}},[ze,na]),(0,ae.useEffect)(()=>{qn(rt)},[rt]);const pa=zn(Se),ha=zn(Pn),Gn={width:pa,height:ha},Mn=(0,ae.useMemo)(()=>{if(Tt){let Ft=new Date(Tt),ct=Ft.getHours(),Pt=Ft.getMinutes(),Lt=Ft.getSeconds();return ct=ct<10?"0"+ct:ct,Pt=Pt<10?"0"+Pt:Pt,Lt=Lt<10?"0"+Lt:Lt,`${ct}:${Pt}:${Lt}`}return 0},[Tt]),ga=Ft=>{const ct=[];if(Tn){let Pt=-1;Ft=Ft.replace(/(@▁▁@|@▁@)/g,function(Lt,un,Fn){ct.push({multiLine:Lt!==Cn})})}return ct};function va(){window.sessionStorage.removeItem(yn),Kn(!1),Sn(0)}function ya(){Kn(!1),Sn(0),ze.setValue(window.sessionStorage.getItem(yn))}(0,ae.useEffect)(()=>{ta[_t]&&_t!==Nt&&_t!==St&&setTimeout(()=>{const Ft=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-Ft.offsetWidth/2,Pt=window.innerHeight/2-Ft.offsetHeight/2;Vn(ct),ma(Pt)},0)},[_t]);const La=Ft=>{Ft.preventDefault();const ct=Ft.clientX-ia,Pt=Ft.clientY-On;document.body.onmousemove=Lt=>{let un=Lt.clientX-ct,Fn=Lt.clientY-Pt;const kn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-kn.offsetWidth,_n=window.innerHeight-kn.offsetHeight;un=Math.max(0,Math.min(un,Rn)),Fn=Math.max(0,Math.min(Fn,_n)),ba(Lt.clientX,Lt.clientY,ct,Pt)&&(Vn(un),ma(Fn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Ft,ct,Pt,Lt)=>{const un=document.body.clientHeight,Fn=document.body.clientWidth;return Ft<20&&Pt>Ft||Ft>Fn-20&&Pt<Ft||ct<20&&Lt>ct||ct>un-20&&Lt<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ae.createElement("div",{className:`markdown-editor-container ${Te} ${Ue?"on-preview":""} ${xt?"mini":""} ${wt?"full-screen":""}`,style:Gn},ae.createElement(ie,{insertTemp:Ht,watch:Ue,fullScreen:wt,showNullButton:tn,showNullProgramButton:Tn,onActionCallback:Yn,hidetoolBar:Xn,extraUse:Gt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ea,placeholder:De})),Ue?ae.createElement("div",{ref:Wn,className:"preview-container"},en==="stex"&&ae.createElement(Me,{value:hn}),en!=="stex"&&ae.createElement(Re.Z,{disabledFill:We,showProgramFill:Tn,value:hn})):null))),jn?ae.createElement("a",{ref:na,className:"editor-resize"}):null,_t===Nt&&ae.createElement(gt,{callback:En,onCancel:Hn}),_t===St&&ae.createElement(mt,{callback:En,onCancel:Hn}),ae.createElement(se.Z,null,ta[_t]&&_t!==Nt&&_t!==St?ae.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ia,top:On},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},ta[_t]),open:!0,onCancel:Hn,footer:null,destroyOnClose:!0,width:_t===St?"1200px":null,height:_t===St?"80vh":null,className:"markdown-popup-form"},da):null))}},45053:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return ge},I:function(){return se}});var ae=re(78241),fe=re(8591),Ze=re(92832),_e=re(81327),ce=re(5871),He=re(5112),ue=re(3113),Ve=re(28735),Oe=re(59301),Ie=re(41867),Re=re(59301),Me=Object.defineProperty,be=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Be,Ne)=>Be in le?Me(le,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):le[Be]=Ne,E=(le,Be)=>{for(var Ne in Be||(Be={}))y.call(Be,Ne)&&b(le,Ne,Be[Ne]);if(a)for(var Ne of a(Be))x.call(Be,Ne)&&b(le,Ne,Be[Ne]);return le},z=(le,Be)=>be(le,ne(Be));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Be})=>{const[Ne]=ee();let ut=(0,Oe.useRef)();function Bt(Ke){ut.current.width=Ne.getFieldValue("width"),ut.current.align=Ne.getFieldValue("align"),le(Ke,ut.current)}function Wt(Ke,it){if(Ke.status===-1){fe.ZP.error(Ke.message);return}Ne.setFieldsValue({src:`/api/attachments/${Ke.id}`,type:it.type})}function ye(Ke){let it=Ke.target.files[0];ut.current=it,se(it,Wt)}return Re.createElement(ae.default,z(E({form:Ne},oe),{className:"upload-image-panel",onFinish:Bt,style:{width:470,overflow:"hidden"}}),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(Ze.default,{style:te})),Re.createElement(ie,{onFileChange:ye}))),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Re.createElement(Ze.default,{style:{width:264}})),Re.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Re.createElement(_e.Z,null,Re.createElement(ae.default.Item,{name:"width",style:{margin:0}},Re.createElement(ce.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Re.createElement(He.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"}]})),Re.createElement("aside",null,Re.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(ue.ZP,{type:"default",onClick:Be},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:le}))}function se(le,Be){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ne=new FormData;Ne.append("editormd-image-file",le),Ne.append("file_param_name","editormd-image-file"),Ne.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(Bt){Be(JSON.parse(Bt.target.responseText),le)},!1),ut.addEventListener("error",function(Bt){console.error(Bt)},!1),ut.open("POST",`${Ve.KI}/api/attachments.json`),ut.send(Ne)}},57261:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Ze}});var ae=re(59301),fe=re(4676);class Ze extends ae.Component{constructor(ce){super(ce);const He=window.document;this.node=He.createElement("div"),He.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,fe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return fe}});var ae=re(59301);function fe(Ze,_e){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Ze}),(0,ae.useEffect)(()=>{function He(){ce.current()}if(_e!==null){let ue=setInterval(He,_e);return()=>clearInterval(ue)}},[_e])}},82999:function(Ce,lt,re){"use strict";re.r(lt),re.d(lt,{default:function(){return ge}});var ae=re(59301),fe=re(96565),Ze=re(65582),_e=re(78241),ce=re(8591),He=re(66104),ue=re(95237),Ve=re(43604),Oe=re(57809),Ie=re(92832),Re=re(28103),Me=re(3113),be={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ne=re(66479),a=re(57146),y=Object.defineProperty,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ie,se,le)=>se in ie?y(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,ee=(ie,se)=>{for(var le in se||(se={}))b.call(se,le)&&z(ie,le,se[le]);if(x)for(var le of x(se))E.call(se,le)&&z(ie,le,se[le]);return ie},te=(ie,se,le)=>new Promise((Be,Ne)=>{var ut=ye=>{try{Wt(le.next(ye))}catch(Ke){Ne(Ke)}},Bt=ye=>{try{Wt(le.throw(ye))}catch(Ke){Ne(Ke)}},Wt=ye=>ye.done?Be(ye.value):Promise.resolve(ye.value).then(ut,Bt);Wt((le=le.apply(ie,se)).next())});const oe=({graduation:ie,globalSetting:se,loading:le,user:Be,dispatch:Ne})=>{var ut;const Bt=(0,Ze.useParams)(),Wt=(0,Ze.useLocation)(),{userInfo:ye}=Be,[Ke]=_e.default.useForm(),{addTopicData:it}=ie,et=()=>te(void 0,null,function*(){var st;const tt=Ke.getFieldsValue(),at=ee({},tt);at!=null&&at.attachment_ids&&(at.attachment_ids=(st=at.attachment_ids)==null?void 0:st.map(Vt=>Vt.id||Vt.response.id));const qe=yield(0,ne.Sv)(ee({coursesId:Bt.coursesId,attachment_ids:[]},at));qe.status?ce.ZP.error(qe.message):Ze.history.push(`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`)});return(0,ae.useEffect)(()=>{Ne({type:"graduation/addTopicDefaultData",payload:ee({},Bt)})},[Bt.coursesId]),ae.createElement("section",{className:"edu-container"},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ye&&ae.createElement(He.Z,{separator:">"},ae.createElement(He.Z.Item,null,ae.createElement(Ze.Link,{to:`${ye.first_category_url}`},(ut=ye==null?void 0:ye.course)==null?void 0:ut.course_name)),ae.createElement(He.Z.Item,null,ae.createElement(Ze.Link,{to:`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(He.Z.Item,null,"\u65B0\u5EFA"))),ae.createElement("aside",{className:[be.title,"mt20"].join(" ")},ae.createElement(ue.Z,{style:{width:"100%"}},ae.createElement(Ve.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Ve.Z,null,ae.createElement(Ze.Link,{className:"font16 c-light-black",to:`/classrooms/${Bt.coursesId}/exercise`},"\u8FD4\u56DE"))))),ae.createElement("section",{className:[be.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ae.createElement(_e.default,{layout:"vertical",form:Ke,scrollToFirstError:!0,onFinish:st=>te(void 0,null,function*(){et()})},ae.createElement(_e.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},ae.createElement(Oe.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},ae.createElement(Oe.default.Option,{value:1},"\u666E\u901A"),ae.createElement(Oe.default.Option,{value:2},"\u5206\u7EC4"))),ae.createElement(_e.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},ae.createElement(Ie.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ae.createElement(Re.Z,null),ae.createElement(_e.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(fe.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),ae.createElement(ue.Z,null,ae.createElement(Ve.Z,null,ae.createElement(_e.default.Item,{name:"attachment_ids"},ae.createElement(a.Z,null)))))),ae.createElement("aside",{className:be.btns},ae.createElement(Me.ZP,{type:"primary",onClick:()=>{Ke.submit()}},"\u4FDD\u5B58"),ae.createElement(Ze.Link,{to:`/classrooms/${Bt.coursesId}/graduation_tasks/${Bt.categoryId}`},"\u53D6\u6D88")))};var ge=(0,Ze.connect)(({graduation:ie,loading:se,user:le,globalSetting:Be})=>({graduation:ie,globalSetting:Be,user:le,loading:se.effects}))(oe)},80024:function(Ce,lt,re){"use strict";re.d(lt,{$J:function(){return Ze},JZ:function(){return ce},bN:function(){return ue},jP:function(){return He},rO:function(){return _e}});var ae=re(38147),fe=(Ve,Oe,Ie)=>new Promise((Re,Me)=>{var be=y=>{try{a(Ie.next(y))}catch(x){Me(x)}},ne=y=>{try{a(Ie.throw(y))}catch(x){Me(x)}},a=y=>y.done?Re(y.value):Promise.resolve(y.value).then(be,ne);a((Ie=Ie.apply(Ve,Oe)).next())});function Ze(Ve){return(0,ae.U2)(`libraries/${Ve}.json`)}function _e(Ve){return(0,ae.U2)("library_tags.json",Ve)}function ce(Ve){return fe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ve}.json`)).status===0})}function He(Ve){return(0,ae.v_)("libraries.json",Ve)}function ue(Ve,Oe){return(0,ae.gz)(`libraries/${Ve}.json`,Oe)}},56762:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return fe}});var ae=re(59301);function fe(){const[,Ze]=ae.useReducer(_e=>_e+1,0);return Ze}},66104:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Wt}});var ae=re(92310),fe=re.n(ae),Ze=re(11592),_e=re(26112),ce=re(59301),He=re(92343),ue=re(36355),Ve=re(84105),Oe=re(91857);const Ie=ye=>{let{children:Ke}=ye;const{getPrefixCls:it}=ce.useContext(ue.E_),et=it("breadcrumb");return ce.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Ke===""?Ke:Ke||"/")};Ie.__ANT_BREADCRUMB_SEPARATOR=!0;var Re=Ie,Me=function(ye,Ke){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Ke.indexOf(et)<0&&(it[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(ye);st<et.length;st++)Ke.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};function be(ye,Ke){if(ye.title===void 0||ye.title===null)return null;const it=Object.keys(Ke).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${it})`,"g"),(et,st)=>Ke[st]||et)}function ne(ye,Ke,it,et){if(it==null)return null;const{className:st,onClick:tt}=Ke,at=Me(Ke,["className","onClick"]),qe=Object.assign(Object.assign({},(0,_e.Z)(at,{data:!0,aria:!0})),{onClick:tt});return et!==void 0?ce.createElement("a",Object.assign({},qe,{className:fe()(`${ye}-link`,st),href:et}),it):ce.createElement("span",Object.assign({},qe,{className:fe()(`${ye}-link`,st)}),it)}function a(ye,Ke){return(et,st,tt,at,qe)=>{if(Ke)return Ke(et,st,tt,at);const Vt=be(et,st);return ne(ye,et,Vt,qe)}}var y=function(ye,Ke){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Ke.indexOf(et)<0&&(it[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(ye);st<et.length;st++)Ke.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};const x=ye=>{const{prefixCls:Ke,separator:it="/",children:et,menu:st,overlay:tt,dropdownProps:at,href:qe}=ye,Le=($e=>{if(st||tt){const Je=Object.assign({},at);if(st){const ht=st||{},{items:Xe}=ht,gt=y(ht,["items"]);Je.menu=Object.assign(Object.assign({},gt),{items:Xe==null?void 0:Xe.map((de,ot)=>{var{key:At,title:Yt,label:kt,path:Ge}=de,we=y(de,["key","title","label","path"]);let pe=kt!=null?kt:Yt;return Ge&&(pe=ce.createElement("a",{href:`${qe}${Ge}`},pe)),Object.assign(Object.assign({},we),{key:At!=null?At:ot,label:pe})})})}else tt&&(Je.overlay=tt);return ce.createElement(Oe.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${Ke}-overlay-link`},$e,ce.createElement(Ve.Z,null)))}return $e})(et);return Le!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Le),it&&ce.createElement(Re,null,it)):null},b=ye=>{const{prefixCls:Ke,children:it,href:et}=ye,st=y(ye,["prefixCls","children","href"]),{getPrefixCls:tt}=ce.useContext(ue.E_),at=tt("breadcrumb",Ke);return ce.createElement(x,Object.assign({},st,{prefixCls:at}),ne(at,st,it,et))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=re(17313),ee=re(83116),te=re(37613);const oe=ye=>{const{componentCls:Ke,iconCls:it}=ye;return{[Ke]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[it]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${Ke}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Ke}-link`]:{[`
> ${it} + span,
> ${it} + a
`]:{marginInlineStart:ye.marginXXS}},[`${Ke}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${it}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",ye=>{const Ke=(0,te.TS)(ye,{});return[oe(Ke)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ie=function(ye,Ke){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Ke.indexOf(et)<0&&(it[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(ye);st<et.length;st++)Ke.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};function se(ye){const{breadcrumbName:Ke,children:it}=ye,et=ie(ye,["breadcrumbName","children"]),st=Object.assign({title:Ke},et);return it&&(st.menu={items:it.map(tt=>{var{breadcrumbName:at}=tt,qe=ie(tt,["breadcrumbName"]);return Object.assign(Object.assign({},qe),{title:at})})}),st}function le(ye,Ke){return(0,ce.useMemo)(()=>ye||(Ke?Ke.map(se):null),[ye,Ke])}var Be=function(ye,Ke){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Ke.indexOf(et)<0&&(it[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(ye);st<et.length;st++)Ke.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};const Ne=(ye,Ke)=>{if(Ke===void 0)return Ke;let it=(Ke||"").replace(/^\//,"");return Object.keys(ye).forEach(et=>{it=it.replace(`:${et}`,ye[et])}),it},ut=ye=>{const{prefixCls:Ke,separator:it="/",style:et,className:st,rootClassName:tt,routes:at,items:qe,children:Vt,itemRender:Le,params:$e={}}=ye,Je=Be(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:Xe,breadcrumb:gt}=ce.useContext(ue.E_);let de;const ot=ht("breadcrumb",Ke),[At,Yt]=ge(ot),kt=le(qe,at),Ge=a(ot,Le);if(kt&&kt.length>0){const ke=[],Ae=qe||at;de=kt.map((mt,Et)=>{const{path:Ct,key:Rt,type:jt,menu:vt,overlay:ft,onClick:nn,className:on,separator:mn,dropdownProps:qt}=mt,Zt=Ne($e,Ct);Zt!==void 0&&ke.push(Zt);const Pe=Rt!=null?Rt:Et;if(jt==="separator")return ce.createElement(Re,{key:Pe},mn);const Fe={},je=Et===kt.length-1;vt?Fe.menu=vt:ft&&(Fe.overlay=ft);let{href:dt}=mt;return ke.length&&Zt!==void 0&&(dt=`#/${ke.join("/")}`),ce.createElement(x,Object.assign({key:Pe},Fe,(0,_e.Z)(mt,{data:!0,aria:!0}),{className:on,dropdownProps:qt,href:dt,separator:je?"":it,onClick:nn,prefixCls:ot}),Ge(mt,$e,Ae,ke,dt))})}else if(Vt){const ke=(0,Ze.Z)(Vt).length;de=(0,Ze.Z)(Vt).map((Ae,mt)=>{if(!Ae)return Ae;const Et=mt===ke-1;return(0,He.Tm)(Ae,{separator:Et?"":it,key:mt})})}const we=fe()(ot,gt==null?void 0:gt.className,{[`${ot}-rtl`]:Xe==="rtl"},st,tt,Yt),pe=Object.assign(Object.assign({},gt==null?void 0:gt.style),et);return At(ce.createElement("nav",Object.assign({className:we,style:pe},Je),ce.createElement("ol",null,de)))};ut.Item=E,ut.Separator=Re;var Bt=ut,Wt=Bt},28103:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Me}});var ae=re(92310),fe=re.n(ae),Ze=re(59301),_e=re(36355),ce=re(17313),He=re(83116),ue=re(37613);const Ve=be=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:x,textPaddingInline:b,orientationMargin:E,verticalMarginInline:z}=be;return{[ne]:Object.assign(Object.assign({},(0,ce.Wf)(be)),{borderBlockStart:`${x}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${be.dividerHorizontalWithTextGutterMargin}px 0`,color:be.colorTextHeading,fontWeight:500,fontSize:be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${E*100}%`},"&::after":{width:`${100-E*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-E*100}%`},"&::after":{width:`${E*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:be.colorText,fontWeight:"normal",fontSize:be.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var Oe=(0,He.Z)("Divider",be=>{const ne=(0,ue.TS)(be,{dividerHorizontalWithTextGutterMargin:be.margin,dividerHorizontalGutterMargin:be.marginLG,sizePaddingEdgeHorizontal:0});return[Ve(ne)]},be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:be.marginXS})),Ie=function(be,ne){var a={};for(var y in be)Object.prototype.hasOwnProperty.call(be,y)&&ne.indexOf(y)<0&&(a[y]=be[y]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(be);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(be,y[x])&&(a[y[x]]=be[y[x]]);return a},Me=be=>{const{getPrefixCls:ne,direction:a,divider:y}=Ze.useContext(_e.E_),{prefixCls:x,type:b="horizontal",orientation:E="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ge,plain:ie,style:se}=be,le=Ie(be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Be=ne("divider",x),[Ne,ut]=Oe(Be),Bt=E.length>0?`-${E}`:E,Wt=!!oe,ye=E==="left"&&z!=null,Ke=E==="right"&&z!=null,it=fe()(Be,y==null?void 0:y.className,ut,`${Be}-${b}`,{[`${Be}-with-text`]:Wt,[`${Be}-with-text${Bt}`]:Wt,[`${Be}-dashed`]:!!ge,[`${Be}-plain`]:!!ie,[`${Be}-rtl`]:a==="rtl",[`${Be}-no-default-orientation-margin-left`]:ye,[`${Be}-no-default-orientation-margin-right`]:Ke},ee,te),et=Ze.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),st=Object.assign(Object.assign({},ye&&{marginLeft:et}),Ke&&{marginRight:et});return Ne(Ze.createElement("div",Object.assign({className:it,style:Object.assign(Object.assign({},y==null?void 0:y.style),se)},le,{role:"separator"}),oe&&b!=="vertical"&&Ze.createElement("span",{className:`${Be}-inner-text`,style:st},oe)))}},91857:function(Ce,lt,re){"use strict";var ae=re(59301),fe=re(38819),Ze=re(92310),_e=re.n(Ze),ce=re(31561),He=re(70425),ue=re(18929),Ve=re(2738),Oe=re(79676),Ie=re(53487),Re=re(92343),Me=re(36355),be=re(20834),ne=re(40875),a=re(88088),y=re(47211);const x=null,b=te=>{const{menu:oe,arrow:ge,prefixCls:ie,children:se,trigger:le,disabled:Be,dropdownRender:Ne,getPopupContainer:ut,overlayClassName:Bt,rootClassName:Wt,open:ye,onOpenChange:Ke,visible:it,onVisibleChange:et,mouseEnterDelay:st=.15,mouseLeaveDelay:tt=.1,autoAdjustOverflow:at=!0,placement:qe="",overlay:Vt,transitionName:Le}=te,{getPopupContainer:$e,getPrefixCls:Je,direction:ht}=ae.useContext(Me.E_),Xe=ae.useMemo(()=>{const vt=Je();return Le!==void 0?Le:qe.includes("top")?`${vt}-slide-down`:`${vt}-slide-up`},[Je,qe,Le]),gt=ae.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:ht==="rtl"?"bottomRight":"bottomLeft",[qe,ht]),de=Je("dropdown",ie),[ot,At]=(0,y.Z)(de),[,Yt]=(0,a.Z)(),kt=ae.Children.only(se),Ge=(0,Re.Tm)(kt,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:ht==="rtl"},kt.props.className),disabled:Be}),we=Be?[]:le;let pe;we&&we.includes("contextMenu")&&(pe=!0);const[ke,Ae]=(0,ue.Z)(!1,{value:ye!=null?ye:it}),mt=(0,He.useEvent)(vt=>{Ke==null||Ke(vt),et==null||et(vt),Ae(vt)}),Et=_e()(Bt,Wt,At,{[`${de}-rtl`]:ht==="rtl"}),Ct=(0,Oe.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:at,offset:Yt.marginXXS,arrowWidth:ge?Yt.sizePopupArrow:0,borderRadius:Yt.borderRadius}),Rt=ae.useCallback(()=>{Ae(!1)},[]),jt=()=>{let vt;return oe!=null&&oe.items?vt=ae.createElement(be.default,Object.assign({},oe)):typeof Vt=="function"?vt=Vt():vt=Vt,Ne&&(vt=Ne(vt)),vt=ae.Children.only(typeof vt=="string"?ae.createElement("span",null,vt):vt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Rt,validator:ft=>{let{mode:nn}=ft}},vt)};return ot(ae.createElement(ce.Z,Object.assign({alignPoint:pe},(0,Ve.Z)(te,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:tt,visible:ke,builtinPlacements:Ct,arrow:!!ge,overlayClassName:Et,prefixCls:de,getPopupContainer:ut||$e,transitionName:Xe,trigger:we,overlay:jt,placement:gt,onVisibleChange:mt}),Ge))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ie.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,lt.Z=b},47211:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Re}});var ae=re(17313),fe=re(13826),Ze=re(92899),_e=re(29878),ce=re(19447),He=re(83116),ue=re(37613),Oe=Me=>{const{componentCls:be,menuCls:ne,colorError:a,colorTextLightSolid:y}=Me,x=`${ne}-item`;return{[`${be}, ${be}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ie=Me=>{const{componentCls:be,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Me;return[{[be]:Object.assign(Object.assign({},(0,ae.Wf)(Me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${be}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${be}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${be}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${be}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${be}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${be}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${be}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${be}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${be}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${be}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${be}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${be}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${be}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${be}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${be}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${be}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${be}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${be}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${be}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${be}-placement-topRight`]:{animationName:fe.ly}})},(0,ce.ZP)(Me,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${be} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${be}, ${be}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,ae.Qy)(Me)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Me.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${se}px`,color:Me.colorText,fontWeight:"normal",fontSize:te,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,ae.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Me.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Me.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${be}-menu-submenu-title`]:{[`&, ${be}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${be}-menu-submenu-title`]:{color:Me.colorPrimary}})}},[(0,fe.oN)(Me,"slide-up"),(0,fe.oN)(Me,"slide-down"),(0,Ze.Fm)(Me,"move-up"),(0,Ze.Fm)(Me,"move-down"),(0,_e._y)(Me,"zoom-big")]]};var Re=(0,He.Z)("Dropdown",(Me,be)=>{let{rootPrefixCls:ne}=be;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Me,oe=(x-b*E)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,ue.TS)(Me,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ie(ie),Oe(ie)]},Me=>({zIndexPopup:Me.zIndexPopupBase+50}))},45818:function(Ce,lt,re){"use strict";re.d(lt,{D:function(){return z},Z:function(){return oe}});var ae=re(54476),fe=re(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},_e=Ze,ce=re(7657),He=function(ie,se){return fe.createElement(ce.Z,(0,ae.Z)({},ie,{ref:se,icon:_e}))},ue=fe.forwardRef(He),Ve=ue,Oe=re(33853),Ie=re(38819),Re=re(92310),Me=re.n(Re),be=re(2738),a=ge=>!isNaN(parseFloat(ge))&&isFinite(ge),y=re(36355),x=re(84966),b=function(ge,ie){var se={};for(var le in ge)Object.prototype.hasOwnProperty.call(ge,le)&&ie.indexOf(le)<0&&(se[le]=ge[le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,le=Object.getOwnPropertySymbols(ge);Be<le.length;Be++)ie.indexOf(le[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,le[Be])&&(se[le[Be]]=ge[le[Be]]);return se};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let ge=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ge+=1,`${ie}${ge}`}})();var oe=fe.forwardRef((ge,ie)=>{const{prefixCls:se,className:le,trigger:Be,children:Ne,defaultCollapsed:ut=!1,theme:Bt="dark",style:Wt={},collapsible:ye=!1,reverseArrow:Ke=!1,width:it=200,collapsedWidth:et=80,zeroWidthTriggerStyle:st,breakpoint:tt,onCollapse:at,onBreakpoint:qe}=ge,Vt=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Le}=(0,fe.useContext)(x.Gs),[$e,Je]=(0,fe.useState)("collapsed"in ge?ge.collapsed:ut),[ht,Xe]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ge&&Je(ge.collapsed)},[ge.collapsed]);const gt=(Ge,we)=>{"collapsed"in ge||Je(Ge),at==null||at(Ge,we)},de=(0,fe.useRef)();de.current=Ge=>{Xe(Ge.matches),qe==null||qe(Ge.matches),$e!==Ge.matches&&gt(Ge.matches,"responsive")},(0,fe.useEffect)(()=>{function Ge(pe){return de.current(pe)}let we;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&tt&&tt in E){we=pe(`(max-width: ${E[tt]})`);try{we.addEventListener("change",Ge)}catch(ke){we.addListener(Ge)}Ge(we)}}return()=>{try{we==null||we.removeEventListener("change",Ge)}catch(pe){we==null||we.removeListener(Ge)}}},[tt]),(0,fe.useEffect)(()=>{const Ge=ee("ant-sider-");return Le.addSider(Ge),()=>Le.removeSider(Ge)},[]);const ot=()=>{gt(!$e,"clickTrigger")},{getPrefixCls:At}=(0,fe.useContext)(y.E_),Yt=()=>{const Ge=At("layout-sider",se),we=(0,be.Z)(Vt,["collapsed"]),pe=$e?et:it,ke=a(pe)?`${pe}px`:String(pe),Ae=parseFloat(String(et||0))===0?fe.createElement("span",{onClick:ot,className:Me()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${Ke?"right":"left"}`),style:st},Be||fe.createElement(Ve,null)):null,Ct={expanded:Ke?fe.createElement(Ie.Z,null):fe.createElement(Oe.Z,null),collapsed:Ke?fe.createElement(Oe.Z,null):fe.createElement(Ie.Z,null)}[$e?"collapsed":"expanded"],Rt=Be!==null?Ae||fe.createElement("div",{className:`${Ge}-trigger`,onClick:ot,style:{width:ke}},Be||Ct):null,jt=Object.assign(Object.assign({},Wt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),vt=Me()(Ge,`${Ge}-${Bt}`,{[`${Ge}-collapsed`]:!!$e,[`${Ge}-has-trigger`]:ye&&Be!==null&&!Ae,[`${Ge}-below`]:!!ht,[`${Ge}-zero-width`]:parseFloat(ke)===0},le);return fe.createElement("aside",Object.assign({className:vt},we,{style:jt,ref:ie}),fe.createElement("div",{className:`${Ge}-children`},Ne),ye||ht&&Ae?Rt:null)},kt=fe.useMemo(()=>({siderCollapsed:$e}),[$e]);return fe.createElement(z.Provider,{value:kt},Yt())})},84966:function(Ce,lt,re){"use strict";re.d(lt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return be},ZP:function(){return ee}});var ae=re(94480),fe=re(92310),Ze=re.n(fe),_e=re(2738),ce=re(59301),He=re(36355),ue=re(83116),Oe=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ie=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:Be,headerHeight:Ne,headerPadding:ut,headerColor:Bt,footerPadding:Wt,triggerHeight:ye,zeroTriggerHeight:Ke,zeroTriggerWidth:it,motionDurationMid:et,motionDurationSlow:st,fontSize:tt,borderRadius:at,bodyBg:qe,headerBg:Vt,siderBg:Le}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qe,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Le,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:se,lineHeight:`${ye}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-it,zIndex:1,width:it,height:Ke,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderStartStartRadius:0,borderStartEndRadius:at,borderEndEndRadius:at,borderEndStartRadius:0,cursor:"pointer",transition:`background ${st} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${st}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:at,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:at}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ne,padding:ut,color:Bt,lineHeight:`${Ne}px`,background:Vt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Wt,color:ie,fontSize:tt,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Re=(0,ue.Z)("Layout",te=>[Ie(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:Be,colorTextLightSolid:Ne,colorBgContainer:ut}=te,Bt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Bt}px`,headerColor:se,footerPadding:`${le}px ${Bt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Be*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Me=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const be=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>ce.forwardRef((Be,Ne)=>ce.createElement(se,Object.assign({ref:Ne,suffixCls:oe,tagName:ge},Be)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,Be=Me(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=ce.useContext(He.E_),ut=Ne("layout",ge),[Bt,Wt]=Re(ut),ye=ie?`${ut}-${ie}`:ut;return Bt(ce.createElement(le,Object.assign({className:Ze()(ge||ye,se,Wt),ref:oe},Be)))}),y=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(He.E_),[ie,se]=ce.useState([]),{prefixCls:le,className:Be,rootClassName:Ne,children:ut,hasSider:Bt,tagName:Wt,style:ye}=te,Ke=Me(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,_e.Z)(Ke,["suffixCls"]),{getPrefixCls:et,layout:st}=ce.useContext(He.E_),tt=et("layout",le),[at,qe]=Re(tt),Vt=Ze()(tt,{[`${tt}-has-sider`]:typeof Bt=="boolean"?Bt:ie.length>0,[`${tt}-rtl`]:ge==="rtl"},st==null?void 0:st.className,Be,Ne,qe),Le=ce.useMemo(()=>({siderHook:{addSider:$e=>{se(Je=>[].concat((0,ae.Z)(Je),[$e]))},removeSider:$e=>{se(Je=>Je.filter(ht=>ht!==$e))}}}),[]);return at(ce.createElement(be.Provider,{value:Le},ce.createElement(Wt,Object.assign({ref:oe,className:Vt,style:Object.assign(Object.assign({},st==null?void 0:st.style),ye)},it),ut)))}),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(Ce,lt,re){"use strict";re.d(lt,{J:function(){return He}});var ae=re(59301),fe=re(33234),Ze=re(70425),_e=function(ue,Ve){var Oe={};for(var Ie in ue)Object.prototype.hasOwnProperty.call(ue,Ie)&&Ve.indexOf(Ie)<0&&(Oe[Ie]=ue[Ie]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ie=Object.getOwnPropertySymbols(ue);Re<Ie.length;Re++)Ve.indexOf(Ie[Re])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ie[Re])&&(Oe[Ie[Re]]=ue[Ie[Re]]);return Oe};const ce=ae.createContext(null),He=ae.forwardRef((ue,Ve)=>{const{children:Oe}=ue,Ie=_e(ue,["children"]),Re=ae.useContext(ce),Me=ae.useMemo(()=>Object.assign(Object.assign({},Re),Ie),[Re,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(ce.Provider,{value:Me},ae.createElement(fe.BR,null,(0,Ze.supportNodeRef)(Oe)?ae.cloneElement(Oe,{ref:Ve}):Oe))});lt.Z=ce},20834:function(Ce,lt,re){"use strict";re.d(lt,{default:function(){return kt}});var ae=re(15285),fe=re(59301),Ze=re(45818),_e=re(92310),ce=re.n(_e),He=re(36355),ue=function(Ge,we){var pe={};for(var ke in Ge)Object.prototype.hasOwnProperty.call(Ge,ke)&&we.indexOf(ke)<0&&(pe[ke]=Ge[ke]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ke=Object.getOwnPropertySymbols(Ge);Ae<ke.length;Ae++)we.indexOf(ke[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ke[Ae])&&(pe[ke[Ae]]=Ge[ke[Ae]]);return pe},Oe=Ge=>{const{prefixCls:we,className:pe,dashed:ke}=Ge,Ae=ue(Ge,["prefixCls","className","dashed"]),{getPrefixCls:mt}=fe.useContext(He.E_),Et=mt("menu",we),Ct=ce()({[`${Et}-item-divider-dashed`]:!!ke},pe);return fe.createElement(ae.iz,Object.assign({className:Ct},Ae))},Ie=re(11592),Re=re(2738),Me=re(6848),be=re(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ge=>{var we;const{className:pe,children:ke,icon:Ae,title:mt,danger:Et}=Ge,{prefixCls:Ct,firstLevel:Rt,direction:jt,disableMenuItemTitleTooltip:vt,inlineCollapsed:ft}=fe.useContext(a),nn=Fe=>{const je=fe.createElement("span",{className:`${Ct}-title-content`},ke);return(!Ae||(0,be.l$)(ke)&&ke.type==="span")&&ke&&Fe&&Rt&&typeof ke=="string"?fe.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},ke.charAt(0)):je},{siderCollapsed:on}=fe.useContext(Ze.D);let mn=mt;typeof mt=="undefined"?mn=Rt?ke:"":mt===!1&&(mn="");const qt={title:mn};!on&&!ft&&(qt.title=null,qt.open=!1);const Zt=(0,Ie.Z)(ke).length;let Pe=fe.createElement(ae.ck,Object.assign({},(0,Re.Z)(Ge,["title","icon","danger"]),{className:ce()({[`${Ct}-item-danger`]:Et,[`${Ct}-item-only-child`]:(Ae?Zt+1:Zt)===1},pe),title:typeof mt=="string"?mt:void 0}),(0,be.Tm)(Ae,{className:ce()((0,be.l$)(Ae)?(we=Ae.props)===null||we===void 0?void 0:we.className:"",`${Ct}-item-icon`)}),nn(ft));return vt||(Pe=fe.createElement(Me.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Ct}-inline-collapsed-tooltip`}),Pe)),Pe},E=Ge=>{var we;const{popupClassName:pe,icon:ke,title:Ae,theme:mt}=Ge,Et=fe.useContext(a),{prefixCls:Ct,inlineCollapsed:Rt,theme:jt}=Et,vt=(0,ae.Xl)();let ft;if(!ke)ft=Rt&&!vt.length&&Ae&&typeof Ae=="string"?fe.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Ae.charAt(0)):fe.createElement("span",{className:`${Ct}-title-content`},Ae);else{const on=(0,be.l$)(Ae)&&Ae.type==="span";ft=fe.createElement(fe.Fragment,null,(0,be.Tm)(ke,{className:ce()((0,be.l$)(ke)?(we=ke.props)===null||we===void 0?void 0:we.className:"",`${Ct}-item-icon`)}),on?Ae:fe.createElement("span",{className:`${Ct}-title-content`},Ae))}const nn=fe.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]);return fe.createElement(a.Provider,{value:nn},fe.createElement(ae.Wd,Object.assign({},(0,Re.Z)(Ge,["icon"]),{title:ft,popupClassName:ce()(Ct,pe,`${Ct}-${mt||jt}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ge=function(Ge,we){var pe={};for(var ke in Ge)Object.prototype.hasOwnProperty.call(Ge,ke)&&we.indexOf(ke)<0&&(pe[ke]=Ge[ke]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ke=Object.getOwnPropertySymbols(Ge);Ae<ke.length;Ae++)we.indexOf(ke[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ke[Ae])&&(pe[ke[Ae]]=Ge[ke[Ae]]);return pe};function ie(Ge){return(Ge||[]).map((we,pe)=>{if(we&&typeof we=="object"){const ke=we,{label:Ae,children:mt,key:Et,type:Ct}=ke,Rt=ge(ke,["label","children","key","type"]),jt=Et!=null?Et:`tmp-${pe}`;return mt||Ct==="group"?Ct==="group"?fe.createElement(ae.BW,Object.assign({key:jt},Rt,{title:Ae}),ie(mt)):fe.createElement(E,Object.assign({key:jt},Rt,{title:Ae}),ie(mt)):Ct==="divider"?fe.createElement(Oe,Object.assign({key:jt},Rt)):fe.createElement(x,Object.assign({key:jt},Rt),Ae)}return null}).filter(we=>we)}function se(Ge){return fe.useMemo(()=>Ge&&ie(Ge),[Ge])}var le=re(64993),Be=re(17313),Ne=re(8378),ut=re(13826),Bt=re(29878),Wt=re(83116),ye=re(37613),it=Ge=>{const{componentCls:we,motionDurationSlow:pe,horizontalLineHeight:ke,colorSplit:Ae,lineWidth:mt,lineType:Et,itemPaddingInline:Ct}=Ge;return{[`${we}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${mt}px ${Et} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ct},[`> ${we}-item:hover,
> ${we}-item-active,
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},st=Ge=>{let{componentCls:we,menuArrowOffset:pe}=Ge;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const tt=Ge=>Object.assign({},(0,Be.oN)(Ge));var qe=(Ge,we)=>{const{componentCls:pe,itemColor:ke,itemSelectedColor:Ae,groupTitleColor:mt,itemBg:Et,subMenuItemBg:Ct,itemSelectedBg:Rt,activeBarHeight:jt,activeBarWidth:vt,activeBarBorderWidth:ft,motionDurationSlow:nn,motionEaseInOut:on,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Zt,itemHoverColor:Pe,lineType:Fe,colorSplit:je,itemDisabledColor:dt,dangerItemColor:St,dangerItemHoverColor:Nt,dangerItemSelectedColor:Mt,dangerItemActiveBg:bt,dangerItemSelectedBg:It,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:an,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:gn,popupBg:rn}=Ge;return{[`${pe}-${we}, ${pe}-${we} > ${pe}`]:{color:ke,background:Et,[`&${pe}-root:focus-visible`]:Object.assign({},tt(Ge)),[`${pe}-item-group-title`]:{color:mt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Ae}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${dt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Pe}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${pe}-item-danger`]:{color:St,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Nt}},[`&${pe}-item:active`]:{background:bt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Ae,[`&${pe}-item-danger`]:{color:Mt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Rt,[`&${pe}-item-danger`]:{backgroundColor:It}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},tt(Ge))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:an},[`&${pe}-popup > ${pe}`]:{backgroundColor:rn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:ft,marginTop:-ft,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${nn} ${on}`,content:'""'},"&:hover, &-active, &-open":{background:gn,"&::after":{borderBottomWidth:jt,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:jt,borderBottomColor:fn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${ft}px ${Fe} ${je}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Ct},[`${pe}-item, ${pe}-submenu-title`]:ft&&vt?{width:`calc(100% + ${ft}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vt}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Zt} ${mn}`,`opacity ${Zt} ${mn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Mt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Zt} ${on}`,`opacity ${Zt} ${on}`].join(",")}}}}}};const Vt=Ge=>{const{componentCls:we,itemHeight:pe,itemMarginInline:ke,padding:Ae,menuArrowSize:mt,marginXS:Et,itemMarginBlock:Ct}=Ge,Rt=Ae+mt+Et;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Ct,width:`calc(100% - ${ke*2}px)`},[`> ${we}-item,
> ${we}-submenu > ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${we}-item-group-list ${we}-submenu-title,
${we}-submenu-title`]:{paddingInlineEnd:Rt}}};var $e=Ge=>{const{componentCls:we,iconCls:pe,itemHeight:ke,colorTextLightSolid:Ae,dropdownWidth:mt,controlHeightLG:Et,motionDurationMid:Ct,motionEaseOut:Rt,paddingXL:jt,itemMarginInline:vt,fontSizeLG:ft,motionDurationSlow:nn,paddingXS:on,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Zt}=Ge,Pe={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},Vt(Ge))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},Vt(Ge)),{boxShadow:mn})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${Et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${nn}`,`background ${nn}`,`padding ${Ct} ${Rt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:Pe,[`& ${we}-item-group-title`]:{paddingInlineStart:jt}},[`${we}-item`]:Pe}},{[`${we}-inline-collapsed`]:{width:qt,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:ft,textAlign:"center"}}},[`> ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ft/2}px - ${vt}px)`,textOverflow:"clip",[`
${we}-submenu-arrow,
${we}-submenu-expand-icon
`]:{opacity:0},[`${we}-item-icon, ${pe}`]:{margin:0,fontSize:Zt,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${we}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:on})}}]};const Je=Ge=>{const{componentCls:we,motionDurationSlow:pe,motionDurationMid:ke,motionEaseInOut:Ae,motionEaseOut:mt,iconCls:Et,iconSize:Ct,iconMarginInlineEnd:Rt}=Ge;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Ae}`].join(","),[`${we}-item-icon, ${Et}`]:{minWidth:Ct,fontSize:Ct,transition:[`font-size ${ke} ${mt}`,`margin ${pe} ${Ae}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Rt,opacity:1,transition:[`opacity ${pe} ${Ae}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${we}-item-only-child`]:{[`> ${Et}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ht=Ge=>{const{componentCls:we,motionDurationSlow:pe,motionEaseInOut:ke,borderRadius:Ae,menuArrowSize:mt,menuArrowOffset:Et}=Ge;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${ke}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:mt*.6,height:mt*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${pe} ${ke}`,`transform ${pe} ${ke}`,`top ${pe} ${ke}`,`color ${pe} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Et})`},"&::after":{transform:`rotate(-45deg) translateY(${Et})`}}}}},Xe=Ge=>{const{antCls:we,componentCls:pe,fontSize:ke,motionDurationSlow:Ae,motionDurationMid:mt,motionEaseInOut:Et,paddingXS:Ct,padding:Rt,colorSplit:jt,lineWidth:vt,zIndexPopup:ft,borderRadiusLG:nn,subMenuItemBorderRadius:on,menuArrowSize:mn,menuArrowOffset:qt,lineType:Zt,menuPanelMaskInset:Pe,groupTitleLineHeight:Fe,groupTitleFontSize:je}=Ge;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Be.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,Be.Wf)(Ge)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Ct}px ${Rt}px`,fontSize:je,lineHeight:Fe,transition:`all ${Ae}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Ae} ${Et}`,`background ${Ae} ${Et}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Ae} ${Et}`,`background ${Ae} ${Et}`,`padding ${mt} ${Et}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${Et}`,`padding ${Ae} ${Et}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Ae}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Zt,borderWidth:0,borderTopWidth:vt,marginBlock:vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(Ge)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${ke*2}px ${Rt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ft,borderRadius:nn,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:nn},Je(Ge)),ht(Ge)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:on},[`${pe}-submenu-title::after`]:{transition:`transform ${Ae} ${Et}`}})}}),ht(Ge)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${we}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var gt=(Ge,we)=>(0,Wt.Z)("Menu",ke=>{if(we===!1)return[];const{colorBgElevated:Ae,colorPrimary:mt,colorTextLightSolid:Et,controlHeightLG:Ct,fontSize:Rt,darkItemColor:jt,darkDangerItemColor:vt,darkItemBg:ft,darkSubMenuItemBg:nn,darkItemSelectedColor:on,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Zt,darkGroupTitleColor:Pe,darkItemHoverColor:Fe,darkItemDisabledColor:je,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:Nt}=ke,Mt=Rt/7*5,bt=(0,ye.TS)(ke,{menuArrowSize:Mt,menuHorizontalHeight:Ct*1.15,menuArrowOffset:`${Mt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),It=(0,ye.TS)(bt,{itemColor:jt,itemHoverColor:Fe,groupTitleColor:Pe,itemSelectedColor:on,itemBg:ft,popupBg:ft,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Zt,itemDisabledColor:je,dangerItemColor:vt,dangerItemHoverColor:dt,dangerItemSelectedColor:St,dangerItemActiveBg:Nt,dangerItemSelectedBg:qt,menuSubMenuBg:nn,horizontalItemSelectedColor:Et,horizontalItemSelectedBg:mt});return[Xe(bt),it(bt),$e(bt),qe(bt,"light"),qe(It,"dark"),st(bt),(0,Ne.Z)(bt),(0,ut.oN)(bt,"slide-up"),(0,ut.oN)(bt,"slide-down"),(0,Bt._y)(bt,"zoom-big")]},ke=>{const{colorPrimary:Ae,colorError:mt,colorTextDisabled:Et,colorErrorBg:Ct,colorText:Rt,colorTextDescription:jt,colorBgContainer:vt,colorFillAlter:ft,colorFillContent:nn,lineWidth:on,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Zt,controlHeightLG:Pe,lineHeight:Fe,colorBgElevated:je,marginXXS:dt,padding:St,fontSize:Nt,controlHeightSM:Mt,fontSizeLG:bt,colorTextLightSolid:It,colorErrorHover:Jt}=ke,Kt=new le.C(It).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:Rt,itemColor:Rt,colorItemTextHover:Rt,itemHoverColor:Rt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:vt,itemBg:vt,colorItemBgHover:Zt,itemHoverBg:Zt,colorItemBgActive:nn,itemActiveBg:qt,colorSubItemBg:ft,subMenuItemBg:ft,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:on,activeBarBorderWidth:on,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:Ct,dangerItemActiveBg:Ct,colorDangerItemBgSelected:Ct,dangerItemSelectedBg:Ct,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:Fe,collapsedWidth:Pe*2,popupBg:je,itemMarginBlock:dt,itemPaddingInline:St,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Nt,iconMarginInlineEnd:Mt-Nt,collapsedIconSize:bt,groupTitleFontSize:Nt,darkItemDisabledColor:new le.C(It).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:It,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:mt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ge),de=function(Ge,we){var pe={};for(var ke in Ge)Object.prototype.hasOwnProperty.call(Ge,ke)&&we.indexOf(ke)<0&&(pe[ke]=Ge[ke]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ke=Object.getOwnPropertySymbols(Ge);Ae<ke.length;Ae++)we.indexOf(ke[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ke[Ae])&&(pe[ke[Ae]]=Ge[ke[Ae]]);return pe},At=(0,fe.forwardRef)((Ge,we)=>{var pe,ke;const Ae=fe.useContext(oe.Z),mt=Ae||{},{getPrefixCls:Et,getPopupContainer:Ct,direction:Rt,menu:jt}=fe.useContext(He.E_),vt=Et(),{prefixCls:ft,className:nn,style:on,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Zt,inlineCollapsed:Pe,siderCollapsed:Fe,items:je,children:dt,rootClassName:St,mode:Nt,selectable:Mt,onClick:bt,overflowedIndicatorPopupClassName:It}=Ge,Jt=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Re.Z)(Jt,["collapsedWidth"]),an=se(je)||dt;(pe=mt.validator)===null||pe===void 0||pe.call(mt,{mode:Nt});const fn=(0,ee.useEvent)(function(){var Nn;bt==null||bt.apply(void 0,arguments),(Nn=mt.onClick)===null||Nn===void 0||Nn.call(mt)}),pn=mt.mode||Nt,wn=Mt!=null?Mt:mt.selectable,gn=fe.useMemo(()=>Fe!==void 0?Fe:Pe,[Pe,Fe]),rn={horizontal:{motionName:`${vt}-slide-up`},inline:(0,te.Z)(vt),other:{motionName:`${vt}-zoom-big`}},vn=Et("menu",ft||mt.prefixCls),[Cn,$n]=gt(vn,!Ae),cn=ce()(`${vn}-${mn}`,jt==null?void 0:jt.className,nn);let zn;if(typeof qt=="function")zn=qt;else if(qt===null||qt===!1)zn=null;else if(mt.expandIcon===null||mt.expandIcon===!1)zn=null;else{const Nn=qt!=null?qt:mt.expandIcon;zn=(0,be.Tm)(Nn,{className:ce()(`${vn}-submenu-expand-icon`,(0,be.l$)(Nn)?(ke=Nn.props)===null||ke===void 0?void 0:ke.className:"")})}const Jn=fe.useMemo(()=>({prefixCls:vn,inlineCollapsed:gn||!1,direction:Rt,firstLevel:!0,theme:mn,mode:pn,disableMenuItemTitleTooltip:Zt}),[vn,gn,Rt,Zt,mn]);return Cn(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Jn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Ct,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(vn,`${vn}-${mn}`,It),mode:pn,selectable:wn,onClick:fn},Kt,{inlineCollapsed:gn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),on),className:cn,prefixCls:vn,direction:Rt,defaultMotions:rn,expandIcon:zn,ref:we,rootClassName:ce()(St,$n)}),an))))});const Yt=(0,fe.forwardRef)((Ge,we)=>{const pe=(0,fe.useRef)(null),ke=fe.useContext(Ze.D);return(0,fe.useImperativeHandle)(we,()=>({menu:pe.current,focus:Ae=>{var mt;(mt=pe.current)===null||mt===void 0||mt.focus(Ae)}})),fe.createElement(At,Object.assign({ref:pe},Ge,ke))});Yt.Item=x,Yt.SubMenu=E,Yt.Divider=Oe,Yt.ItemGroup=ae.BW;var kt=Yt},93948:function(Ce,lt,re){"use strict";re.d(lt,{Z:function(){return Zt}});var ae=re(59301),fe=re(29679),Ze=re(40001),_e=re(19248),ce=re(99267),He=re(92310),ue=re.n(He),Ve=re(2738),Oe=re(36355),Ie=re(54476),Re=re(33885),Me=re(75931),be={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Fe=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var dt=Date.now(),St=!1;Fe.current.forEach(function(Nt){if(Nt){St=!0;var Mt=Nt.style;Mt.transitionDuration=".3s, .3s, .3s, .06s",je.current&&dt-je.current<100&&(Mt.transitionDuration="0s, 0s")}}),St&&(je.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var je=(0,Re.Z)((0,Re.Z)({},be),Fe),dt=je.className,St=je.percent,Nt=je.prefixCls,Mt=je.strokeColor,bt=je.strokeLinecap,It=je.strokeWidth,Jt=je.style,Kt=je.trailColor,an=je.trailWidth,fn=je.transition,pn=(0,Me.Z)(je,a);delete pn.gapPosition;var wn=Array.isArray(St)?St:[St],gn=Array.isArray(Mt)?Mt:[Mt],rn=ne(),vn=It/2,Cn=100-It/2,$n="M ".concat(bt==="round"?vn:0,",").concat(vn,`
L `).concat(bt==="round"?Cn:100,",").concat(vn),cn="0 0 100 ".concat(It),zn=0;return ae.createElement("svg",(0,Ie.Z)({className:ue()("".concat(Nt,"-line"),dt),viewBox:cn,preserveAspectRatio:"none",style:Jt},pn),ae.createElement("path",{className:"".concat(Nt,"-line-trail"),d:$n,strokeLinecap:bt,stroke:Kt,strokeWidth:an||It,fillOpacity:"0"}),wn.map(function(Jn,Nn){var Un=1;switch(bt){case"round":Un=1-It/100;break;case"square":Un=1-It/2/100;break;default:Un=1;break}var ta={strokeDasharray:"".concat(Jn*Un,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qn=gn[Nn]||gn[gn.length-1];return zn+=Jn,ae.createElement("path",{key:Nn,className:"".concat(Nt,"-line-path"),d:$n,strokeLinecap:bt,stroke:Qn,strokeWidth:It,fillOpacity:"0",ref:function(ve){rn[Nn]=ve},style:ta})}))},x=y,b=re(76190),E=re(42978),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var ge=function(Pe){var Fe=ae.useState(),je=(0,E.Z)(Fe,2),dt=je[0],St=je[1];return ae.useEffect(function(){St("rc_progress_".concat(oe()))},[]),Pe||dt},ie=function(Fe){var je=Fe.bg,dt=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},dt)};function se(Pe,Fe){return Object.keys(Pe).map(function(je){var dt=parseFloat(je),St="".concat(Math.floor(dt*Fe),"%");return"".concat(Pe[je]," ").concat(St)})}var le=ae.forwardRef(function(Pe,Fe){var je=Pe.prefixCls,dt=Pe.color,St=Pe.gradientId,Nt=Pe.radius,Mt=Pe.style,bt=Pe.ptg,It=Pe.strokeLinecap,Jt=Pe.strokeWidth,Kt=Pe.size,an=Pe.gapDegree,fn=dt&&(0,b.Z)(dt)==="object",pn=fn?"#FFF":void 0,wn=Kt/2,gn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:Nt,cx:wn,cy:wn,stroke:pn,strokeLinecap:It,strokeWidth:Jt,opacity:bt===0?0:1,style:Mt,ref:Fe});if(!fn)return gn;var rn="".concat(St,"-conic"),vn=an?"".concat(180+an/2,"deg"):"0deg",Cn=se(dt,(360-an)/360),$n=se(dt,1),cn="conic-gradient(from ".concat(vn,", ").concat(Cn.join(", "),")"),zn="linear-gradient(to ".concat(an?"bottom":"top",", ").concat($n.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:rn},gn),ae.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(rn,")")},ae.createElement(ie,{bg:zn},ae.createElement(ie,{bg:cn}))))}),Be=le,Ne=100,ut=function(Fe,je,dt,St,Nt,Mt,bt,It,Jt,Kt){var an=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=dt/100*360*((360-Mt)/360),pn=Mt===0?0:{bottom:0,top:180,left:90,right:-90}[bt],wn=(100-St)/100*je;Jt==="round"&&St!==100&&(wn+=Kt/2,wn>=je&&(wn=je-.01));var gn=Ne/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(je,"px ").concat(Fe),strokeDashoffset:wn+an,transform:"rotate(".concat(Nt+fn+pn,"deg)"),transformOrigin:"".concat(gn,"px ").concat(gn,"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}},Bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wt(Pe){var Fe=Pe!=null?Pe:[];return Array.isArray(Fe)?Fe:[Fe]}var ye=function(Fe){var je=(0,Re.Z)((0,Re.Z)({},be),Fe),dt=je.id,St=je.prefixCls,Nt=je.steps,Mt=je.strokeWidth,bt=je.trailWidth,It=je.gapDegree,Jt=It===void 0?0:It,Kt=je.gapPosition,an=je.trailColor,fn=je.strokeLinecap,pn=je.style,wn=je.className,gn=je.strokeColor,rn=je.percent,vn=(0,Me.Z)(je,Bt),Cn=Ne/2,$n=ge(dt),cn="".concat($n,"-gradient"),zn=Cn-Mt/2,Jn=Math.PI*2*zn,Nn=Jt>0?90+Jt/2:-90,Un=Jn*((360-Jt)/360),ta=(0,b.Z)(Nt)==="object"?Nt:{count:Nt,space:2},Qn=ta.count,he=ta.space,ve=Wt(rn),Se=Wt(gn),rt=Se.find(function(jn){return jn&&(0,b.Z)(jn)==="object"}),xt=rt&&(0,b.Z)(rt)==="object",yt=xt?"butt":fn,dn=ut(Jn,Un,0,100,Nn,Jt,Kt,an,yt,Mt),Ht=ne(),en=function(){var nt=0;return ve.map(function(tn,Tn){var Xn=Se[Tn]||Se[Se.length-1],xn=ut(Jn,Un,nt,tn,Nn,Jt,Kt,Xn,yt,Mt);return nt+=tn,ae.createElement(Be,{key:Tn,color:Xn,ptg:tn,radius:zn,prefixCls:St,gradientId:cn,style:xn,strokeLinecap:yt,strokeWidth:Mt,gapDegree:Jt,ref:function(Ee){Ht[Tn]=Ee},size:Ne})}).reverse()},yn=function(){var nt=Math.round(Qn*(ve[0]/100)),tn=100/Qn,Tn=0;return new Array(Qn).fill(null).map(function(Xn,xn){var me=xn<=nt-1?Se[0]:an,Ee=me&&(0,b.Z)(me)==="object"?"url(#".concat(cn,")"):void 0,xe=ut(Jn,Un,Tn,tn,Nn,Jt,Kt,me,"butt",Mt,he);return Tn+=(Un-xe.strokeDashoffset+he)*100/Un,ae.createElement("circle",{key:xn,className:"".concat(St,"-circle-path"),r:zn,cx:Cn,cy:Cn,stroke:Ee,strokeWidth:Mt,opacity:1,style:xe,ref:function(Ye){Ht[xn]=Ye}})})};return ae.createElement("svg",(0,Ie.Z)({className:ue()("".concat(St,"-circle"),wn),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:pn,id:dt,role:"presentation"},vn),!Qn&&ae.createElement("circle",{className:"".concat(St,"-circle-trail"),r:zn,cx:Cn,cy:Cn,stroke:an,strokeLinecap:yt,strokeWidth:bt||Mt,style:dn}),Qn?yn():en())},Ke=ye,it={Line:x,Circle:Ke},et=re(6848),st=re(30071);function tt(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function at(Pe){let{success:Fe,successPercent:je}=Pe,dt=je;return Fe&&"progress"in Fe&&(dt=Fe.progress),Fe&&"percent"in Fe&&(dt=Fe.percent),dt}const qe=Pe=>{let{percent:Fe,success:je,successPercent:dt}=Pe;const St=tt(at({success:je,successPercent:dt}));return[St,tt(tt(Fe)-St)]},Vt=Pe=>{let{success:Fe={},strokeColor:je}=Pe;const{strokeColor:dt}=Fe;return[dt||st.presetPrimaryColors.green,je||null]},Le=(Pe,Fe,je)=>{var dt,St,Nt,Mt;let bt=-1,It=-1;if(Fe==="step"){const Jt=je.steps,Kt=je.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(bt=Pe==="small"?2:14,It=Kt!=null?Kt:8):typeof Pe=="number"?[bt,It]=[Pe,Pe]:[bt=14,It=8]=Pe,bt*=Jt}else if(Fe==="line"){const Jt=je==null?void 0:je.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?It=Jt||(Pe==="small"?6:8):typeof Pe=="number"?[bt,It]=[Pe,Pe]:[bt=-1,It=8]=Pe}else(Fe==="circle"||Fe==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[bt,It]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[bt,It]=[Pe,Pe]:(bt=(St=(dt=Pe[0])!==null&&dt!==void 0?dt:Pe[1])!==null&&St!==void 0?St:120,It=(Mt=(Nt=Pe[0])!==null&&Nt!==void 0?Nt:Pe[1])!==null&&Mt!==void 0?Mt:120));return[bt,It]},$e=3,Je=Pe=>$e/Pe*100;var Xe=Pe=>{const{prefixCls:Fe,trailColor:je=null,strokeLinecap:dt="round",gapPosition:St,gapDegree:Nt,width:Mt=120,type:bt,children:It,success:Jt,size:Kt=Mt}=Pe,[an,fn]=Le(Kt,"circle");let{strokeWidth:pn}=Pe;pn===void 0&&(pn=Math.max(Je(an),6));const wn={width:an,height:fn,fontSize:an*.15+6},gn=ae.useMemo(()=>{if(Nt||Nt===0)return Nt;if(bt==="dashboard")return 75},[Nt,bt]),rn=St||bt==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",Cn=Vt({success:Jt,strokeColor:Pe.strokeColor}),$n=ue()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:vn}),cn=ae.createElement(Ke,{percent:qe(Pe),strokeWidth:pn,trailWidth:pn,strokeColor:Cn,strokeLinecap:dt,trailColor:je,prefixCls:Fe,gapDegree:gn,gapPosition:rn});return ae.createElement("div",{className:$n,style:wn},an<=20?ae.createElement(et.Z,{title:It},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,It))},gt=function(Pe,Fe){var je={};for(var dt in Pe)Object.prototype.hasOwnProperty.call(Pe,dt)&&Fe.indexOf(dt)<0&&(je[dt]=Pe[dt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,dt=Object.getOwnPropertySymbols(Pe);St<dt.length;St++)Fe.indexOf(dt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,dt[St])&&(je[dt[St]]=Pe[dt[St]]);return je};const de=Pe=>{let Fe=[];return Object.keys(Pe).forEach(je=>{const dt=parseFloat(je.replace(/%/g,""));isNaN(dt)||Fe.push({key:dt,value:Pe[je]})}),Fe=Fe.sort((je,dt)=>je.key-dt.key),Fe.map(je=>{let{key:dt,value:St}=je;return`${St} ${dt}%`}).join(", ")},ot=(Pe,Fe)=>{const{from:je=st.presetPrimaryColors.blue,to:dt=st.presetPrimaryColors.blue,direction:St=Fe==="rtl"?"to left":"to right"}=Pe,Nt=gt(Pe,["from","to","direction"]);if(Object.keys(Nt).length!==0){const Mt=de(Nt);return{backgroundImage:`linear-gradient(${St}, ${Mt})`}}return{backgroundImage:`linear-gradient(${St}, ${je}, ${dt})`}};var Yt=Pe=>{const{prefixCls:Fe,direction:je,percent:dt,size:St,strokeWidth:Nt,strokeColor:Mt,strokeLinecap:bt="round",children:It,trailColor:Jt=null,success:Kt}=Pe,an=Mt&&typeof Mt!="string"?ot(Mt,je):{backgroundColor:Mt},fn=bt==="square"||bt==="butt"?0:void 0,pn={backgroundColor:Jt||void 0,borderRadius:fn},wn=St!=null?St:[-1,Nt||(St==="small"?6:8)],[gn,rn]=Le(wn,"line",{strokeWidth:Nt}),vn=Object.assign({width:`${tt(dt)}%`,height:rn,borderRadius:fn},an),Cn=at(Pe),$n={width:`${tt(Cn)}%`,height:rn,borderRadius:fn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:gn<0?"100%":gn,height:rn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Fe}-outer`,style:cn},ae.createElement("div",{className:`${Fe}-inner`,style:pn},ae.createElement("div",{className:`${Fe}-bg`,style:vn}),Cn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:$n}):null)),It)},Ge=Pe=>{const{size:Fe,steps:je,percent:dt=0,strokeWidth:St=8,strokeColor:Nt,trailColor:Mt=null,prefixCls:bt,children:It}=Pe,Jt=Math.round(je*(dt/100)),Kt=Fe==="small"?2:14,an=Fe!=null?Fe:[Kt,St],[fn,pn]=Le(an,"step",{steps:je,strokeWidth:St}),wn=fn/je,gn=new Array(je);for(let rn=0;rn<je;rn++){const vn=Array.isArray(Nt)?Nt[rn]:Nt;gn[rn]=ae.createElement("div",{key:rn,className:ue()(`${bt}-steps-item`,{[`${bt}-steps-item-active`]:rn<=Jt-1}),style:{backgroundColor:rn<=Jt-1?vn:Mt,width:wn,height:pn}})}return ae.createElement("div",{className:`${bt}-steps-outer`},gn,It)},we=re(36237),pe=re(17313),ke=re(83116),Ae=re(37613);const mt=Pe=>{const Fe=Pe?"100%":"-100%";return new we.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Et=Pe=>{const{componentCls:Fe,iconCls:je}=Pe;return{[Fe]:Object.assign(Object.assign({},(0,pe.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:Pe.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:mt(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:mt(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorError},[`${Fe}-text`]:{color:Pe.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{color:Pe.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorSuccess}}})}},Ct=Pe=>{const{componentCls:Fe,iconCls:je}=Pe;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:Pe.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:Pe.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},Rt=Pe=>{const{componentCls:Fe}=Pe;return{[Fe]:{[`${Fe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},jt=Pe=>{const{componentCls:Fe,iconCls:je}=Pe;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${je}`]:{fontSize:Pe.fontSizeSM}}}};var vt=(0,ke.Z)("Progress",Pe=>{const Fe=Pe.marginXXS/2,je=(0,Ae.TS)(Pe,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[Et(je),Ct(je),Rt(je),jt(je)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ft=function(Pe,Fe){var je={};for(var dt in Pe)Object.prototype.hasOwnProperty.call(Pe,dt)&&Fe.indexOf(dt)<0&&(je[dt]=Pe[dt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,dt=Object.getOwnPropertySymbols(Pe);St<dt.length;St++)Fe.indexOf(dt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,dt[St])&&(je[dt[St]]=Pe[dt[St]]);return je};const nn=null,on=["normal","exception","active","success"];var qt=ae.forwardRef((Pe,Fe)=>{const{prefixCls:je,className:dt,rootClassName:St,steps:Nt,strokeColor:Mt,percent:bt=0,size:It="default",showInfo:Jt=!0,type:Kt="line",status:an,format:fn,style:pn}=Pe,wn=ft(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),gn=ae.useMemo(()=>{var ve,Se;const rt=at(Pe);return parseInt(rt!==void 0?(ve=rt!=null?rt:0)===null||ve===void 0?void 0:ve.toString():(Se=bt!=null?bt:0)===null||Se===void 0?void 0:Se.toString(),10)},[bt,Pe.success,Pe.successPercent]),rn=ae.useMemo(()=>!on.includes(an)&&gn>=100?"success":an||"normal",[an,gn]),{getPrefixCls:vn,direction:Cn,progress:$n}=ae.useContext(Oe.E_),cn=vn("progress",je),[zn,Jn]=vt(cn),Nn=ae.useMemo(()=>{if(!Jt)return null;const ve=at(Pe);let Se;const rt=fn||(yt=>`${yt}%`),xt=Kt==="line";return fn||rn!=="exception"&&rn!=="success"?Se=rt(tt(bt),tt(ve)):rn==="exception"?Se=xt?ae.createElement(_e.Z,null):ae.createElement(ce.Z,null):rn==="success"&&(Se=xt?ae.createElement(fe.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${cn}-text`,title:typeof Se=="string"?Se:void 0},Se)},[Jt,bt,gn,rn,Kt,cn,fn]),Un=Array.isArray(Mt)?Mt[0]:Mt,ta=typeof Mt=="string"||Array.isArray(Mt)?Mt:void 0;let Qn;Kt==="line"?Qn=Nt?ae.createElement(Ge,Object.assign({},Pe,{strokeColor:ta,prefixCls:cn,steps:Nt}),Nn):ae.createElement(Yt,Object.assign({},Pe,{strokeColor:Un,prefixCls:cn,direction:Cn}),Nn):(Kt==="circle"||Kt==="dashboard")&&(Qn=ae.createElement(Xe,Object.assign({},Pe,{strokeColor:Un,prefixCls:cn,progressStatus:rn}),Nn));const he=ue()(cn,`${cn}-status-${rn}`,`${cn}-${Kt==="dashboard"&&"circle"||Nt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&Le(It,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${It}`]:typeof It=="string",[`${cn}-rtl`]:Cn==="rtl"},$n==null?void 0:$n.className,dt,St,Jn);return zn(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),pn),className:he,role:"progressbar","aria-valuenow":gn},(0,Ve.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qn))}),Zt=qt},54580:function(Ce,lt,re){"use strict";re.d(lt,{default:function(){return xn}});var ae=re(59301),fe=re(94480),Ze=re(92310),_e=re.n(Ze),ce=re(54476),He=re(67732),ue=re(83652),Ve=re(42403),Oe=re(158),Ie=re(20068),Re=re(75931),Me=re(75044),be=re(76190),ne=re(3202),a=re(26112);function y(me,Ee){var xe="cannot ".concat(me.method," ").concat(me.action," ").concat(Ee.status,"'"),Te=new Error(xe);return Te.status=Ee.status,Te.method=me.method,Te.url=me.action,Te}function x(me){var Ee=me.responseText||me.response;if(!Ee)return Ee;try{return JSON.parse(Ee)}catch(xe){return Ee}}function b(me){var Ee=new XMLHttpRequest;me.onProgress&&Ee.upload&&(Ee.upload.onprogress=function(Qe){Qe.total>0&&(Qe.percent=Qe.loaded/Qe.total*100),me.onProgress(Qe)});var xe=new FormData;me.data&&Object.keys(me.data).forEach(function(Ye){var Qe=me.data[Ye];if(Array.isArray(Qe)){Qe.forEach(function(We){xe.append("".concat(Ye,"[]"),We)});return}xe.append(Ye,Qe)}),me.file instanceof Blob?xe.append(me.filename,me.file,me.file.name):xe.append(me.filename,me.file),Ee.onerror=function(Qe){me.onError(Qe)},Ee.onload=function(){return Ee.status<200||Ee.status>=300?me.onError(y(me,Ee),x(Ee)):me.onSuccess(x(Ee),Ee)},Ee.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Ee&&(Ee.withCredentials=!0);var Te=me.headers||{};return Te["X-Requested-With"]!==null&&Ee.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Te).forEach(function(Ye){Te[Ye]!==null&&Ee.setRequestHeader(Ye,Te[Ye])}),Ee.send(xe),{abort:function(){Ee.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=re(48736),oe=function(me,Ee){if(me&&Ee){var xe=Array.isArray(Ee)?Ee:Ee.split(","),Te=me.name||"",Ye=me.type||"",Qe=Ye.replace(/\/.*$/,"");return xe.some(function(We){var De=We.trim();if(/^\*(\/\*)?$/.test(We))return!0;if(De.charAt(0)==="."){var Ot=Te.toLowerCase(),Gt=De.toLowerCase(),zt=[Gt];return(Gt===".jpg"||Gt===".jpeg")&&(zt=[".jpg",".jpeg"]),zt.some(function(ze){return Ot.endsWith(ze)})}return/\/\*$/.test(De)?Qe===De.replace(/\/.*$/,""):Ye===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 ge(me,Ee){var xe=me.createReader(),Te=[];function Ye(){xe.readEntries(function(Qe){var We=Array.prototype.slice.apply(Qe);Te=Te.concat(We);var De=!We.length;De?Ee(Te):Ye()})}Ye()}var ie=function(Ee,xe,Te){var Ye=function Qe(We,De){We&&(We.path=De||"",We.isFile?We.file(function(Ot){Te(Ot)&&(We.fullPath&&!Ot.webkitRelativePath&&(Object.defineProperties(Ot,{webkitRelativePath:{writable:!0}}),Ot.webkitRelativePath=We.fullPath.replace(/^\//,""),Object.defineProperties(Ot,{webkitRelativePath:{writable:!1}})),xe([Ot]))}):We.isDirectory&&ge(We,function(Ot){Ot.forEach(function(Gt){Qe(Gt,"".concat(De).concat(We.name,"/"))})}))};Ee.forEach(function(Qe){Ye(Qe.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(me){(0,Ve.Z)(xe,me);var Ee=(0,Oe.Z)(xe);function xe(){var Te;(0,He.Z)(this,xe);for(var Ye=arguments.length,Qe=new Array(Ye),We=0;We<Ye;We++)Qe[We]=arguments[We];return Te=Ee.call.apply(Ee,[this].concat(Qe)),Te.state={uid:ee()},Te.reqs={},Te.fileInput=void 0,Te._isMounted=void 0,Te.onChange=function(De){var Ot=Te.props,Gt=Ot.accept,zt=Ot.directory,ze=De.target.files,ln=(0,fe.Z)(ze).filter(function(hn){return!zt||oe(hn,Gt)});Te.uploadFiles(ln),Te.reset()},Te.onClick=function(De){var Ot=Te.fileInput;if(Ot){var Gt=De.target,zt=Te.props.onClick;if(Gt&&Gt.tagName==="BUTTON"){var ze=Ot.parentNode;ze.focus(),Gt.blur()}Ot.click(),zt&&zt(De)}},Te.onKeyDown=function(De){De.key==="Enter"&&Te.onClick(De)},Te.onFileDrop=function(De){var Ot=Te.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Te.props.directory)se(Array.prototype.slice.call(De.dataTransfer.items),Te.uploadFiles,function(zt){return oe(zt,Te.props.accept)});else{var Gt=(0,fe.Z)(De.dataTransfer.files).filter(function(zt){return oe(zt,Te.props.accept)});Ot===!1&&(Gt=Gt.slice(0,1)),Te.uploadFiles(Gt)}},Te.uploadFiles=function(De){var Ot=(0,fe.Z)(De),Gt=Ot.map(function(zt){return zt.uid=ee(),Te.processFile(zt,Ot)});Promise.all(Gt).then(function(zt){var ze=Te.props.onBatchStart;ze==null||ze(zt.map(function(ln){var hn=ln.origin,Dn=ln.parsedFile;return{file:hn,parsedFile:Dn}})),zt.filter(function(ln){return ln.parsedFile!==null}).forEach(function(ln){Te.post(ln)})})},Te.processFile=function(){var De=(0,ne.Z)((0,Me.Z)().mark(function Ot(Gt,zt){var ze,ln,hn,Dn,Ue,pt,wt,$t,_t;return(0,Me.Z)().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(ze=Te.props.beforeUpload,ln=Gt,!ze){Tt.next=14;break}return Tt.prev=3,Tt.next=6,ze(Gt,zt);case 6:ln=Tt.sent,Tt.next=12;break;case 9:Tt.prev=9,Tt.t0=Tt.catch(3),ln=!1;case 12:if(ln!==!1){Tt.next=14;break}return Tt.abrupt("return",{origin:Gt,parsedFile:null,action:null,data:null});case 14:if(hn=Te.props.action,typeof hn!="function"){Tt.next=21;break}return Tt.next=18,hn(Gt);case 18:Dn=Tt.sent,Tt.next=22;break;case 21:Dn=hn;case 22:if(Ue=Te.props.data,typeof Ue!="function"){Tt.next=29;break}return Tt.next=26,Ue(Gt);case 26:pt=Tt.sent,Tt.next=30;break;case 29:pt=Ue;case 30:return wt=((0,be.Z)(ln)==="object"||typeof ln=="string")&&ln?ln:Gt,wt instanceof File?$t=wt:$t=new File([wt],Gt.name,{type:Gt.type}),_t=$t,_t.uid=Gt.uid,Tt.abrupt("return",{origin:Gt,data:pt,parsedFile:_t,action:Dn});case 35:case"end":return Tt.stop()}},Ot,null,[[3,9]])}));return function(Ot,Gt){return De.apply(this,arguments)}}(),Te.saveFileInput=function(De){Te.fileInput=De},Te}return(0,ue.Z)(xe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ye){var Qe=this,We=Ye.data,De=Ye.origin,Ot=Ye.action,Gt=Ye.parsedFile;if(this._isMounted){var zt=this.props,ze=zt.onStart,ln=zt.customRequest,hn=zt.name,Dn=zt.headers,Ue=zt.withCredentials,pt=zt.method,wt=De.uid,$t=ln||b,_t={action:Ot,filename:hn,data:We,file:Gt,headers:Dn,withCredentials:Ue,method:pt||"post",onProgress:function(Tt){var Sn=Qe.props.onProgress;Sn==null||Sn(Tt,Gt)},onSuccess:function(Tt,Sn){var Pn=Qe.props.onSuccess;Pn==null||Pn(Tt,Gt,Sn),delete Qe.reqs[wt]},onError:function(Tt,Sn){var Pn=Qe.props.onError;Pn==null||Pn(Tt,Sn,Gt),delete Qe.reqs[wt]}};ze(De),this.reqs[wt]=$t(_t)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ye){var Qe=this.reqs;if(Ye){var We=Ye.uid?Ye.uid:Ye;Qe[We]&&Qe[We].abort&&Qe[We].abort(),delete Qe[We]}else Object.keys(Qe).forEach(function(De){Qe[De]&&Qe[De].abort&&Qe[De].abort(),delete Qe[De]})}},{key:"render",value:function(){var Ye=this.props,Qe=Ye.component,We=Ye.prefixCls,De=Ye.className,Ot=Ye.disabled,Gt=Ye.id,zt=Ye.style,ze=Ye.multiple,ln=Ye.accept,hn=Ye.capture,Dn=Ye.children,Ue=Ye.directory,pt=Ye.openFileDialogOnClick,wt=Ye.onMouseEnter,$t=Ye.onMouseLeave,_t=(0,Re.Z)(Ye,le),Xt=_e()((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},We,!0),"".concat(We,"-disabled"),Ot),De,De)),Tt=Ue?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=Ot?{}:{onClick:pt?this.onClick:function(){},onKeyDown:pt?this.onKeyDown:function(){},onMouseEnter:wt,onMouseLeave:$t,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Qe,(0,ce.Z)({},Sn,{className:Xt,role:"button",style:zt}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(_t,{aria:!0,data:!0}),{id:Gt,disabled:Ot,type:"file",ref:this.saveFileInput,onClick:function(qn){return qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ln},Tt,{multiple:ze,onChange:this.onChange},hn!=null?{capture:hn}:{})),Dn)}}]),xe}(ae.Component),Ne=Be;function ut(){}var Bt=function(me){(0,Ve.Z)(xe,me);var Ee=(0,Oe.Z)(xe);function xe(){var Te;(0,He.Z)(this,xe);for(var Ye=arguments.length,Qe=new Array(Ye),We=0;We<Ye;We++)Qe[We]=arguments[We];return Te=Ee.call.apply(Ee,[this].concat(Qe)),Te.uploader=void 0,Te.saveUploader=function(De){Te.uploader=De},Te}return(0,ue.Z)(xe,[{key:"abort",value:function(Ye){this.uploader.abort(Ye)}},{key:"render",value:function(){return ae.createElement(Ne,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),xe}(ae.Component);Bt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ut,onError:ut,onSuccess:ut,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Wt=Bt,ye=Wt,Ke=re(18929),it=re(4676),et=re(36355),st=re(1684),tt=re(9763),at=re(31724),qe={icon:function(Ee,xe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:xe}},{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:Ee}}]}},name:"file",theme:"twotone"},Vt=qe,Le=re(7657),$e=function(Ee,xe){return ae.createElement(Le.Z,(0,ce.Z)({},Ee,{ref:xe,icon:Vt}))},Je=ae.forwardRef($e),ht=Je,Xe=re(58617),gt={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=gt,ot=function(Ee,xe){return ae.createElement(Le.Z,(0,ce.Z)({},Ee,{ref:xe,icon:de}))},At=ae.forwardRef(ot),Yt=At,kt={icon:function(Ee,xe){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:Ee}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:xe}},{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:xe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:xe}},{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:Ee}}]}},name:"picture",theme:"twotone"},Ge=kt,we=function(Ee,xe){return ae.createElement(Le.Z,(0,ce.Z)({},Ee,{ref:xe,icon:Ge}))},pe=ae.forwardRef(we),ke=pe,Ae=re(77900),mt=re(56762),Et=re(62892),Ct=re(92343),Rt=re(3113);function jt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function vt(me,Ee){const xe=(0,fe.Z)(Ee),Te=xe.findIndex(Ye=>{let{uid:Qe}=Ye;return Qe===me.uid});return Te===-1?xe.push(me):xe[Te]=me,xe}function ft(me,Ee){const xe=me.uid!==void 0?"uid":"name";return Ee.filter(Te=>Te[xe]===me[xe])[0]}function nn(me,Ee){const xe=me.uid!==void 0?"uid":"name",Te=Ee.filter(Ye=>Ye[xe]!==me[xe]);return Te.length===Ee.length?null:Te}const on=function(){const Ee=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Te=Ee[Ee.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Te)||[""])[0]},mn=me=>me.indexOf("image/")===0,qt=me=>{if(me.type&&!me.thumbUrl)return mn(me.type);const Ee=me.thumbUrl||me.url||"",xe=on(Ee);return/^data:image\//.test(Ee)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(xe)?!0:!(/^data:/.test(Ee)||xe)},Zt=200;function Pe(me){return new Promise(Ee=>{if(!me.type||!mn(me.type)){Ee("");return}const xe=document.createElement("canvas");xe.width=Zt,xe.height=Zt,xe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Zt}px; height: ${Zt}px; z-index: 9999; display: none;`,document.body.appendChild(xe);const Te=xe.getContext("2d"),Ye=new Image;if(Ye.onload=()=>{const{width:Qe,height:We}=Ye;let De=Zt,Ot=Zt,Gt=0,zt=0;Qe>We?(Ot=We*(Zt/Qe),zt=-(Ot-De)/2):(De=Qe*(Zt/We),Gt=-(De-Ot)/2),Te.drawImage(Ye,Gt,zt,De,Ot);const ze=xe.toDataURL();document.body.removeChild(xe),window.URL.revokeObjectURL(Ye.src),Ee(ze)},Ye.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&(Ye.src=Qe.result)},Qe.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&Ee(Qe.result)},Qe.readAsDataURL(me)}else Ye.src=window.URL.createObjectURL(me)})}var Fe=re(26227),je=re(41464),dt=re(15277),St=re(93948),Nt=re(6848),bt=ae.forwardRef((me,Ee)=>{let{prefixCls:xe,className:Te,style:Ye,locale:Qe,listType:We,file:De,items:Ot,progress:Gt,iconRender:zt,actionIconRender:ze,itemRender:ln,isImgUrl:hn,showPreviewIcon:Dn,showRemoveIcon:Ue,showDownloadIcon:pt,previewIcon:wt,removeIcon:$t,downloadIcon:_t,onPreview:Xt,onDownload:Tt,onClose:Sn}=me;var Pn,qn;const{status:aa}=De,[Kn,ca]=ae.useState(aa);ae.useEffect(()=>{aa!=="removed"&&ca(aa)},[aa]);const[Pa,Sa]=ae.useState(!1);ae.useEffect(()=>{const Gn=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(Gn)}},[]);const ia=zt(De);let Vn=ae.createElement("div",{className:`${xe}-icon`},ia);if(We==="picture"||We==="picture-card"||We==="picture-circle")if(Kn==="uploading"||!De.thumbUrl&&!De.url){const Gn=_e()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:Kn!=="uploading"});Vn=ae.createElement("div",{className:Gn},ia)}else{const Gn=hn!=null&&hn(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${xe}-list-item-image`,crossOrigin:De.crossOrigin}):ia,Mn=_e()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:hn&&!hn(De)});Vn=ae.createElement("a",{className:Mn,onClick:ga=>Xt(De,ga),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gn)}const On=_e()(`${xe}-list-item`,`${xe}-list-item-${Kn}`),ma=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,ea=Ue?ze((typeof $t=="function"?$t(De):$t)||ae.createElement(Fe.Z,null),()=>Sn(De),xe,Qe.removeFile):null,ra=pt&&Kn==="done"?ze((typeof _t=="function"?_t(De):_t)||ae.createElement(je.Z,null),()=>Tt(De),xe,Qe.downloadFile):null,na=We!=="picture-card"&&We!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${xe}-list-item-actions`,{picture:We==="picture"})},ra,ea),Wn=_e()(`${xe}-list-item-name`),fa=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:De.name},ma,{href:De.url,onClick:Gn=>Xt(De,Gn)}),De.name),na]:[ae.createElement("span",{key:"view",className:Wn,onClick:Gn=>Xt(De,Gn),title:De.name},De.name),na],Ut={pointerEvents:"none",opacity:.5},In=Dn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:Ut,onClick:Gn=>Xt(De,Gn),title:Qe.previewFile},typeof wt=="function"?wt(De):wt||ae.createElement(dt.Z,null)):null,Yn=(We==="picture-card"||We==="picture-circle")&&Kn!=="uploading"&&ae.createElement("span",{className:`${xe}-list-item-actions`},In,Kn==="done"&&ra,ea),{getPrefixCls:En}=ae.useContext(et.E_),da=En(),Hn=ae.createElement("div",{className:On},Vn,fa,Yn,Pa&&ae.createElement(Ae.default,{motionName:`${da}-fade`,visible:Kn==="uploading",motionDeadline:2e3},Gn=>{let{className:Mn}=Gn;const ga="percent"in De?ae.createElement(St.Z,Object.assign({},Gt,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${xe}-list-item-progress`,Mn)},ga)})),pa=De.response&&typeof De.response=="string"?De.response:((Pn=De.error)===null||Pn===void 0?void 0:Pn.statusText)||((qn=De.error)===null||qn===void 0?void 0:qn.message)||Qe.uploadError,ha=Kn==="error"?ae.createElement(Nt.Z,{title:pa,getPopupContainer:Gn=>Gn.parentNode},Hn):Hn;return ae.createElement("div",{className:_e()(`${xe}-list-item-container`,Te),style:Ye,ref:Ee},ln?ln(ha,De,Ot,{download:Tt.bind(null,De),preview:Xt.bind(null,De),remove:Sn.bind(null,De)}):ha)});const It=(me,Ee)=>{const{listType:xe="text",previewFile:Te=Pe,onPreview:Ye,onDownload:Qe,onRemove:We,locale:De,iconRender:Ot,isImageUrl:Gt=qt,prefixCls:zt,items:ze=[],showPreviewIcon:ln=!0,showRemoveIcon:hn=!0,showDownloadIcon:Dn=!1,removeIcon:Ue,previewIcon:pt,downloadIcon:wt,progress:$t={size:[-1,2],showInfo:!1},appendAction:_t,appendActionVisible:Xt=!0,itemRender:Tt,disabled:Sn}=me,Pn=(0,mt.Z)(),[qn,aa]=ae.useState(!1);ae.useEffect(()=>{xe!=="picture"&&xe!=="picture-card"&&xe!=="picture-circle"||(ze||[]).forEach(Ut=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ut.originFileObj instanceof File||Ut.originFileObj instanceof Blob)||Ut.thumbUrl!==void 0||(Ut.thumbUrl="",Te&&Te(Ut.originFileObj).then(In=>{Ut.thumbUrl=In||"",Pn()}))})},[xe,ze,Te]),ae.useEffect(()=>{aa(!0)},[]);const Kn=(Ut,In)=>{if(Ye)return In==null||In.preventDefault(),Ye(Ut)},ca=Ut=>{typeof Qe=="function"?Qe(Ut):Ut.url&&window.open(Ut.url)},Pa=Ut=>{We==null||We(Ut)},Sa=Ut=>{if(Ot)return Ot(Ut,xe);const In=Ut.status==="uploading",Yn=Gt&&Gt(Ut)?ae.createElement(ke,null):ae.createElement(ht,null);let En=In?ae.createElement(Xe.Z,null):ae.createElement(Yt,null);return xe==="picture"?En=In?ae.createElement(Xe.Z,null):Yn:(xe==="picture-card"||xe==="picture-circle")&&(En=In?De.uploading:Yn),En},ia=(Ut,In,Yn,En)=>{const da={type:"text",size:"small",title:En,onClick:Hn=>{In(),(0,Ct.l$)(Ut)&&Ut.props.onClick&&Ut.props.onClick(Hn)},className:`${Yn}-list-item-action`,disabled:Sn};if((0,Ct.l$)(Ut)){const Hn=(0,Ct.Tm)(Ut,Object.assign(Object.assign({},Ut.props),{onClick:()=>{}}));return ae.createElement(Rt.ZP,Object.assign({},da,{icon:Hn}))}return ae.createElement(Rt.ZP,Object.assign({},da),ae.createElement("span",null,Ut))};ae.useImperativeHandle(Ee,()=>({handlePreview:Kn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(et.E_),On=Vn("upload",zt),ma=Vn(),ea=_e()(`${On}-list`,`${On}-list-${xe}`),ra=(0,fe.Z)(ze.map(Ut=>({key:Ut.uid,file:Ut})));let Wn={motionDeadline:2e3,motionName:`${On}-${xe==="picture-card"||xe==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:qn};const fa=ae.useMemo(()=>{const Ut=Object.assign({},(0,Et.Z)(ma));return delete Ut.onAppearEnd,delete Ut.onEnterEnd,delete Ut.onLeaveEnd,Ut},[ma]);return xe!=="picture-card"&&xe!=="picture-circle"&&(Wn=Object.assign(Object.assign({},fa),Wn)),ae.createElement("div",{className:ea},ae.createElement(Ae.CSSMotionList,Object.assign({},Wn,{component:!1}),Ut=>{let{key:In,file:Yn,className:En,style:da}=Ut;return ae.createElement(bt,{key:In,locale:De,prefixCls:On,className:En,style:da,file:Yn,items:ze,progress:$t,listType:xe,isImgUrl:Gt,showPreviewIcon:ln,showRemoveIcon:hn,showDownloadIcon:Dn,removeIcon:Ue,previewIcon:pt,downloadIcon:wt,iconRender:Sa,actionIconRender:ia,itemRender:Tt,onPreview:Kn,onDownload:ca,onClose:Pa})}),_t&&ae.createElement(Ae.default,Object.assign({},Wn,{visible:Xt,forceRender:!0}),Ut=>{let{className:In,style:Yn}=Ut;return(0,Ct.Tm)(_t,En=>({className:_e()(En.className,In),style:Object.assign(Object.assign(Object.assign({},Yn),{pointerEvents:In?"none":void 0}),En.style)}))}))};var Kt=ae.forwardRef(It),an=re(17313),fn=re(8378),pn=re(83116),wn=re(37613),rn=me=>{const{componentCls:Ee,iconCls:xe}=me;return{[`${Ee}-wrapper`]:{[`${Ee}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Ee]:{padding:`${me.padding}px 0`},[`${Ee}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ee}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ee}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Ee}-drag-icon`]:{marginBottom:me.margin,[xe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Ee}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Ee}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Ee}-disabled`]:{cursor:"not-allowed",[`p${Ee}-drag-icon ${xe},
p${Ee}-text,
p${Ee}-hint
`]:{color:me.colorTextDisabled}}}}}},Cn=me=>{const{componentCls:Ee,antCls:xe,iconCls:Te,fontSize:Ye,lineHeight:Qe}=me,We=`${Ee}-list-item`,De=`${We}-actions`,Ot=`${We}-action`,Gt=Math.round(Ye*Qe);return{[`${Ee}-wrapper`]:{[`${Ee}-list`]:Object.assign(Object.assign({},(0,an.dF)()),{lineHeight:me.lineHeight,[We]:{position:"relative",height:me.lineHeight*Ye,marginTop:me.marginXS,fontSize:Ye,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${We}-name`]:Object.assign(Object.assign({},an.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Qe,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[De]:{[Ot]:{opacity:0},[`${Ot}${xe}-btn-sm`]:{height:Gt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Ot}:focus-visible,
&.picture ${Ot}
`]:{opacity:1},[Te]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Te}`]:{color:me.colorText}},[`${Ee}-icon ${Te}`]:{color:me.colorTextDescription,fontSize:Ye},[`${We}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ye+me.paddingXS,fontSize:Ye,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${We}:hover ${Ot}`]:{opacity:1,color:me.colorText},[`${We}-error`]:{color:me.colorError,[`${We}-name, ${Ee}-icon ${Te}`]:{color:me.colorError},[De]:{[`${Te}, ${Te}:hover`]:{color:me.colorError},[Ot]:{opacity:1}}},[`${Ee}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=re(36237),cn=re(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Un=me=>{const{componentCls:Ee}=me,xe=`${Ee}-animate-inline`;return[{[`${Ee}-wrapper`]:{[`${xe}-appear, ${xe}-enter, ${xe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${xe}-appear, ${xe}-enter`]:{animationName:zn},[`${xe}-leave`]:{animationName:Jn}}},{[`${Ee}-wrapper`]:(0,cn.J$)(me)},zn,Jn]},ta=re(30071),Qn=re(64993);const he=me=>{const{componentCls:Ee,iconCls:xe,uploadThumbnailSize:Te,uploadProgressOffset:Ye}=me,Qe=`${Ee}-list`,We=`${Qe}-item`;return{[`${Ee}-wrapper`]:{[`
${Qe}${Qe}-picture,
${Qe}${Qe}-picture-card,
${Qe}${Qe}-picture-circle
`]:{[We]:{position:"relative",height:Te+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${We}-thumbnail`]:Object.assign(Object.assign({},an.vS),{width:Te,height:Te,lineHeight:`${Te+me.paddingSM}px`,textAlign:"center",flex:"none",[xe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${We}-progress`]:{bottom:Ye,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Te+me.paddingXS}},[`${We}-error`]:{borderColor:me.colorError,[`${We}-thumbnail ${xe}`]:{[`svg path[fill='${ta.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${ta.blue.primary}']`]:{fill:me.colorError}}},[`${We}-uploading`]:{borderStyle:"dashed",[`${We}-name`]:{marginBottom:Ye}}},[`${Qe}${Qe}-picture-circle ${We}`]:{[`&, &::before, ${We}-thumbnail`]:{borderRadius:"50%"}}}}},ve=me=>{const{componentCls:Ee,iconCls:xe,fontSizeLG:Te,colorTextLightSolid:Ye}=me,Qe=`${Ee}-list`,We=`${Qe}-item`,De=me.uploadPicCardSize;return{[`
${Ee}-wrapper${Ee}-picture-card-wrapper,
${Ee}-wrapper${Ee}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,an.dF)()),{display:"inline-block",width:"100%",[`${Ee}${Ee}-select`]:{width:De,height:De,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Ee}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ee}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Qe}${Qe}-picture-card, ${Qe}${Qe}-picture-circle`]:{[`${Qe}-item-container`]:{display:"inline-block",width:De,height:De,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[We]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${We}:hover`]:{[`&::before, ${We}-actions`]:{opacity:1}},[`${We}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{zIndex:10,width:Te,margin:`0 ${me.marginXXS}px`,fontSize:Te,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${We}-actions, ${We}-actions:hover`]:{[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{color:new Qn.C(Ye).setAlpha(.65).toRgbString(),"&:hover":{color:Ye}}},[`${We}-thumbnail, ${We}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${We}-name`]:{display:"none",textAlign:"center"},[`${We}-file + ${We}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${We}-uploading`]:{[`&${We}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${xe}-eye, ${xe}-download, ${xe}-delete`]:{display:"none"}},[`${We}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ee}-wrapper${Ee}-picture-circle-wrapper`]:{[`${Ee}${Ee}-select`]:{borderRadius:"50%"}}}};var rt=me=>{const{componentCls:Ee}=me;return{[`${Ee}-rtl`]:{direction:"rtl"}}};const xt=me=>{const{componentCls:Ee,colorTextDisabled:xe}=me;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,an.Wf)(me)),{[Ee]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ee}-select`]:{display:"inline-block"},[`${Ee}-disabled`]:{color:xe,cursor:"not-allowed"}})}};var yt=(0,pn.Z)("Upload",me=>{const{fontSizeHeading3:Ee,fontSize:xe,lineHeight:Te,lineWidth:Ye,controlHeightLG:Qe}=me,We=Math.round(xe*Te),De=(0,wn.TS)(me,{uploadThumbnailSize:Ee*2,uploadProgressOffset:We/2+Ye,uploadPicCardSize:Qe*2.55});return[xt(De),rn(De),he(De),ve(De),Cn(De),Un(De),rt(De),(0,fn.Z)(De)]},me=>({actionsColor:me.colorTextDescription})),dn=function(me,Ee,xe,Te){function Ye(Qe){return Qe instanceof xe?Qe:new xe(function(We){We(Qe)})}return new(xe||(xe=Promise))(function(Qe,We){function De(zt){try{Gt(Te.next(zt))}catch(ze){We(ze)}}function Ot(zt){try{Gt(Te.throw(zt))}catch(ze){We(ze)}}function Gt(zt){zt.done?Qe(zt.value):Ye(zt.value).then(De,Ot)}Gt((Te=Te.apply(me,Ee||[])).next())})};const Ht=`__LIST_IGNORE_${Date.now()}__`,en=(me,Ee)=>{const{fileList:xe,defaultFileList:Te,onRemove:Ye,showUploadList:Qe=!0,listType:We="text",onPreview:De,onDownload:Ot,onChange:Gt,onDrop:zt,previewFile:ze,disabled:ln,locale:hn,iconRender:Dn,isImageUrl:Ue,progress:pt,prefixCls:wt,className:$t,type:_t="select",children:Xt,style:Tt,itemRender:Sn,maxCount:Pn,data:qn={},multiple:aa=!1,action:Kn="",accept:ca="",supportServerRender:Pa=!0,rootClassName:Sa}=me,ia=ae.useContext(st.Z),Vn=ln!=null?ln:ia,[On,ma]=(0,Ke.Z)(Te||[],{value:xe,postState:Dt=>Dt!=null?Dt:[]}),[ea,ra]=ae.useState("drop"),na=ae.useRef(null);ae.useMemo(()=>{const Dt=Date.now();(xe||[]).forEach((sn,Ln)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Dt}_${Ln}__`)})},[xe]);const Wn=(Dt,sn,Ln)=>{let Qt=(0,fe.Z)(sn),bn=!1;Pn===1?Qt=Qt.slice(-1):Pn&&(bn=Qt.length>Pn,Qt=Qt.slice(0,Pn)),(0,it.flushSync)(()=>{ma(Qt)});const An={file:Dt,fileList:Qt};Ln&&(An.event=Ln),(!bn||Qt.some(la=>la.uid===Dt.uid))&&(0,it.flushSync)(()=>{Gt==null||Gt(An)})},fa=(Dt,sn)=>dn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Qt}=me;let bn=Dt;if(Ln){const An=yield Ln(Dt,sn);if(An===!1)return!1;if(delete Dt[Ht],An===Ht)return Object.defineProperty(Dt,Ht,{value:!0,configurable:!0}),!1;typeof An=="object"&&An&&(bn=An)}return Qt&&(bn=yield Qt(bn)),bn}),Ut=Dt=>{const sn=Dt.filter(bn=>!bn.file[Ht]);if(!sn.length)return;const Ln=sn.map(bn=>jt(bn.file));let Qt=(0,fe.Z)(On);Ln.forEach(bn=>{Qt=vt(bn,Qt)}),Ln.forEach((bn,An)=>{let la=bn;if(sn[An].parsedFile)bn.status="uploading";else{const{originFileObj:Bn}=bn;let ua;try{ua=new File([Bn],Bn.name,{type:Bn.type})}catch(Fa){ua=new Blob([Bn],{type:Bn.type}),ua.name=Bn.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=bn.uid,la=ua}Wn(la,Qt)})},In=(Dt,sn,Ln)=>{try{typeof Dt=="string"&&(Dt=JSON.parse(Dt))}catch(An){}if(!ft(sn,On))return;const Qt=jt(sn);Qt.status="done",Qt.percent=100,Qt.response=Dt,Qt.xhr=Ln;const bn=vt(Qt,On);Wn(Qt,bn)},Yn=(Dt,sn)=>{if(!ft(sn,On))return;const Ln=jt(sn);Ln.status="uploading",Ln.percent=Dt.percent;const Qt=vt(Ln,On);Wn(Ln,Qt,Dt)},En=(Dt,sn,Ln)=>{if(!ft(Ln,On))return;const Qt=jt(Ln);Qt.error=Dt,Qt.response=sn,Qt.status="error";const bn=vt(Qt,On);Wn(Qt,bn)},da=Dt=>{let sn;Promise.resolve(typeof Ye=="function"?Ye(Dt):Ye).then(Ln=>{var Qt;if(Ln===!1)return;const bn=nn(Dt,On);bn&&(sn=Object.assign(Object.assign({},Dt),{status:"removed"}),On==null||On.forEach(An=>{const la=sn.uid!==void 0?"uid":"name";An[la]===sn[la]&&!Object.isFrozen(An)&&(An.status="removed")}),(Qt=na.current)===null||Qt===void 0||Qt.abort(sn),Wn(sn,bn))})},Hn=Dt=>{ra(Dt.type),Dt.type==="drop"&&(zt==null||zt(Dt))};ae.useImperativeHandle(Ee,()=>({onBatchStart:Ut,onSuccess:In,onProgress:Yn,onError:En,fileList:On,upload:na.current}));const{getPrefixCls:pa,direction:ha,upload:Gn}=ae.useContext(et.E_),Mn=pa("upload",wt),ga=Object.assign(Object.assign({onBatchStart:Ut,onError:En,onProgress:Yn,onSuccess:In},me),{data:qn,multiple:aa,action:Kn,accept:ca,supportServerRender:Pa,prefixCls:Mn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete ga.className,delete ga.style,(!Xt||Vn)&&delete ga.id;const[va,ya]=yt(Mn),[La]=(0,tt.Z)("Upload",at.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:Ft,showDownloadIcon:ct,removeIcon:Pt,previewIcon:Lt,downloadIcon:un}=typeof Qe=="boolean"?{}:Qe,Fn=(Dt,sn)=>Qe?ae.createElement(Kt,{prefixCls:Mn,listType:We,items:On,previewFile:ze,onPreview:De,onDownload:Ot,onRemove:da,showRemoveIcon:!Vn&&ba,showPreviewIcon:Ft,showDownloadIcon:ct,removeIcon:Pt,previewIcon:Lt,downloadIcon:un,iconRender:Dn,locale:Object.assign(Object.assign({},La),hn),isImageUrl:Ue,progress:pt,appendAction:Dt,appendActionVisible:sn,itemRender:Sn,disabled:Vn}):Dt,kn=_e()(`${Mn}-wrapper`,$t,Sa,ya,Gn==null?void 0:Gn.className,{[`${Mn}-rtl`]:ha==="rtl",[`${Mn}-picture-card-wrapper`]:We==="picture-card",[`${Mn}-picture-circle-wrapper`]:We==="picture-circle"}),Rn=Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Tt);if(_t==="drag"){const Dt=_e()(ya,Mn,`${Mn}-drag`,{[`${Mn}-drag-uploading`]:On.some(sn=>sn.status==="uploading"),[`${Mn}-drag-hover`]:ea==="dragover",[`${Mn}-disabled`]:Vn,[`${Mn}-rtl`]:ha==="rtl"});return va(ae.createElement("span",{className:kn},ae.createElement("div",{className:Dt,style:Rn,onDrop:Hn,onDragOver:Hn,onDragLeave:Hn},ae.createElement(ye,Object.assign({},ga,{ref:na,className:`${Mn}-btn`}),ae.createElement("div",{className:`${Mn}-drag-container`},Xt))),Fn()))}const _n=_e()(Mn,`${Mn}-select`,{[`${Mn}-disabled`]:Vn}),oa=(Dt=>ae.createElement("div",{className:_n,style:Dt},ae.createElement(ye,Object.assign({},ga,{ref:na}))))(Xt?void 0:{display:"none"});return va(We==="picture-card"||We==="picture-circle"?ae.createElement("span",{className:kn},Fn(oa,!!Xt)):ae.createElement("span",{className:kn},oa,Fn()))};var jn=ae.forwardRef(en),nt=function(me,Ee){var xe={};for(var Te in me)Object.prototype.hasOwnProperty.call(me,Te)&&Ee.indexOf(Te)<0&&(xe[Te]=me[Te]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Te=Object.getOwnPropertySymbols(me);Ye<Te.length;Ye++)Ee.indexOf(Te[Ye])<0&&Object.prototype.propertyIsEnumerable.call(me,Te[Ye])&&(xe[Te[Ye]]=me[Te[Ye]]);return xe},Tn=ae.forwardRef((me,Ee)=>{var{style:xe,height:Te}=me,Ye=nt(me,["style","height"]);return ae.createElement(jn,Object.assign({ref:Ee},Ye,{type:"drag",style:Object.assign(Object.assign({},xe),{height:Te})}))});const Xn=jn;Xn.Dragger=Tn,Xn.LIST_IGNORE=Ht;var xn=Xn}}]);