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($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ke}});var ae=re(92413),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,ke){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:ke,icon:_e}))},ue=fe.forwardRef(He),Ke=ue},41464:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ke}});var ae=re(92413),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,ke){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:ke,icon:_e}))},ue=fe.forwardRef(He),Ke=ue},61481:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ke}});var ae=re(92413),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,ke){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:ke,icon:_e}))},ue=fe.forwardRef(He),Ke=ue},33853:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ke}});var ae=re(92413),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,ke){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:ke,icon:_e}))},ue=fe.forwardRef(He),Ke=ue},38819:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ke}});var ae=re(92413),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,ke){return fe.createElement(ce.Z,(0,ae.Z)({},Ie,{ref:ke,icon:_e}))},ue=fe.forwardRef(He),Ke=ue},88010:function($e,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"}},74413:function(){"use strict";function $e(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($e.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($e.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($e.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($e.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 $e))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,xe=E-le*b;ie=ne,se=le*ie+xe}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,xe=E-le*b;ie=(xe-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 xe=1-te,Ne=te,ut=ne*xe+y*Ne,Bt=a*xe+x*Ne,jt=y*xe+b*Ne,ye=x*xe+E*Ne,Xe=b*xe+z*Ne,it=E*xe+ee*Ne,et=ut*xe+jt*Ne,st=Bt*xe+ye*Ne,tt=jt*xe+Xe*Ne,at=ye*xe+it*Ne,qe=et*xe+tt*Ne,Ut=st*xe+at*Ne;oe.x=ut,oe.y=Bt,ge.x=et,ge.y=st,ie.x=qe,ie.y=Ut,se.x=tt,se.y=at,le.x=Xe,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 $e("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 $e("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 $e("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 $e("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 $e("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 $e("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 Ke=[];function Ge(){var ne=Ke.pop();return ne===void 0?[]:ne}function Ie(ne){ne.length=0,Ke.push(ne)}function ke(ne){for(var a=Ge(),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=Ge();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=ke(ne),y=Ge(),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=ke(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=ke(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=ke(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=ke(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=ke(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=ke(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=ke(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 $e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $e("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 $e("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 $e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $e("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 $e("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 $e("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 $e("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 $e("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 $e("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 $e("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(),xe=ae(),Ne=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ne,le,xe);var ut=ae(),Bt=ae(),jt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ut,Bt,jt,se,se);var ye=ae(),Xe=ae(),it=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,it,ye,Xe),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,Xe.x*a,Xe.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,jt.x*a,jt.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,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*a,jt.y*y,ut.x*a,ut.y*y,Bt.x*a,Bt.y*y).close()),fe(oe),fe(ge),fe(ie),fe(se),fe(le),fe(xe),fe(Ne),fe(ut),fe(Bt),fe(jt),fe(ye),fe(Xe),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 $e("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 xe=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,(xe.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.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(xe),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 $e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $e("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 $e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $e("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 $e("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 $e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $e("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 $e("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 $e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $e("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 $e("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 $e("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 $e("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 $e("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 $e("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 $e("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 xe=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);x.add(xe),xe.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)),xe.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)),xe.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)),xe.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,xe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),xe.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)),xe.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)),xe.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)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),xe.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,xe=ge*se,Ne=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(xe+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-xe)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+xe)*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+(xe+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,xe=new go.PathFigure((se-ge)*a,le*y,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),xe.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")},80727: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 $e={},lt="5.0",re={},ae=null,fe=!1,Ze=!1,_e=null,ce=!1,He=null,ue=null,Ke=0;Ke<arguments.length;Ke++){var Ge=arguments[Ke];if(Ge!==null)switch(typeof Ge){case"number":lt=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Ge:_e=Ge;break;case"object":typeof Ge.is3D!="undefined"?ae=Ge:re=Ge;break;case"boolean":fe=Ge,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="",ke="",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};$e.setHTML5Codebase=function(Le,Oe){ue=Le,at(Le,Oe)},$e.setJavaCodebase=$e.setJavaCodebaseVersion=$e.isCompiledInstalled=$e.setPreCompiledScriptPath=$e.setPreCompiledResourcePath=function(){},$e.setHTML5CodebaseVersion=function(Le,Oe){var Ye=parseFloat(Le);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}He=Le,tt(Le,Oe)},$e.getHTML5CodebaseVersion=function(){return ne},$e.getParameters=function(){return re},$e.setFontsCSSURL=function(Le){z=Le},$e.setGiacJSURL=function(Le){},$e.setJNLPFile=function(Le){Ie=Le},$e.setJNLPBaseDir=function(Le){},$e.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Ye=re.id,vt,Ue=!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)$/)?Oe=de:Ye=arguments[gt]):typeof de=="boolean"?Ue=de:de instanceof HTMLElement&&(vt=de)}ot();function ot(){if(!ce){setTimeout(ot,200);return}Oe=et(Oe);var Mt=vt||document.getElementById(Ye);if(!Mt){console.log("possibly bug on ajax loading? ");return}if($e.removeExistingApplet(Mt,!1),re.width===void 0&&Mt.clientWidth&&(re.width=Mt.clientWidth),re.height===void 0&&Mt.clientHeight&&(re.height=Mt.clientHeight),!(re.width&&re.height)&&Oe==="html5"&&(delete re.width,delete re.height),be=Oe,Oe==="screenshot")Bt(Mt,re);else{var Xt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Xt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Xt=(!oe()||Le())&&ge()),Xt?(be="screenshot",ye(Mt,re,Ue,Oe)):ut(Mt,re,Ue)}}};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}$e.getViews=function(){return ae},$e.isJavaInstalled=function(){return!1};var ie=function(Le){var Oe=function(gt){var de=JSON.parse(gt),ot=function(At){return At.type=="G"||At.type=="E"},Mt=de.elements?de.elements.filter(ot)[0]:de;if(!Mt||!Mt.url){Ye();return}re.fileName=Mt.url,se(Mt.settings||{}),ae.is3D=!0;var Xt="https://www.geogebra.org/images/";$e.setPreviewImage(x||Mt.previewUrl,Xt+"GeoGebra_loading.png",Xt+"applet_play.png"),Le()},Ye=function(){re.onError&&re.onError(),qe("Error: Fetching material (id "+re.material_id+") failed.",re)},vt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+re.material_id+"?scope=basic";le("https://"+vt+"/api/proxy.php?path="+encodeURIComponent(Ue),Oe,Ye)};function se(Le){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){Le[Ye]=!!Le[Ye]}),Oe.forEach(function(Ye){re[Ye]===void 0&&Le[Ye]!==void 0&&(re[Ye]=Le[Ye])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Le,Oe,Ye){var vt=new XMLHttpRequest;vt.open("GET",Le),vt.onload=function(){Oe(vt.responseText)},vt.onerror=Ye,vt.send()}$e.isHTML5Installed=function(){return!0},$e.getLoadedAppletType=function(){return be},$e.setPreviewImage=function(Le,Oe,Ye){x=Le,b=Oe,E=Ye},$e.removeExistingApplet=function(Le,Oe){var Ye;typeof Le=="string"&&(Le=document.getElementById(Le)),be=null;var vt=null;for(Ye=0;Ye<Le.childNodes.length;Ye++){var Ue=Le.childNodes[Ye],gt=Ue.className;gt==="applet_screenshot"?Oe?(Ue.style.display="block",be="screenshot"):Ue.style.display="none":gt!=="applet_scaler prerender"&&(Le.removeChild(Ue),vt=gt&&gt.indexOf("appletParameters")!=-1?Ue.id:null,Ye--)}var de=re.id!==void 0?re.id:vt,ot=window[de];ot&&typeof ot.getBase64=="function"&&(ot.remove(),window[de]=null)},$e.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=$e.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},$e.startAnimation=function(){var Le=$e.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},$e.stopAnimation=function(){var Le=$e.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},$e.getAppletObject=function(){var Le=re.id!==void 0?re.id:"ggbApplet";return window[Le]},$e.resize=function(){};var xe=function(Le,Oe,Ye){var vt=document.createElement("param");vt.setAttribute("name",Oe),vt.setAttribute("value",Ye),Le.appendChild(vt)},Ne=function(Le){return Le&&Le!=="false"},ut=function(Le,Oe,Ye){te(ne)<=4.2&&(Ye=!0);var vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var gt=Oe.width,de=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(te(ne)<=4.4)Ne(Oe.showToolBar)&&(Oe.height-=7),Ne(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Ne(Oe.showToolBar)&&(Oe.width=605,gt=605);else{var ot=100;(Ne(Oe.showToolBar)||Ne(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),ot=Ne(Oe.showMenuBar)?245:155),gt<ot&&(Oe.width=ot,gt=ot)}Ue.style.border="none",Ue.style.display="inline-block";for(var Mt in Oe)Oe.hasOwnProperty(Mt)&&Mt!=="appletOnLoad"&&Ue.setAttribute("data-param-"+Mt,Oe[Mt]);z&&Ue.setAttribute("data-param-fontscssurl",z),$e.resize=function(){GGBAppletUtils.responsiveResize(Le,Oe)},window.addEventListener("resize",function(yt){$e.resize()});var Xt=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!Ye&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var At=Le.querySelector(".applet_scaler.prerender"),ze=At!==null;if(ze)var Fe=At.querySelector(".ggb_preview");else{var Fe=it(gt,de,Oe.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=gt+"px",At.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),te(ne)>=5?(Oe.appletOnLoad=function(yt){var pt=Le.querySelector(".ggb_preview");pt&&pt.parentNode.removeChild(pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Xt(yt)},ze||At.appendChild(Fe)):Ue.appendChild(Fe),At.appendChild(Ue),ze||Le.appendChild(At),setTimeout(function(){$e.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ue),Le.appendChild(pe),Oe.appletOnLoad=function(yt){$e.resize(),Xt(yt)}}function Re(yt,pt){pt&&typeof pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,pt.appletOnLoad):renderGGBElement(yt),qe("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pt)}function Ae(yt,pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Re(en.article,en.params)}),html5AppletsToProcess=null)},te(ne)<5&&(yt.className+=" geogebraweb")):Re(yt,pt)}if(vt){scriptLoadStarted=!0;for(var mt=0;mt<Ue.childNodes.length;mt++){var Et=Ue.childNodes[mt].tagName;Et==="TABLE"&&(Ue.removeChild(Ue.childNodes[mt]),mt--)}if(ggbHTML5LoadedScript!==null){var Ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ct!=null&&Ct.parentNode.removeChild(Ct)}var Tt=document.createElement("script"),Rt=function(){Ae(Ue,Oe)};Tt.src=ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Tt.src,qe("GeoGebra HTML5 codebase loaded: '"+ke+"'.",Oe),!ue&&(!He||He=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):ke.requirejs?__webpack_require__.e(4184).then(function(){var yt=[__webpack_require__(74620)];Rt.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=Rt,Le.appendChild(Tt))}else Ae(Ue,Oe);Oe.height=de,Oe.width=gt},Bt=function(Le,Oe,Ye){var vt=it(Oe.width,Oe.height,Oe.borderColor,Ye),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Oe.width+"px",Ue.style.height=Oe.height+"px",Ue.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),Ue.appendChild(vt);var gt=GGBAppletUtils.getScale(Oe,Le,Ye);Ye?(Le.appendChild(Xe()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),Le.appendChild(Ue),gt!==1&&!isNaN(gt)&&(GGBAppletUtils.scaleElement(Ue,gt),Ue.style.width=Oe.width+"px",Ue.style.height=Oe.height+"px",Ue.parentNode.style.width=Oe.width*gt+"px",Ue.parentNode.style.height=Oe.height*gt+"px"),$e.resize=function(){jt(Le,vt,Ue,Ye)},window.addEventListener("resize",function(de){$e.resize()}),$e.resize()};function jt(Le,Oe,Ye,vt){if(Le.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var Ue=GGBAppletUtils.getScale(re,Le,vt);Ye.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(Ye,Ue),Ye.parentNode.style.width=re.width*Ue+"px",Ye.parentNode.style.height=re.height*Ue+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=re.width+"px",Ye.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()}}$e.onExitFullscreen=function(Le,Oe){Oe.appendChild(Le)};var ye=function(Le,Oe,Ye,vt){Bt(Le,Oe,!0);for(var Ue=function(){var ot=[];for(de=0;de<Le.childNodes.length;de++)ot.push(Le.childNodes[de]);if(window.GGBT_wsf_view){var Mt=window.GGBT_wsf_view.renderFullScreen(Le,Oe.id),Xt=document.getElementById("fullscreencontainer"),At=jQuery(Le).find(".fullscreencontent");At.length>0?(Mt.remove(),At.attr("id","fullscreencontent").show(),jQuery(Xt).append(At),window.dispatchEvent(new Event("resize"))):ut(Mt,Oe,!1),window.GGBT_wsf_view.launchFullScreen(Xt)}else be=vt,ut(Le,Oe,!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",Ue,!1),gt[de].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Oe='.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=Oe:Ye.appendChild(document.createTextNode(Oe)),document.getElementsByTagName("head")[0].appendChild(Ye)}return Le},it=function(Le,Oe,Ye,vt){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=Le-2+"px",Ue.style.height=Oe-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var gt="lightgrey";Ye!==void 0&&(Ye==="none"?gt="transparent":gt=Ye),Ue.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,Mt,Xt;if(!vt){ot=document.createElement("img"),ot.style.position="absolute",ot.style.zIndex="1001",ot.style.opacity=1,de.style.opacity=.3,Mt=360,Mt>Le/4*3&&(Mt=Le/4*3),Xt=Mt/5.8,ot.setAttribute("src",b),ot.setAttribute("width",Mt),ot.setAttribute("height",Xt);var At=(Le-Mt)/2,ze=(Oe-Xt)/2;ot.style.left=At+"px",ot.style.top=ze+"px",Ue.appendChild(ot)}}return Ue.appendChild(de),Ue},et=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],tt=function(Le,Oe){if(ne=Le,Oe){at(ne,!0);return}var Ye=!fe;if(Ye){var vt=te(ne);!isNaN(vt)&&vt<4.4&&(Ye=!1)}var Ue,gt;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var de=ne.indexOf("//");de>0?gt=ne:de===0?gt=Ue+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()&&Ye&&!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,Oe){if(Le.requirejs){ke=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),ke=Le,Oe===null&&(Oe=Le.indexOf("http")===-1),Me=Oe,a="web.nocache.js",y=!1;var Ye=ke.split("/");Ye.length>1&&(!Oe&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):st.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=Le.split("/"),ne=Ye[Ye.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 vt=parseFloat(ne);vt!==NaN&&vt<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+vt+" is deprecated. Using version latest instead."),tt("5.0",Oe))},qe=function(Le,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Le)};re.material_id!==void 0?ie(Ut):Ut();function Ut(){var Le=lt;He!==null?Le=He:parseFloat(Le)<5&&(Le="5.0"),tt(Le,!1),ue!==null&&at(ue,Me),ce=!0}return $e},GGBAppletUtils=function(){"use strict";function $e(){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,Ke,Ge,Ie){var ke=null;if(Ie!=null&&Ie!="")for(var Me=ce.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+Ie+" ")>-1){ke=Me;break}else Me=Me.parentNode;var be=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(ke)be=ke.offsetWidth,ne=Math.max(Ke?ke.offsetWidth:0,ke.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&&(Ge===void 0||!Ge)&&(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,Ke,Ge){if(ce.isScreenshoGenerator)return 1;var Ie=Ke!==void 0&&Ke,ke=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||ke,Ge),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 Ke=1,Ge,Ie=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ie=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ke=parseFloat(ce.scale),(isNaN(Ke)||Ke===null||Ke===0)&&(Ke=1),Ke>1&&(Ie=!0)),He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ge=ae(ce,He,Ie,ue,ce.scaleContainerClass);else return Ke;return Ie&&(!ce.hasOwnProperty("scale")||Ke===1)?Ge:Math.min(Ke,Ge)}function Ze(ce){var He=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=ce.getBoundingClientRect(),Ge=(He-Ke.width)/2,Ie=(ue-Ke.height)/2;Ie<0&&(Ie=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?ce.style.left="40px":ce.style.left=Ge+"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=Ge+"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 Ke=fe(He,ce);$e()&&ue.setAttribute("data-param-scale",Ke);for(var Ge=null,Ie=0;Ie<ce.childNodes.length;Ie++)if(ce.childNodes[Ie].className!==void 0&&ce.childNodes[Ie].className.match(/^applet_scaler/)){Ge=ce.childNodes[Ie];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var ke=He.id!==void 0?He.id:"ggbApplet",Me=window[ke];(Me==null||!Me.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Ke)&&Ke!==1?(Ge.parentNode.style.width=He.width*Ke+"px",Ge.parentNode.style.height=He.height*Ke+"px",lt(Ge,Ke)):(lt(Ge,1),Ge.parentNode.style.width=He.width+"px",Ge.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:$e,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 $e=n.location.search;return $e.indexOf(J)!=-1||$e.indexOf(K)!=-1}function q($e,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($e){var lt=s[L].bindings;s[L].bindings=function(){for(var re=lt?lt():{},ae=$e[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 $e=o.createElement(Q);if($e.id=L,$e.style.cssText=R+S,$e.tabIndex=-1,o.body.appendChild($e),t=$e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w($e){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($e)})}webModule.__startLoadingFragment=function($e){return C($e)},webModule.__installRunAsyncCode=function($e){var lt=u(),re=lt.body,ae=lt.createElement(_);ae.language=ab,ae.text=$e,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($e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($e){var lt=c[$e];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function $e(ce){var He=ce.lastIndexOf(rb);He==-1&&(He=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var Ke=ce.lastIndexOf(tb,Math.min(ue,He));return Ke>=O?ce.substring(O,Ke+P):W}function lt(ce){if(!ce.match(/^\w+:\/\//)){var He=o.createElement(ub);He.src=ce+vb,ce=$e(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 $e(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=$e(o.location.href)),_e=lt(_e),_e}function C($e){return $e.match(/^\//)||$e.match(/^[a-zA-Z]+:\/\//)?$e:webModule.__moduleBase+$e}function D(){var $e=[],lt=O,re=[],ae=[];function fe(ce){var He=ae[ce](),ue=re[ce];if(He in ue)return He;var Ke=[];for(var Ge in ue)Ke[ue[Ge]]=Ge;throw r&&r(ce,Ke,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})()},77903:function($e,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(3294);function fe(Ke){let Ge=!0;if(Ke.length>0){for(let Ie=0;Ie<Ke.length;Ie++)if(Ke[Ie].compile_success==0||!Ke[Ie].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function Ze(Ke,Ge=""){let Ie=[];for(let ke=0;ke<Ke.length;ke++){let Me=Ke[ke],be=Ge?`${Ge}/${Me.name}`:`${Me.name}`;Ie.push({title:Me.name,type:Me.type,isLeaf:Me.type!=="tree",key:be})}return Ie}function _e(Ke,Ge,Ie){for(let ke=0;ke<Ke.length;ke++){let Me=Ke[ke];if(Me.key===Ge){Me.children=Ie;break}Me.children&&_e(Me.children,Ge,Ie)}return Ke}function ce(Ke,Ge,Ie){let ke;return function(){let Me=this,be=arguments,ne=function(){ke=null,Ie||Ke.apply(Me,be)},a=Ie&&!ke;clearTimeout(ke),ke=setTimeout(ne,Ge),a&&Ke.apply(Me,be)}}const He=!0,ue=ae.Z.API_SERVER},73524:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return ke}});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(99064),Ke=re(955),Ge=(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())}),ke=({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&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Me==null?void 0:Me.visible]);const xe=()=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ke.ZJ)(Me==null?void 0:Me.src);z.current.src="",z.current.src=ye,z.current.onload=function(){jt()},ie(!1),le("")}),Ne=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ut=ye=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xe=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:ye.dataUrl}});Xe!=null&&Xe.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xe==null?void 0:Xe.id,settings:JSON.stringify(ye.state)}})).status===0&&x():Xe!=null&&Xe.id&&x(Xe),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)})},jt=()=>{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}))))}},41588:function($e,lt,re){"use strict";var ae=re(59301),fe=re(95237),Ze=re(43604),_e=re(99313),ce=re(3113),He=re(85149),ue=re(88010),Ke=re(48136),Ge=re(59301);const Ie=(0,ae.forwardRef)(({callback:ke,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:Ge.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ge.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(He.Z,{value:`$$${ee.value}$$`}),ee.name),Ge.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},Ge.createElement("h1",null,oe.name),Ge.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ge.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ge.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ge.createElement(Ze.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(He.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ge.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},oe.name&&Ge.createElement("h1",null,oe.name),Ge.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ge.createElement(Ze.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ge.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return ke&&ke(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ge.createElement("div",{className:ue.Z.mathWrap},Ge.createElement(_e.default,{defaultActiveKey:"1",items:E}),Ge.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&&Ge.createElement("div",{className:ue.Z.button},Ge.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=Ie},57490:function($e,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(3294),ue=re(23538),Ke=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Me=(tt,at,qe)=>at in tt?Ke(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(Ge)for(var qe of Ge(at))ke.call(at,qe)&&Me(tt,qe,at[qe]);return tt},ne=(tt,at,qe)=>new Promise((Ut,Le)=>{var Oe=Ue=>{try{vt(qe.next(Ue))}catch(gt){Le(gt)}},Ye=Ue=>{try{vt(qe.throw(Ue))}catch(gt){Le(gt)}},vt=Ue=>Ue.done?Ut(Ue.value):Promise.resolve(Ue.value).then(Oe,Ye);vt((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:Ut,maxSize:Le=150,title:Oe="\u6587\u4EF6\u4E0A\u4F20",accept:Ye=null})=>{const vt={multiple:!1,fileList:tt,accept:Ye,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,Mt,Xt;let At=[...gt.fileList];if(At=At.map(ze=>(ze.name.indexOf(a)===-1&&(ze.name=`${ze.name}${a}${y(ze.size)}`),be({},ze))),gt.file.status==="done"&&((ot=(de=gt.file)==null?void 0:de.response)==null?void 0:ot.status)===-1){message.error((Xt=(Mt=gt.file)==null?void 0:Mt.response)==null?void 0:Xt.message),qe([]);return}qe(At)},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 Ue(gt){gt.preventDefault(),gt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Ut||""}`},React.createElement(Upload,be({},vt),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},Oe),React.createElement("span",{onClick:Ue,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=",xe=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,jt=(tt,at,qe)=>at in tt?xe(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)&&jt(tt,qe,at[qe]);if(Ne)for(var qe of Ne(at))Bt.call(at,qe)&&jt(tt,qe,at[qe]);return tt},Xe=(tt,at,qe)=>new Promise((Ut,Le)=>{var Oe=Ue=>{try{vt(qe.next(Ue))}catch(gt){Le(gt)}},Ye=Ue=>{try{vt(qe.throw(Ue))}catch(gt){Le(gt)}},vt=Ue=>Ue.done?Ut(Ue.value):Promise.resolve(Ue.value).then(Oe,Ye);vt((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:Ut,className:Le,maxSize:Oe=150,title:Ye="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:vt=!1,accept:Ue="",additionalText:gt,isDragger:de,number:ot=1e3,aloneClear:Mt=!1,realTimeRemove:Xt=!0,uploadText:At,setFileProgress:ze,showFileProgress:Fe})=>{const[pe,Re]=(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)&&Re(!0))},[tt]);const Tt=()=>{setTimeout(()=>{Ae.pop(),mt([...Ae])},500)};Fe&&ze(Ae.some(pt=>pt.status==="uploading"));const Rt={multiple:!0,accept:Ue,withCredentials:!0,fileList:Ae,beforeUpload:(pt,en)=>{const tn=pt.size/1024/1024;return Ae.concat(en).length>ot?(Ae.pop(),mt([...Ae]),Ze.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${ot}\u4E2A\u6587\u4EF6`),Mt?Promise.reject():(Tt(),!1)):tn<Oe?!0:(Ze.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Oe}MB).`),Mt?Promise.reject():(Tt(),!1))},data:Ut,action:qe||`${He.Z.API_SERVER}/api/attachments.json`,onChange(pt){var en,tn,mn,Jt;if(pt.file.status==="removed"?Ae=pt.fileList:Ae=(0,E.uniqBy)([...pt.fileList,...Ae],"uid"),pt.file.status==="done"&&((tn=(en=pt.file)==null?void 0:en.response)==null?void 0:tn.status)===-1){Ze.ZP.error((Jt=(mn=pt.file)==null?void 0:mn.response)==null?void 0:Jt.message);return}Ae.length>=ot?Re(!0):Re(!1),mt([...Ae]),Ae=Ae.map(Ht=>{var Pe,Be;return(Pe=Ht==null?void 0:Ht.response)!=null&&Pe.id&&(Ht.url=(Be=Ht==null?void 0:Ht.response)==null?void 0:Be.url),Ht.name.indexOf(a)===-1&&(Ht.name=`${Ht.name}${a}${y(Ht.size)}`),ye({},Ht)}),console.log("info:",pt,Ae),at(Ae)},onRemove:pt=>Xe(void 0,null,function*(){if(!Xt)return!0;const en=()=>Xe(void 0,null,function*(){if(pt.response?pt.response.id:pt.id){let mn=yield(0,ue.JZ)(pt.response?pt.response.id:pt.uid);return Promise.resolve(mn)}else return!0});if(vt)return new Promise((tn,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:()=>Xe(void 0,null,function*(){const Jt=yield en();Ze.ZP.success("\u5220\u9664\u6210\u529F"),tn(!0)}),onCancel:()=>tn(!1)})});{const tn=yield en();return Ae.length-1<ot&&Re(!1),tn}})};function yt(pt){pt.preventDefault(),pt.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${Le||""}`},de&&ae.createElement(it,ye({},Rt),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",Oe,"MB)"," "),gt),!de&&ae.createElement(fe.default,ye({},Rt),ae.createElement(ce.ZP,{disabled:pe,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:le}),Ye),ae.createElement("span",{onClick:yt,className:"upload_text"},At||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Oe}MB)`)))}},97692:function($e,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(37036),Ke=re(95625),Ge=Object.defineProperty,Ie=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ge(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,ke(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(xe){ie(z[xe][1])}function le(xe){te(xe)}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:xe=>xe.parentNode,onChange:se},Object.keys(z).map(xe=>ae.createElement(b,{key:xe,value:xe},z[xe][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,xe]=(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));xe(Ne)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},12290:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Jn}});var ae=re(59301),fe=re(89780),Ze=re.n(fe),_e=re(76374),ce=re(37036),He=re(6313),ue=re(25717),Ke=re(99498),Ge=re(25419),Ie=re(67549),ke=re(85149),Me=({value:he="",className:ve,showTextOnly:Se,showLines:rt,style:xt={}})=>{const Lt=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Lt}}))},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:Lt}){function ln(){he(rt)}return be.createElement("a",{title:ve,className:xt,onClick:ln},be.createElement("i",{className:`${Se}`}),Lt)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:Se,onActionCallback:rt,fullScreen:xt,insertTemp:Lt,hidetoolBar:ln,extraUse:kt})=>{const Qt=[...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"},!ln&&Qt.map((Ln,kn)=>be.createElement("li",{key:kn},Ln.actionName?be.createElement(ge,te(ee({},Ln),{onActionCallback:rt})):be.createElement("span",{className:"v-line"}))),ve?be.createElement("li",null,be.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\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,Lt&&be.createElement("li",null,be.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Lt}`,onActionCallback:rt},be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),kt&&be.createElement("li",null,kt),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(79346),le=re(78241),xe=re(92832),Ne=re(3113),ut=Object.defineProperty,Bt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Xe=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={}))Xe.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,jt(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(xe.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(xe.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")))},Ut=re(97692),Le=re(28451),Oe=re(43418),Ye=re(95237),vt=re(73524),Ue=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 Ue.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(Ye.Z,{style:{height:"100vh"}},Ue.createElement(vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xt,visible:!0,title:String(Date.now())},onOk:Lt=>{he({src:Lt.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(kt){kt instanceof go.Link||Se.push(kt)});for(var rt=0;rt<Se.length-1;rt++){var xt=Se[rt],Lt=xt.actualBounds.y+xt.actualBounds.height+he,ln=Se[rt+1];ln.move(new go.Point(xt.actualBounds.x,Lt))}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(kt){kt instanceof go.Link||Se.push(kt)});for(var rt=0;rt<Se.length-1;rt++){var xt=Se[rt],Lt=xt.actualBounds.x+xt.actualBounds.width+he,ln=Se[rt+1];ln.move(new go.Point(Lt,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 Lt=xt.zOrder;isNaN(Lt)?xt.zOrder=0:rt=Math.max(rt,Lt)}}),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 Lt=xt.zOrder;isNaN(Lt)?xt.zOrder=0:rt=Math.min(rt,Lt)}}),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(Lt){ve.key==="Up"?Lt.move(new go.Point(Lt.actualBounds.x,Lt.actualBounds.y-Se)):ve.key==="Down"?Lt.move(new go.Point(Lt.actualBounds.x,Lt.actualBounds.y+Se)):ve.key==="Left"?Lt.move(new go.Point(Lt.actualBounds.x-rt,Lt.actualBounds.y)):ve.key==="Right"&&Lt.move(new go.Point(Lt.actualBounds.x+rt,Lt.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,Lt=ve,ln=0;ln<rt.length;ln++){var kt=rt[ln];if(kt!==ve&&kt.canSelect()){var Qt=kt.actualBounds.center,Ln=Se.directionPoint(Qt),kn=this._angleCloseness(Ln,he);if(kn<=45){var nt=Se.distanceSquaredPoint(Qt);nt*=1+Math.sin(kn*Math.PI/180),nt<xt&&(xt=nt,Lt=kt)}}}return Lt},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 Lt=this._sortTreeChildrenByY(xt),ln=Lt.indexOf(ve);if(ln>0){for(var kt=Lt.elt(ln-1);kt!==null&&kt.isTreeExpanded&&!kt.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(kt);kt=Qt.last()}kt!==null&&he.select(kt)}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 Lt=this._sortTreeChildrenByY(xt),ln=Lt.indexOf(ve);if(ln<Lt.length-1){he.select(Lt.elt(ln+1));break}else ve=xt}var Ln=he.selection.first();Ln!==null&&he.scrollToRect(Ln.actualBounds)}},ot.prototype._sortTreeChildrenByY=function(he){var ve=new go.List().addAll(he.findTreeChildrenNodes());return ve.sort(function(Se,rt){var xt=Se.location,Lt=rt.location;return xt.y<Lt.y?-1:xt.y>Lt.y?1:xt.x<Lt.x?-1:xt.x>Lt.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 Mt=ot,Xt=re(74413),At=re(43604),ze=re(99064),Fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=re(59301),Re=(he,ve,Se)=>new Promise((rt,xt)=>{var Lt=Qt=>{try{kt(Se.next(Qt))}catch(Ln){xt(Ln)}},ln=Qt=>{try{kt(Se.throw(Qt))}catch(Ln){xt(Ln)}},kt=Qt=>Qt.done?rt(Qt.value):Promise.resolve(Qt.value).then(Lt,ln);kt((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)(),Lt=(0,ae.useRef)(!1);const ln=(0,ae.useRef)(!1),[kt,Qt]=(0,ae.useState)(0);function Ln(){const nt=de.bx.make,qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};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:Je=>{var ft=Je.diagram.commandHandler.addTopLevelParts(Je.diagram.selection,!0);ft||Je.diagram.currentTool.doCancel()},commandHandler:nt(Mt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Je=>{var ft=Je.subject;ft.location=ft.location.copy().snapToGridPoint(Je.diagram.grid.gridOrigin,Je.diagram.grid.gridCellSize),setTimeout(()=>{Je.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Je=>{var ft=Je.subject;setTimeout(()=>{Je.diagram.commandHandler.editTextBlock()})},LinkRelinked:Je=>{var ft=Je.parameter.part;ft.invalidateConnectedLinks();var $t=Je.subject;Je.diagram.toolManager.linkingTool.isForwards?$t.toNode.invalidateConnectedLinks():$t.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:qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),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 An(Je,ft){var $t=(Pt,Kt)=>{Pt.handled=!0,Pt.diagram.model.commit(Yt=>{var Dt=Kt.part.adornedPart,Pn=new de.E9().setRectSpot(Dt.actualBounds,Je);Pn.subtract(Dt.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Dt.location),Pn.snapToGridPoint(Pt.diagram.grid.gridOrigin,Pt.diagram.grid.gridCellSize);var fn=Yt.copyNodeData(Dt.data);Yt.setGroupKeyForNodeData(fn,Yt.getGroupKeyForNodeData(Dt.data)),Yt.addNodeData(fn);var oa={from:Dt.key,to:Yt.getKeyForNodeData(fn)};Yt.addLinkData(oa);var Qn=Pt.diagram.findNodeForData(fn);Qn.location=Pn,Pt.diagram.select(Qn),setTimeout(()=>{Pt.diagram.commandHandler.editTextBlock()},20)})};return nt(de.bn,{figure:ft,alignment:Je,alignmentFocus:Je.opposite(),width:Je.equals(de.z6.Top)||Je.equals(de.z6.Bottom)?25:18,height:Je.equals(de.z6.Top)||Je.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(Pt,Kt)=>Kt.fill="dodgerblue",mouseLeave:(Pt,Kt)=>Kt.fill="orange",isActionable:!0,click:$t,contextClick:$t})}function Zn(Je){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:(ft,$t)=>$t.fill="dodgerblue",mouseLeave:(ft,$t)=>$t.fill="orange",click:(ft,$t)=>{ft.diagram.commandHandler.showContextMenu($t.part.adornedPart)}},Je||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=nt(de.uz,"Spot",nt(de.Vm,{padding:10}),An(de.z6.Top,"TriangleUp"),An(de.z6.Left,"TriangleLeft"),An(de.z6.Right,"TriangleRight"),An(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Bn(Je,ft){return($t,Pt)=>{$t.handled=!0,$t.diagram.model.commit(Kt=>{Kt.set(Pt.part.adornedPart.data,Je,ft)})}}function me(Je,ft){return ft||(ft="color"),nt(de.bn,{width:16,height:16,stroke:"lightgray",fill:Je,margin:1,background:"transparent",mouseEnter:($t,Pt)=>Pt.stroke="dodgerblue",mouseLeave:($t,Pt)=>Pt.stroke="lightgray",click:Bn(ft,Je),contextClick:Bn(ft,Je)})}function Ce(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",me(qt.white,"fill"),me(qt.beige,"fill"),me(qt.extralightblue,"fill"),me(qt.extralightred,"fill"))),nt("ContextMenuButton",nt(de.s_,"Horizontal",me(qt.lightgray,"fill"),me(qt.lightgreen,"fill"),me(qt.lightblue,"fill"),me(qt.lightred,"fill")))]}function Ee(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",me(qt.black),me(qt.green),me(qt.blue),me(qt.red))),nt("ContextMenuButton",nt(de.s_,"Horizontal",me(qt.white),me(qt.magenta),me(qt.purple),me(qt.orange)))]}function Te(Je,ft){return ft||(ft="thickness"),nt(de.bn,"LineH",{width:16,height:16,strokeWidth:Je,margin:1,background:"transparent",mouseEnter:($t,Pt)=>Pt.background="dodgerblue",mouseLeave:($t,Pt)=>Pt.background="transparent",click:Bn(ft,Je),contextClick:Bn(ft,Je)})}function Ve(Je,ft){return ft||(ft="dash"),nt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Je,margin:1,background:"transparent",mouseEnter:($t,Pt)=>Pt.background="dodgerblue",mouseLeave:($t,Pt)=>Pt.background="transparent",click:Bn(ft,Je),contextClick:Bn(ft,Je)})}function Qe(){return[nt("ContextMenuButton",nt(de.s_,"Horizontal",Te(1),Te(2),Te(3),Te(4))),nt("ContextMenuButton",nt(de.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function We(Je,ft){return ft||(ft="figure"),nt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Je,margin:1,background:"transparent",mouseEnter:($t,Pt)=>Pt.fill="dodgerblue",mouseLeave:($t,Pt)=>Pt.fill="lightgray",click:Bn(ft,Je),contextClick:Bn(ft,Je)})}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"))),Ce(),Ee(),Qe()),Se.current.groupTemplate=nt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Je,ft)=>{var $t=ft.addMembers(ft.diagram.selection,!0);$t||ft.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:qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),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})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=nt("ContextMenu",Ce(),Ee(),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",Je=>Je>=1?10:0),new de.KX("toShortLength","dir",Je=>Je>=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",Je=>Je===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",Je=>Je>=1),new de.KX("width","thickness",Je=>7+3*Je),new de.KX("height","thickness",Je=>7+3*Je),new de.KX("segmentOffset","thickness",Je=>new de.E9(-15,4+1.5*Je))),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",Je=>Je===2),new de.KX("width","thickness",Je=>7+3*Je),new de.KX("height","thickness",Je=>7+3*Je),new de.KX("segmentOffset","thickness",Je=>new de.E9(-15,4+1.5*Je))),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)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function De(Je){return nt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Je+4).toString()+" H3"})}function Ot(Je){var ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Je===0?ft="M0 0 M16 16 M0 8 L16 8":Je===2&&(ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),nt(de.bn,{geometryString:ft,margin:2,background:"transparent",mouseEnter:($t,Pt)=>Pt.background="dodgerblue",mouseLeave:($t,Pt)=>Pt.background="transparent",click:Bn("dir",Je),contextClick:Bn("dir",Je)})}function Gt(Je){var ft=($t,Pt)=>{$t.handled=!0,$t.diagram.model.commit(Kt=>{var Yt=Pt.part.adornedPart;Kt.set(Yt.data,Je?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Je?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return nt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:($t,Pt)=>Pt.background="dodgerblue",mouseLeave:($t,Pt)=>Pt.background="transparent",click:ft,contextClick:ft})}function we(Je,ft){var $t=0,Pt=de.z6.RightSide;Je.equals(de.z6.Top)?($t=270,Pt=de.z6.TopSide):Je.equals(de.z6.Left)?($t=180,Pt=de.z6.LeftSide):Je.equals(de.z6.Bottom)&&($t=90,Pt=de.z6.BottomSide),ft||($t-=180);var Kt=(Yt,Dt)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{var fn=Dt.part.adornedPart;Pn.set(fn.data,ft?"toSpot":"fromSpot",de.z6.stringify(Pt)),(ft?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return nt(de.bn,{alignment:Je,alignmentFocus:Je.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:$t,background:"transparent",mouseEnter:(Yt,Dt)=>Dt.background="dodgerblue",mouseLeave:(Yt,Dt)=>Dt.background="transparent",click:Kt,contextClick:Kt})}Se.current.linkTemplate.contextMenu=nt("ContextMenu",Ee(),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),we(de.z6.Top,!1),we(de.z6.Left,!1),we(de.z6.Right,!1),we(de.z6.Bottom,!1)),nt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Gt(!0),we(de.z6.Top,!0),we(de.z6.Left,!0),we(de.z6.Right,!0),we(de.z6.Bottom,!0)))));const rn=`{ "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 an=["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 pn(Je){return console.log("shapeName:",Je),an.indexOf(Je)>=0}var xn=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(Je=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Je.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Je){var ft;const $t=Je.subject.part;var Pt=(ft=document.activeElement)==null?void 0:ft.value;typeof Pt=="string"&&Pt.trim()===""&&Se.current.model.commit(function(Kt){Kt.set($t.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),xn.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 kn=()=>Re(this,null,function*(){var nt=Se.current.makeImage();const qt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:nt.src}});ve({src:qt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Ln()},500),Qt(kt+1),()=>{Se.current=null}),[]),pe.createElement("div",{ref:ln,className:Lt.current?`${Fe.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!kt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ye.Z,null,pe.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(At.Z,{onClick:()=>{var nt,qt,An=Se.current.selection.first();if(Lt.current=!Lt.current,document.activeElement&&An){let Zn=(qt=(nt=document.activeElement)==null?void 0:nt.value)==null?void 0:qt.trim();typeof Zn=="string"&&Se.current.model.commit(function(Bn){Bn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Qt(kt+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:Fe.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:Fe.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:kn,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 Tt=Et.ZP.Group,Rt={margin:"0 8px"};var yt=({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:Rt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Rt},"\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:Rt},"\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:Rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Tt,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")))},pt=re(78673),en=re(80727),tn=re.n(en),Jt=(0,ae.forwardRef)(({use3d:he,width:ve,height:Se,callback:rt,showSaveButton:xt},Lt)=>{const ln=(0,ae.useRef)(),kt=(0,ae.useRef)(),[Qt,Ln]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:ln,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)(()=>{kt.current=new(tn())(kn.current,!0),window.onload=function(){kt.current.inject("applet_container")}},[]);const nt=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return rt&&rt(qt),qt};return(0,ae.useEffect)(()=>{kn.current.appName=Qt?"3D":"graphing",kt.current.inject("applet_container")},[Qt]),(0,ae.useEffect)(()=>{Ln(he)},[he]),(0,ae.useImperativeHandle)(Lt,()=>({getImgData:nt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ae.createElement(Ye.Z,{align:"middle"},ae.createElement(At.Z,{flex:1},ae.createElement(pt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qt,onChange:qt=>Ln(qt)})),ae.createElement(At.Z,null,ae.createElement(Ne.ZP,{size:"large",onClick:nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=re(41588),Pe=re(1012),Be=re(8591);const je="link",dt="upload-image",St="add-flowchart",zt="draw-image",It="add-flowchart",wt="code-block",Nt="add-table",Vt="------------",Zt={default:Vt,left:`:${Vt}`,center:`:${Vt}:`,right:`${Vt}:`};var nn=re(58856),hn=(he,ve,Se)=>new Promise((rt,xt)=>{var Lt=Qt=>{try{kt(Se.next(Qt))}catch(Ln){xt(Ln)}},ln=Qt=>{try{kt(Se.throw(Qt))}catch(Ln){xt(Ln)}},kt=Qt=>Qt.done?rt(Qt.value):Promise.resolve(Qt.value).then(Lt,ln);kt((Se=Se.apply(he,ve)).next())});function vn(){}let Fn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",En="@\u2581@",Cn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,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 Nn(he){return/^\d+$/.test(he)?`${he}px`:he}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[je]:"\u6DFB\u52A0\u94FE\u63A5",[wt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dt]:"\u6DFB\u52A0\u56FE\u7247",[zt]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:he="",onChange:ve,width:Se="100%",height:rt=400,miniToolbar:xt=!1,isFocus:Lt=!1,watch:ln,insertTemp:kt,mode:Qt="markdown",id:Ln="markdown-editor-id",showResizeBar:kn=!1,noStorage:nt=!1,showNullButton:qt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:Bn=!1,onBlur:me,onCMBeforeChange:Ce,onFullScreen:Ee,className:Te="",disablePaste:Ve=!1,disabled:Qe=!1,disabledFill:We=!1,placeholder:De="",values:Ot="",extraUse:Gt})=>{const[we,rn]=(0,ae.useState)(null),[an,pn]=(0,ae.useState)(he),[xn,Je]=(0,ae.useState)(ln),[ft,$t]=(0,ae.useState)(Bn),[Pt,Kt]=(0,ae.useState)(""),[Yt,Dt]=(0,ae.useState)(0),[Pn,fn]=(0,ae.useState)(rt),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,Pe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>hn(void 0,null,function*(){var Ft;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Ft=ct==null?void 0:ct.attachments)!=null&&Ft.length&&(console.log("cm:",we,ta),ct.attachments.map(ht=>{ht.content_type.indexOf("image")>-1?we.replaceSelection(`![,](/api/attachments/${ht.id}?type=${ht.content_type})`):ht.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ht.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type}&disposition=inline" target="_blank">${ht.name}</a>`):we.replaceSelection(`[${ht.name}](${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type})`)}))});(0,ae.useEffect)(()=>{const Ft=window.scrollY||window.pageYOffset;pn(Ot),we==null||we.setValue(Ot),window.scrollTo(0,Ft)},[Ot]),(0,ae.useEffect)(()=>{Ee==null||Ee(ft)},[ft]),(0,ae.useEffect)(()=>{if(ta.current){let Ft=function(ht,bt){var un;if(Ve){bt.preventDefault();return}const zn=bt.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(bt.preventDefault(),Qt=="stex")return;try{let jn=Dn[1];((un=Dn[0])==null?void 0:un.kind)==="file"&&(jn=Dn[0]);const Hn=jn.getAsFile(),sa=Hn.name.split(".").pop();(0,Le.I)(Hn,Kn=>{var Wt,sn,bn;Kn.id?((Wt=Hn==null?void 0:Hn.type)==null?void 0:Wt.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((sn=Hn==null?void 0:Hn.type)==null?void 0:sn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((bn=Hn==null?void 0:Hn.type)==null?void 0:bn.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):cn.includes(sa)?ct.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):ct.replaceSelection(`[${Hn.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Be.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=Ze().fromTextArea(ta.current,{mode:Qt,lineNumbers:!xt,lineWrapping:!0,value:he,autoCloseTags:!An,autoCloseBrackets:!0});return ct.on("keyup",function(ht,bt){bt.keyCode===8&&(ht.getValue()==""?ct.setOption("placeholder",De):ct.setOption("placeholder",null))}),ct.on("keydown",function(ht,bt){if(bt.keyCode===8){var un=_t(ht);un&&bt.preventDefault()}}),Lt&&ct.focus(),ct.on("paste",Ft),ct.on("dragleave",function(ht,bt){ga.current.classList.remove("mouse-hover-md")}),Qe&&ct.on("beforeChange",function(ht,bt){(bt.origin==="paste"||bt.origin==="+input")&&bt.cancel()}),rn(ct),()=>{ct.off("paste",Ft)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(Ft){console.log(Ft,"---- to set md editor body height")}},[Pn,ga,ft]);(0,ae.useEffect)(()=>{function Ft(){let ct=new _e.Z(ht=>{for(let bt of ht)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(fa(),we.setSize("100%","100%"),we.refresh())});return ct.observe(ta.current.parentElement),ct}if(we){const ct=Ft();return()=>{var ht,bt;(ht=ta.current)!=null&&ht.parentElement&&ct.unobserve((bt=ta.current)==null?void 0:bt.parentElement)}}},[we,fa]),(0,ae.useEffect)(()=>{if(we){let Ft=[];for(const[ct,ht]of Object.entries(Wn)){let bt={[ct]:()=>{On(ht)}};Ft.push(bt),we.addKeyMap(bt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ct of Ft)we.removeKeyMap(ct)}}},[we]),(0,ae.useEffect)(()=>{Bn!==ft&&$t(Bn)},[Bn]),(0,nn.Z)(()=>{if(!nt&&Yt>0){let Ft=new Date().getTime(),ct=window.sessionStorage.getItem(Ln);Ft>=Yt+dn&&(!ct||ct!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ae.useEffect)(()=>{Je(ln)},[we,ln]),(0,ae.useEffect)(()=>{we&&Lt&&we.focus()},[we,Lt]),(0,ae.useEffect)(()=>{if(xn&&we){let Ft=function(ht){let bt=ht.target;if(aa.current){let un=bt.scrollTop/bt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const ct=we.getScrollerElement();return ct.addEventListener("scroll",Ft),()=>{ct.removeEventListener("scroll",Ft)}}},[we,xn]),(0,ae.useEffect)(()=>{if(we&&Ce){let Ft=function(ct,ht){Ce(ct,ht)};return we.on("beforeChange",Ft),()=>{we.off("beforeChange",Ft)}}},[we,Ce]),(0,ae.useEffect)(()=>{if(we&&me){let Ft=function(){me(we.getValue())};return we.on("blur",Ft),()=>{we.off("blur",Ft)}}},[we,me]);function _t(Ft,ct){var ht=Ft.getDoc(),bt=ht.getCursor(),un=ht.getLine(bt.line),zn=un.charAt(bt.ch-1),Rn=un.lastIndexOf("@\u2581@",bt.ch),Dn=un.lastIndexOf("@\u2581\u2581@",bt.ch),jn=Rn>Dn?Rn:Dn,Hn=Rn>Dn?3:4;if(yn.indexOf(zn)===-1)return null;if(console.log("change1:",ct,Ft,un,bt,jn,Rn,Dn,zn),jn>=0&&bt.ch-jn<5){var sa=jn+Hn;return ht.replaceRange("",{line:bt.line,ch:jn},{line:bt.line,ch:sa}),{line:bt.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(we){let Ft=function(ct,ht){const bt=ct.getValue();pn(bt),Dt(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(An?ve(bt,Gn(bt)):ve(bt))};return we.on("change",Ft),()=>{we.off("change",Ft)}}},[we,ve]),(0,ae.useEffect)(()=>{if(we)if(he==null)we.setValue(""),pn("");else{const Ft=window.scrollY||window.pageYOffset;he!==we.getValue()&&(we.setValue(he),pn(he),we.setCursor(Qe?1:we.lineCount(),0),window.scrollTo(0,Ft))}},[we,he]);const On=(0,ae.useCallback)(Ft=>{const ct=we.getCursor(),ht=we.getSelection();let bt=ht.split(`
`);switch(Ft){case"bold":return we.replaceSelection("**"+ht+"**"),ht===""&&we.setCursor(ct.line,ct.ch+2),we.focus();case"italic":return we.replaceSelection("*"+ht+"*"),ht===""&&we.setCursor(ct.line,ct.ch+1),we.focus();case"code":return we.replaceSelection("`"+ht+"`"),ht===""&&we.setCursor(ct.line,ct.ch+1),we.focus();case"inline-latex":return Kt("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+ht+"\n```"),we.setCursor(ct.line+1,ht.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
`),we.focus();case"list-ul":return ht===""?we.replaceSelection("- "+ht):we.replaceSelection(bt.map(un=>un===""?"":`- ${un}`).join(`
`)),we.focus();case"list-ol":return ht===""?we.replaceSelection("1. "+ht):we.replaceSelection(bt.map((un,zn)=>un===""?"":`${zn+1}. ${un}`).join(`
`)),we.focus();case"add-null-ch":return ht===""&&we.setCursor(ct.line,ct.ch),we.replaceSelection(on),we.focus();case"add-signal":return ht===""&&we.setCursor(ct.line,ct.ch),we.replaceSelection(En),we.focus();case"add-multiple":return ht===""&&we.setCursor(ct.line,ct.ch),we.replaceSelection(yn),we.focus();case"inster-template-1":return ht===""&&we.setCursor(ct.line,ct.ch),we.replaceSelection(Cn),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return Je(!xn),we.focus();case"trigger-full-screen":return $t(!ft),we.focus();case je:Kt(je);return;case wt:Kt(wt);return;case dt:Kt(dt);return;case zt:Kt(zt);return;case"maths-latex":Kt("maths-latex");return;case St:Kt(St);return;case Nt:Kt(Nt);return;default:throw new Error}},[we,xn,ft]),Mn=(0,ae.useCallback)((Ft,ct)=>{var ht,bt,un,zn,Rn,Dn;switch(Kt(""),Pt){case je:const{title:Wt,link:sn}=Ft;return we.replaceSelection(`[${Wt}](${sn})`),we.focus();case wt:const{language:bn,content:gn}=Ft;return we.replaceSelection(["```"+bn,gn,"```"].join(`
`)),we.focus();case"maths-latex":for(var jn=atob(Ft),Hn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)Hn[sa]=jn.charCodeAt(sa);var Kn=new Blob([Hn],{type:"image/png"});(0,Le.I)(Kn,ma=>{ma.id?we.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+Ft+"$$`");break;case dt:case zt:case It:const{src:Sn,alt:_n}=Ft,wn=ct,ha=(un=(bt=(ht=wn==null?void 0:wn.name)==null?void 0:ht.split("."))==null?void 0:bt.pop)==null?void 0:un.call(bt);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?we.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${Sn}" alt="${_n||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${Sn}" alt="${_n||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((Dn=wn==null?void 0:wn.type)==null?void 0:Dn.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${Sn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):cn.includes(ha)?we.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):we.replaceSelection(`[${wn.name}](${Sn})`),we.focus();case Nt:const{row:ua,col:wa,align:Ca}=Ft;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&xa.push(Zt[Ca]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
`}return we.replaceSelection(Fa+`
`),we.focus();default:throw new Error}},[we,Pt]),Un=(0,ae.useMemo)(()=>{switch(Pt){case je:return ae.createElement(qe,{callback:Mn,onCancel:Xn});case wt:return ae.createElement(Ut.Z,{callback:Mn,onCancel:Xn});case dt:return ae.createElement(Le.Z,{callback:Mn,onCancel:Xn});case St:return ae.createElement(mt,{callback:Mn,onCancel:Xn});case Nt:return ae.createElement(yt,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(Jt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(Ht.Z,{showSaveButton:!0,callback:Mn});default:return null}},[Pt]);function Xn(){Kt("")}(0,ae.useEffect)(()=>{if(ia.current){let Ft=function(Rn){un=!0,zn=Rn.pageY},ct=function(){un=!1},ht=function(Rn){if(un){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=rt+Dn+"px";fn(jn)}},bt=ia.current,un=!1,zn=0;return bt.addEventListener("mousedown",Ft),document.addEventListener("mousemove",ht),document.addEventListener("mouseup",ct),()=>{bt.removeEventListener("mousedown",Ft),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",ct)}}},[we,ia]),(0,ae.useEffect)(()=>{fn(rt)},[rt]);const ra=Nn(Se),va=Nn(Pn),pa={width:ra,height:va},Tn=(0,ae.useMemo)(()=>{if(Yt){let Ft=new Date(Yt),ct=Ft.getHours(),ht=Ft.getMinutes(),bt=Ft.getSeconds();return ct=ct<10?"0"+ct:ct,ht=ht<10?"0"+ht:ht,bt=bt<10?"0"+bt:bt,`${ct}:${ht}:${bt}`}return 0},[Yt]),Gn=Ft=>{const ct=[];if(An){let ht=-1;Ft=Ft.replace(/(@▁▁@|@▁@)/g,function(bt,un,zn){ct.push({multiLine:bt!==En})})}return ct};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Dt(0)}function ya(){Qn(!1),Dt(0),we.setValue(window.sessionStorage.getItem(Ln))}(0,ae.useEffect)(()=>{na[Pt]&&Pt!==zt&&Pt!==St&&setTimeout(()=>{const Ft=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-Ft.offsetWidth/2,ht=window.innerHeight/2-Ft.offsetHeight/2;da(ct),$n(ht)},0)},[Pt]);const La=Ft=>{Ft.preventDefault();const ct=Ft.clientX-Pa,ht=Ft.clientY-Vn;document.body.onmousemove=bt=>{let un=bt.clientX-ct,zn=bt.clientY-ht;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(bt.clientX,bt.clientY,ct,ht)&&(da(un),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Ft,ct,ht,bt)=>{const un=document.body.clientHeight,zn=document.body.clientWidth;return Ft<20&&ht>Ft||Ft>zn-20&&ht<Ft||ct<20&&bt>ct||ct>un-20&&bt<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:ga},ae.createElement("div",{className:`markdown-editor-container ${Te} ${xn?"on-preview":""} ${xt?"mini":""} ${ft?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:kt,watch:xn,fullScreen:ft,showNullButton:qt,showNullProgramButton:An,onActionCallback:On,hidetoolBar:Zn,extraUse:Gt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:De})),xn?ae.createElement("div",{ref:aa,className:"preview-container"},Qt==="stex"&&ae.createElement(Me,{value:an}),Qt!=="stex"&&ae.createElement(ke.Z,{disabledFill:We,showProgramFill:An,value:an})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,Pt===zt&&ae.createElement(gt,{callback:Mn,onCancel:Xn}),Pt===St&&ae.createElement(mt,{callback:Mn,onCancel:Xn}),ae.createElement(se.Z,null,na[Pt]&&Pt!==zt&&Pt!==St?ae.createElement(Oe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[Pt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:Pt===St?"1200px":null,height:Pt===St?"80vh":null,className:"markdown-popup-form"},Un):null))}},28451:function($e,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),Ke=re(77903),Ge=re(59301),Ie=re(24065),ke=re(59301),Me=Object.defineProperty,be=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,xe,Ne)=>xe in le?Me(le,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):le[xe]=Ne,E=(le,xe)=>{for(var Ne in xe||(xe={}))y.call(xe,Ne)&&b(le,Ne,xe[Ne]);if(a)for(var Ne of a(xe))x.call(xe,Ne)&&b(le,Ne,xe[Ne]);return le},z=(le,xe)=>be(le,ne(xe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:xe})=>{const[Ne]=ee();let ut=(0,Ge.useRef)();function Bt(Xe){ut.current.width=Ne.getFieldValue("width"),ut.current.align=Ne.getFieldValue("align"),le(Xe,ut.current)}function jt(Xe,it){if(Xe.status===-1){fe.ZP.error(Xe.message);return}Ne.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:it.type})}function ye(Xe){let it=Xe.target.files[0];ut.current=it,se(it,jt)}return ke.createElement(ae.default,z(E({form:Ne},oe),{className:"upload-image-panel",onFinish:Bt,style:{width:470,overflow:"hidden"}}),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(Ze.default,{style:te})),ke.createElement(ie,{onFileChange:ye}))),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(Ze.default,{style:{width:264}})),ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(_e.Z,null,ke.createElement(ae.default.Item,{name:"width",style:{margin:0}},ke.createElement(ce.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.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"}]})),ke.createElement("aside",null,ke.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(ue.ZP,{type:"default",onClick:xe},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:le}))}function se(le,xe){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){xe(JSON.parse(Bt.target.responseText),le)},!1),ut.addEventListener("error",function(Bt){console.error(Bt)},!1),ut.open("POST",`${Ke.KI}/api/attachments.json`),ut.send(Ne)}},79346:function($e,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)}}},58856:function($e,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])}},89859:function($e,lt,re){"use strict";re.r(lt),re.d(lt,{default:function(){return ge}});var ae=re(59301),fe=re(12290),Ze=re(89070),_e=re(78241),ce=re(8591),He=re(66104),ue=re(95237),Ke=re(43604),Ge=re(57809),Ie=re(92832),ke=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(89887),a=re(57490),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((xe,Ne)=>{var ut=ye=>{try{jt(le.next(ye))}catch(Xe){Ne(Xe)}},Bt=ye=>{try{jt(le.throw(ye))}catch(Xe){Ne(Xe)}},jt=ye=>ye.done?xe(ye.value):Promise.resolve(ye.value).then(ut,Bt);jt((le=le.apply(ie,se)).next())});const oe=({graduation:ie,globalSetting:se,loading:le,user:xe,dispatch:Ne})=>{var ut;const Bt=(0,Ze.useParams)(),jt=(0,Ze.useLocation)(),{userInfo:ye}=xe,[Xe]=_e.default.useForm(),{addTopicData:it}=ie,et=()=>te(void 0,null,function*(){var st;const tt=Xe.getFieldsValue(),at=ee({},tt);at!=null&&at.attachment_ids&&(at.attachment_ids=(st=at.attachment_ids)==null?void 0:st.map(Ut=>Ut.id||Ut.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(Ke.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Ke.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:Xe,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(Ge.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},ae.createElement(Ge.default.Option,{value:1},"\u666E\u901A"),ae.createElement(Ge.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(ke.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(Ke.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:()=>{Xe.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:xe})=>({graduation:ie,globalSetting:xe,user:le,loading:se.effects}))(oe)},23538:function($e,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(99064),fe=(Ke,Ge,Ie)=>new Promise((ke,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?ke(y.value):Promise.resolve(y.value).then(be,ne);a((Ie=Ie.apply(Ke,Ge)).next())});function Ze(Ke){return(0,ae.U2)(`libraries/${Ke}.json`)}function _e(Ke){return(0,ae.U2)("library_tags.json",Ke)}function ce(Ke){return fe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ke}.json`)).status===0})}function He(Ke){return(0,ae.v_)("libraries.json",Ke)}function ue(Ke,Ge){return(0,ae.gz)(`libraries/${Ke}.json`,Ge)}},56762:function($e,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($e,lt,re){"use strict";re.d(lt,{Z:function(){return jt}});var ae=re(92310),fe=re.n(ae),Ze=re(11592),_e=re(26112),ce=re(59301),He=re(92343),ue=re(36355),Ke=re(84105),Ge=re(91857);const Ie=ye=>{let{children:Xe}=ye;const{getPrefixCls:it}=ce.useContext(ue.E_),et=it("breadcrumb");return ce.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Xe===""?Xe:Xe||"/")};Ie.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=Ie,Me=function(ye,Xe){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Xe.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++)Xe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};function be(ye,Xe){if(ye.title===void 0||ye.title===null)return null;const it=Object.keys(Xe).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${it})`,"g"),(et,st)=>Xe[st]||et)}function ne(ye,Xe,it,et){if(it==null)return null;const{className:st,onClick:tt}=Xe,at=Me(Xe,["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,Xe){return(et,st,tt,at,qe)=>{if(Xe)return Xe(et,st,tt,at);const Ut=be(et,st);return ne(ye,et,Ut,qe)}}var y=function(ye,Xe){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Xe.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++)Xe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};const x=ye=>{const{prefixCls:Xe,separator:it="/",children:et,menu:st,overlay:tt,dropdownProps:at,href:qe}=ye,Le=(Oe=>{if(st||tt){const Ye=Object.assign({},at);if(st){const vt=st||{},{items:Ue}=vt,gt=y(vt,["items"]);Ye.menu=Object.assign(Object.assign({},gt),{items:Ue==null?void 0:Ue.map((de,ot)=>{var{key:Mt,title:Xt,label:At,path:ze}=de,Fe=y(de,["key","title","label","path"]);let pe=At!=null?At:Xt;return ze&&(pe=ce.createElement("a",{href:`${qe}${ze}`},pe)),Object.assign(Object.assign({},Fe),{key:Mt!=null?Mt:ot,label:pe})})})}else tt&&(Ye.overlay=tt);return ce.createElement(Ge.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${Xe}-overlay-link`},Oe,ce.createElement(Ke.Z,null)))}return Oe})(et);return Le!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Le),it&&ce.createElement(ke,null,it)):null},b=ye=>{const{prefixCls:Xe,children:it,href:et}=ye,st=y(ye,["prefixCls","children","href"]),{getPrefixCls:tt}=ce.useContext(ue.E_),at=tt("breadcrumb",Xe);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:Xe,iconCls:it}=ye;return{[Xe]: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},[`${Xe}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Xe}-link`]:{[`
> ${it} + span,
> ${it} + a
`]:{marginInlineStart:ye.marginXXS}},[`${Xe}-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 Xe=(0,te.TS)(ye,{});return[oe(Xe)]},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,Xe){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Xe.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++)Xe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};function se(ye){const{breadcrumbName:Xe,children:it}=ye,et=ie(ye,["breadcrumbName","children"]),st=Object.assign({title:Xe},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,Xe){return(0,ce.useMemo)(()=>ye||(Xe?Xe.map(se):null),[ye,Xe])}var xe=function(ye,Xe){var it={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Xe.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++)Xe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[st])&&(it[et[st]]=ye[et[st]]);return it};const Ne=(ye,Xe)=>{if(Xe===void 0)return Xe;let it=(Xe||"").replace(/^\//,"");return Object.keys(ye).forEach(et=>{it=it.replace(`:${et}`,ye[et])}),it},ut=ye=>{const{prefixCls:Xe,separator:it="/",style:et,className:st,rootClassName:tt,routes:at,items:qe,children:Ut,itemRender:Le,params:Oe={}}=ye,Ye=xe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:vt,direction:Ue,breadcrumb:gt}=ce.useContext(ue.E_);let de;const ot=vt("breadcrumb",Xe),[Mt,Xt]=ge(ot),At=le(qe,at),ze=a(ot,Le);if(At&&At.length>0){const Re=[],Ae=qe||at;de=At.map((mt,Et)=>{const{path:Ct,key:Tt,type:Rt,menu:yt,overlay:pt,onClick:en,className:tn,separator:mn,dropdownProps:Jt}=mt,Ht=Ne(Oe,Ct);Ht!==void 0&&Re.push(Ht);const Pe=Tt!=null?Tt:Et;if(Rt==="separator")return ce.createElement(ke,{key:Pe},mn);const Be={},je=Et===At.length-1;yt?Be.menu=yt:pt&&(Be.overlay=pt);let{href:dt}=mt;return Re.length&&Ht!==void 0&&(dt=`#/${Re.join("/")}`),ce.createElement(x,Object.assign({key:Pe},Be,(0,_e.Z)(mt,{data:!0,aria:!0}),{className:tn,dropdownProps:Jt,href:dt,separator:je?"":it,onClick:en,prefixCls:ot}),ze(mt,Oe,Ae,Re,dt))})}else if(Ut){const Re=(0,Ze.Z)(Ut).length;de=(0,Ze.Z)(Ut).map((Ae,mt)=>{if(!Ae)return Ae;const Et=mt===Re-1;return(0,He.Tm)(Ae,{separator:Et?"":it,key:mt})})}const Fe=fe()(ot,gt==null?void 0:gt.className,{[`${ot}-rtl`]:Ue==="rtl"},st,tt,Xt),pe=Object.assign(Object.assign({},gt==null?void 0:gt.style),et);return Mt(ce.createElement("nav",Object.assign({className:Fe,style:pe},Ye),ce.createElement("ol",null,de)))};ut.Item=E,ut.Separator=ke;var Bt=ut,jt=Bt},28103:function($e,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 Ke=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 Ge=(0,He.Z)("Divider",be=>{const ne=(0,ue.TS)(be,{dividerHorizontalWithTextGutterMargin:be.margin,dividerHorizontalGutterMargin:be.marginLG,sizePaddingEdgeHorizontal:0});return[Ke(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"]),xe=ne("divider",x),[Ne,ut]=Ge(xe),Bt=E.length>0?`-${E}`:E,jt=!!oe,ye=E==="left"&&z!=null,Xe=E==="right"&&z!=null,it=fe()(xe,y==null?void 0:y.className,ut,`${xe}-${b}`,{[`${xe}-with-text`]:jt,[`${xe}-with-text${Bt}`]:jt,[`${xe}-dashed`]:!!ge,[`${xe}-plain`]:!!ie,[`${xe}-rtl`]:a==="rtl",[`${xe}-no-default-orientation-margin-left`]:ye,[`${xe}-no-default-orientation-margin-right`]:Xe},ee,te),et=Ze.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),st=Object.assign(Object.assign({},ye&&{marginLeft:et}),Xe&&{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:`${xe}-inner-text`,style:st},oe)))}},91857:function($e,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),Ke=re(2738),Ge=re(79676),Ie=re(53487),ke=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:xe,dropdownRender:Ne,getPopupContainer:ut,overlayClassName:Bt,rootClassName:jt,open:ye,onOpenChange:Xe,visible:it,onVisibleChange:et,mouseEnterDelay:st=.15,mouseLeaveDelay:tt=.1,autoAdjustOverflow:at=!0,placement:qe="",overlay:Ut,transitionName:Le}=te,{getPopupContainer:Oe,getPrefixCls:Ye,direction:vt}=ae.useContext(Me.E_),Ue=ae.useMemo(()=>{const yt=Ye();return Le!==void 0?Le:qe.includes("top")?`${yt}-slide-down`:`${yt}-slide-up`},[Ye,qe,Le]),gt=ae.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:vt==="rtl"?"bottomRight":"bottomLeft",[qe,vt]),de=Ye("dropdown",ie),[ot,Mt]=(0,y.Z)(de),[,Xt]=(0,a.Z)(),At=ae.Children.only(se),ze=(0,ke.Tm)(At,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:vt==="rtl"},At.props.className),disabled:xe}),Fe=xe?[]:le;let pe;Fe&&Fe.includes("contextMenu")&&(pe=!0);const[Re,Ae]=(0,ue.Z)(!1,{value:ye!=null?ye:it}),mt=(0,He.useEvent)(yt=>{Xe==null||Xe(yt),et==null||et(yt),Ae(yt)}),Et=_e()(Bt,jt,Mt,{[`${de}-rtl`]:vt==="rtl"}),Ct=(0,Ge.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:at,offset:Xt.marginXXS,arrowWidth:ge?Xt.sizePopupArrow:0,borderRadius:Xt.borderRadius}),Tt=ae.useCallback(()=>{Ae(!1)},[]),Rt=()=>{let yt;return oe!=null&&oe.items?yt=ae.createElement(be.default,Object.assign({},oe)):typeof Ut=="function"?yt=Ut():yt=Ut,Ne&&(yt=Ne(yt)),yt=ae.Children.only(typeof yt=="string"?ae.createElement("span",null,yt):yt),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:Tt,validator:pt=>{let{mode:en}=pt}},yt)};return ot(ae.createElement(ce.Z,Object.assign({alignPoint:pe},(0,Ke.Z)(te,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:tt,visible:Re,builtinPlacements:Ct,arrow:!!ge,overlayClassName:Et,prefixCls:de,getPopupContainer:ut||Oe,transitionName:Ue,trigger:Fe,overlay:Rt,placement:gt,onVisibleChange:mt}),ze))};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($e,lt,re){"use strict";re.d(lt,{Z:function(){return ke}});var ae=re(17313),fe=re(13826),Ze=re(92899),_e=re(29878),ce=re(19447),He=re(83116),ue=re(37613),Ge=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 ke=(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),Ge(ie)]},Me=>({zIndexPopup:Me.zIndexPopupBase+50}))},45818:function($e,lt,re){"use strict";re.d(lt,{D:function(){return z},Z:function(){return oe}});var ae=re(92413),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),Ke=ue,Ge=re(33853),Ie=re(38819),ke=re(92310),Me=re.n(ke),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 xe=0,le=Object.getOwnPropertySymbols(ge);xe<le.length;xe++)ie.indexOf(le[xe])<0&&Object.prototype.propertyIsEnumerable.call(ge,le[xe])&&(se[le[xe]]=ge[le[xe]]);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:xe,children:Ne,defaultCollapsed:ut=!1,theme:Bt="dark",style:jt={},collapsible:ye=!1,reverseArrow:Xe=!1,width:it=200,collapsedWidth:et=80,zeroWidthTriggerStyle:st,breakpoint:tt,onCollapse:at,onBreakpoint:qe}=ge,Ut=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Le}=(0,fe.useContext)(x.Gs),[Oe,Ye]=(0,fe.useState)("collapsed"in ge?ge.collapsed:ut),[vt,Ue]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ge&&Ye(ge.collapsed)},[ge.collapsed]);const gt=(ze,Fe)=>{"collapsed"in ge||Ye(ze),at==null||at(ze,Fe)},de=(0,fe.useRef)();de.current=ze=>{Ue(ze.matches),qe==null||qe(ze.matches),Oe!==ze.matches&&gt(ze.matches,"responsive")},(0,fe.useEffect)(()=>{function ze(pe){return de.current(pe)}let Fe;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&tt&&tt in E){Fe=pe(`(max-width: ${E[tt]})`);try{Fe.addEventListener("change",ze)}catch(Re){Fe.addListener(ze)}ze(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",ze)}catch(pe){Fe==null||Fe.removeListener(ze)}}},[tt]),(0,fe.useEffect)(()=>{const ze=ee("ant-sider-");return Le.addSider(ze),()=>Le.removeSider(ze)},[]);const ot=()=>{gt(!Oe,"clickTrigger")},{getPrefixCls:Mt}=(0,fe.useContext)(y.E_),Xt=()=>{const ze=Mt("layout-sider",se),Fe=(0,be.Z)(Ut,["collapsed"]),pe=Oe?et:it,Re=a(pe)?`${pe}px`:String(pe),Ae=parseFloat(String(et||0))===0?fe.createElement("span",{onClick:ot,className:Me()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${Xe?"right":"left"}`),style:st},xe||fe.createElement(Ke,null)):null,Ct={expanded:Xe?fe.createElement(Ie.Z,null):fe.createElement(Ge.Z,null),collapsed:Xe?fe.createElement(Ge.Z,null):fe.createElement(Ie.Z,null)}[Oe?"collapsed":"expanded"],Tt=xe!==null?Ae||fe.createElement("div",{className:`${ze}-trigger`,onClick:ot,style:{width:Re}},xe||Ct):null,Rt=Object.assign(Object.assign({},jt),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),yt=Me()(ze,`${ze}-${Bt}`,{[`${ze}-collapsed`]:!!Oe,[`${ze}-has-trigger`]:ye&&xe!==null&&!Ae,[`${ze}-below`]:!!vt,[`${ze}-zero-width`]:parseFloat(Re)===0},le);return fe.createElement("aside",Object.assign({className:yt},Fe,{style:Rt,ref:ie}),fe.createElement("div",{className:`${ze}-children`},Ne),ye||vt&&Ae?Tt:null)},At=fe.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return fe.createElement(z.Provider,{value:At},Xt())})},84966:function($e,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(26407),fe=re(92310),Ze=re.n(fe),_e=re(2738),ce=re(59301),He=re(36355),ue=re(83116),Ge=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:xe,headerHeight:Ne,headerPadding:ut,headerColor:Bt,footerPadding:jt,triggerHeight:ye,zeroTriggerHeight:Xe,zeroTriggerWidth:it,motionDurationMid:et,motionDurationSlow:st,fontSize:tt,borderRadius:at,bodyBg:qe,headerBg:Ut,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:xe,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-it,zIndex:1,width:it,height:Xe,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}}}}},Ge(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ne,padding:ut,color:Bt,lineHeight:`${Ne}px`,background:Ut,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:jt,color:ie,fontSize:tt,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,ue.Z)("Layout",te=>[Ie(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:xe,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+xe*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((xe,Ne)=>ce.createElement(se,Object.assign({ref:Ne,suffixCls:oe,tagName:ge},xe)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,xe=Me(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=ce.useContext(He.E_),ut=Ne("layout",ge),[Bt,jt]=ke(ut),ye=ie?`${ut}-${ie}`:ut;return Bt(ce.createElement(le,Object.assign({className:Ze()(ge||ye,se,jt),ref:oe},xe)))}),y=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(He.E_),[ie,se]=ce.useState([]),{prefixCls:le,className:xe,rootClassName:Ne,children:ut,hasSider:Bt,tagName:jt,style:ye}=te,Xe=Me(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,_e.Z)(Xe,["suffixCls"]),{getPrefixCls:et,layout:st}=ce.useContext(He.E_),tt=et("layout",le),[at,qe]=ke(tt),Ut=Ze()(tt,{[`${tt}-has-sider`]:typeof Bt=="boolean"?Bt:ie.length>0,[`${tt}-rtl`]:ge==="rtl"},st==null?void 0:st.className,xe,Ne,qe),Le=ce.useMemo(()=>({siderHook:{addSider:Oe=>{se(Ye=>[].concat((0,ae.Z)(Ye),[Oe]))},removeSider:Oe=>{se(Ye=>Ye.filter(vt=>vt!==Oe))}}}),[]);return at(ce.createElement(be.Provider,{value:Le},ce.createElement(jt,Object.assign({ref:oe,className:Ut,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($e,lt,re){"use strict";re.d(lt,{J:function(){return He}});var ae=re(59301),fe=re(33234),Ze=re(70425),_e=function(ue,Ke){var Ge={};for(var Ie in ue)Object.prototype.hasOwnProperty.call(ue,Ie)&&Ke.indexOf(Ie)<0&&(Ge[Ie]=ue[Ie]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ie=Object.getOwnPropertySymbols(ue);ke<Ie.length;ke++)Ke.indexOf(Ie[ke])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ie[ke])&&(Ge[Ie[ke]]=ue[Ie[ke]]);return Ge};const ce=ae.createContext(null),He=ae.forwardRef((ue,Ke)=>{const{children:Ge}=ue,Ie=_e(ue,["children"]),ke=ae.useContext(ce),Me=ae.useMemo(()=>Object.assign(Object.assign({},ke),Ie),[ke,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(ce.Provider,{value:Me},ae.createElement(fe.BR,null,(0,Ze.supportNodeRef)(Ge)?ae.cloneElement(Ge,{ref:Ke}):Ge))});lt.Z=ce},20834:function($e,lt,re){"use strict";re.d(lt,{default:function(){return At}});var ae=re(15285),fe=re(59301),Ze=re(45818),_e=re(92310),ce=re.n(_e),He=re(36355),ue=function(ze,Fe){var pe={};for(var Re in ze)Object.prototype.hasOwnProperty.call(ze,Re)&&Fe.indexOf(Re)<0&&(pe[Re]=ze[Re]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(ze);Ae<Re.length;Ae++)Fe.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ze,Re[Ae])&&(pe[Re[Ae]]=ze[Re[Ae]]);return pe},Ge=ze=>{const{prefixCls:Fe,className:pe,dashed:Re}=ze,Ae=ue(ze,["prefixCls","className","dashed"]),{getPrefixCls:mt}=fe.useContext(He.E_),Et=mt("menu",Fe),Ct=ce()({[`${Et}-item-divider-dashed`]:!!Re},pe);return fe.createElement(ae.iz,Object.assign({className:Ct},Ae))},Ie=re(11592),ke=re(2738),Me=re(6848),be=re(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ze=>{var Fe;const{className:pe,children:Re,icon:Ae,title:mt,danger:Et}=ze,{prefixCls:Ct,firstLevel:Tt,direction:Rt,disableMenuItemTitleTooltip:yt,inlineCollapsed:pt}=fe.useContext(a),en=Be=>{const je=fe.createElement("span",{className:`${Ct}-title-content`},Re);return(!Ae||(0,be.l$)(Re)&&Re.type==="span")&&Re&&Be&&Tt&&typeof Re=="string"?fe.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Re.charAt(0)):je},{siderCollapsed:tn}=fe.useContext(Ze.D);let mn=mt;typeof mt=="undefined"?mn=Tt?Re:"":mt===!1&&(mn="");const Jt={title:mn};!tn&&!pt&&(Jt.title=null,Jt.open=!1);const Ht=(0,Ie.Z)(Re).length;let Pe=fe.createElement(ae.ck,Object.assign({},(0,ke.Z)(ze,["title","icon","danger"]),{className:ce()({[`${Ct}-item-danger`]:Et,[`${Ct}-item-only-child`]:(Ae?Ht+1:Ht)===1},pe),title:typeof mt=="string"?mt:void 0}),(0,be.Tm)(Ae,{className:ce()((0,be.l$)(Ae)?(Fe=Ae.props)===null||Fe===void 0?void 0:Fe.className:"",`${Ct}-item-icon`)}),en(pt));return yt||(Pe=fe.createElement(Me.Z,Object.assign({},Jt,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${Ct}-inline-collapsed-tooltip`}),Pe)),Pe},E=ze=>{var Fe;const{popupClassName:pe,icon:Re,title:Ae,theme:mt}=ze,Et=fe.useContext(a),{prefixCls:Ct,inlineCollapsed:Tt,theme:Rt}=Et,yt=(0,ae.Xl)();let pt;if(!Re)pt=Tt&&!yt.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 tn=(0,be.l$)(Ae)&&Ae.type==="span";pt=fe.createElement(fe.Fragment,null,(0,be.Tm)(Re,{className:ce()((0,be.l$)(Re)?(Fe=Re.props)===null||Fe===void 0?void 0:Fe.className:"",`${Ct}-item-icon`)}),tn?Ae:fe.createElement("span",{className:`${Ct}-title-content`},Ae))}const en=fe.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]);return fe.createElement(a.Provider,{value:en},fe.createElement(ae.Wd,Object.assign({},(0,ke.Z)(ze,["icon"]),{title:pt,popupClassName:ce()(Ct,pe,`${Ct}-${mt||Rt}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ge=function(ze,Fe){var pe={};for(var Re in ze)Object.prototype.hasOwnProperty.call(ze,Re)&&Fe.indexOf(Re)<0&&(pe[Re]=ze[Re]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(ze);Ae<Re.length;Ae++)Fe.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ze,Re[Ae])&&(pe[Re[Ae]]=ze[Re[Ae]]);return pe};function ie(ze){return(ze||[]).map((Fe,pe)=>{if(Fe&&typeof Fe=="object"){const Re=Fe,{label:Ae,children:mt,key:Et,type:Ct}=Re,Tt=ge(Re,["label","children","key","type"]),Rt=Et!=null?Et:`tmp-${pe}`;return mt||Ct==="group"?Ct==="group"?fe.createElement(ae.BW,Object.assign({key:Rt},Tt,{title:Ae}),ie(mt)):fe.createElement(E,Object.assign({key:Rt},Tt,{title:Ae}),ie(mt)):Ct==="divider"?fe.createElement(Ge,Object.assign({key:Rt},Tt)):fe.createElement(x,Object.assign({key:Rt},Tt),Ae)}return null}).filter(Fe=>Fe)}function se(ze){return fe.useMemo(()=>ze&&ie(ze),[ze])}var le=re(64993),xe=re(17313),Ne=re(8378),ut=re(13826),Bt=re(29878),jt=re(83116),ye=re(37613),it=ze=>{const{componentCls:Fe,motionDurationSlow:pe,horizontalLineHeight:Re,colorSplit:Ae,lineWidth:mt,lineType:Et,itemPaddingInline:Ct}=ze;return{[`${Fe}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${mt}px ${Et} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Fe}-item, ${Fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ct},[`> ${Fe}-item:hover,
> ${Fe}-item-active,
> ${Fe}-submenu ${Fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Fe}-item, ${Fe}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${Fe}-submenu-arrow`]:{display:"none"}}}},st=ze=>{let{componentCls:Fe,menuArrowOffset:pe}=ze;return{[`${Fe}-rtl`]:{direction:"rtl"},[`${Fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Fe}-rtl${Fe}-vertical,
${Fe}-submenu-rtl ${Fe}-vertical`]:{[`${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const tt=ze=>Object.assign({},(0,xe.oN)(ze));var qe=(ze,Fe)=>{const{componentCls:pe,itemColor:Re,itemSelectedColor:Ae,groupTitleColor:mt,itemBg:Et,subMenuItemBg:Ct,itemSelectedBg:Tt,activeBarHeight:Rt,activeBarWidth:yt,activeBarBorderWidth:pt,motionDurationSlow:en,motionEaseInOut:tn,motionEaseOut:mn,itemPaddingInline:Jt,motionDurationMid:Ht,itemHoverColor:Pe,lineType:Be,colorSplit:je,itemDisabledColor:dt,dangerItemColor:St,dangerItemHoverColor:zt,dangerItemSelectedColor:It,dangerItemActiveBg:wt,dangerItemSelectedBg:Nt,itemHoverBg:Vt,itemActiveBg:Zt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:on}=ze;return{[`${pe}-${Fe}, ${pe}-${Fe} > ${pe}`]:{color:Re,background:Et,[`&${pe}-root:focus-visible`]:Object.assign({},tt(ze)),[`${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:Vt},"&:active":{backgroundColor:Zt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Vt},"&:active":{backgroundColor:Zt}}},[`${pe}-item-danger`]:{color:St,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:zt}},[`&${pe}-item:active`]:{background:wt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Ae,[`&${pe}-item-danger`]:{color:It},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Tt,[`&${pe}-item-danger`]:{backgroundColor:Nt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},tt(ze))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:nn},[`&${pe}-popup > ${pe}`]:{backgroundColor:on},[`&${pe}-horizontal`]:Object.assign(Object.assign({},Fe==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:pt,marginTop:-pt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:Jt,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${en} ${tn}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:Rt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:Rt,borderBottomColor:hn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${pt}px ${Be} ${je}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Ct},[`${pe}-item, ${pe}-submenu-title`]:pt&&yt?{width:`calc(100% + ${pt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${yt}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${mn}`,`opacity ${Ht} ${mn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:It}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${tn}`,`opacity ${Ht} ${tn}`].join(",")}}}}}};const Ut=ze=>{const{componentCls:Fe,itemHeight:pe,itemMarginInline:Re,padding:Ae,menuArrowSize:mt,marginXS:Et,itemMarginBlock:Ct}=ze,Tt=Ae+mt+Et;return{[`${Fe}-item`]:{position:"relative",overflow:"hidden"},[`${Fe}-item, ${Fe}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:Ct,width:`calc(100% - ${Re*2}px)`},[`> ${Fe}-item,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${Fe}-item-group-list ${Fe}-submenu-title,
${Fe}-submenu-title`]:{paddingInlineEnd:Tt}}};var Oe=ze=>{const{componentCls:Fe,iconCls:pe,itemHeight:Re,colorTextLightSolid:Ae,dropdownWidth:mt,controlHeightLG:Et,motionDurationMid:Ct,motionEaseOut:Tt,paddingXL:Rt,itemMarginInline:yt,fontSizeLG:pt,motionDurationSlow:en,paddingXS:tn,boxShadowSecondary:mn,collapsedWidth:Jt,collapsedIconSize:Ht}=ze,Pe={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Fe]:{"&-inline, &-vertical":Object.assign({[`&${Fe}-root`]:{boxShadow:"none"}},Ut(ze))},[`${Fe}-submenu-popup`]:{[`${Fe}-vertical`]:Object.assign(Object.assign({},Ut(ze)),{boxShadow:mn})}},{[`${Fe}-submenu-popup ${Fe}-vertical${Fe}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${Et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Fe}-inline`]:{width:"100%",[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${en}`,`background ${en}`,`padding ${Ct} ${Tt}`].join(","),[`> ${Fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Fe}-sub${Fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Fe}-submenu > ${Fe}-submenu-title`]:Pe,[`& ${Fe}-item-group-title`]:{paddingInlineStart:Rt}},[`${Fe}-item`]:Pe}},{[`${Fe}-inline-collapsed`]:{width:Jt,[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu ${Fe}-submenu-title`]:{[`> ${Fe}-inline-collapsed-noicon`]:{fontSize:pt,textAlign:"center"}}},[`> ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-submenu > ${Fe}-submenu-title,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${pt/2}px - ${yt}px)`,textOverflow:"clip",[`
${Fe}-submenu-arrow,
${Fe}-submenu-expand-icon
`]:{opacity:0},[`${Fe}-item-icon, ${pe}`]:{margin:0,fontSize:Ht,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Fe}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Fe}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${Fe}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:tn})}}]};const Ye=ze=>{const{componentCls:Fe,motionDurationSlow:pe,motionDurationMid:Re,motionEaseInOut:Ae,motionEaseOut:mt,iconCls:Et,iconSize:Ct,iconMarginInlineEnd:Tt}=ze;return{[`${Fe}-item, ${Fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Ae}`].join(","),[`${Fe}-item-icon, ${Et}`]:{minWidth:Ct,fontSize:Ct,transition:[`font-size ${Re} ${mt}`,`margin ${pe} ${Ae}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${pe} ${Ae}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${Fe}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${Fe}-item-only-child`]:{[`> ${Et}, > ${Fe}-item-icon`]:{marginInlineEnd:0}}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vt=ze=>{const{componentCls:Fe,motionDurationSlow:pe,motionEaseInOut:Re,borderRadius:Ae,menuArrowSize:mt,menuArrowOffset:Et}=ze;return{[`${Fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Re}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:mt*.6,height:mt*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${pe} ${Re}`,`transform ${pe} ${Re}`,`top ${pe} ${Re}`,`color ${pe} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Et})`},"&::after":{transform:`rotate(-45deg) translateY(${Et})`}}}}},Ue=ze=>{const{antCls:Fe,componentCls:pe,fontSize:Re,motionDurationSlow:Ae,motionDurationMid:mt,motionEaseInOut:Et,paddingXS:Ct,padding:Tt,colorSplit:Rt,lineWidth:yt,zIndexPopup:pt,borderRadiusLG:en,subMenuItemBorderRadius:tn,menuArrowSize:mn,menuArrowOffset:Jt,lineType:Ht,menuPanelMaskInset:Pe,groupTitleLineHeight:Be,groupTitleFontSize:je}=ze;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,xe.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,xe.Wf)(ze)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,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:ze.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Ct}px ${Tt}px`,fontSize:je,lineHeight:Be,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:Rt,borderStyle:Ht,borderWidth:0,borderTopWidth:yt,marginBlock:yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(ze)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Re*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:pt,borderRadius:en,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:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:en},Ye(ze)),vt(ze)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:tn},[`${pe}-submenu-title::after`]:{transition:`transform ${Ae} ${Et}`}})}}),vt(ze)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Jt})`},"&::after":{transform:`rotate(45deg) translateX(-${Jt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Jt})`},"&::before":{transform:`rotate(45deg) translateX(${Jt})`}}})},{[`${Fe}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var gt=(ze,Fe)=>(0,jt.Z)("Menu",Re=>{if(Fe===!1)return[];const{colorBgElevated:Ae,colorPrimary:mt,colorTextLightSolid:Et,controlHeightLG:Ct,fontSize:Tt,darkItemColor:Rt,darkDangerItemColor:yt,darkItemBg:pt,darkSubMenuItemBg:en,darkItemSelectedColor:tn,darkItemSelectedBg:mn,darkDangerItemSelectedBg:Jt,darkItemHoverBg:Ht,darkGroupTitleColor:Pe,darkItemHoverColor:Be,darkItemDisabledColor:je,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:zt}=Re,It=Tt/7*5,wt=(0,ye.TS)(Re,{menuArrowSize:It,menuHorizontalHeight:Ct*1.15,menuArrowOffset:`${It*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),Nt=(0,ye.TS)(wt,{itemColor:Rt,itemHoverColor:Be,groupTitleColor:Pe,itemSelectedColor:tn,itemBg:pt,popupBg:pt,subMenuItemBg:en,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:je,dangerItemColor:yt,dangerItemHoverColor:dt,dangerItemSelectedColor:St,dangerItemActiveBg:zt,dangerItemSelectedBg:Jt,menuSubMenuBg:en,horizontalItemSelectedColor:Et,horizontalItemSelectedBg:mt});return[Ue(wt),it(wt),Oe(wt),qe(wt,"light"),qe(Nt,"dark"),st(wt),(0,Ne.Z)(wt),(0,ut.oN)(wt,"slide-up"),(0,ut.oN)(wt,"slide-down"),(0,Bt._y)(wt,"zoom-big")]},Re=>{const{colorPrimary:Ae,colorError:mt,colorTextDisabled:Et,colorErrorBg:Ct,colorText:Tt,colorTextDescription:Rt,colorBgContainer:yt,colorFillAlter:pt,colorFillContent:en,lineWidth:tn,lineWidthBold:mn,controlItemBgActive:Jt,colorBgTextHover:Ht,controlHeightLG:Pe,lineHeight:Be,colorBgElevated:je,marginXXS:dt,padding:St,fontSize:zt,controlHeightSM:It,fontSizeLG:wt,colorTextLightSolid:Nt,colorErrorHover:Vt}=Re,Zt=new le.C(Nt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:yt,itemBg:yt,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:en,itemActiveBg:Jt,colorSubItemBg:pt,subMenuItemBg:pt,colorItemBgSelected:Jt,itemSelectedBg:Jt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:tn,activeBarBorderWidth:tn,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:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:Be,collapsedWidth:Pe*2,popupBg:je,itemMarginBlock:dt,itemPaddingInline:St,horizontalLineHeight:`${Pe*1.15}px`,iconSize:zt,iconMarginInlineEnd:It-zt,collapsedIconSize:wt,groupTitleFontSize:zt,darkItemDisabledColor:new le.C(Nt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nt,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:Nt,darkDangerItemHoverColor:Vt,darkDangerItemSelectedColor:Nt,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"]]})(ze),de=function(ze,Fe){var pe={};for(var Re in ze)Object.prototype.hasOwnProperty.call(ze,Re)&&Fe.indexOf(Re)<0&&(pe[Re]=ze[Re]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(ze);Ae<Re.length;Ae++)Fe.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ze,Re[Ae])&&(pe[Re[Ae]]=ze[Re[Ae]]);return pe},Mt=(0,fe.forwardRef)((ze,Fe)=>{var pe,Re;const Ae=fe.useContext(oe.Z),mt=Ae||{},{getPrefixCls:Et,getPopupContainer:Ct,direction:Tt,menu:Rt}=fe.useContext(He.E_),yt=Et(),{prefixCls:pt,className:en,style:tn,theme:mn="light",expandIcon:Jt,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:Pe,siderCollapsed:Be,items:je,children:dt,rootClassName:St,mode:zt,selectable:It,onClick:wt,overflowedIndicatorPopupClassName:Nt}=ze,Vt=de(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,ke.Z)(Vt,["collapsedWidth"]),nn=se(je)||dt;(pe=mt.validator)===null||pe===void 0||pe.call(mt,{mode:zt});const hn=(0,ee.useEvent)(function(){var In;wt==null||wt.apply(void 0,arguments),(In=mt.onClick)===null||In===void 0||In.call(mt)}),vn=mt.mode||zt,Fn=It!=null?It:mt.selectable,dn=fe.useMemo(()=>Be!==void 0?Be:Pe,[Pe,Be]),on={horizontal:{motionName:`${yt}-slide-up`},inline:(0,te.Z)(yt),other:{motionName:`${yt}-zoom-big`}},yn=Et("menu",pt||mt.prefixCls),[En,Cn]=gt(yn,!Ae),cn=ce()(`${yn}-${mn}`,Rt==null?void 0:Rt.className,en);let Nn;if(typeof Jt=="function")Nn=Jt;else if(Jt===null||Jt===!1)Nn=null;else if(mt.expandIcon===null||mt.expandIcon===!1)Nn=null;else{const In=Jt!=null?Jt:mt.expandIcon;Nn=(0,be.Tm)(In,{className:ce()(`${yn}-submenu-expand-icon`,(0,be.l$)(In)?(Re=In.props)===null||Re===void 0?void 0:Re.className:"")})}const Yn=fe.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:Tt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ht}),[yn,dn,Tt,Ht,mn]);return En(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Yn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Ct,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,Nt),mode:vn,selectable:Fn,onClick:hn},Zt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),tn),className:cn,prefixCls:yn,direction:Tt,defaultMotions:on,expandIcon:Nn,ref:Fe,rootClassName:ce()(St,Cn)}),nn))))});const Xt=(0,fe.forwardRef)((ze,Fe)=>{const pe=(0,fe.useRef)(null),Re=fe.useContext(Ze.D);return(0,fe.useImperativeHandle)(Fe,()=>({menu:pe.current,focus:Ae=>{var mt;(mt=pe.current)===null||mt===void 0||mt.focus(Ae)}})),fe.createElement(Mt,Object.assign({ref:pe},ze,Re))});Xt.Item=x,Xt.SubMenu=E,Xt.Divider=Ge,Xt.ItemGroup=ae.BW;var At=Xt},93948:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ht}});var ae=re(59301),fe=re(29679),Ze=re(40001),_e=re(19248),ce=re(99267),He=re(92310),ue=re.n(He),Ke=re(2738),Ge=re(36355),Ie=re(92413),ke=re(33708),Me=re(37061),be={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Be=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var dt=Date.now(),St=!1;Be.current.forEach(function(zt){if(zt){St=!0;var It=zt.style;It.transitionDuration=".3s, .3s, .3s, .06s",je.current&&dt-je.current<100&&(It.transitionDuration="0s, 0s")}}),St&&(je.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var je=(0,ke.Z)((0,ke.Z)({},be),Be),dt=je.className,St=je.percent,zt=je.prefixCls,It=je.strokeColor,wt=je.strokeLinecap,Nt=je.strokeWidth,Vt=je.style,Zt=je.trailColor,nn=je.trailWidth,hn=je.transition,vn=(0,Me.Z)(je,a);delete vn.gapPosition;var Fn=Array.isArray(St)?St:[St],dn=Array.isArray(It)?It:[It],on=ne(),yn=Nt/2,En=100-Nt/2,Cn="M ".concat(wt==="round"?yn:0,",").concat(yn,`
L `).concat(wt==="round"?En:100,",").concat(yn),cn="0 0 100 ".concat(Nt),Nn=0;return ae.createElement("svg",(0,Ie.Z)({className:ue()("".concat(zt,"-line"),dt),viewBox:cn,preserveAspectRatio:"none",style:Vt},vn),ae.createElement("path",{className:"".concat(zt,"-line-trail"),d:Cn,strokeLinecap:wt,stroke:Zt,strokeWidth:nn||Nt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(wt){case"round":Wn=1-Nt/100;break;case"square":Wn=1-Nt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[In]||dn[dn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(zt,"-line-path"),d:Cn,strokeLinecap:wt,stroke:Jn,strokeWidth:Nt,fillOpacity:"0",ref:function(ve){on[In]=ve},style:na})}))},x=y,b=re(39559),E=re(33606),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 Be=ae.useState(),je=(0,E.Z)(Be,2),dt=je[0],St=je[1];return ae.useEffect(function(){St("rc_progress_".concat(oe()))},[]),Pe||dt},ie=function(Be){var je=Be.bg,dt=Be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},dt)};function se(Pe,Be){return Object.keys(Pe).map(function(je){var dt=parseFloat(je),St="".concat(Math.floor(dt*Be),"%");return"".concat(Pe[je]," ").concat(St)})}var le=ae.forwardRef(function(Pe,Be){var je=Pe.prefixCls,dt=Pe.color,St=Pe.gradientId,zt=Pe.radius,It=Pe.style,wt=Pe.ptg,Nt=Pe.strokeLinecap,Vt=Pe.strokeWidth,Zt=Pe.size,nn=Pe.gapDegree,hn=dt&&(0,b.Z)(dt)==="object",vn=hn?"#FFF":void 0,Fn=Zt/2,dn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:zt,cx:Fn,cy:Fn,stroke:vn,strokeLinecap:Nt,strokeWidth:Vt,opacity:wt===0?0:1,style:It,ref:Be});if(!hn)return dn;var on="".concat(St,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",En=se(dt,(360-nn)/360),Cn=se(dt,1),cn="conic-gradient(from ".concat(yn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:on},dn),ae.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(on,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:cn}))))}),xe=le,Ne=100,ut=function(Be,je,dt,St,zt,It,wt,Nt,Vt,Zt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=dt/100*360*((360-It)/360),vn=It===0?0:{bottom:0,top:180,left:90,right:-90}[wt],Fn=(100-St)/100*je;Vt==="round"&&St!==100&&(Fn+=Zt/2,Fn>=je&&(Fn=je-.01));var dn=Ne/2;return{stroke:typeof Nt=="string"?Nt:void 0,strokeDasharray:"".concat(je,"px ").concat(Be),strokeDashoffset:Fn+nn,transform:"rotate(".concat(zt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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 jt(Pe){var Be=Pe!=null?Pe:[];return Array.isArray(Be)?Be:[Be]}var ye=function(Be){var je=(0,ke.Z)((0,ke.Z)({},be),Be),dt=je.id,St=je.prefixCls,zt=je.steps,It=je.strokeWidth,wt=je.trailWidth,Nt=je.gapDegree,Vt=Nt===void 0?0:Nt,Zt=je.gapPosition,nn=je.trailColor,hn=je.strokeLinecap,vn=je.style,Fn=je.className,dn=je.strokeColor,on=je.percent,yn=(0,Me.Z)(je,Bt),En=Ne/2,Cn=ge(dt),cn="".concat(Cn,"-gradient"),Nn=En-It/2,Yn=Math.PI*2*Nn,In=Vt>0?90+Vt/2:-90,Wn=Yn*((360-Vt)/360),na=(0,b.Z)(zt)==="object"?zt:{count:zt,space:2},Jn=na.count,he=na.space,ve=jt(on),Se=jt(dn),rt=Se.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),xt=rt&&(0,b.Z)(rt)==="object",Lt=xt?"butt":hn,ln=ut(Yn,Wn,0,100,In,Vt,Zt,nn,Lt,It),kt=ne(),Qt=function(){var nt=0;return ve.map(function(qt,An){var Zn=Se[An]||Se[Se.length-1],Bn=ut(Yn,Wn,nt,qt,In,Vt,Zt,Zn,Lt,It);return nt+=qt,ae.createElement(xe,{key:An,color:Zn,ptg:qt,radius:Nn,prefixCls:St,gradientId:cn,style:Bn,strokeLinecap:Lt,strokeWidth:It,gapDegree:Vt,ref:function(Ce){kt[An]=Ce},size:Ne})}).reverse()},Ln=function(){var nt=Math.round(Jn*(ve[0]/100)),qt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,Bn){var me=Bn<=nt-1?Se[0]:nn,Ce=me&&(0,b.Z)(me)==="object"?"url(#".concat(cn,")"):void 0,Ee=ut(Yn,Wn,An,qt,In,Vt,Zt,me,"butt",It,he);return An+=(Wn-Ee.strokeDashoffset+he)*100/Wn,ae.createElement("circle",{key:Bn,className:"".concat(St,"-circle-path"),r:Nn,cx:En,cy:En,stroke:Ce,strokeWidth:It,opacity:1,style:Ee,ref:function(Ve){kt[Bn]=Ve}})})};return ae.createElement("svg",(0,Ie.Z)({className:ue()("".concat(St,"-circle"),Fn),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:vn,id:dt,role:"presentation"},yn),!Jn&&ae.createElement("circle",{className:"".concat(St,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:nn,strokeLinecap:Lt,strokeWidth:wt||It,style:ln}),Jn?Ln():Qt())},Xe=ye,it={Line:x,Circle:Xe},et=re(6848),st=re(93398);function tt(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function at(Pe){let{success:Be,successPercent:je}=Pe,dt=je;return Be&&"progress"in Be&&(dt=Be.progress),Be&&"percent"in Be&&(dt=Be.percent),dt}const qe=Pe=>{let{percent:Be,success:je,successPercent:dt}=Pe;const St=tt(at({success:je,successPercent:dt}));return[St,tt(tt(Be)-St)]},Ut=Pe=>{let{success:Be={},strokeColor:je}=Pe;const{strokeColor:dt}=Be;return[dt||st.presetPrimaryColors.green,je||null]},Le=(Pe,Be,je)=>{var dt,St,zt,It;let wt=-1,Nt=-1;if(Be==="step"){const Vt=je.steps,Zt=je.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(wt=Pe==="small"?2:14,Nt=Zt!=null?Zt:8):typeof Pe=="number"?[wt,Nt]=[Pe,Pe]:[wt=14,Nt=8]=Pe,wt*=Vt}else if(Be==="line"){const Vt=je==null?void 0:je.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Nt=Vt||(Pe==="small"?6:8):typeof Pe=="number"?[wt,Nt]=[Pe,Pe]:[wt=-1,Nt=8]=Pe}else(Be==="circle"||Be==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[wt,Nt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[wt,Nt]=[Pe,Pe]:(wt=(St=(dt=Pe[0])!==null&&dt!==void 0?dt:Pe[1])!==null&&St!==void 0?St:120,Nt=(It=(zt=Pe[0])!==null&&zt!==void 0?zt:Pe[1])!==null&&It!==void 0?It:120));return[wt,Nt]},Oe=3,Ye=Pe=>Oe/Pe*100;var Ue=Pe=>{const{prefixCls:Be,trailColor:je=null,strokeLinecap:dt="round",gapPosition:St,gapDegree:zt,width:It=120,type:wt,children:Nt,success:Vt,size:Zt=It}=Pe,[nn,hn]=Le(Zt,"circle");let{strokeWidth:vn}=Pe;vn===void 0&&(vn=Math.max(Ye(nn),6));const Fn={width:nn,height:hn,fontSize:nn*.15+6},dn=ae.useMemo(()=>{if(zt||zt===0)return zt;if(wt==="dashboard")return 75},[zt,wt]),on=St||wt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",En=Ut({success:Vt,strokeColor:Pe.strokeColor}),Cn=ue()(`${Be}-inner`,{[`${Be}-circle-gradient`]:yn}),cn=ae.createElement(Xe,{percent:qe(Pe),strokeWidth:vn,trailWidth:vn,strokeColor:En,strokeLinecap:dt,trailColor:je,prefixCls:Be,gapDegree:dn,gapPosition:on});return ae.createElement("div",{className:Cn,style:Fn},nn<=20?ae.createElement(et.Z,{title:Nt},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,Nt))},gt=function(Pe,Be){var je={};for(var dt in Pe)Object.prototype.hasOwnProperty.call(Pe,dt)&&Be.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++)Be.indexOf(dt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,dt[St])&&(je[dt[St]]=Pe[dt[St]]);return je};const de=Pe=>{let Be=[];return Object.keys(Pe).forEach(je=>{const dt=parseFloat(je.replace(/%/g,""));isNaN(dt)||Be.push({key:dt,value:Pe[je]})}),Be=Be.sort((je,dt)=>je.key-dt.key),Be.map(je=>{let{key:dt,value:St}=je;return`${St} ${dt}%`}).join(", ")},ot=(Pe,Be)=>{const{from:je=st.presetPrimaryColors.blue,to:dt=st.presetPrimaryColors.blue,direction:St=Be==="rtl"?"to left":"to right"}=Pe,zt=gt(Pe,["from","to","direction"]);if(Object.keys(zt).length!==0){const It=de(zt);return{backgroundImage:`linear-gradient(${St}, ${It})`}}return{backgroundImage:`linear-gradient(${St}, ${je}, ${dt})`}};var Xt=Pe=>{const{prefixCls:Be,direction:je,percent:dt,size:St,strokeWidth:zt,strokeColor:It,strokeLinecap:wt="round",children:Nt,trailColor:Vt=null,success:Zt}=Pe,nn=It&&typeof It!="string"?ot(It,je):{backgroundColor:It},hn=wt==="square"||wt==="butt"?0:void 0,vn={backgroundColor:Vt||void 0,borderRadius:hn},Fn=St!=null?St:[-1,zt||(St==="small"?6:8)],[dn,on]=Le(Fn,"line",{strokeWidth:zt}),yn=Object.assign({width:`${tt(dt)}%`,height:on,borderRadius:hn},nn),En=at(Pe),Cn={width:`${tt(En)}%`,height:on,borderRadius:hn,backgroundColor:Zt==null?void 0:Zt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Be}-outer`,style:cn},ae.createElement("div",{className:`${Be}-inner`,style:vn},ae.createElement("div",{className:`${Be}-bg`,style:yn}),En!==void 0?ae.createElement("div",{className:`${Be}-success-bg`,style:Cn}):null)),Nt)},ze=Pe=>{const{size:Be,steps:je,percent:dt=0,strokeWidth:St=8,strokeColor:zt,trailColor:It=null,prefixCls:wt,children:Nt}=Pe,Vt=Math.round(je*(dt/100)),Zt=Be==="small"?2:14,nn=Be!=null?Be:[Zt,St],[hn,vn]=Le(nn,"step",{steps:je,strokeWidth:St}),Fn=hn/je,dn=new Array(je);for(let on=0;on<je;on++){const yn=Array.isArray(zt)?zt[on]:zt;dn[on]=ae.createElement("div",{key:on,className:ue()(`${wt}-steps-item`,{[`${wt}-steps-item-active`]:on<=Vt-1}),style:{backgroundColor:on<=Vt-1?yn:It,width:Fn,height:vn}})}return ae.createElement("div",{className:`${wt}-steps-outer`},dn,Nt)},Fe=re(93083),pe=re(17313),Re=re(83116),Ae=re(37613);const mt=Pe=>{const Be=Pe?"100%":"-100%";return new Fe.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Et=Pe=>{const{componentCls:Be,iconCls:je}=Pe;return{[Be]:Object.assign(Object.assign({},(0,pe.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:Pe.fontSize}},[`&${Be}-status-active`]:{[`${Be}-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:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:mt(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:Pe.colorError},[`${Be}-text`]:{color:Pe.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Be}-text`]:{color:Pe.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:Pe.colorSuccess}}})}},Ct=Pe=>{const{componentCls:Be,iconCls:je}=Pe;return{[Be]:{[`${Be}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:Pe.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:Pe.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Tt=Pe=>{const{componentCls:Be}=Pe;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},Rt=Pe=>{const{componentCls:Be,iconCls:je}=Pe;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${je}`]:{fontSize:Pe.fontSizeSM}}}};var yt=(0,Re.Z)("Progress",Pe=>{const Be=Pe.marginXXS/2,je=(0,Ae.TS)(Pe,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[Et(je),Ct(je),Tt(je),Rt(je)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),pt=function(Pe,Be){var je={};for(var dt in Pe)Object.prototype.hasOwnProperty.call(Pe,dt)&&Be.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++)Be.indexOf(dt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,dt[St])&&(je[dt[St]]=Pe[dt[St]]);return je};const en=null,tn=["normal","exception","active","success"];var Jt=ae.forwardRef((Pe,Be)=>{const{prefixCls:je,className:dt,rootClassName:St,steps:zt,strokeColor:It,percent:wt=0,size:Nt="default",showInfo:Vt=!0,type:Zt="line",status:nn,format:hn,style:vn}=Pe,Fn=pt(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=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=wt!=null?wt:0)===null||Se===void 0?void 0:Se.toString(),10)},[wt,Pe.success,Pe.successPercent]),on=ae.useMemo(()=>!tn.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:En,progress:Cn}=ae.useContext(Ge.E_),cn=yn("progress",je),[Nn,Yn]=yt(cn),In=ae.useMemo(()=>{if(!Vt)return null;const ve=at(Pe);let Se;const rt=hn||(Lt=>`${Lt}%`),xt=Zt==="line";return hn||on!=="exception"&&on!=="success"?Se=rt(tt(wt),tt(ve)):on==="exception"?Se=xt?ae.createElement(_e.Z,null):ae.createElement(ce.Z,null):on==="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)},[Vt,wt,dn,on,Zt,cn,hn]),Wn=Array.isArray(It)?It[0]:It,na=typeof It=="string"||Array.isArray(It)?It:void 0;let Jn;Zt==="line"?Jn=zt?ae.createElement(ze,Object.assign({},Pe,{strokeColor:na,prefixCls:cn,steps:zt}),In):ae.createElement(Xt,Object.assign({},Pe,{strokeColor:Wn,prefixCls:cn,direction:En}),In):(Zt==="circle"||Zt==="dashboard")&&(Jn=ae.createElement(Ue,Object.assign({},Pe,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),In));const he=ue()(cn,`${cn}-status-${on}`,`${cn}-${Zt==="dashboard"&&"circle"||zt&&"steps"||Zt}`,{[`${cn}-inline-circle`]:Zt==="circle"&&Le(Nt,"circle")[0]<=20,[`${cn}-show-info`]:Vt,[`${cn}-${Nt}`]:typeof Nt=="string",[`${cn}-rtl`]:En==="rtl"},Cn==null?void 0:Cn.className,dt,St,Yn);return Nn(ae.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),vn),className:he,role:"progressbar","aria-valuenow":dn},(0,Ke.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ht=Jt},54580:function($e,lt,re){"use strict";re.d(lt,{default:function(){return Bn}});var ae=re(59301),fe=re(26407),Ze=re(92310),_e=re.n(Ze),ce=re(92413),He=re(6909),ue=re(4771),Ke=re(9427),Ge=re(25440),Ie=re(400),ke=re(37061),Me=re(85195),be=re(39559),ne=re(20569),a=re(26112);function y(me,Ce){var Ee="cannot ".concat(me.method," ").concat(me.action," ").concat(Ce.status,"'"),Te=new Error(Ee);return Te.status=Ce.status,Te.method=me.method,Te.url=me.action,Te}function x(me){var Ce=me.responseText||me.response;if(!Ce)return Ce;try{return JSON.parse(Ce)}catch(Ee){return Ce}}function b(me){var Ce=new XMLHttpRequest;me.onProgress&&Ce.upload&&(Ce.upload.onprogress=function(Qe){Qe.total>0&&(Qe.percent=Qe.loaded/Qe.total*100),me.onProgress(Qe)});var Ee=new FormData;me.data&&Object.keys(me.data).forEach(function(Ve){var Qe=me.data[Ve];if(Array.isArray(Qe)){Qe.forEach(function(We){Ee.append("".concat(Ve,"[]"),We)});return}Ee.append(Ve,Qe)}),me.file instanceof Blob?Ee.append(me.filename,me.file,me.file.name):Ee.append(me.filename,me.file),Ce.onerror=function(Qe){me.onError(Qe)},Ce.onload=function(){return Ce.status<200||Ce.status>=300?me.onError(y(me,Ce),x(Ce)):me.onSuccess(x(Ce),Ce)},Ce.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Ce&&(Ce.withCredentials=!0);var Te=me.headers||{};return Te["X-Requested-With"]!==null&&Ce.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Te).forEach(function(Ve){Te[Ve]!==null&&Ce.setRequestHeader(Ve,Te[Ve])}),Ce.send(Ee),{abort:function(){Ce.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=re(48736),oe=function(me,Ce){if(me&&Ce){var Ee=Array.isArray(Ce)?Ce:Ce.split(","),Te=me.name||"",Ve=me.type||"",Qe=Ve.replace(/\/.*$/,"");return Ee.some(function(We){var De=We.trim();if(/^\*(\/\*)?$/.test(We))return!0;if(De.charAt(0)==="."){var Ot=Te.toLowerCase(),Gt=De.toLowerCase(),we=[Gt];return(Gt===".jpg"||Gt===".jpeg")&&(we=[".jpg",".jpeg"]),we.some(function(rn){return Ot.endsWith(rn)})}return/\/\*$/.test(De)?Qe===De.replace(/\/.*$/,""):Ve===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,Ce){var Ee=me.createReader(),Te=[];function Ve(){Ee.readEntries(function(Qe){var We=Array.prototype.slice.apply(Qe);Te=Te.concat(We);var De=!We.length;De?Ce(Te):Ve()})}Ve()}var ie=function(Ce,Ee,Te){var Ve=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}})),Ee([Ot]))}):We.isDirectory&&ge(We,function(Ot){Ot.forEach(function(Gt){Qe(Gt,"".concat(De).concat(We.name,"/"))})}))};Ce.forEach(function(Qe){Ve(Qe.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(me){(0,Ke.Z)(Ee,me);var Ce=(0,Ge.Z)(Ee);function Ee(){var Te;(0,He.Z)(this,Ee);for(var Ve=arguments.length,Qe=new Array(Ve),We=0;We<Ve;We++)Qe[We]=arguments[We];return Te=Ce.call.apply(Ce,[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,we=Ot.directory,rn=De.target.files,an=(0,fe.Z)(rn).filter(function(pn){return!we||oe(pn,Gt)});Te.uploadFiles(an),Te.reset()},Te.onClick=function(De){var Ot=Te.fileInput;if(Ot){var Gt=De.target,we=Te.props.onClick;if(Gt&&Gt.tagName==="BUTTON"){var rn=Ot.parentNode;rn.focus(),Gt.blur()}Ot.click(),we&&we(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(we){return oe(we,Te.props.accept)});else{var Gt=(0,fe.Z)(De.dataTransfer.files).filter(function(we){return oe(we,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(we){return we.uid=ee(),Te.processFile(we,Ot)});Promise.all(Gt).then(function(we){var rn=Te.props.onBatchStart;rn==null||rn(we.map(function(an){var pn=an.origin,xn=an.parsedFile;return{file:pn,parsedFile:xn}})),we.filter(function(an){return an.parsedFile!==null}).forEach(function(an){Te.post(an)})})},Te.processFile=function(){var De=(0,ne.Z)((0,Me.Z)().mark(function Ot(Gt,we){var rn,an,pn,xn,Je,ft,$t,Pt,Kt;return(0,Me.Z)().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(rn=Te.props.beforeUpload,an=Gt,!rn){Dt.next=14;break}return Dt.prev=3,Dt.next=6,rn(Gt,we);case 6:an=Dt.sent,Dt.next=12;break;case 9:Dt.prev=9,Dt.t0=Dt.catch(3),an=!1;case 12:if(an!==!1){Dt.next=14;break}return Dt.abrupt("return",{origin:Gt,parsedFile:null,action:null,data:null});case 14:if(pn=Te.props.action,typeof pn!="function"){Dt.next=21;break}return Dt.next=18,pn(Gt);case 18:xn=Dt.sent,Dt.next=22;break;case 21:xn=pn;case 22:if(Je=Te.props.data,typeof Je!="function"){Dt.next=29;break}return Dt.next=26,Je(Gt);case 26:ft=Dt.sent,Dt.next=30;break;case 29:ft=Je;case 30:return $t=((0,be.Z)(an)==="object"||typeof an=="string")&&an?an:Gt,$t instanceof File?Pt=$t:Pt=new File([$t],Gt.name,{type:Gt.type}),Kt=Pt,Kt.uid=Gt.uid,Dt.abrupt("return",{origin:Gt,data:ft,parsedFile:Kt,action:xn});case 35:case"end":return Dt.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)(Ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ve){var Qe=this,We=Ve.data,De=Ve.origin,Ot=Ve.action,Gt=Ve.parsedFile;if(this._isMounted){var we=this.props,rn=we.onStart,an=we.customRequest,pn=we.name,xn=we.headers,Je=we.withCredentials,ft=we.method,$t=De.uid,Pt=an||b,Kt={action:Ot,filename:pn,data:We,file:Gt,headers:xn,withCredentials:Je,method:ft||"post",onProgress:function(Dt){var Pn=Qe.props.onProgress;Pn==null||Pn(Dt,Gt)},onSuccess:function(Dt,Pn){var fn=Qe.props.onSuccess;fn==null||fn(Dt,Gt,Pn),delete Qe.reqs[$t]},onError:function(Dt,Pn){var fn=Qe.props.onError;fn==null||fn(Dt,Pn,Gt),delete Qe.reqs[$t]}};rn(De),this.reqs[$t]=Pt(Kt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ve){var Qe=this.reqs;if(Ve){var We=Ve.uid?Ve.uid:Ve;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 Ve=this.props,Qe=Ve.component,We=Ve.prefixCls,De=Ve.className,Ot=Ve.disabled,Gt=Ve.id,we=Ve.style,rn=Ve.multiple,an=Ve.accept,pn=Ve.capture,xn=Ve.children,Je=Ve.directory,ft=Ve.openFileDialogOnClick,$t=Ve.onMouseEnter,Pt=Ve.onMouseLeave,Kt=(0,ke.Z)(Ve,le),Yt=_e()((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},We,!0),"".concat(We,"-disabled"),Ot),De,De)),Dt=Je?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=Ot?{}:{onClick:ft?this.onClick:function(){},onKeyDown:ft?this.onKeyDown:function(){},onMouseEnter:$t,onMouseLeave:Pt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Qe,(0,ce.Z)({},Pn,{className:Yt,role:"button",style:we}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Kt,{aria:!0,data:!0}),{id:Gt,disabled:Ot,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:an},Dt,{multiple:rn,onChange:this.onChange},pn!=null?{capture:pn}:{})),xn)}}]),Ee}(ae.Component),Ne=xe;function ut(){}var Bt=function(me){(0,Ke.Z)(Ee,me);var Ce=(0,Ge.Z)(Ee);function Ee(){var Te;(0,He.Z)(this,Ee);for(var Ve=arguments.length,Qe=new Array(Ve),We=0;We<Ve;We++)Qe[We]=arguments[We];return Te=Ce.call.apply(Ce,[this].concat(Qe)),Te.uploader=void 0,Te.saveUploader=function(De){Te.uploader=De},Te}return(0,ue.Z)(Ee,[{key:"abort",value:function(Ve){this.uploader.abort(Ve)}},{key:"render",value:function(){return ae.createElement(Ne,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ee}(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 jt=Bt,ye=jt,Xe=re(18929),it=re(4676),et=re(36355),st=re(1684),tt=re(9763),at=re(31724),qe={icon:function(Ce,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ee}},{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:Ce}}]}},name:"file",theme:"twotone"},Ut=qe,Le=re(7657),Oe=function(Ce,Ee){return ae.createElement(Le.Z,(0,ce.Z)({},Ce,{ref:Ee,icon:Ut}))},Ye=ae.forwardRef(Oe),vt=Ye,Ue=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(Ce,Ee){return ae.createElement(Le.Z,(0,ce.Z)({},Ce,{ref:Ee,icon:de}))},Mt=ae.forwardRef(ot),Xt=Mt,At={icon:function(Ce,Ee){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:Ce}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ee}},{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:Ee}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ee}},{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:Ce}}]}},name:"picture",theme:"twotone"},ze=At,Fe=function(Ce,Ee){return ae.createElement(Le.Z,(0,ce.Z)({},Ce,{ref:Ee,icon:ze}))},pe=ae.forwardRef(Fe),Re=pe,Ae=re(77900),mt=re(56762),Et=re(62892),Ct=re(92343),Tt=re(3113);function Rt(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 yt(me,Ce){const Ee=(0,fe.Z)(Ce),Te=Ee.findIndex(Ve=>{let{uid:Qe}=Ve;return Qe===me.uid});return Te===-1?Ee.push(me):Ee[Te]=me,Ee}function pt(me,Ce){const Ee=me.uid!==void 0?"uid":"name";return Ce.filter(Te=>Te[Ee]===me[Ee])[0]}function en(me,Ce){const Ee=me.uid!==void 0?"uid":"name",Te=Ce.filter(Ve=>Ve[Ee]!==me[Ee]);return Te.length===Ce.length?null:Te}const tn=function(){const Ce=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Te=Ce[Ce.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Te)||[""])[0]},mn=me=>me.indexOf("image/")===0,Jt=me=>{if(me.type&&!me.thumbUrl)return mn(me.type);const Ce=me.thumbUrl||me.url||"",Ee=tn(Ce);return/^data:image\//.test(Ce)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ee)?!0:!(/^data:/.test(Ce)||Ee)},Ht=200;function Pe(me){return new Promise(Ce=>{if(!me.type||!mn(me.type)){Ce("");return}const Ee=document.createElement("canvas");Ee.width=Ht,Ee.height=Ht,Ee.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ht}px; height: ${Ht}px; z-index: 9999; display: none;`,document.body.appendChild(Ee);const Te=Ee.getContext("2d"),Ve=new Image;if(Ve.onload=()=>{const{width:Qe,height:We}=Ve;let De=Ht,Ot=Ht,Gt=0,we=0;Qe>We?(Ot=We*(Ht/Qe),we=-(Ot-De)/2):(De=Qe*(Ht/We),Gt=-(De-Ot)/2),Te.drawImage(Ve,Gt,we,De,Ot);const rn=Ee.toDataURL();document.body.removeChild(Ee),window.URL.revokeObjectURL(Ve.src),Ce(rn)},Ve.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&(Ve.src=Qe.result)},Qe.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&Ce(Qe.result)},Qe.readAsDataURL(me)}else Ve.src=window.URL.createObjectURL(me)})}var Be=re(26227),je=re(41464),dt=re(15277),St=re(93948),zt=re(6848),wt=ae.forwardRef((me,Ce)=>{let{prefixCls:Ee,className:Te,style:Ve,locale:Qe,listType:We,file:De,items:Ot,progress:Gt,iconRender:we,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:xn,showRemoveIcon:Je,showDownloadIcon:ft,previewIcon:$t,removeIcon:Pt,downloadIcon:Kt,onPreview:Yt,onDownload:Dt,onClose:Pn}=me;var fn,oa;const{status:Qn}=De,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Tn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Tn)}},[]);const da=we(De);let Vn=ae.createElement("div",{className:`${Ee}-icon`},da);if(We==="picture"||We==="picture-card"||We==="picture-circle")if(qn==="uploading"||!De.thumbUrl&&!De.url){const Tn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Tn},da)}else{const Tn=pn!=null&&pn(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${Ee}-list-item-image`,crossOrigin:De.crossOrigin}):da,Gn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:pn&&!pn(De)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Yt(De,la),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Tn)}const $n=_e()(`${Ee}-list-item`,`${Ee}-list-item-${qn}`),ta=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,ga=Je?rn((typeof Pt=="function"?Pt(De):Pt)||ae.createElement(Be.Z,null),()=>Pn(De),Ee,Qe.removeFile):null,ia=ft&&qn==="done"?rn((typeof Kt=="function"?Kt(De):Kt)||ae.createElement(je.Z,null),()=>Dt(De),Ee,Qe.downloadFile):null,aa=We!=="picture-card"&&We!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${Ee}-list-item-actions`,{picture:We==="picture"})},ia,ga),ea=_e()(`${Ee}-list-item-name`),fa=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:De.name},ta,{href:De.url,onClick:Tn=>Yt(De,Tn)}),De.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Tn=>Yt(De,Tn),title:De.name},De.name),aa],_t={pointerEvents:"none",opacity:.5},On=xn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:_t,onClick:Tn=>Yt(De,Tn),title:Qe.previewFile},typeof $t=="function"?$t(De):$t||ae.createElement(dt.Z,null)):null,Mn=(We==="picture-card"||We==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Ee}-list-item-actions`},On,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(et.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Mn,Sa&&ae.createElement(Ae.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Tn=>{let{className:Gn}=Tn;const la="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()(`${Ee}-list-item-progress`,Gn)},la)})),va=De.response&&typeof De.response=="string"?De.response:((fn=De.error)===null||fn===void 0?void 0:fn.statusText)||((oa=De.error)===null||oa===void 0?void 0:oa.message)||Qe.uploadError,pa=qn==="error"?ae.createElement(zt.Z,{title:va,getPopupContainer:Tn=>Tn.parentNode},ra):ra;return ae.createElement("div",{className:_e()(`${Ee}-list-item-container`,Te),style:Ve,ref:Ce},an?an(pa,De,Ot,{download:Dt.bind(null,De),preview:Yt.bind(null,De),remove:Pn.bind(null,De)}):pa)});const Nt=(me,Ce)=>{const{listType:Ee="text",previewFile:Te=Pe,onPreview:Ve,onDownload:Qe,onRemove:We,locale:De,iconRender:Ot,isImageUrl:Gt=Jt,prefixCls:we,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:xn=!1,removeIcon:Je,previewIcon:ft,downloadIcon:$t,progress:Pt={size:[-1,2],showInfo:!1},appendAction:Kt,appendActionVisible:Yt=!0,itemRender:Dt,disabled:Pn}=me,fn=(0,mt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Ee!=="picture"&&Ee!=="picture-card"&&Ee!=="picture-circle"||(rn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Te&&Te(_t.originFileObj).then(On=>{_t.thumbUrl=On||"",fn()}))})},[Ee,rn,Te]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,On)=>{if(Ve)return On==null||On.preventDefault(),Ve(_t)},ca=_t=>{typeof Qe=="function"?Qe(_t):_t.url&&window.open(_t.url)},Sa=_t=>{We==null||We(_t)},Pa=_t=>{if(Ot)return Ot(_t,Ee);const On=_t.status==="uploading",Mn=Gt&&Gt(_t)?ae.createElement(Re,null):ae.createElement(vt,null);let Un=On?ae.createElement(Ue.Z,null):ae.createElement(Xt,null);return Ee==="picture"?Un=On?ae.createElement(Ue.Z,null):Mn:(Ee==="picture-card"||Ee==="picture-circle")&&(Un=On?De.uploading:Mn),Un},da=(_t,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Ct.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Pn};if((0,Ct.l$)(_t)){const ra=(0,Ct.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Tt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Tt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle(Ce,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(et.E_),$n=Vn("upload",we),ta=Vn(),ga=_e()(`${$n}-list`,`${$n}-list-${Ee}`),ia=(0,fe.Z)(rn.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ee==="picture-card"||Ee==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,Et.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return Ee!=="picture-card"&&Ee!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(Ae.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:On,file:Mn,className:Un,style:Xn}=_t;return ae.createElement(wt,{key:On,locale:De,prefixCls:$n,className:Un,style:Xn,file:Mn,items:rn,progress:Pt,listType:Ee,isImgUrl:Gt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:xn,removeIcon:Je,previewIcon:ft,downloadIcon:$t,iconRender:Pa,actionIconRender:da,itemRender:Dt,onPreview:qn,onDownload:ca,onClose:Sa})}),Kt&&ae.createElement(Ae.default,Object.assign({},ea,{visible:Yt,forceRender:!0}),_t=>{let{className:On,style:Mn}=_t;return(0,Ct.Tm)(Kt,Un=>({className:_e()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Zt=ae.forwardRef(Nt),nn=re(17313),hn=re(8378),vn=re(83116),Fn=re(37613),on=me=>{const{componentCls:Ce,iconCls:Ee}=me;return{[`${Ce}-wrapper`]:{[`${Ce}-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}`,[Ce]:{padding:`${me.padding}px 0`},[`${Ce}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ce}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ce}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Ce}-drag-icon`]:{marginBottom:me.margin,[Ee]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Ce}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Ce}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Ce}-disabled`]:{cursor:"not-allowed",[`p${Ce}-drag-icon ${Ee},
p${Ce}-text,
p${Ce}-hint
`]:{color:me.colorTextDisabled}}}}}},En=me=>{const{componentCls:Ce,antCls:Ee,iconCls:Te,fontSize:Ve,lineHeight:Qe}=me,We=`${Ce}-list-item`,De=`${We}-actions`,Ot=`${We}-action`,Gt=Math.round(Ve*Qe);return{[`${Ce}-wrapper`]:{[`${Ce}-list`]:Object.assign(Object.assign({},(0,nn.dF)()),{lineHeight:me.lineHeight,[We]:{position:"relative",height:me.lineHeight*Ve,marginTop:me.marginXS,fontSize:Ve,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${We}-name`]:Object.assign(Object.assign({},nn.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Qe,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[De]:{[Ot]:{opacity:0},[`${Ot}${Ee}-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}},[`${Ce}-icon ${Te}`]:{color:me.colorTextDescription,fontSize:Ve},[`${We}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ve+me.paddingXS,fontSize:Ve,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${We}:hover ${Ot}`]:{opacity:1,color:me.colorText},[`${We}-error`]:{color:me.colorError,[`${We}-name, ${Ce}-icon ${Te}`]:{color:me.colorError},[De]:{[`${Te}, ${Te}:hover`]:{color:me.colorError},[Ot]:{opacity:1}}},[`${Ce}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=re(93083),cn=re(1950);const Nn=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:Ce}=me,Ee=`${Ce}-animate-inline`;return[{[`${Ce}-wrapper`]:{[`${Ee}-appear, ${Ee}-enter, ${Ee}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ee}-appear, ${Ee}-enter`]:{animationName:Nn},[`${Ee}-leave`]:{animationName:Yn}}},{[`${Ce}-wrapper`]:(0,cn.J$)(me)},Nn,Yn]},na=re(93398),Jn=re(64993);const he=me=>{const{componentCls:Ce,iconCls:Ee,uploadThumbnailSize:Te,uploadProgressOffset:Ve}=me,Qe=`${Ce}-list`,We=`${Qe}-item`;return{[`${Ce}-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({},nn.vS),{width:Te,height:Te,lineHeight:`${Te+me.paddingSM}px`,textAlign:"center",flex:"none",[Ee]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${We}-progress`]:{bottom:Ve,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Te+me.paddingXS}},[`${We}-error`]:{borderColor:me.colorError,[`${We}-thumbnail ${Ee}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${We}-uploading`]:{borderStyle:"dashed",[`${We}-name`]:{marginBottom:Ve}}},[`${Qe}${Qe}-picture-circle ${We}`]:{[`&, &::before, ${We}-thumbnail`]:{borderRadius:"50%"}}}}},ve=me=>{const{componentCls:Ce,iconCls:Ee,fontSizeLG:Te,colorTextLightSolid:Ve}=me,Qe=`${Ce}-list`,We=`${Qe}-item`,De=me.uploadPicCardSize;return{[`
${Ce}-wrapper${Ce}-picture-card-wrapper,
${Ce}-wrapper${Ce}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${Ce}${Ce}-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}`,[`> ${Ce}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ce}-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}`,[`${Ee}-eye, ${Ee}-download, ${Ee}-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`]:{[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{color:new Jn.C(Ve).setAlpha(.65).toRgbString(),"&:hover":{color:Ve}}},[`${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, ${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{display:"none"}},[`${We}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ce}-wrapper${Ce}-picture-circle-wrapper`]:{[`${Ce}${Ce}-select`]:{borderRadius:"50%"}}}};var rt=me=>{const{componentCls:Ce}=me;return{[`${Ce}-rtl`]:{direction:"rtl"}}};const xt=me=>{const{componentCls:Ce,colorTextDisabled:Ee}=me;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(me)),{[Ce]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ce}-select`]:{display:"inline-block"},[`${Ce}-disabled`]:{color:Ee,cursor:"not-allowed"}})}};var Lt=(0,vn.Z)("Upload",me=>{const{fontSizeHeading3:Ce,fontSize:Ee,lineHeight:Te,lineWidth:Ve,controlHeightLG:Qe}=me,We=Math.round(Ee*Te),De=(0,Fn.TS)(me,{uploadThumbnailSize:Ce*2,uploadProgressOffset:We/2+Ve,uploadPicCardSize:Qe*2.55});return[xt(De),on(De),he(De),ve(De),En(De),Wn(De),rt(De),(0,hn.Z)(De)]},me=>({actionsColor:me.colorTextDescription})),ln=function(me,Ce,Ee,Te){function Ve(Qe){return Qe instanceof Ee?Qe:new Ee(function(We){We(Qe)})}return new(Ee||(Ee=Promise))(function(Qe,We){function De(we){try{Gt(Te.next(we))}catch(rn){We(rn)}}function Ot(we){try{Gt(Te.throw(we))}catch(rn){We(rn)}}function Gt(we){we.done?Qe(we.value):Ve(we.value).then(De,Ot)}Gt((Te=Te.apply(me,Ce||[])).next())})};const kt=`__LIST_IGNORE_${Date.now()}__`,Qt=(me,Ce)=>{const{fileList:Ee,defaultFileList:Te,onRemove:Ve,showUploadList:Qe=!0,listType:We="text",onPreview:De,onDownload:Ot,onChange:Gt,onDrop:we,previewFile:rn,disabled:an,locale:pn,iconRender:xn,isImageUrl:Je,progress:ft,prefixCls:$t,className:Pt,type:Kt="select",children:Yt,style:Dt,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(st.Z),Vn=an!=null?an:da,[$n,ta]=(0,Xe.Z)(Te||[],{value:Ee,postState:Wt=>Wt!=null?Wt:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Wt=Date.now();(Ee||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Wt}_${bn}__`)})},[Ee]);const ea=(Wt,sn,bn)=>{let gn=(0,fe.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,it.flushSync)(()=>{ta(gn)});const _n={file:Wt,fileList:gn};bn&&(_n.event=bn),(!Sn||gn.some(wn=>wn.uid===Wt.uid))&&(0,it.flushSync)(()=>{Gt==null||Gt(_n)})},fa=(Wt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=me;let Sn=Wt;if(bn){const _n=yield bn(Wt,sn);if(_n===!1)return!1;if(delete Wt[kt],_n===kt)return Object.defineProperty(Wt,kt,{value:!0,configurable:!0}),!1;typeof _n=="object"&&_n&&(Sn=_n)}return gn&&(Sn=yield gn(Sn)),Sn}),_t=Wt=>{const sn=Wt.filter(Sn=>!Sn.file[kt]);if(!sn.length)return;const bn=sn.map(Sn=>Rt(Sn.file));let gn=(0,fe.Z)($n);bn.forEach(Sn=>{gn=yt(Sn,gn)}),bn.forEach((Sn,_n)=>{let wn=Sn;if(sn[_n].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Sn.uid,wn=ua}ea(wn,gn)})},On=(Wt,sn,bn)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(_n){}if(!pt(sn,$n))return;const gn=Rt(sn);gn.status="done",gn.percent=100,gn.response=Wt,gn.xhr=bn;const Sn=yt(gn,$n);ea(gn,Sn)},Mn=(Wt,sn)=>{if(!pt(sn,$n))return;const bn=Rt(sn);bn.status="uploading",bn.percent=Wt.percent;const gn=yt(bn,$n);ea(bn,gn,Wt)},Un=(Wt,sn,bn)=>{if(!pt(bn,$n))return;const gn=Rt(bn);gn.error=Wt,gn.response=sn,gn.status="error";const Sn=yt(gn,$n);ea(gn,Sn)},Xn=Wt=>{let sn;Promise.resolve(typeof Ve=="function"?Ve(Wt):Ve).then(bn=>{var gn;if(bn===!1)return;const Sn=en(Wt,$n);Sn&&(sn=Object.assign(Object.assign({},Wt),{status:"removed"}),$n==null||$n.forEach(_n=>{const wn=sn.uid!==void 0?"uid":"name";_n[wn]===sn[wn]&&!Object.isFrozen(_n)&&(_n.status="removed")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Wt=>{ia(Wt.type),Wt.type==="drop"&&(we==null||we(Wt))};ae.useImperativeHandle(Ce,()=>({onBatchStart:_t,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Tn}=ae.useContext(et.E_),Gn=va("upload",$t),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:Mn,onSuccess:On},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Yt||Vn)&&delete la.id;const[ya,La]=Lt(Gn),[ba]=(0,tt.Z)("Upload",at.Z.Upload),{showRemoveIcon:Ft,showPreviewIcon:ct,showDownloadIcon:ht,removeIcon:bt,previewIcon:un,downloadIcon:zn}=typeof Qe=="boolean"?{}:Qe,Rn=(Wt,sn)=>Qe?ae.createElement(Zt,{prefixCls:Gn,listType:We,items:$n,previewFile:rn,onPreview:De,onDownload:Ot,onRemove:Xn,showRemoveIcon:!Vn&&Ft,showPreviewIcon:ct,showDownloadIcon:ht,removeIcon:bt,previewIcon:un,downloadIcon:zn,iconRender:xn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:Je,progress:ft,appendAction:Wt,appendActionVisible:sn,itemRender:Pn,disabled:Vn}):Wt,Dn=_e()(`${Gn}-wrapper`,Pt,Pa,La,Tn==null?void 0:Tn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:We==="picture-card",[`${Gn}-picture-circle-wrapper`]:We==="picture-circle"}),jn=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Dt);if(Kt==="drag"){const Wt=_e()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(sn=>sn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Dn},ae.createElement("div",{className:Wt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(ye,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Yt))),Rn()))}const Hn=_e()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Wt=>ae.createElement("div",{className:Hn,style:Wt},ae.createElement(ye,Object.assign({},la,{ref:aa}))))(Yt?void 0:{display:"none"});return ya(We==="picture-card"||We==="picture-circle"?ae.createElement("span",{className:Dn},Rn(Kn,!!Yt)):ae.createElement("span",{className:Dn},Kn,Rn()))};var kn=ae.forwardRef(Qt),nt=function(me,Ce){var Ee={};for(var Te in me)Object.prototype.hasOwnProperty.call(me,Te)&&Ce.indexOf(Te)<0&&(Ee[Te]=me[Te]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Te=Object.getOwnPropertySymbols(me);Ve<Te.length;Ve++)Ce.indexOf(Te[Ve])<0&&Object.prototype.propertyIsEnumerable.call(me,Te[Ve])&&(Ee[Te[Ve]]=me[Te[Ve]]);return Ee},An=ae.forwardRef((me,Ce)=>{var{style:Ee,height:Te}=me,Ve=nt(me,["style","height"]);return ae.createElement(kn,Object.assign({ref:Ce},Ve,{type:"drag",style:Object.assign(Object.assign({},Ee),{height:Te})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=kt;var Bn=Zn}}]);