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__Forums__Detail__id.f1957...

130 lines
384 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[508],{26227:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ae}});var te=ge(54476),fe=ge(59301),We={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"},Ie=We,le=ge(7657),Be=function(ze,Te){return fe.createElement(le.Z,(0,te.Z)({},ze,{ref:Te,icon:Ie}))},se=fe.forwardRef(Be),Ae=se},87169:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ae}});var te=ge(54476),fe=ge(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ie=We,le=ge(7657),Be=function(ze,Te){return fe.createElement(le.Z,(0,te.Z)({},ze,{ref:Te,icon:Ie}))},se=fe.forwardRef(Be),Ae=se},33853:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ae}});var te=ge(54476),fe=ge(59301),We={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"},Ie=We,le=ge(7657),Be=function(ze,Te){return fe.createElement(le.Z,(0,te.Z)({},ze,{ref:Te,icon:Ie}))},se=fe.forwardRef(Be),Ae=se},38819:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ae}});var te=ge(54476),fe=ge(59301),We={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"},Ie=We,le=ge(7657),Be=function(ze,Te){return fe.createElement(le.Z,(0,te.Z)({},ze,{ref:Te,icon:Ie}))},se=fe.forwardRef(Be),Ae=se},69453:function(be,at){"use strict";at.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},72179:function(){"use strict";function be(ae,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(be.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(be.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(be.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ae];x||(x=[],go.Shape._FigureParameters[ae]=x),x[a]=y};var at=[];function ge(ae,a){var y=at.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=at.pop();return ae===void 0?new go.Point:ae}function fe(ae){at.push(ae)}function We(ae,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,re=b-z,ie=NaN,ce=NaN;if(oe===0)if(re===0)ae===y&&(ie=ae,ce=a);else{var me=(E-ee)/re,Fe=E-me*b;ie=ae,ce=me*ie+Fe}else if(re===0){var De=(a-x)/oe,ct=a-De*ae;ie=b,ce=De*ie+ct}else{var De=(a-x)/oe,me=(E-ee)/re,ct=a-De*ae,Fe=E-me*b;ie=(Fe-ct)/(De-me),ce=De*ie+ct}return ne.x=ie,ne.y=ce,ne}function Ie(ae,a,y,x,b,E,z,ee,ne,oe,re,ie,ce,me){var Fe=1-ne,De=ne,ct=ae*Fe+y*De,Nt=a*Fe+x*De,Xt=y*Fe+b*De,ye=x*Fe+E*De,Ye=b*Fe+z*De,nt=E*Fe+ee*De,Qe=ct*Fe+Xt*De,it=Nt*Fe+ye*De,Dt=Xt*Fe+Ye*De,Tt=ye*Fe+nt*De,At=Qe*Fe+Dt*De,Vt=it*Fe+Tt*De;oe.x=ct,oe.y=Nt,re.x=Qe,re.y=it,ie.x=At,ie.y=Vt,ce.x=Dt,ce.y=Tt,me.x=Ye,me.y=nt}var le=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=le,b.spot2=Be,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var x=ae?ae.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 Ae=[];function Oe(){var ae=Ae.pop();return ae===void 0?[]:ae}function ze(ae){ae.length=0,Ae.push(ae)}function Te(ae){for(var a=Oe(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ae;z++)E=2*Math.PI/ae*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Ge(ae){var a=Ce(ae),y=Oe();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return ze(a),y}function Ce(ae){for(var a=Te(ae),y=Oe(),x=Math.floor(a.length/2),b=a.length-1,E=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],ze(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var x=Te(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()),ze(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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()),ze(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var x=Ge(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var x=Ge(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var x=Ge(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var x=Ge(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var x=Ge(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var x=Ge(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<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(),ze(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var x=ae?ae.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=le,E.spot2=Be,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.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(ae,a,y){var x=se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var x=ae?ae.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),ne=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(ne,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var x=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,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,ne=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-ne+ee-.02)*y)),E=.2,z=0,ee=-.3,ne=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,ne=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-E)*y);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)),E=.4,b=se*.4;var oe=te(),re=te(),ie=te(),ce=te();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ce,ce);var me=te(),Fe=te(),De=te();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ce,ce,De,me,Fe);var ct=te(),Nt=te(),Xt=te();Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ct,Nt,Xt,ce,ce);var ye=te(),Ye=te(),nt=te();return Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ce,ce,nt,ye,Ye),ne.add(new go.PathSegment(go.PathSegment.Move,nt.x*a,nt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ye.x*a,ye.y*y,Ye.x*a,Ye.y*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,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,nt.x*a,nt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Xt.x*a,Xt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,Fe.x*a,Fe.y*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,Xt.x*a,Xt.y*y,ct.x*a,ct.y*y,Nt.x*a,Nt.y*y).close()),fe(oe),fe(re),fe(ie),fe(ce),fe(me),fe(Fe),fe(De),fe(ct),fe(Nt),fe(Xt),fe(ye),fe(Ye),fe(nt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var x=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te(),ce=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var me=ge(oe.x,oe.y);Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,oe,re,ie);var Fe=ge(oe.x,oe.y);ce.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ce.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=se*.35;var De=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),De.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 ct=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ct),fe(ne),fe(oe),fe(re),fe(ie),fe(me),fe(Fe),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(ae,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*se,ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(ne),ne.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)),ne.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)),ne.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)),ne.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)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var ne=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(ne),ne.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)),ne.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)),ne.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)),ne.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 ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(ne),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(ae,a,y){var x=ae?ae.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(ae,a,y){var x=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var re=We(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),fe(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var re=We(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),fe(re),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var x=ae?ae.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 ne=We(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=We(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=We(0,.5,.3,ee/y,0,E/y,1,E/y,te());return oe.spot1=new go.Spot(ie.x,ie.y),ie=We(.7,ne/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 be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var x=ae?ae.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 ne=We(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=We(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var x=ae?ae.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=We(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var x=ae?ae.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=We(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var x=ae?ae.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 ne=We(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var x=ae?ae.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 ne=We(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var x=ae?ae.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.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(ae,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(ae,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(ae,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(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*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-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*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-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.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,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*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-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*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-se*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-se*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.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-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*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+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*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(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*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-se*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-se*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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.2,E=.1,z=se*b,ee=se*E,ne=.5,oe=.1,re=new go.PathFigure(ne*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+E)*y,(ne-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-E)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-E)*y,(ne+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+E)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+E)*y));var ie=.05,ce=se*ie;ne=.05,oe=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+ce)*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ce=se*ie,ne=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ce=se*ie,ne=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ce=se*ie,ne=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ce=se*ie,ne=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-ce)*y,(ne-ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var x=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=se*.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=se*.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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.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 ne=new go.PathFigure(.8*a,.75*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ae,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(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.4,z=se*.1,ee=.1,ne=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((ne+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.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=se*.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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),ne.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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.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=se*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,ne.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ne),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)),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.Move,(z-E+.1)*a,ee*y)),ne.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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,ne=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ce=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var me=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var Fe=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,ne=.8,oe=.5;var De=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ne=1,oe=.5;var ct=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie);var ce=ge(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=se*.3,E=.3,Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(ne),fe(oe),fe(re),fe(ie),fe(ce),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ae,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,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ce=.5,me=0,Fe=new go.PathFigure(ne*a,(1-oe)*y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Fe.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)),Fe.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)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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,ne=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ce=z,me=z,Fe=re*ce,De=re*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,ne*y,(ee-(Fe+ce)/2)*a,(ne+(me+De)/2)*y,(ee-ce)*a,(ne+De)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-me)*y,(ee-ce)*a,(ne-De)*y,(ee-Fe)*a,(ne-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,ne*y,(ee+Fe)*a,(ne-me)*y,(ee+ce)*a,(ne-De)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(ne+De)*y,(ee+(Fe+ce)/2)*a,(ne+(me+De)/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 ct=new go.PathFigure(.2*a,y,!1);x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=se*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=se*.1,ne=.2,oe=.9,re=new go.PathFigure((ne-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,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(ae,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 ne=.1,oe=se*.1,re=.1,ie=.9,ce=new go.PathFigure((re-ne)*a,ie*y,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),ne=.1,oe=se*.1,re=.4,ie=.9;var me=new go.PathFigure((re-ne)*a,ie*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=se*.05,ce=.175,me=.95,ee=new go.PathFigure((ce-re)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.375,me=.95,ne=new go.PathFigure((ce-re)*a,me*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.625,me=.95,oe=new go.PathFigure((ce-re)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.825,me=.95,Fe=new go.PathFigure((ce-re)*a,me*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y).close());var De=new go.PathFigure(0,y,!1);return x.add(De),De.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ae,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,ne=se*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-ne)*y,(oe-ne)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ne)*a,(re-ee)*y,(oe+ee)*a,(re-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ne)*y,(oe+ne)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ne)*a,(re+ee)*y,(oe-ee)*a,(re+ne)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.3,E=se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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=se*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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 ne=new go.PathFigure(.5*a,.1*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ae,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(ae,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 ne=new go.PathFigure(a*.816,y,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ae,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 ne=new go.PathFigure(a*1,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ae,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(ae,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(ae,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 ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var x=new go.Geometry,b=8,E=b*se,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 ne=new go.PathFigure(a*.83,y*1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.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(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=15,E=b*se,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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")},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var be={},at="5.0",ge={},te=null,fe=!1,We=!1,Ie=null,le=!1,Be=null,se=null,Ae=0;Ae<arguments.length;Ae++){var Oe=arguments[Ae];if(Oe!==null)switch(typeof Oe){case"number":at=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?at=Oe:Ie=Oe;break;case"object":typeof Oe.is3D!="undefined"?te=Oe:ge=Oe;break;case"boolean":fe=Oe,We=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!We&&(fe=!0)),Ie!==null&&ge.id===void 0&&(ge.id=Ie);var ze="",Te="",Ge=!1,Ce=null,ae=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ne=function(we){return parseFloat(we)>4?parseFloat(we):5};be.setHTML5Codebase=function(we,Ee){se=we,Tt(we,Ee)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(we,Ee){var Ve=parseFloat(we);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}Be=we,Dt(we,Ee)},be.getHTML5CodebaseVersion=function(){return ae},be.getParameters=function(){return ge},be.setFontsCSSURL=function(we){z=we},be.setGiacJSURL=function(we){},be.setJNLPFile=function(we){ze=we},be.setJNLPBaseDir=function(we){},be.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Ve=ge.id,yt,qe=!1,pt=0;pt<arguments.length;pt++){var de=arguments[pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Ve=arguments[pt]):typeof de=="boolean"?qe=de:de instanceof HTMLElement&&(yt=de)}et();function et(){if(!le){setTimeout(et,200);return}Ee=Qe(Ee);var Ot=yt||document.getElementById(Ve);if(!Ot){console.log("possibly bug on ajax loading? ");return}if(be.removeExistingApplet(Ot,!1),ge.width===void 0&&Ot.clientWidth&&(ge.width=Ot.clientWidth),ge.height===void 0&&Ot.clientHeight&&(ge.height=Ot.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Ce=Ee,Ee==="screenshot")Nt(Ot,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||we())&&re()),_t?(Ce="screenshot",ye(Ot,ge,qe,Ee)):ct(Ot,ge,qe)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}be.getViews=function(){return te},be.isJavaInstalled=function(){return!1};var ie=function(we){var Ee=function(pt){var de=JSON.parse(pt),et=function(Gt){return Gt.type=="G"||Gt.type=="E"},Ot=de.elements?de.elements.filter(et)[0]:de;if(!Ot||!Ot.url){Ve();return}ge.fileName=Ot.url,ce(Ot.settings||{}),te.is3D=!0;var _t="https://www.geogebra.org/images/";be.setPreviewImage(x||Ot.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),we()},Ve=function(){ge.onError&&ge.onError(),At("Error: Fetching material (id "+ge.material_id+") failed.",ge)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",qe="/materials/"+ge.material_id+"?scope=basic";me("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(qe),Ee,Ve)};function ce(we){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){we[Ve]=!!we[Ve]}),Ee.forEach(function(Ve){ge[Ve]===void 0&&we[Ve]!==void 0&&(ge[Ve]=we[Ve])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function me(we,Ee,Ve){var yt=new XMLHttpRequest;yt.open("GET",we),yt.onload=function(){Ee(yt.responseText)},yt.onerror=Ve,yt.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Ce},be.setPreviewImage=function(we,Ee,Ve){x=we,b=Ee,E=Ve},be.removeExistingApplet=function(we,Ee){var Ve;typeof we=="string"&&(we=document.getElementById(we)),Ce=null;var yt=null;for(Ve=0;Ve<we.childNodes.length;Ve++){var qe=we.childNodes[Ve],pt=qe.className;pt==="applet_screenshot"?Ee?(qe.style.display="block",Ce="screenshot"):qe.style.display="none":pt!=="applet_scaler prerender"&&(we.removeChild(qe),yt=pt&&pt.indexOf("appletParameters")!=-1?qe.id:null,Ve--)}var de=ge.id!==void 0?ge.id:yt,et=window[de];et&&typeof et.getBase64=="function"&&(et.remove(),window[de]=null)},be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=be.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var we=be.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},be.stopAnimation=function(){var we=be.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},be.getAppletObject=function(){var we=ge.id!==void 0?ge.id:"ggbApplet";return window[we]},be.resize=function(){};var Fe=function(we,Ee,Ve){var yt=document.createElement("param");yt.setAttribute("name",Ee),yt.setAttribute("value",Ve),we.appendChild(yt)},De=function(we){return we&&we!=="false"},ct=function(we,Ee,Ve){ne(ae)<=4.2&&(Ve=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var pt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(ne(ae)<=4.4)De(Ee.showToolBar)&&(Ee.height-=7),De(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&De(Ee.showToolBar)&&(Ee.width=605,pt=605);else{var et=100;(De(Ee.showToolBar)||De(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),et=De(Ee.showMenuBar)?245:155),pt<et&&(Ee.width=et,pt=et)}qe.style.border="none",qe.style.display="inline-block";for(var Ot in Ee)Ee.hasOwnProperty(Ot)&&Ot!=="appletOnLoad"&&qe.setAttribute("data-param-"+Ot,Ee[Ot]);z&&qe.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(we,Ee)},window.addEventListener("resize",function(vt){be.resize()});var _t=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Ve&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var Gt=we.querySelector(".applet_scaler.prerender"),Ne=Gt!==null;if(Ne)var Le=Gt.querySelector(".ggb_preview");else{var Le=nt(pt,de,Ee.borderColor,!1);Gt=document.createElement("div"),Gt.className="applet_scaler",Gt.style.position="relative",Gt.style.display="block",Gt.style.width=pt+"px",Gt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),ne(ae)>=5?(Ee.appletOnLoad=function(vt){var It=we.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Gt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(vt)},Ne||Gt.appendChild(Le)):qe.appendChild(Le),Gt.appendChild(qe),Ne||we.appendChild(Gt),setTimeout(function(){be.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(qe),we.appendChild(Pe),Ee.appletOnLoad=function(vt){be.resize(),_t(vt)}}function Me(vt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vt,It.appletOnLoad):renderGGBElement(vt),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function Ze(vt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(nn){Me(nn.article,nn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(vt.className+=" geogebraweb")):Me(vt,It)}if(yt){scriptLoadStarted=!0;for(var ot=0;ot<qe.childNodes.length;ot++){var Pt=qe.childNodes[ot].tagName;Pt==="TABLE"&&(qe.removeChild(qe.childNodes[ot]),ot--)}if(ggbHTML5LoadedScript!==null){var bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');bt!=null&&bt.parentNode.removeChild(bt)}var wt=document.createElement("script"),zt=function(){Ze(qe,Ee)};wt.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=wt.src,At("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ee),!se&&(!Be||Be=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Te.requirejs?__webpack_require__.e(3690).then(function(){var vt=[__webpack_require__(63690)];zt.apply(null,vt)}.bind(this)).catch(__webpack_require__.oe):(wt.onload=zt,we.appendChild(wt))}else Ze(qe,Ee);Ee.height=de,Ee.width=pt},Nt=function(we,Ee,Ve){var yt=nt(Ee.width,Ee.height,Ee.borderColor,Ve),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Ee.width+"px",qe.style.height=Ee.height+"px",qe.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),qe.appendChild(yt);var pt=GGBAppletUtils.getScale(Ee,we,Ve);Ve?(we.appendChild(Ye()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),we.appendChild(qe),pt!==1&&!isNaN(pt)&&(GGBAppletUtils.scaleElement(qe,pt),qe.style.width=Ee.width+"px",qe.style.height=Ee.height+"px",qe.parentNode.style.width=Ee.width*pt+"px",qe.parentNode.style.height=Ee.height*pt+"px"),be.resize=function(){Xt(we,yt,qe,Ve)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function Xt(we,Ee,Ve,yt){if(we.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var qe=GGBAppletUtils.getScale(ge,we,yt);Ve.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(Ve,qe),Ve.parentNode.style.width=ge.width*qe+"px",Ve.parentNode.style.height=ge.height*qe+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=ge.width+"px",Ve.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}be.onExitFullscreen=function(we,Ee){Ee.appendChild(we)};var ye=function(we,Ee,Ve,yt){Nt(we,Ee,!0);for(var qe=function(){var et=[];for(de=0;de<we.childNodes.length;de++)et.push(we.childNodes[de]);if(window.GGBT_wsf_view){var Ot=window.GGBT_wsf_view.renderFullScreen(we,Ee.id),_t=document.getElementById("fullscreencontainer"),Gt=jQuery(we).find(".fullscreencontent");Gt.length>0?(Ot.remove(),Gt.attr("id","fullscreencontent").show(),jQuery(_t).append(Gt),window.dispatchEvent(new Event("resize"))):ct(Ot,Ee,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Ce=yt,ct(we,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<et.length;de++)we.removeChild(et[de])},pt=we.getElementsByClassName("ggb_preview_play"),de=0;de<pt.length;de++)pt[de].addEventListener("click",qe,!1),pt[de].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.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");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Ee:Ve.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Ve)}return we},nt=function(we,Ee,Ve,yt){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=we-2+"px",qe.style.height=Ee-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var pt="lightgrey";Ve!==void 0&&(Ve==="none"?pt="transparent":pt=Ve),qe.style.border="1px solid "+pt;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 et,Ot,_t;if(!yt){et=document.createElement("img"),et.style.position="absolute",et.style.zIndex="1001",et.style.opacity=1,de.style.opacity=.3,Ot=360,Ot>we/4*3&&(Ot=we/4*3),_t=Ot/5.8,et.setAttribute("src",b),et.setAttribute("width",Ot),et.setAttribute("height",_t);var Gt=(we-Ot)/2,Ne=(Ee-_t)/2;et.style.left=Gt+"px",et.style.top=Ne+"px",qe.appendChild(et)}}return qe.appendChild(de),qe},Qe=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],Dt=function(we,Ee){if(ae=we,Ee){Tt(ae,!0);return}var Ve=!fe;if(Ve){var yt=ne(ae);!isNaN(yt)&&yt<4.4&&(Ve=!1)}var qe,pt;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var de=ae.indexOf("//");de>0?pt=ae:de===0?pt=qe+ae:pt="https://www.geogebra.org/apps/5.2.814.0/";for(var et in it)if(ae.slice(it[et].length*-1)===it[et]||ae.slice((it[et].length+1)*-1)===it[et]+"/"){Tt(pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!De(ge.showToolBar)&&!De(ge.showMenuBar)&&!De(ge.showAlgebraInput)&&!De(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?pt+="webSimple/":pt+="web3d/",Tt(pt,!1)},Tt=function(we,Ee){if(we.requirejs){Te=we;return}we.slice(-1)!=="/"&&(we+="/"),Te=we,Ee===null&&(Ee=we.indexOf("http")===-1),Ge=Ee,a="web.nocache.js",y=!1;var Ve=Te.split("/");Ve.length>1&&(!Ee&&Ve[Ve.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Ve[Ve.length-2])>=0&&(a=Ve[Ve.length-2]+".nocache.js")),Ve=we.split("/"),ae=Ve[Ve.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var yt=parseFloat(ae);yt!==NaN&&yt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),Dt("5.0",Ee))},At=function(we,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(we)};ge.material_id!==void 0?ie(Vt):Vt();function Vt(){var we=at;Be!==null?we=Be:parseFloat(we)<5&&(we="5.0"),Dt(we,!1),se!==null&&Tt(se,Ge),le=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function at(le,Be){Be!=1?(le.style.transformOrigin="0% 0% 0px",le.style.webkitTransformOrigin="0% 0% 0px",le.style.transform="scale("+Be+","+Be+")",le.style.webkitTransform="scale("+Be+","+Be+")",le.style.maxWidth="initial",le.querySelector(".ggb_preview")!==null&&(le.querySelector(".ggb_preview").style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(le.style.transform="none",le.style.webkitTransform="none")}function ge(le,Be,se,Ae,Oe,ze){var Te=null;if(ze!=null&&ze!="")for(var Ge=le.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+ze+" ")>-1){Te=Ge;break}else Ge=Ge.parentNode;var Ce=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(Te)Ce=Te.offsetWidth,ae=Math.max(Ae?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),le){var z=le.getBoundingClientRect();z.left>0&&z.left<=Ce&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return le&&((se===void 0||!se)&&Be>0&&Be+y<Ce?Ce=Be:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=E)),{width:Ce,height:ae}}function te(le,Be,se,Ae,Oe){if(le.isScreenshoGenerator)return 1;var ze=Ae!==void 0&&Ae,Te=le.noScaleMargin!=null&&le.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Ce=Ge(le.autoHeight),ae=ge(Be,le.width,se,Ce,ze&&window.GGBT_wsf_view||Te,Oe),a=parseInt(ae.width),y=le.width,x=le.height;if(y===void 0){var b=Be.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=ze?1:ae.height/x;return se!==void 0&&!se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(le,Be,se){var Ae=1,Oe,ze=!1;if(le.hasOwnProperty("allowUpscale")&&(ze=le.allowUpscale),le.hasOwnProperty("scale")&&(Ae=parseFloat(le.scale),(isNaN(Ae)||Ae===null||Ae===0)&&(Ae=1),Ae>1&&(ze=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze=!0),!(le.hasOwnProperty("disableAutoScale")&&le.disableAutoScale))Oe=te(le,Be,ze,se,le.scaleContainerClass);else return Ae;return ze&&(!le.hasOwnProperty("scale")||Ae===1)?Oe:Math.min(Ae,Oe)}function We(le){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=le.getBoundingClientRect(),Oe=(Be-Ae.width)/2,ze=(se-Ae.height)/2;ze<0&&(ze=0),le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?le.style.left="40px":le.style.left=Oe+"px",le.style.top=ze+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze<40?le.style.top="40px":le.style.top=ze+"px",le.style.left=Oe+"px")}function Ie(le,Be){var se=le.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(le)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Ae=fe(Be,le);be()&&se.setAttribute("data-param-scale",Ae);for(var Oe=null,ze=0;ze<le.childNodes.length;ze++)if(le.childNodes[ze].className!==void 0&&le.childNodes[ze].className.match(/^applet_scaler/)){Oe=le.childNodes[ze];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Te=Be.id!==void 0?Be.id:"ggbApplet",Ge=window[Te];(Ge==null||!Ge.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Ae)&&Ae!==1?(Oe.parentNode.style.width=Be.width*Ae+"px",Oe.parentNode.style.height=Be.height*Ae+"px",at(Oe,Ae)):(at(Oe,1),Oe.parentNode.style.width=Be.width+"px",Oe.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:be,positionCenter:We,getScale:fe,scaleElement:at}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,at){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(be){var at=s[L].bindings;s[L].bindings=function(){for(var ge=at?at():{},te=be[webModule.__softPermutationId],fe=O;fe<te.length;fe++){var We=te[fe];ge[We[O]]=We[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var at=document.compatMode==U?V:W;t.write(at+X),t.close()}}}function w(be){function at(te){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=fe();if(We){te();return}function Ie(){if(!We){if(!fe())return;We=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),le&&clearInterval(le)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var le=setInterval(function(){Ie()},$)}function ge(te){var fe=u(),We=fe.body,Ie=fe.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=te,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),We.appendChild(Ie)}at(function(){ge(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var at=u(),ge=at.body,te=at.createElement(_);te.language=ab,te.text=be,ge.appendChild(te),ge.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var at=c[be];return at==null?null:at},r=d,webModule.__errFn=e}function B(){function be(le){var Be=le.lastIndexOf(rb);Be==-1&&(Be=le.length);var se=le.indexOf(sb);se==-1&&(se=le.length);var Ae=le.lastIndexOf(tb,Math.min(se,Be));return Ae>=O?le.substring(O,Ae+P):W}function at(le){if(!le.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=le+vb,le=be(Be.src)}return le}function ge(){var le=__gwt_getMetaProperty(wb);return le!=null?le:W}function te(){for(var le=o.getElementsByTagName(_),Be=O;Be<le.length;++Be)if(le[Be].src.indexOf(xb)!=-1)return be(le[Be].src);return W}function fe(){var le=o.getElementsByTagName(yb);return le.length>O?le[le.length-P].href:W}function We(){var le=o.location;return le.href==le.protocol+zb+le.host+le.pathname+le.search+le.hash}var Ie=ge();return Ie==W&&(Ie=te()),Ie==W&&(Ie=fe()),Ie==W&&We()&&(Ie=be(o.location.href)),Ie=at(Ie),Ie}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],at=O,ge=[],te=[];function fe(le){var Be=te[le](),se=ge[le];if(Be in se)return Be;var Ae=[];for(var Oe in se)Ae[se[Oe]]=Oe;throw r&&r(le,Ae,Be),null}if(__gwt_isKnownPropertyValue=function(le,Be){return Be in ge[le]},webModule.__getPropMap=function(){var le={};for(var Be in ge)ge.hasOwnProperty(Be)&&(le[Be]=fe(Be));return le},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Ie=We.indexOf(Db);Ie!=-1&&(at=parseInt(We.substring(Ie+P),$),We=We.substring(O,Ie))}catch(le){}return webModule.__softPermutationId=at,C(We+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})()},82977:function(be,at,ge){"use strict";ge.d(at,{Ax:function(){return Ie},Ds:function(){return le},KI:function(){return se},SI:function(){return We},f1:function(){return fe}});var te=ge(49647);function fe(Ae){let Oe=!0;if(Ae.length>0){for(let ze=0;ze<Ae.length;ze++)if(Ae[ze].compile_success==0||!Ae[ze].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function We(Ae,Oe=""){let ze=[];for(let Te=0;Te<Ae.length;Te++){let Ge=Ae[Te],Ce=Oe?`${Oe}/${Ge.name}`:`${Ge.name}`;ze.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Ce})}return ze}function Ie(Ae,Oe,ze){for(let Te=0;Te<Ae.length;Te++){let Ge=Ae[Te];if(Ge.key===Oe){Ge.children=ze;break}Ge.children&&Ie(Ge.children,Oe,ze)}return Ae}function le(Ae,Oe,ze){let Te;return function(){let Ge=this,Ce=arguments,ae=function(){Te=null,ze||Ae.apply(Ge,Ce)},a=ze&&!Te;clearTimeout(Te),Te=setTimeout(ae,Oe),a&&Ae.apply(Ge,Ce)}}const Be=!0,se=te.Z.API_SERVER},5140:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var te=ge(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=ge(92310),Ie=ge.n(We),le=ge(71418),Be=ge(2859),se=ge(98280),Ae=ge(19374),Oe=(Ge,Ce,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(Ge,Ce)).next())}),Te=({data:Ge,className:Ce,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[re,ie]=(0,te.useState)(!1),[ce,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Fe()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ge==null?void 0:Ge.visible]);const Fe=()=>Oe(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ae.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=ye,z.current.onload=function(){Xt()},ie(!1),me("")}),De=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},ct=ye=>Oe(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ye=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:ye.dataUrl}});Ye!=null&&Ye.id&&!E?(yield(0,se.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ye==null?void 0:Ye.id,settings:JSON.stringify(ye.state)}})).status===0&&x():Ye!=null&&Ye.id&&x(Ye),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ie(!1),me("")}),Nt=()=>{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(nt=>{const Qe=document.querySelector(nt.name);Qe&&Qe.setAttribute("title",nt.title)})},Xt=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ct),ee.current.addEventListener("beforeclose",De),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(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return te.createElement(te.Fragment,null,(Ge==null?void 0:Ge.visible)&&te.createElement(le.Z,{spinning:re,tip:ce,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:Ie()(fe.imageDimensions,Ce,ae?fe.fullWidth:""),style:a},te.createElement("img",{className:fe.img,ref:z}))))}},88601:function(be,at,ge){"use strict";var te=ge(59301),fe=ge(95237),We=ge(43604),Ie=ge(99313),le=ge(3113),Be=ge(12470),se=ge(69453),Ae=ge(48136),Oe=ge(59301);const ze=(0,te.forwardRef)(({callback:Te,showSaveButton:Ge,value:Ce=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Oe.createElement(We.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},Oe.createElement("h1",null,oe.name),Oe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Oe.createElement(We.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Oe.createElement(Be.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,ne)=>Oe.createElement(We.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Oe.createElement("div",{key:re},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Oe.createElement(We.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Oe.createElement(Be.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Te&&Te(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:se.Z.mathWrap},Oe.createElement(Ie.default,{defaultActiveKey:"1",items:E}),Oe.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Ge&&Oe.createElement("div",{className:se.Z.button},Oe.createElement(le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});at.Z=ze},98679:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ie}});var te=ge(59301),fe=ge(59195),We=ge(11611),Ie=()=>{const[le,Be]=(0,te.useState)(""),[se,Ae]=(0,te.useState)(0);let[Oe,ze]=(0,te.useState)(),[Te,Ge]=(0,te.useState)();const[Ce,ae]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>fe.Z.subscribe("preview-image",ce=>{Be(ce),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=le},[le]);function y(ie){ie.keyCode==27&&a.current&&x()}function x(){document.body.style.overflow="auto",ze(void 0),Ge(void 0),Ae(0),Be("")}function b(){Ae(se+90)}function E(){Oe=oe.current.width*1.1,Te=oe.current.height*1.1,Ge(Te),ze(Oe)}function z(){Oe=oe.current.width/1.1,Te=oe.current.height/1.1,Ge(Te),ze(Oe)}const ee=(0,te.useRef)(),ne=(0,te.useRef)(),oe=(0,te.useRef)(),re=ie=>{(ie.nativeEvent.target===ee.current||ie.nativeEvent.target===ne.current)&&x()};return te.createElement(te.Fragment,null,le?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ne},te.createElement(We.Z,{className:"image-preview",src:le,style:{display:"none"},preview:{visible:!0,src:le,movable:!1,onVisibleChange:ie=>{Be("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},45923:function(be,at,ge){"use strict";ge.d(at,{h:function(){return ee}});var te=ge(59301),fe=ge(57809),We=ge(78241),Ie=ge(3113),le=ge(89780),Be=ge.n(le),se=ge(6303),Ae=ge(87671),Oe=Object.defineProperty,ze=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,re)=>oe in ne?Oe(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):ne[oe]=re,y=(ne,oe)=>{for(var re in oe||(oe={}))Ce.call(oe,re)&&a(ne,re,oe[re]);if(Ge)for(var re of Ge(oe))ae.call(oe,re)&&a(ne,re,oe[re]);return ne},x=(ne,oe)=>ze(ne,Te(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"]};at.Z=({callback:ne,onCancel:oe})=>{const[re,ie]=(0,te.useState)("python");function ce(Fe){ie(z[Fe][1])}function me(Fe){ne(Fe)}return te.createElement(We.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:ce},Object.keys(z).map(Fe=>te.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),te.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:re})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ie.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:re,options:ie={}}){const ce=(0,te.useRef)(),[me,Fe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let De=function(ct){const Nt=ct.getValue();oe&&oe(Nt)};return me.on("change",De),()=>{me.off("change",De)}}},[me,oe]),(0,te.useEffect)(()=>{me&&me.setOption("mode",re)},[me,re]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(ce.current&&!me){const De=Be().fromTextArea(ce.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Fe(De)}},[ce.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:ce}))}},48551:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ct}});var te=ge(59301),fe=ge(89780),We=ge.n(fe),Ie=ge(76374),le=ge(6303),Be=ge(6313),se=ge(25717),Ae=ge(99498),Oe=ge(25419),ze=ge(67549),Te=ge(12470),Ge=({value:ue="",className:he,showTextOnly:Se,showLines:_e,style:$e={}})=>{const st=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},Ce=ge(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ue,he,Se)=>he in ue?ae(ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[he]=Se,ee=(ue,he)=>{for(var Se in he||(he={}))b.call(he,Se)&&z(ue,Se,he[Se]);if(x)for(var Se of x(he))E.call(he,Se)&&z(ue,Se,he[Se]);return ue},ne=(ue,he)=>a(ue,y(he));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ue,title:he,icon:Se,actionName:_e,className:$e="",children:st}){function kt(){ue(_e)}return Ce.createElement("a",{title:he,className:$e,onClick:kt},Ce.createElement("i",{className:`${Se}`}),st)}var ie=({watch:ue,showNullButton:he,showNullProgramButton:Se,onActionCallback:_e,fullScreen:$e,insertTemp:st,hidetoolBar:kt,extraUse:xt})=>{const xe=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!kt&&xe.map((pe,Ue)=>Ce.createElement("li",{key:Ue},pe.actionName?Ce.createElement(re,ne(ee({},pe),{onActionCallback:_e})):Ce.createElement("span",{className:"v-line"}))),he?Ce.createElement("li",null,Ce.createElement(re,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_e},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Se?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_e},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_e},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,st&&Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${st}`,onActionCallback:_e},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xt&&Ce.createElement("li",null,xt),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(re,{icon:`${$e?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:$e?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_e})))},ce=ge(44991),me=ge(78241),Fe=ge(92832),De=ge(3113),ct=Object.defineProperty,Nt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Qe=(ue,he,Se)=>he in ue?ct(ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[he]=Se,it=(ue,he)=>{for(var Se in he||(he={}))Ye.call(he,Se)&&Qe(ue,Se,he[Se]);if(ye)for(var Se of ye(he))nt.call(he,Se)&&Qe(ue,Se,he[Se]);return ue},Dt=(ue,he)=>Nt(ue,Xt(he));const Tt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ue,onCancel:he})=>{function Se(_e){ue(_e)}return te.createElement(me.default,Dt(it({},Tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Fe.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Fe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(De.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},Vt=ge(45923),we=ge(76021),Ee=ge(43418),Ve=ge(95237),yt=ge(5140),qe=ge(59301),pt=({callback:ue,onCancel:he})=>{const Se=document.createElement("canvas"),_e=Se.getContext("2d");Se.width=1e3,Se.height=800,_e.fillStyle="#ffffff",_e.fillRect(0,0,Se.width,Se.height);const $e=Se.toDataURL("image/png");return qe.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(Ve.Z,{style:{height:"100vh"}},qe.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$e,visible:!0,title:String(Date.now())},onOk:st=>{ue({src:st.url})},onClose:he})))},de=ge(12378);function et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(et,go.CommandHandler),et.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},et.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var he=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(he=Math.min(Se.position.x,he))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(he,Se.position.y))}),ue.commitTransaction("aligning left")},et.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var he=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var _e=Se.actualBounds.x+Se.actualBounds.width;he=Math.max(_e,he)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(he-Se.actualBounds.width,Se.position.y))}),ue.commitTransaction("aligning right")},et.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var he=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(he=Math.min(Se.position.y,he))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,he))}),ue.commitTransaction("alignTop")},et.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var he=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var _e=Se.actualBounds.y+Se.actualBounds.height;he=Math.max(_e,he)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,he-Se.actualBounds.height))}),ue.commitTransaction("aligning bottom")},et.prototype.alignCenterX=function(){var ue=this.diagram,he=ue.selection.first();if(he){ue.startTransaction("aligning Center X");var Se=he.actualBounds.x+he.actualBounds.width/2;ue.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(Se-_e.actualBounds.width/2,_e.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},et.prototype.alignCenterY=function(){var ue=this.diagram,he=ue.selection.first();if(he){ue.startTransaction("aligning Center Y");var Se=he.actualBounds.y+he.actualBounds.height/2;ue.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.actualBounds.x,Se-_e.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},et.prototype.alignColumn=function(ue){var he=this.diagram;he.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Se=new Array;he.selection.each(function(xt){xt instanceof go.Link||Se.push(xt)});for(var _e=0;_e<Se.length-1;_e++){var $e=Se[_e],st=$e.actualBounds.y+$e.actualBounds.height+ue,kt=Se[_e+1];kt.move(new go.Point($e.actualBounds.x,st))}he.commitTransaction("align Column")},et.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var he=this.diagram;he.startTransaction("align Row");var Se=new Array;he.selection.each(function(xt){xt instanceof go.Link||Se.push(xt)});for(var _e=0;_e<Se.length-1;_e++){var $e=Se[_e],st=$e.actualBounds.x+$e.actualBounds.width+ue,kt=Se[_e+1];kt.move(new go.Point(st,$e.actualBounds.y))}he.commitTransaction("align Row")},et.prototype.canRotate=function(ue){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<1)},et.prototype.rotate=function(ue){ue===void 0&&(ue=90);var he=this.diagram;he.startTransaction("rotate "+ue.toString());var he=this.diagram;he.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ue)}),he.commitTransaction("rotate "+ue.toString())},et.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var he=new go.Map;ue.selection.each(function(Se){he.set(Se.layer,0)}),he.iteratorKeys.each(function(Se){var _e=0;Se.parts.each(function($e){if(!$e.isSelected){var st=$e.zOrder;isNaN(st)?$e.zOrder=0:_e=Math.max(_e,st)}}),he.set(Se,_e)}),ue.selection.each(function(Se){et._assignZOrder(Se,he.get(Se.layer)+1)}),ue.commitTransaction("pullToFront")},et.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var he=new go.Map;ue.selection.each(function(Se){he.set(Se.layer,0)}),he.iteratorKeys.each(function(Se){var _e=0;Se.parts.each(function($e){if(!$e.isSelected){var st=$e.zOrder;isNaN(st)?$e.zOrder=0:_e=Math.min(_e,st)}}),he.set(Se,_e)}),ue.selection.each(function(Se){et._assignZOrder(Se,he.get(Se.layer)-1-et._findGroupDepth(Se))}),ue.commitTransaction("pushToBack")},et._assignZOrder=function(ue,he,Se){Se===void 0&&(Se=ue),ue.layer===Se.layer&&(ue.zOrder=he),ue instanceof go.Group&&ue.memberParts.each(function(_e){et._assignZOrder(_e,he+1,Se)})},et._findGroupDepth=function(ue){if(ue instanceof go.Group){var he=0;return ue.memberParts.each(function(Se){he=Math.max(he,et._findGroupDepth(Se))}),he+1}else return 0},et.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var he=ue.lastInput;if(he.key==="Up"||he.key==="Down"||he.key==="Left"||he.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)}},et.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(he){ue.push(he)}),this.diagram.parts.each(function(he){ue.push(he)}),ue},et.prototype._arrowKeyMove=function(){var ue=this.diagram,he=ue.lastInput,Se=0,_e=0;if(he.control||he.meta)Se=1,_e=1;else if(ue.grid!==null){var $e=ue.grid.gridCellSize;_e=$e.width,Se=$e.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(st){he.key==="Up"?st.move(new go.Point(st.actualBounds.x,st.actualBounds.y-Se)):he.key==="Down"?st.move(new go.Point(st.actualBounds.x,st.actualBounds.y+Se)):he.key==="Left"?st.move(new go.Point(st.actualBounds.x-_e,st.actualBounds.y)):he.key==="Right"&&st.move(new go.Point(st.actualBounds.x+_e,st.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},et.prototype._arrowKeySelect=function(){var ue=this.diagram,he=ue.lastInput,Se=null;he.key==="Up"?Se=this._findNearestPartTowards(270):he.key==="Down"?Se=this._findNearestPartTowards(90):he.key==="Left"?Se=this._findNearestPartTowards(180):he.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(he.shift?Se.isSelected=!0:he.control||he.meta?Se.isSelected=!Se.isSelected:ue.select(Se))},et.prototype._findNearestPartTowards=function(ue){var he=this.diagram.selection.first();if(he===null)return null;for(var Se=he.actualBounds.center,_e=this._getAllParts(),$e=1/0,st=he,kt=0;kt<_e.length;kt++){var xt=_e[kt];if(xt!==he&&xt.canSelect()){var xe=xt.actualBounds.center,pe=Se.directionPoint(xe),Ue=this._angleCloseness(pe,ue);if(Ue<=45){var ve=Se.distanceSquaredPoint(xe);ve*=1+Math.sin(Ue*Math.PI/180),ve<$e&&($e=ve,st=xt)}}}return st},et.prototype._angleCloseness=function(ue,he){return Math.min(Math.abs(he-ue),Math.min(Math.abs(he+360-ue),Math.abs(he-360-ue)))},et.prototype._arrowKeyTree=function(){var ue=this.diagram,he=ue.selection.first();if(he instanceof go.Node){var Se=ue.lastInput;if(Se.key==="Right"){if(!he.isTreeLeaf)if(!he.isTreeExpanded)ue.commandHandler.canExpandTree(he)&&ue.commandHandler.expandTree(he);else{var _e=this._sortTreeChildrenByY(he).first();_e!==null&&ue.select(_e)}}else if(Se.key==="Left")if(!he.isTreeLeaf&&he.isTreeExpanded)ue.commandHandler.canCollapseTree(he)&&ue.commandHandler.collapseTree(he);else{var $e=he.findTreeParentNode();$e!==null&&ue.select($e)}else if(Se.key==="Up"){var $e=he.findTreeParentNode();if($e!==null){var st=this._sortTreeChildrenByY($e),kt=st.indexOf(he);if(kt>0){for(var xt=st.elt(kt-1);xt!==null&&xt.isTreeExpanded&&!xt.isTreeLeaf;){var xe=this._sortTreeChildrenByY(xt);xt=xe.last()}xt!==null&&ue.select(xt)}else ue.select($e)}}else if(Se.key==="Down")if(he.isTreeExpanded&&!he.isTreeLeaf){var _e=this._sortTreeChildrenByY(he).first();_e!==null&&ue.select(_e)}else for(;he!==null;){var $e=he.findTreeParentNode();if($e===null)break;var st=this._sortTreeChildrenByY($e),kt=st.indexOf(he);if(kt<st.length-1){ue.select(st.elt(kt+1));break}else he=$e}var pe=ue.selection.first();pe!==null&&ue.scrollToRect(pe.actualBounds)}},et.prototype._sortTreeChildrenByY=function(ue){var he=new go.List().addAll(ue.findTreeChildrenNodes());return he.sort(function(Se,_e){var $e=Se.location,st=_e.location;return $e.y<st.y?-1:$e.y>st.y?1:$e.x<st.x?-1:$e.x>st.x?1:0}),he},et.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},et.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var Ot=et,_t=ge(72179),Gt=ge(43604),Ne=ge(98280),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=ge(59301),Me=(ue,he,Se)=>new Promise((_e,$e)=>{var st=xe=>{try{xt(Se.next(xe))}catch(pe){$e(pe)}},kt=xe=>{try{xt(Se.throw(xe))}catch(pe){$e(pe)}},xt=xe=>xe.done?_e(xe.value):Promise.resolve(xe.value).then(st,kt);xt((Se=Se.apply(ue,he)).next())});function Ze({onCancel:ue,callback:he}){let Se=(0,te.useRef)(),_e=(0,te.useRef)(),$e=(0,te.useRef)(),st=(0,te.useRef)(!1);const kt=(0,te.useRef)(!1),[xt,xe]=(0,te.useState)(0);function pe(){const ve=de.bx.make,Je={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(_e.current,{padding:20,grid:ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:je=>{var dt=je.diagram.commandHandler.addTopLevelParts(je.diagram.selection,!0);dt||je.diagram.currentTool.doCancel()},commandHandler:ve(Ot),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:je=>{var dt=je.subject;dt.location=dt.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 dt=je.subject;setTimeout(()=>{je.diagram.commandHandler.editTextBlock()})},LinkRelinked:je=>{var dt=je.parameter.part;dt.invalidateConnectedLinks();var Lt=je.subject;je.diagram.toolManager.linkingTool.isForwards?Lt.toNode.invalidateConnectedLinks():Lt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=ve(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),ve(de.bn,{name:"SHAPE",fill:Je.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")),ve(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ve(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=ve("ToolTip",ve(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},ve(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),ve(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ut(je,dt){var Lt=(ft,jt)=>{ft.handled=!0,ft.diagram.model.commit(Wt=>{var Jt=jt.part.adornedPart,un=new de.E9().setRectSpot(Jt.actualBounds,je);un.subtract(Jt.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(Jt.location),un.snapToGridPoint(ft.diagram.grid.gridOrigin,ft.diagram.grid.gridCellSize);var bn=Wt.copyNodeData(Jt.data);Wt.setGroupKeyForNodeData(bn,Wt.getGroupKeyForNodeData(Jt.data)),Wt.addNodeData(bn);var $n={from:Jt.key,to:Wt.getKeyForNodeData(bn)};Wt.addLinkData($n);var Kn=ft.diagram.findNodeForData(bn);Kn.location=un,ft.diagram.select(Kn),setTimeout(()=>{ft.diagram.commandHandler.editTextBlock()},20)})};return ve(de.bn,{figure:dt,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:Je.white,strokeWidth:4,mouseEnter:(ft,jt)=>jt.fill="dodgerblue",mouseLeave:(ft,jt)=>jt.fill="orange",isActionable:!0,click:Lt,contextClick:Lt})}function Bt(je){return ve(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(dt,Lt)=>Lt.fill="dodgerblue",mouseLeave:(dt,Lt)=>Lt.fill="orange",click:(dt,Lt)=>{dt.diagram.commandHandler.showContextMenu(Lt.part.adornedPart)}},je||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=ve(de.uz,"Spot",ve(de.Vm,{padding:10}),ut(de.z6.Top,"TriangleUp"),ut(de.z6.Left,"TriangleLeft"),ut(de.z6.Right,"TriangleRight"),ut(de.z6.Bottom,"TriangleDown"),Bt({alignment:new de.z6(.75,0)}));function Xe(je,dt){return(Lt,ft)=>{Lt.handled=!0,Lt.diagram.model.commit(jt=>{jt.set(ft.part.adornedPart.data,je,dt)})}}function St(je,dt){return dt||(dt="color"),ve(de.bn,{width:16,height:16,stroke:"lightgray",fill:je,margin:1,background:"transparent",mouseEnter:(Lt,ft)=>ft.stroke="dodgerblue",mouseLeave:(Lt,ft)=>ft.stroke="lightgray",click:Xe(dt,je),contextClick:Xe(dt,je)})}function Ft(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",St(Je.white,"fill"),St(Je.beige,"fill"),St(Je.extralightblue,"fill"),St(Je.extralightred,"fill"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",St(Je.lightgray,"fill"),St(Je.lightgreen,"fill"),St(Je.lightblue,"fill"),St(Je.lightred,"fill")))]}function Ht(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",St(Je.black),St(Je.green),St(Je.blue),St(Je.red))),ve("ContextMenuButton",ve(de.s_,"Horizontal",St(Je.white),St(Je.magenta),St(Je.purple),St(Je.orange)))]}function tt(je,dt){return dt||(dt="thickness"),ve(de.bn,"LineH",{width:16,height:16,strokeWidth:je,margin:1,background:"transparent",mouseEnter:(Lt,ft)=>ft.background="dodgerblue",mouseLeave:(Lt,ft)=>ft.background="transparent",click:Xe(dt,je),contextClick:Xe(dt,je)})}function Zt(je,dt){return dt||(dt="dash"),ve(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:je,margin:1,background:"transparent",mouseEnter:(Lt,ft)=>ft.background="dodgerblue",mouseLeave:(Lt,ft)=>ft.background="transparent",click:Xe(dt,je),contextClick:Xe(dt,je)})}function Mt(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",tt(1),tt(2),tt(3),tt(4))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Zt(null),Zt([2,4]),Zt([4,4])))]}function Et(je,dt){return dt||(dt="figure"),ve(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:je,margin:1,background:"transparent",mouseEnter:(Lt,ft)=>ft.fill="dodgerblue",mouseLeave:(Lt,ft)=>ft.fill="lightgray",click:Xe(dt,je),contextClick:Xe(dt,je)})}Se.current.nodeTemplate.contextMenu=ve("ContextMenu",ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Rectangle"),Et("RoundedRectangle"),Et("Ellipse"),Et("Diamond"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Parallelogram2"),Et("ManualOperation"),Et("Procedure"),Et("Cylinder1"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Terminator"),Et("CreateRequest"),Et("Document"),Et("TriangleDown"))),Ft(),Ht(),Mt()),Se.current.groupTemplate=ve(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(je,dt)=>{var Lt=dt.addMembers(dt.diagram.selection,!0);Lt||dt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),ve(de.s_,"Auto",{name:"BODY"},ve(de.bn,{parameter1:10,fill:Je.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")),ve(de.Vm,{background:"transparent",margin:20})),ve(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=ve(de.uz,"Spot",ve(de.s_,"Auto",ve(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ve(de.Vm,{margin:1.5})),Bt({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=ve("ContextMenu",Ft(),Ht(),Mt()),Se.current.linkTemplate=ve(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(),ve(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ve(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)),ve(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))),ve(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))),ve(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=ve(de.uz,ve(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:qt(2)},new de.KX("pathPattern","thickness",qt)),Bt({alignmentFocus:new de.z6(0,0,-6,-4)}));function qt(je){return ve(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(je+4).toString()+" H3"})}function tn(je){var dt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return je===0?dt="M0 0 M16 16 M0 8 L16 8":je===2&&(dt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ve(de.bn,{geometryString:dt,margin:2,background:"transparent",mouseEnter:(Lt,ft)=>ft.background="dodgerblue",mouseLeave:(Lt,ft)=>ft.background="transparent",click:Xe("dir",je),contextClick:Xe("dir",je)})}function ln(je){var dt=(Lt,ft)=>{Lt.handled=!0,Lt.diagram.model.commit(jt=>{var Wt=ft.part.adornedPart;jt.set(Wt.data,je?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(je?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Lt,ft)=>ft.background="dodgerblue",mouseLeave:(Lt,ft)=>ft.background="transparent",click:dt,contextClick:dt})}function Yt(je,dt){var Lt=0,ft=de.z6.RightSide;je.equals(de.z6.Top)?(Lt=270,ft=de.z6.TopSide):je.equals(de.z6.Left)?(Lt=180,ft=de.z6.LeftSide):je.equals(de.z6.Bottom)&&(Lt=90,ft=de.z6.BottomSide),dt||(Lt-=180);var jt=(Wt,Jt)=>{Wt.handled=!0,Wt.diagram.model.commit(un=>{var bn=Jt.part.adornedPart;un.set(bn.data,dt?"toSpot":"fromSpot",de.z6.stringify(ft)),(dt?bn.toNode:bn.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{alignment:je,alignmentFocus:je.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Lt,background:"transparent",mouseEnter:(Wt,Jt)=>Jt.background="dodgerblue",mouseLeave:(Wt,Jt)=>Jt.background="transparent",click:jt,contextClick:jt})}Se.current.linkTemplate.contextMenu=ve("ContextMenu",Ht(),Mt(),ve("ContextMenuButton",ve(de.s_,"Horizontal",tn(0),tn(1),tn(2))),ve("ContextMenuButton",ve(de.s_,"Horizontal",ve(de.s_,"Spot",ln(!1),Yt(de.z6.Top,!1),Yt(de.z6.Left,!1),Yt(de.z6.Right,!1),Yt(de.z6.Bottom,!1)),ve(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},ln(!0),Yt(de.z6.Top,!0),Yt(de.z6.Left,!0),Yt(de.z6.Right,!0),Yt(de.z6.Bottom,!0)))));const ke=`{ "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 On=["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 vn(je){return console.log("shapeName:",je),On.indexOf(je)>=0}var Nn=new de.YI($e.current,{maxSelectionCount:1,linkTemplate:ve(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:ve(de.uz,"Link",{locationSpot:de.z6.Center},ve(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ve(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),ve(de.bn,{isPanelMain:!0,strokeWidth:2}),ve(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 dt;const Lt=je.subject.part;var ft=(dt=document.activeElement)==null?void 0:dt.value;typeof ft=="string"&&ft.trim()===""&&Se.current.model.commit(function(jt){jt.set(Lt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Nn.nodeTemplate=ve(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),ve(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")),ve(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=ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(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 Ue=()=>Me(this,null,function*(){var ve=Se.current.makeImage();const Je=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ve.src}});he({src:Je.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{pe()},500),xe(xt+1),()=>{Se.current=null}),[]),Pe.createElement("div",{ref:kt,className:st.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ve.Z,null,Pe.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Gt.Z,{onClick:()=>{var ve,Je,ut=Se.current.selection.first();if(st.current=!st.current,document.activeElement&&ut){let Bt=(Je=(ve=document.activeElement)==null?void 0:ve.value)==null?void 0:Je.trim();typeof Bt=="string"&&Se.current.model.commit(function(Xe){Xe.set(ut.data,"text",Bt||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}xe(xt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:$e})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:_e,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(De.ZP,{size:"large",onClick:Ue,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ot=Ze,Pt=ge(5112),bt=ge(5871);const wt=Pt.ZP.Group,zt={margin:"0 8px"};var vt=({callback:ue,onCancel:he})=>{function Se(_e){ue(_e)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:zt},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(bt.Z,null)),te.createElement("span",{style:zt},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(bt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(wt,null,te.createElement(Pt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Pt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Pt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Pt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(De.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},It=ge(78673),nn=ge(25730),Sn=ge.n(nn),Kt=(0,te.forwardRef)(({use3d:ue,width:he,height:Se,callback:_e,showSaveButton:$e},st)=>{const kt=(0,te.useRef)(),xt=(0,te.useRef)(),[xe,pe]=(0,te.useState)(!1),Ue=(0,te.useRef)({id:kt,appName:"graphing",width:he||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,te.useEffect)(()=>{xt.current=new(Sn())(Ue.current,!0),window.onload=function(){xt.current.inject("applet_container")}},[]);const ve=()=>{var Je=window.ggbApplet.getPNGBase64(1,!0,72);return _e&&_e(Je),Je};return(0,te.useEffect)(()=>{Ue.current.appName=xe?"3D":"graphing",xt.current.inject("applet_container")},[xe]),(0,te.useEffect)(()=>{pe(ue)},[ue]),(0,te.useImperativeHandle)(st,()=>({getImgData:ve})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kt}),te.createElement(Ve.Z,{align:"middle"},te.createElement(Gt.Z,{flex:1},te.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xe,onChange:Je=>pe(Je)})),te.createElement(Gt.Z,null,te.createElement(De.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),an=ge(88601),on=ge(1012),pn=ge(8591);const rn="link",Pn="upload-image",Fn="add-flowchart",fn="draw-image",Dn="add-flowchart",dn="code-block",Bn="add-table",Wn="------------",Qn={default:Wn,left:`:${Wn}`,center:`:${Wn}:`,right:`${Wn}:`};var sa=ge(28934),da=(ue,he,Se)=>new Promise((_e,$e)=>{var st=xe=>{try{xt(Se.next(xe))}catch(pe){$e(pe)}},kt=xe=>{try{xt(Se.throw(xe))}catch(pe){$e(pe)}},xt=xe=>xe.done?_e(xe.value):Promise.resolve(xe.value).then(st,kt);xt((Se=Se.apply(ue,he)).next())});function An(){}let Sa=0;const oa=1e4,Pa="\u2581",Xn="@\u2581\u2581@",He="@\u2581@",Ke=`
**\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`,Re=["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 gt(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const en=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",yn={[en+"-B"]:"bold",[en+"-I"]:"italic"},$t={[rn]:"\u6DFB\u52A0\u94FE\u63A5",[dn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pn]:"\u6DFB\u52A0\u56FE\u7247",[fn]:"\u6DFB\u52A0\u753B\u56FE",[Fn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Bn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ct=({defaultValue:ue="",onChange:he,width:Se="100%",height:_e=400,miniToolbar:$e=!1,isFocus:st=!1,watch:kt,insertTemp:xt,mode:xe="markdown",id:pe="markdown-editor-id",showResizeBar:Ue=!1,noStorage:ve=!1,showNullButton:Je=!1,showNullProgramButton:ut=!1,hidetoolBar:Bt=!1,fullScreen:Xe=!1,onBlur:St,onCMBeforeChange:Ft,onFullScreen:Ht,className:tt="",disablePaste:Zt=!1,disabled:Mt=!1,disabledFill:Et=!1,placeholder:qt="",values:tn="",extraUse:ln,onAddBlank:Yt})=>{const[ke,On]=(0,te.useState)(null),[vn,Nn]=(0,te.useState)(ue),[je,dt]=(0,te.useState)(kt),[Lt,ft]=(0,te.useState)(Xe),[jt,Wt]=(0,te.useState)(""),[Jt,un]=(0,te.useState)(0),[bn,$n]=(0,te.useState)(_e),[Kn,zn]=(0,te.useState)(!1),qn=(0,te.useRef)((0,on.Z)()),Un=(0,te.useRef)(!1),_n=(0,te.useRef)(),[Yn,ea]=(0,te.useState)(0),[Cn,ra]=(0,te.useState)(0),gn=(0,te.useRef)(),wn=(0,te.useRef)(),In=(0,te.useRef)(),Rn=(0,te.useRef)(),cn=()=>da(void 0,null,function*(){var ht;const rt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(ht=rt==null?void 0:rt.attachments)!=null&&ht.length&&(console.log("cm:",ke,gn),rt.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?ke.replaceSelection(`![,](/api/attachments/${lt.id}?type=${lt.content_type})`):lt.content_type.indexOf("video")>-1?ke.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?ke.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):ke.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,te.useEffect)(()=>{const ht=window.scrollY||window.pageYOffset;Nn(tn),ke==null||ke.setValue(tn),window.scrollTo(0,ht)},[tn]),(0,te.useEffect)(()=>{Ht==null||Ht(Lt)},[Lt]),(0,te.useEffect)(()=>{if(gn.current){let ht=function(lt,mt){var Ut;if(Zt){mt.preventDefault();return}const mn=mt.clipboardData;if(mn){const xn=mn.types.toString(),En=mn.items;if(xn==="Files"||mn.types.indexOf("Files")>-1){if(mt.preventDefault(),xe=="stex")return;try{let Gn=En[1];((Ut=En[0])==null?void 0:Ut.kind)==="file"&&(Gn=En[0]);const Mn=Gn.getAsFile(),ma=Mn.name.split(".").pop();(0,we.I)(Mn,Hn=>{var La,Ln,Rt;Hn.id?((La=Mn==null?void 0:Mn.type)==null?void 0:La.indexOf("image"))>-1?rt.replaceSelection(`<img width="100%" src="/api/attachments/${Hn.id}?type=${Hn.content_type})" alt="" />`):((Ln=Mn==null?void 0:Mn.type)==null?void 0:Ln.indexOf("video"))>-1?rt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Hn.id}"></video>`):((Rt=Mn==null?void 0:Mn.type)==null?void 0:Rt.indexOf("pdf"))>-1?rt.replaceSelection(`<a href="/api/attachments/${Hn.id}?type=${Mn.type}&disposition=inline" target="_blank">${Mn.name}</a>`):Re.includes(ma)?rt.replaceSelection(`<a href="/api/attachments/${Hn.id}?type=office&disposition=inline" target="_blank">${Mn.name}</a>`):rt.replaceSelection(`[${Mn.name}](/api/attachments/${Hn.id}?type=${Hn.content_type})`):(Hn==null?void 0:Hn.status)===401&&(pn.ZP.warning((Hn==null?void 0:Hn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Gn){pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const rt=We().fromTextArea(gn.current,{mode:xe,lineNumbers:!$e,lineWrapping:!0,value:ue,autoCloseTags:!ut,autoCloseBrackets:!0});return rt.on("keyup",function(lt,mt){mt.keyCode===8&&(lt.getValue()==""?rt.setOption("placeholder",qt):rt.setOption("placeholder",null))}),rt.on("keydown",function(lt,mt){if(mt.keyCode===8){var Ut=kn(lt);Ut&&mt.preventDefault()}}),st&&rt.focus(),rt.on("paste",ht),rt.on("dragleave",function(lt,mt){wn.current.classList.remove("mouse-hover-md")}),Mt&&rt.on("beforeChange",function(lt,mt){(mt.origin==="paste"||mt.origin==="+input")&&mt.cancel()}),On(rt),()=>{rt.off("paste",ht)}}},[]);const ga=(0,te.useCallback)(()=>{if(wn.current)try{}catch(ht){console.log(ht,"---- to set md editor body height")}},[bn,wn,Lt]);(0,te.useEffect)(()=>{function ht(){let rt=new Ie.Z(lt=>{for(let mt of lt)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&(ga(),ke.setSize("100%","100%"),ke.refresh())});return rt.observe(gn.current.parentElement),rt}if(ke){const rt=ht();return()=>{var lt,mt;(lt=gn.current)!=null&&lt.parentElement&&rt.unobserve((mt=gn.current)==null?void 0:mt.parentElement)}}},[ke,ga]),(0,te.useEffect)(()=>{if(ke){let ht=[];for(const[rt,lt]of Object.entries(yn)){let mt={[rt]:()=>{ia(lt)}};ht.push(mt),ke.addKeyMap(mt)}return _n.current=setInterval(()=>{Un.current&&cn()},4e3),()=>{clearInterval(_n.current);for(let rt of ht)ke.removeKeyMap(rt)}}},[ke]),(0,te.useEffect)(()=>{Xe!==Lt&&ft(Xe)},[Xe]),(0,sa.Z)(()=>{if(!ve&&Jt>0){let ht=new Date().getTime(),rt=window.sessionStorage.getItem(pe);ht>=Jt+oa&&(!rt||rt!==vn)&&(window.sessionStorage.setItem(pe,vn),zn(!0))}},oa),(0,te.useEffect)(()=>{dt(kt)},[ke,kt]),(0,te.useEffect)(()=>{ke&&st&&ke.focus()},[ke,st]),(0,te.useEffect)(()=>{if(je&&ke){let ht=function(lt){let mt=lt.target;if(Rn.current){let Ut=mt.scrollTop/mt.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*Ut}};const rt=ke.getScrollerElement();return rt.addEventListener("scroll",ht),()=>{rt.removeEventListener("scroll",ht)}}},[ke,je]),(0,te.useEffect)(()=>{if(ke&&Ft){let ht=function(rt,lt){Ft(rt,lt)};return ke.on("beforeChange",ht),()=>{ke.off("beforeChange",ht)}}},[ke,Ft]),(0,te.useEffect)(()=>{if(ke&&St){let ht=function(){St(ke.getValue())};return ke.on("blur",ht),()=>{ke.off("blur",ht)}}},[ke,St]);function kn(ht,rt){var lt=ht.getDoc(),mt=lt.getCursor(),Ut=lt.getLine(mt.line),mn=Ut.charAt(mt.ch-1),xn=Ut.lastIndexOf("@\u2581@",mt.ch),En=Ut.lastIndexOf("@\u2581\u2581@",mt.ch),Gn=xn>En?xn:En,Mn=xn>En?3:4;if(Xn.indexOf(mn)===-1)return null;if(console.log("change1:",rt,ht,Ut,mt,Gn,xn,En,mn),Gn>=0&&mt.ch-Gn<5){var ma=Gn+Mn;return lt.replaceRange("",{line:mt.line,ch:Gn},{line:mt.line,ch:ma}),{line:mt.line,ch:ma}}return null}(0,te.useEffect)(()=>{if(ke){let ht=function(rt,lt){const mt=rt.getValue();Nn(mt),un(new Date().getTime()),rt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),he&&(ut?he(mt,la(mt)):he(mt))};return ke.on("change",ht),()=>{ke.off("change",ht)}}},[ke,he]),(0,te.useEffect)(()=>{if(ke)if(ue==null)ke.setValue(""),Nn("");else{const ht=window.scrollY||window.pageYOffset;ue!==ke.getValue()&&(ke.setValue(ue),Nn(ue),ke.setCursor(Mt?1:ke.lineCount(),0),window.scrollTo(0,ht))}},[ke,ue]);const ia=(0,te.useCallback)(ht=>{const rt=ke.getCursor(),lt=ke.getSelection();let mt=lt.split(`
`);switch(ht){case"bold":return ke.replaceSelection("**"+lt+"**"),lt===""&&ke.setCursor(rt.line,rt.ch+2),ke.focus();case"italic":return ke.replaceSelection("*"+lt+"*"),lt===""&&ke.setCursor(rt.line,rt.ch+1),ke.focus();case"code":return ke.replaceSelection("`"+lt+"`"),lt===""&&ke.setCursor(rt.line,rt.ch+1),ke.focus();case"inline-latex":return Wt("inline-latex"),ke.focus();case"latex":return ke.replaceSelection("```latex\n"+lt+"\n```"),ke.setCursor(rt.line+1,lt.length+1),ke.focus();case"line-break":return ke.replaceSelection(`<br/>
`),ke.focus();case"list-ul":return lt===""?ke.replaceSelection("- "+lt):ke.replaceSelection(mt.map(Ut=>Ut===""?"":`- ${Ut}`).join(`
`)),ke.focus();case"list-ol":return lt===""?ke.replaceSelection("1. "+lt):ke.replaceSelection(mt.map((Ut,mn)=>Ut===""?"":`${mn+1}. ${Ut}`).join(`
`)),ke.focus();case"add-null-ch":Yt==null||Yt();return;case"add-signal":return lt===""&&ke.setCursor(rt.line,rt.ch),ke.replaceSelection(He),ke.focus();case"add-multiple":return lt===""&&ke.setCursor(rt.line,rt.ch),ke.replaceSelection(Xn),ke.focus();case"inster-template-1":return lt===""&&ke.setCursor(rt.line,rt.ch),ke.replaceSelection(Ke),ke.focus();case"eraser":return ke.setValue(""),ke.focus();case"trigger-watch":return dt(!je),ke.focus();case"trigger-full-screen":return ft(!Lt),ke.focus();case rn:Wt(rn);return;case dn:Wt(dn);return;case Pn:Wt(Pn);return;case fn:Wt(fn);return;case"maths-latex":Wt("maths-latex");return;case Fn:Wt(Fn);return;case Bn:Wt(Bn);return;default:throw new Error}},[ke,je,Lt]),Vn=(0,te.useCallback)((ht,rt)=>{var lt,mt,Ut,mn,xn,En;switch(Wt(""),jt){case rn:const{title:La,link:Ln}=ht;return ke.replaceSelection(`[${La}](${Ln})`),ke.focus();case dn:const{language:Rt,content:ha}=ht;return ke.replaceSelection(["```"+Rt,ha,"```"].join(`
`)),ke.focus();case"maths-latex":for(var Gn=atob(ht),Mn=new Uint8Array(Gn.length),ma=0;ma<Gn.length;ma++)Mn[ma]=Gn.charCodeAt(ma);var Hn=new Blob([Mn],{type:"image/png"});(0,we.I)(Hn,aa=>{aa.id?ke.replaceSelection(`![,](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ke.replaceSelection("`$$"+ht+"$$`");break;case Pn:case fn:case Dn:const{src:na,alt:Jn}=ht,hn=rt,pa=(Ut=(mt=(lt=hn==null?void 0:hn.name)==null?void 0:lt.split("."))==null?void 0:mt.pop)==null?void 0:Ut.call(mt);return((mn=hn==null?void 0:hn.type)==null?void 0:mn.indexOf("image"))>-1||!(hn!=null&&hn.type)?hn.align||hn.width?ke.replaceSelection(`<p style="text-align:${hn.align||"initial"}"><img width="${hn.width?hn.width+"%":"initial"}" src="${na}" alt="${Jn||""}" /></p>`):ke.replaceSelection(`<img width="100%" src="${na}" alt="${Jn||""}" />`):((xn=hn==null?void 0:hn.type)==null?void 0:xn.indexOf("video"))>-1?ke.replaceSelection(`<video width="100%" controls src="${na}"></video>`):((En=hn==null?void 0:hn.type)==null?void 0:En.indexOf("pdf"))>-1?ke.replaceSelection(`<a href="${na}?type=${hn.type}&disposition=inline" target="_blank">${hn.name}</a>`):Re.includes(pa)?ke.replaceSelection(`<a href="${na}?type=office&disposition=inline" target="_blank">${hn.name}</a>`):ke.replaceSelection(`[${hn.name}](${na})`),ke.focus();case Bn:const{row:va,col:Fa,align:Ba}=ht;let ya=`
`;for(let aa=0;aa<va;aa++){let Ca=[],Ea=[];for(let Oa=0;Oa<Fa;Oa++)aa===1&&Ea.push(Qn[Ba]),Ca.push(" ");aa===1&&(ya+=`| ${Ea.join(" | ")} |
`),ya+=`| ${Ca.join(Fa===1?"":" | ")} |
`}return ke.replaceSelection(ya+`
`),ke.focus();default:throw new Error}},[ke,jt]),ca=(0,te.useMemo)(()=>{switch(jt){case rn:return te.createElement(At,{callback:Vn,onCancel:jn});case dn:return te.createElement(Vt.Z,{callback:Vn,onCancel:jn});case Pn:return te.createElement(we.Z,{callback:Vn,onCancel:jn});case Fn:return te.createElement(ot,{callback:Vn,onCancel:jn});case Bn:return te.createElement(vt,{callback:Vn,onCancel:jn});case"maths-latex":return te.createElement(Kt,{showSaveButton:!0,callback:Vn});case"inline-latex":return te.createElement(an.Z,{showSaveButton:!0,callback:Vn});default:return null}},[jt]);function jn(){Wt("")}(0,te.useEffect)(()=>{if(In.current){let ht=function(xn){Ut=!0,mn=xn.pageY},rt=function(){Ut=!1},lt=function(xn){if(Ut){let En=xn.pageY-mn;En<0&&(En=0),En>300&&(En=300);let Gn=_e+En+"px";$n(Gn)}},mt=In.current,Ut=!1,mn=0;return mt.addEventListener("mousedown",ht),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",rt),()=>{mt.removeEventListener("mousedown",ht),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",rt)}}},[ke,In]),(0,te.useEffect)(()=>{$n(_e)},[_e]);const ta=gt(Se),Zn=gt(bn),Tn={width:ta,height:Zn},ua=(0,te.useMemo)(()=>{if(Jt){let ht=new Date(Jt),rt=ht.getHours(),lt=ht.getMinutes(),mt=ht.getSeconds();return rt=rt<10?"0"+rt:rt,lt=lt<10?"0"+lt:lt,mt=mt<10?"0"+mt:mt,`${rt}:${lt}:${mt}`}return 0},[Jt]),la=ht=>{const rt=[];if(ut){let lt=-1;ht=ht.replace(/(@▁▁@|@▁@)/g,function(mt,Ut,mn){rt.push({multiLine:mt!==He})})}return rt};function ba(){window.sessionStorage.removeItem(pe),zn(!1),un(0)}function xa(){zn(!1),un(0),ke.setValue(window.sessionStorage.getItem(pe))}(0,te.useEffect)(()=>{$t[jt]&&jt!==fn&&jt!==Fn&&setTimeout(()=>{const ht=document.getElementsByClassName("markdown-popup-form")[0],rt=window.innerWidth/2-ht.offsetWidth/2,lt=window.innerHeight/2-ht.offsetHeight/2;ea(rt),ra(lt)},0)},[jt]);const fa=ht=>{ht.preventDefault();const rt=ht.clientX-Yn,lt=ht.clientY-Cn;document.body.onmousemove=mt=>{let Ut=mt.clientX-rt,mn=mt.clientY-lt;const xn=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth-xn.offsetWidth,Gn=window.innerHeight-xn.offsetHeight;Ut=Math.max(0,Math.min(Ut,En)),mn=Math.max(0,Math.min(mn,Gn)),wa(mt.clientX,mt.clientY,rt,lt)&&(ea(Ut),ra(mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(ht,rt,lt,mt)=>{const Ut=document.body.clientHeight,mn=document.body.clientWidth;return ht<20&&lt>ht||ht>mn-20&&lt<ht||rt<20&&mt>rt||rt>Ut-20&&mt<rt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:wn},te.createElement("div",{className:`markdown-editor-container ${tt} ${je?"on-preview":""} ${$e?"mini":""} ${Lt?"full-screen":""}`,style:Tn},te.createElement(ie,{insertTemp:xt,watch:je,fullScreen:Lt,showNullButton:Je,showNullProgramButton:ut,onActionCallback:ia,hidetoolBar:Bt,extraUse:ln}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:gn,placeholder:qt})),je?te.createElement("div",{ref:Rn,className:"preview-container"},xe==="stex"&&te.createElement(Ge,{value:vn}),xe!=="stex"&&te.createElement(Te.Z,{disabledFill:Et,showProgramFill:ut,value:vn})):null))),Ue?te.createElement("a",{ref:In,className:"editor-resize"}):null,jt===fn&&te.createElement(pt,{callback:Vn,onCancel:jn}),jt===Fn&&te.createElement(ot,{callback:Vn,onCancel:jn}),te.createElement(ce.Z,null,$t[jt]&&jt!==fn&&jt!==Fn?te.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Yn,top:Cn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:fa},$t[jt]),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:jt===Fn?"1200px":null,height:jt===Fn?"80vh":null,className:"markdown-popup-form"},ca):null))}},76021:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return re},I:function(){return ce}});var te=ge(78241),fe=ge(8591),We=ge(92832),Ie=ge(81327),le=ge(5871),Be=ge(5112),se=ge(3113),Ae=ge(82977),Oe=ge(59301),ze=ge(53229),Te=ge(59301),Ge=Object.defineProperty,Ce=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,Fe,De)=>Fe in me?Ge(me,Fe,{enumerable:!0,configurable:!0,writable:!0,value:De}):me[Fe]=De,E=(me,Fe)=>{for(var De in Fe||(Fe={}))y.call(Fe,De)&&b(me,De,Fe[De]);if(a)for(var De of a(Fe))x.call(Fe,De)&&b(me,De,Fe[De]);return me},z=(me,Fe)=>Ce(me,ae(Fe));const{useForm:ee}=te.default,ne={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:me,onCancel:Fe})=>{const[De]=ee();let ct=(0,Oe.useRef)();function Nt(Ye){ct.current.width=De.getFieldValue("width"),ct.current.align=De.getFieldValue("align"),me(Ye,ct.current)}function Xt(Ye,nt){if(Ye.status===-1){fe.ZP.error(Ye.message);return}De.setFieldsValue({src:`/api/attachments/${Ye.id}`,type:nt.type})}function ye(Ye){let nt=Ye.target.files[0];ct.current=nt,ce(nt,Xt)}return Te.createElement(te.default,z(E({form:De},oe),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(We.default,{style:ne})),Te.createElement(ie,{onFileChange:ye}))),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(We.default,{style:{width:264}})),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Ie.Z,null,Te.createElement(te.default.Item,{name:"width",style:{margin:0}},Te.createElement(le.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Be.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"}]})),Te.createElement("aside",null,Te.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(se.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function ie({onFileChange:me}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:me}))}function ce(me,Fe){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ze.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let De=new FormData;De.append("editormd-image-file",me),De.append("file_param_name","editormd-image-file"),De.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(Nt){Fe(JSON.parse(Nt.target.responseText),me)},!1),ct.addEventListener("error",function(Nt){console.error(Nt)},!1),ct.open("POST",`${Ae.KI}/api/attachments.json`),ct.send(De)}},44991:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return We}});var te=ge(59301),fe=ge(4676);class We extends te.Component{constructor(le){super(le);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:le}=this.props;return(0,fe.createPortal)(le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return fe}});var te=ge(59301);function fe(We,Ie){const le=(0,te.useRef)();(0,te.useEffect)(()=>{le.current=We}),(0,te.useEffect)(()=>{function Be(){le.current()}if(Ie!==null){let se=setInterval(Be,Ie);return()=>clearInterval(se)}},[Ie])}},29071:function(be,at,ge){"use strict";ge.r(at),ge.d(at,{default:function(){return Xn}});var te=ge(59301),fe=ge(75790),We=ge(49647),Ie=ge(95237),le=ge(43604),Be=ge(3113),se={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},Ae=ge(93801),Oe=Object.defineProperty,ze=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(He,Ke,Re)=>Ke in He?Oe(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Re}):He[Ke]=Re,y=(He,Ke)=>{for(var Re in Ke||(Ke={}))Ce.call(Ke,Re)&&a(He,Re,Ke[Re]);if(Ge)for(var Re of Ge(Ke))ae.call(Ke,Re)&&a(He,Re,Ke[Re]);return He},x=(He,Ke)=>ze(He,Te(Ke)),b=(He,Ke)=>{var Re={};for(var gt in He)Ce.call(He,gt)&&Ke.indexOf(gt)<0&&(Re[gt]=He[gt]);if(He!=null&&Ge)for(var gt of Ge(He))Ke.indexOf(gt)<0&&ae.call(He,gt)&&(Re[gt]=He[gt]);return Re},E=(He,Ke,Re)=>new Promise((gt,Qt)=>{var en=Ct=>{try{$t(Re.next(Ct))}catch(ue){Qt(ue)}},yn=Ct=>{try{$t(Re.throw(Ct))}catch(ue){Qt(ue)}},$t=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(en,yn);$t((Re=Re.apply(He,Ke)).next())});const z=He=>{var Ke=He,{user:Re,forumsDetail:gt,globalSetting:Qt,loading:en,dispatch:yn}=Ke,$t=b(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Ct,ue,he,Se;const{author_info:_e,memo:$e,recommend_shixuns:st}=gt.forumsDetailData||{},kt=()=>E(void 0,null,function*(){(_e!=null&&_e.watched?yield(0,Ae.Sr)({user_id:_e.login}):yield(0,Ae.YP)({user_id:_e.login}))&&yn({type:"forumsDetail/setForumsDetailData",payload:x(y({},gt.forumsDetailData),{author_info:x(y({},_e),{watched:!(_e!=null&&_e.watched)})})})});return te.createElement("section",{className:se.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${se.head}`},te.createElement("a",{href:`/users/${_e==null?void 0:_e.login}`,target:"_blank"},(_e==null?void 0:_e.image_url)&&te.createElement("img",{src:`${We.Z.API_SERVER}/images/${_e==null?void 0:_e.image_url}`})),te.createElement("div",{className:"tc font20"},_e==null?void 0:_e.username),te.createElement("div",{className:"tc c-grey-999"},_e==null?void 0:_e.identity),((Ct=Re.userInfo)==null?void 0:Ct.user_id)!==(_e==null?void 0:_e.user_id)&&te.createElement(Ie.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},te.createElement(le.Z,null,te.createElement(Be.ZP,{type:"primary",className:"mr10",onClick:kt},_e!=null&&_e.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(le.Z,null,te.createElement(Be.ZP,{className:se.privateMessage,href:`/messages/${(ue=Re.userInfo)==null?void 0:ue.login}/message_detail?target_ids=${_e==null?void 0:_e.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((he=$e==null?void 0:$e.tag)!=null&&he.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${se.tag}`},(Se=$e==null?void 0:$e.tag)==null?void 0:Se.map((xt,xe)=>te.createElement("span",{key:xe,className:"c-light-primary mr10"},xt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:se.recommend},st==null?void 0:st.map(xt=>te.createElement("div",{className:se.recommendItem},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:xt.id,src:`${xt.image_url}`})),te.createElement("div",{className:`${se.flex1} ml10`},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank",title:xt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},xt.name),te.createElement("div",{className:"c-grey-999"},xt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,fe.connect)(({user:He,forumsDetail:Ke,loading:Re,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Re.models.forumsDetail}))(z),ne=ge(66649),oe=ge.n(ne),re=ge(12470),ie=ge(8591),ce=ge(43418),me=ge(92832),Fe=ge(20834),De=ge(66104),ct=ge(38854),Nt=ge(6848),Xt=ge(48551),ye=ge(26227),Ye={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},nt=Object.defineProperty,Qe=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Vt=(He,Ke,Re)=>Ke in He?nt(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Re}):He[Ke]=Re,we=(He,Ke)=>{for(var Re in Ke||(Ke={}))Tt.call(Ke,Re)&&Vt(He,Re,Ke[Re]);if(Dt)for(var Re of Dt(Ke))At.call(Ke,Re)&&Vt(He,Re,Ke[Re]);return He},Ee=(He,Ke)=>Qe(He,it(Ke)),Ve=(He,Ke,Re)=>new Promise((gt,Qt)=>{var en=Ct=>{try{$t(Re.next(Ct))}catch(ue){Qt(ue)}},yn=Ct=>{try{$t(Re.throw(Ct))}catch(ue){Qt(ue)}},$t=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(en,yn);$t((Re=Re.apply(He,Ke)).next())});oe().locale("ZH-cn");function yt({user:He,vlist:Ke=[],dispatch:Re,params:gt,id:Qt,memo_replies:en,forumsDetail:yn}){return te.createElement("aside",{className:Ye.comment},Ke.map(function($t,Ct){var ue,he;return te.createElement(Ie.Z,{key:Ct,className:Ye.commentItem},te.createElement(le.Z,{span:24},te.createElement(Ie.Z,null,te.createElement(le.Z,{flex:"1"},te.createElement("a",{href:`/users/${$t.user_login}`,target:"_blank",className:"c-light-black"},$t==null?void 0:$t.username),te.createElement("span",{className:"c-light-black ml10"},$t.time)),($t.can_delete||$t.user_id===((ue=He.userInfo)==null?void 0:ue.user_id)||$t.user_login===((he=He.userInfo)==null?void 0:he.login))&&te.createElement(le.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Nt.Z,{title:"\u5220\u9664"},te.createElement(ye.Z,{className:"current",onClick:()=>{ce.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Ve(this,null,function*(){const Se=yield(0,Ae.sW)({id:$t.id}),_e=en.find($e=>$e.id===Qt).children.filter($e=>$e.id!==$t.id);en.find($e=>$e.id===Qt).children=_e,Re({type:"forumsDetail/setForumsDetailData",payload:Ee(we({},yn.forumsDetailData),{memo_replies:[...en]})})})})}}))))),te.createElement(le.Z,null,te.createElement(re.Z,{value:$t.content})))}))}var qe=yt,pt=ge(19374),de=Object.defineProperty,et=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Le=(He,Ke,Re)=>Ke in He?de(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Re}):He[Ke]=Re,Pe=(He,Ke)=>{for(var Re in Ke||(Ke={}))Gt.call(Ke,Re)&&Le(He,Re,Ke[Re]);if(_t)for(var Re of _t(Ke))Ne.call(Ke,Re)&&Le(He,Re,Ke[Re]);return He},Me=(He,Ke)=>et(He,Ot(Ke)),Ze=(He,Ke)=>{var Re={};for(var gt in He)Gt.call(He,gt)&&Ke.indexOf(gt)<0&&(Re[gt]=He[gt]);if(He!=null&&_t)for(var gt of _t(He))Ke.indexOf(gt)<0&&Ne.call(He,gt)&&(Re[gt]=He[gt]);return Re},ot=(He,Ke,Re)=>new Promise((gt,Qt)=>{var en=Ct=>{try{$t(Re.next(Ct))}catch(ue){Qt(ue)}},yn=Ct=>{try{$t(Re.throw(Ct))}catch(ue){Qt(ue)}},$t=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(en,yn);$t((Re=Re.apply(He,Ke)).next())});oe().locale("ZH-cn");const Pt=(He,Ke)=>{var Re=He,{user:gt,forumsDetail:Qt,globalSetting:en,loading:yn,dispatch:$t,handleClick:Ct}=Re,ue=Ze(Re,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:he,memo_replies:Se}=Qt.forumsDetailData||{},_e=(0,fe.useParams)(),[$e,st]=(0,te.useState)(""),[kt,xt]=(0,te.useState)(""),[xe,pe]=(0,te.useState)(-1),[Ue,ve]=(0,te.useState)(!1),[Je,ut]=(0,te.useState)(1),[Bt,Xe]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Ke,()=>({onMdFouch:Ht})),(0,te.useEffect)(()=>{ve((he==null?void 0:he.replies_count)>10)},[he==null?void 0:he.replies_count]);const St=()=>ot(void 0,null,function*(){var tt;const Zt=Je+1;ut(Zt);const Mt=yield(0,Ae.z5)({id:_e.memoId,page:Zt});Mt!=null&&Mt.memo_replies&&($t({type:"forumsDetail/setForumsDetailData",payload:Me(Pe({},Qt.forumsDetailData),{memo_replies:[...Se,...Mt.memo_replies]})}),ve(((tt=Mt.memo_replies)==null?void 0:tt.length)===10))}),Ft=tt=>{var Zt,Mt,Et,qt;return Me(Pe({},tt),{image_url:(Zt=gt.userInfo)==null?void 0:Zt.image_url,children:[],user_id:(Mt=gt.userInfo)==null?void 0:Mt.user_id,user_login:(Et=gt.userInfo)==null?void 0:Et.login,username:(qt=gt.userInfo)==null?void 0:qt.username,time:`${(0,pt.li)((new Date().getTime()-new Date(tt.created_at).getTime())/1e3)}\u524D`})},Ht=()=>{Xe(!0)};return te.createElement("section",{className:Ye.wrap},!!(Se!=null&&Se.length)&&te.createElement("aside",{className:Ye.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",he.replies_count,"\uFF09")),te.createElement("aside",{className:Ye.replyList},Se==null?void 0:Se.map(function(tt,Zt){var Mt;return te.createElement(Ie.Z,{gutter:[12,12],key:Zt},te.createElement(le.Z,{flex:"40px"},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${We.Z.IMG_SERVER}/images/${tt==null?void 0:tt.image_url}`}))),te.createElement(le.Z,{flex:"1"},te.createElement(Ie.Z,{align:"middle"},te.createElement(le.Z,{span:24},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},tt==null?void 0:tt.username)),te.createElement("span",{className:"c-light-black ml10"},tt.time)),te.createElement(le.Z,{span:24},te.createElement("div",{onClick:Ct},te.createElement(re.Z,{value:tt.content}))),!!((Mt=tt==null?void 0:tt.children)!=null&&Mt.length)&&te.createElement(qe,{user:gt,id:tt==null?void 0:tt.id,vlist:tt==null?void 0:tt.children,dispatch:$t,params:_e,memo_replies:Se,forumsDetail:Qt}),te.createElement(le.Z,{span:24,className:"mt5 c-light-black"},xe===Zt?te.createElement("aside",null,te.createElement(Xt.Z,{onChange:Et=>{xt(Et)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(Ie.Z,null,te.createElement(le.Z,{span:24,className:"tr"},te.createElement(Be.ZP,{type:"primary",size:"middle",onClick:()=>ot(this,null,function*(){if(kt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Et=yield(0,Ae.ts)({parent_id:tt.id,content:kt});xt(null),Et&&(pe(-1),Se.find(qt=>qt.id===Et.parent_id).children.push(Ft(Et)),$t({type:"forumsDetail/setForumsDetailData",payload:Me(Pe({},Qt.forumsDetailData),{memo:Me(Pe({},he),{replies_count:he.replies_count+1}),memo_replies:[...Se]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>pe(Zt)}),te.createElement(Nt.Z,{title:tt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:tt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>ot(this,null,function*(){const Et=yield(0,Ae.vL)({id:tt.id,container_type:"Memo",type:tt.user_praise?0:1});(Et==null?void 0:Et.praise_count)>=0&&(Se.find(qt=>qt.id===tt.id).user_praise=!tt.user_praise,Se.find(qt=>qt.id===tt.id).praise_count=Et==null?void 0:Et.praise_count,$t({type:"forumsDetail/setForumsDetailData",payload:Me(Pe({},Qt.forumsDetailData),{memo_replies:[...Se]})}))})}),tt.praise_count>0?tt.praise_count:"")))))))}))),Ue&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(Ie.Z,{justify:"space-between"},te.createElement(le.Z,null),te.createElement(le.Z,null,Ue&&te.createElement("a",{className:"c-black",onClick:St},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:Ye.reply},te.createElement(Xt.Z,{onBlur:()=>Xe(!1),isFocus:Bt,defaultValue:$e,id:"writeForumsReviewId",onChange:tt=>{st(tt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Ie.Z,null,te.createElement(le.Z,{flex:"1"}),te.createElement(le.Z,null,te.createElement(Be.ZP,{type:"primary",size:"middle",onClick:()=>ot(void 0,null,function*(){if($e==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const tt=yield(0,Ae.ts)({parent_id:he.id,content:$e});st(null),tt&&$t({type:"forumsDetail/setForumsDetailData",payload:Me(Pe({},Qt.forumsDetailData),{memo:Me(Pe({},he),{replies_count:he.replies_count+1}),memo_replies:[Ft(tt),...Se]})})}})},"\u53D1\u9001")))))};var bt=(0,fe.connect)(({user:He,forumsDetail:Ke,loading:Re,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Re.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(Pt)),wt={wrap:"wrap___Soi3l",header:"header___vk3EC",title:"title___WJAyR",menu:"menu___yMPKF",top:"top___ZqzEM",line:"line___EQKlG",flexCenter:"flexCenter___Rcnhr",like:"like___uNtmq",canLike:"canLike___Lu04z",attachmentName:"attachmentName___nwdzp"},zt=ge(87169),vt=ge(98679),It=ge(59195),nn=Object.defineProperty,Sn=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,pn=(He,Ke,Re)=>Ke in He?nn(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Re}):He[Ke]=Re,rn=(He,Ke)=>{for(var Re in Ke||(Ke={}))an.call(Ke,Re)&&pn(He,Re,Ke[Re]);if(Kt)for(var Re of Kt(Ke))on.call(Ke,Re)&&pn(He,Re,Ke[Re]);return He},Pn=(He,Ke)=>Sn(He,sn(Ke)),Fn=(He,Ke)=>{var Re={};for(var gt in He)an.call(He,gt)&&Ke.indexOf(gt)<0&&(Re[gt]=He[gt]);if(He!=null&&Kt)for(var gt of Kt(He))Ke.indexOf(gt)<0&&on.call(He,gt)&&(Re[gt]=He[gt]);return Re},fn=(He,Ke,Re)=>new Promise((gt,Qt)=>{var en=Ct=>{try{$t(Re.next(Ct))}catch(ue){Qt(ue)}},yn=Ct=>{try{$t(Re.throw(Ct))}catch(ue){Qt(ue)}},$t=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(en,yn);$t((Re=Re.apply(He,Ke)).next())});const Dn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},dn=He=>{var Ke=He,{user:Re,forumsDetail:gt,globalSetting:Qt,loading:en,dispatch:yn}=Ke,$t=Fn(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Ct,ue,he,Se;const{author_info:_e,memo:$e,attachments_list:st}=gt.forumsDetailData||{},kt=(0,te.useRef)(),xt=(0,te.useRef)(),xe=()=>fn(void 0,null,function*(){const Xe={id:$e.id,sticky:$e.sticky?0:1},St=yield(0,Ae.B0)(Xe);(St==null?void 0:St.status)===0&&yn({type:"forumsDetail/setForumsDetailData",payload:Pn(rn({},gt.forumsDetailData),{memo:Pn(rn({},$e),{sticky:!($e!=null&&$e.sticky)})})})}),pe=()=>fn(void 0,null,function*(){const Xe=yield(0,Ae.sW)({id:$e==null?void 0:$e.id});(Xe==null?void 0:Xe.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),fe.history.push("/forums")),(Xe==null?void 0:Xe.status)===-1&&fe.history.push("/forums")}),Ue=()=>fn(void 0,null,function*(){ce.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:te.createElement("div",{className:"font14 tc"},te.createElement(me.default,{defaultValue:kt.current,onChange:Xe=>kt.current=Xe.target.value})),onOk:()=>fn(void 0,null,function*(){const Xe=yield(0,Ae.eh)({id:$e==null?void 0:$e.id,container_type:"Memo",score:kt.current?Number(kt.current):0,user_id:_e==null?void 0:_e.user_id});if(kt.current=null,(Xe==null?void 0:Xe.code)>0){yn({type:"forumsDetail/setForumsDetailData",payload:Pn(rn({},gt.forumsDetailData),{memo:Pn(rn({},$e),{reward:Xe==null?void 0:Xe.code})})}),ie.ZP.success("\u5956\u52B1\u6210\u529F");return}ie.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),ve=()=>{xt.current.onMdFouch&&xt.current.onMdFouch()},Je=()=>fn(void 0,null,function*(){const Xe=yield(0,Ae.vL)({id:$e.id,container_type:"Memo",type:1});(Xe==null?void 0:Xe.praise_count)>=0&&yn({type:"forumsDetail/setForumsDetailData",payload:Pn(rn({},gt.forumsDetailData),{memo:Pn(rn({},$e),{user_praise:!($e!=null&&$e.user_praise),memo_praise_count:Xe==null?void 0:Xe.praise_count})})})}),ut=te.createElement(Fe.default,{className:wt.menu},((Ct=Re.userInfo)==null?void 0:Ct.admin)&&($e==null?void 0:$e.sticky)&&te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>xe()},"\u53D6\u6D88\u7F6E\u9876")),((ue=Re.userInfo)==null?void 0:ue.admin)&&!($e!=null&&$e.sticky)&&te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>xe()},"\u7F6E\xA0\xA0\u9876")),te.createElement(Fe.default.Item,null,te.createElement(fe.Link,{to:`/forums/${$e==null?void 0:$e.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>{ce.default.confirm({title:"\u63D0\u793A",icon:te.createElement(zt.Z,null),content:"\u5E16\u5B50\u5C06\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\u3002\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",onOk:()=>{pe()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),Bt=Xe=>{let{nodeName:St,src:Ft}=Xe.target;St==="IMG"&&(It.Z.publish("preview-image",Ft),console.log("src:",Ft))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:wt.wrap},te.createElement(De.Z,{separator:"/",className:"mb5"},te.createElement(De.Z.Item,null,te.createElement(fe.Link,{to:`/forums/categories/${$e==null?void 0:$e.forum_id}`},Dn[$e==null?void 0:$e.forum_id])),te.createElement(De.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${wt.header}`},te.createElement(Ie.Z,{align:"middle"},te.createElement(le.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:wt.title},$e==null?void 0:$e.subject),($e==null?void 0:$e.sticky)&&te.createElement("span",{className:wt.top},"\u7F6E\u9876")),te.createElement(le.Z,null,(((he=Re.userInfo)==null?void 0:he.admin)||((Se=Re.userInfo)==null?void 0:Se.user_id)===(_e==null?void 0:_e.user_id))&&te.createElement(ct.Z,{dropdownRender:()=>ut},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(Ie.Z,{align:"middle",className:"font14"},te.createElement(le.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()($e==null?void 0:$e.time).fromNow()," \u66F4\u65B0")),te.createElement(le.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${$e!=null&&$e.replies_count?wt.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),$e==null?void 0:$e.viewed_count),!!($e!=null&&$e.replies_count)&&te.createElement(Nt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:ve},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),$e==null?void 0:$e.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:Bt},te.createElement(re.Z,{value:$e==null?void 0:$e.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${wt.flexCenter}`},te.createElement("div",{className:`${wt.like} ${$e!=null&&$e.user_praise?"":wt.canLike}`,onClick:Je},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,$e==null?void 0:$e.memo_praise_count)))),!!(st!=null&&st.length)&&te.createElement("div",{className:"mt40"},st==null?void 0:st.map(Xe=>te.createElement("div",{className:`c-grey-888 ${wt.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:Xe==null?void 0:Xe.url,title:Xe==null?void 0:Xe.title,className:`${wt.attachmentName} mr10`},Xe==null?void 0:Xe.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},Xe==null?void 0:Xe.filesize))))),te.createElement(bt,{ref:xt,handleClick:Bt}),te.createElement(vt.Z,null))};var Bn=(0,fe.connect)(({user:He,forumsDetail:Ke,loading:Re,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Re.effects}))(dn),Wn={flex:"flex___fgmSn"},Qn=ge(71418),sa=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Sa=(He,Ke)=>{var Re={};for(var gt in He)da.call(He,gt)&&Ke.indexOf(gt)<0&&(Re[gt]=He[gt]);if(He!=null&&sa)for(var gt of sa(He))Ke.indexOf(gt)<0&&An.call(He,gt)&&(Re[gt]=He[gt]);return Re},oa=(He,Ke,Re)=>new Promise((gt,Qt)=>{var en=Ct=>{try{$t(Re.next(Ct))}catch(ue){Qt(ue)}},yn=Ct=>{try{$t(Re.throw(Ct))}catch(ue){Qt(ue)}},$t=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(en,yn);$t((Re=Re.apply(He,Ke)).next())});const Pa=He=>{var Ke=He,{forumsDetail:Re,globalSetting:gt,loading:Qt,dispatch:en}=Ke,yn=Sa(Ke,["forumsDetail","globalSetting","loading","dispatch"]);const $t=(0,fe.useParams)(),[Ct,ue]=(0,te.useState)(!1);(0,te.useEffect)(()=>{he()},[$t.memoId]);const he=()=>oa(void 0,null,function*(){ue(!0);let Se=yield en({type:"forumsDetail/getForumsDetailData",payload:{id:$t.memoId}});ue(!1)});return te.createElement(Qn.Z,{spinning:Ct},te.createElement("section",{className:`edu-container mb20 mt30 ${Wn.flex}`},te.createElement(Bn,null),te.createElement(ee,null)))};var Xn=(0,fe.connect)(({forumsDetail:He,loading:Ke,globalSetting:Re})=>({forumsDetail:He,globalSetting:Re,loading:Ke.models.forumsDetail}))(Pa)},66104:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Xt}});var te=ge(92310),fe=ge.n(te),We=ge(11592),Ie=ge(26112),le=ge(59301),Be=ge(92343),se=ge(36355),Ae=ge(84105),Oe=ge(91857);const ze=ye=>{let{children:Ye}=ye;const{getPrefixCls:nt}=le.useContext(se.E_),Qe=nt("breadcrumb");return le.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Ye===""?Ye:Ye||"/")};ze.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=ze,Ge=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(ye);it<Qe.length;it++)Ye.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[it])&&(nt[Qe[it]]=ye[Qe[it]]);return nt};function Ce(ye,Ye){if(ye.title===void 0||ye.title===null)return null;const nt=Object.keys(Ye).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${nt})`,"g"),(Qe,it)=>Ye[it]||Qe)}function ae(ye,Ye,nt,Qe){if(nt==null)return null;const{className:it,onClick:Dt}=Ye,Tt=Ge(Ye,["className","onClick"]),At=Object.assign(Object.assign({},(0,Ie.Z)(Tt,{data:!0,aria:!0})),{onClick:Dt});return Qe!==void 0?le.createElement("a",Object.assign({},At,{className:fe()(`${ye}-link`,it),href:Qe}),nt):le.createElement("span",Object.assign({},At,{className:fe()(`${ye}-link`,it)}),nt)}function a(ye,Ye){return(Qe,it,Dt,Tt,At)=>{if(Ye)return Ye(Qe,it,Dt,Tt);const Vt=Ce(Qe,it);return ae(ye,Qe,Vt,At)}}var y=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(ye);it<Qe.length;it++)Ye.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[it])&&(nt[Qe[it]]=ye[Qe[it]]);return nt};const x=ye=>{const{prefixCls:Ye,separator:nt="/",children:Qe,menu:it,overlay:Dt,dropdownProps:Tt,href:At}=ye,we=(Ee=>{if(it||Dt){const Ve=Object.assign({},Tt);if(it){const yt=it||{},{items:qe}=yt,pt=y(yt,["items"]);Ve.menu=Object.assign(Object.assign({},pt),{items:qe==null?void 0:qe.map((de,et)=>{var{key:Ot,title:_t,label:Gt,path:Ne}=de,Le=y(de,["key","title","label","path"]);let Pe=Gt!=null?Gt:_t;return Ne&&(Pe=le.createElement("a",{href:`${At}${Ne}`},Pe)),Object.assign(Object.assign({},Le),{key:Ot!=null?Ot:et,label:Pe})})})}else Dt&&(Ve.overlay=Dt);return le.createElement(Oe.Z,Object.assign({placement:"bottom"},Ve),le.createElement("span",{className:`${Ye}-overlay-link`},Ee,le.createElement(Ae.Z,null)))}return Ee})(Qe);return we!=null?le.createElement(le.Fragment,null,le.createElement("li",null,we),nt&&le.createElement(Te,null,nt)):null},b=ye=>{const{prefixCls:Ye,children:nt,href:Qe}=ye,it=y(ye,["prefixCls","children","href"]),{getPrefixCls:Dt}=le.useContext(se.E_),Tt=Dt("breadcrumb",Ye);return le.createElement(x,Object.assign({},it,{prefixCls:Tt}),ae(Tt,it,nt,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),ne=ge(37613);const oe=ye=>{const{componentCls:Ye,iconCls:nt}=ye;return{[Ye]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[nt]:{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},[`${Ye}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Ye}-link`]:{[`
> ${nt} + span,
> ${nt} + a
`]:{marginInlineStart:ye.marginXXS}},[`${Ye}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${nt}`]:{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 re=(0,ee.Z)("Breadcrumb",ye=>{const Ye=(0,ne.TS)(ye,{});return[oe(Ye)]},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,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(ye);it<Qe.length;it++)Ye.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[it])&&(nt[Qe[it]]=ye[Qe[it]]);return nt};function ce(ye){const{breadcrumbName:Ye,children:nt}=ye,Qe=ie(ye,["breadcrumbName","children"]),it=Object.assign({title:Ye},Qe);return nt&&(it.menu={items:nt.map(Dt=>{var{breadcrumbName:Tt}=Dt,At=ie(Dt,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:Tt})})}),it}function me(ye,Ye){return(0,le.useMemo)(()=>ye||(Ye?Ye.map(ce):null),[ye,Ye])}var Fe=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(ye);it<Qe.length;it++)Ye.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[it])&&(nt[Qe[it]]=ye[Qe[it]]);return nt};const De=(ye,Ye)=>{if(Ye===void 0)return Ye;let nt=(Ye||"").replace(/^\//,"");return Object.keys(ye).forEach(Qe=>{nt=nt.replace(`:${Qe}`,ye[Qe])}),nt},ct=ye=>{const{prefixCls:Ye,separator:nt="/",style:Qe,className:it,rootClassName:Dt,routes:Tt,items:At,children:Vt,itemRender:we,params:Ee={}}=ye,Ve=Fe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:yt,direction:qe,breadcrumb:pt}=le.useContext(se.E_);let de;const et=yt("breadcrumb",Ye),[Ot,_t]=re(et),Gt=me(At,Tt),Ne=a(et,we);if(Gt&&Gt.length>0){const Me=[],Ze=At||Tt;de=Gt.map((ot,Pt)=>{const{path:bt,key:wt,type:zt,menu:vt,overlay:It,onClick:nn,className:Sn,separator:sn,dropdownProps:Kt}=ot,an=De(Ee,bt);an!==void 0&&Me.push(an);const on=wt!=null?wt:Pt;if(zt==="separator")return le.createElement(Te,{key:on},sn);const pn={},rn=Pt===Gt.length-1;vt?pn.menu=vt:It&&(pn.overlay=It);let{href:Pn}=ot;return Me.length&&an!==void 0&&(Pn=`#/${Me.join("/")}`),le.createElement(x,Object.assign({key:on},pn,(0,Ie.Z)(ot,{data:!0,aria:!0}),{className:Sn,dropdownProps:Kt,href:Pn,separator:rn?"":nt,onClick:nn,prefixCls:et}),Ne(ot,Ee,Ze,Me,Pn))})}else if(Vt){const Me=(0,We.Z)(Vt).length;de=(0,We.Z)(Vt).map((Ze,ot)=>{if(!Ze)return Ze;const Pt=ot===Me-1;return(0,Be.Tm)(Ze,{separator:Pt?"":nt,key:ot})})}const Le=fe()(et,pt==null?void 0:pt.className,{[`${et}-rtl`]:qe==="rtl"},it,Dt,_t),Pe=Object.assign(Object.assign({},pt==null?void 0:pt.style),Qe);return Ot(le.createElement("nav",Object.assign({className:Le,style:Pe},Ve),le.createElement("ol",null,de)))};ct.Item=E,ct.Separator=Te;var Nt=ct,Xt=Nt},91857:function(be,at,ge){"use strict";var te=ge(59301),fe=ge(38819),We=ge(92310),Ie=ge.n(We),le=ge(31561),Be=ge(70425),se=ge(18929),Ae=ge(2738),Oe=ge(79676),ze=ge(53487),Te=ge(92343),Ge=ge(36355),Ce=ge(20834),ae=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=ne=>{const{menu:oe,arrow:re,prefixCls:ie,children:ce,trigger:me,disabled:Fe,dropdownRender:De,getPopupContainer:ct,overlayClassName:Nt,rootClassName:Xt,open:ye,onOpenChange:Ye,visible:nt,onVisibleChange:Qe,mouseEnterDelay:it=.15,mouseLeaveDelay:Dt=.1,autoAdjustOverflow:Tt=!0,placement:At="",overlay:Vt,transitionName:we}=ne,{getPopupContainer:Ee,getPrefixCls:Ve,direction:yt}=te.useContext(Ge.E_),qe=te.useMemo(()=>{const vt=Ve();return we!==void 0?we:At.includes("top")?`${vt}-slide-down`:`${vt}-slide-up`},[Ve,At,we]),pt=te.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:yt==="rtl"?"bottomRight":"bottomLeft",[At,yt]),de=Ve("dropdown",ie),[et,Ot]=(0,y.Z)(de),[,_t]=(0,a.Z)(),Gt=te.Children.only(ce),Ne=(0,Te.Tm)(Gt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:yt==="rtl"},Gt.props.className),disabled:Fe}),Le=Fe?[]:me;let Pe;Le&&Le.includes("contextMenu")&&(Pe=!0);const[Me,Ze]=(0,se.Z)(!1,{value:ye!=null?ye:nt}),ot=(0,Be.useEvent)(vt=>{Ye==null||Ye(vt),Qe==null||Qe(vt),Ze(vt)}),Pt=Ie()(Nt,Xt,Ot,{[`${de}-rtl`]:yt==="rtl"}),bt=(0,Oe.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:Tt,offset:_t.marginXXS,arrowWidth:re?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),wt=te.useCallback(()=>{Ze(!1)},[]),zt=()=>{let vt;return oe!=null&&oe.items?vt=te.createElement(Ce.default,Object.assign({},oe)):typeof Vt=="function"?vt=Vt():vt=Vt,De&&(vt=De(vt)),vt=te.Children.only(typeof vt=="string"?te.createElement("span",null,vt):vt),te.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:te.createElement("span",{className:`${de}-menu-submenu-arrow`},te.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:wt,validator:It=>{let{mode:nn}=It}},vt)};return et(te.createElement(le.Z,Object.assign({alignPoint:Pe},(0,Ae.Z)(ne,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:Dt,visible:Me,builtinPlacements:bt,arrow:!!re,overlayClassName:Pt,prefixCls:de,getPopupContainer:ct||Ee,transitionName:qe,trigger:Le,overlay:zt,placement:pt,onVisibleChange:ot}),Ne))};function E(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,ze.Z)(b,"dropdown",ne=>ne,E),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,at.Z=b},38854:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return a}});var te=ge(91857),fe=ge(92310),We=ge.n(fe),Ie=ge(59301),le=ge(18785),Be=ge(3113),se=ge(36355),Ae=ge(81327),Oe=ge(33234),ze=ge(47211),Te=function(y,x){var b={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&x.indexOf(E)<0&&(b[E]=y[E]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(y);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(y,E[z])&&(b[E[z]]=y[E[z]]);return b};const Ge=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=Ie.useContext(se.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ce,children:me,className:Fe,menu:De,arrow:ct,autoFocus:Nt,overlay:Xt,trigger:ye,align:Ye,open:nt,onOpenChange:Qe,placement:it,getPopupContainer:Dt,href:Tt,icon:At=Ie.createElement(le.Z,null),title:Vt,buttonsRender:we=zt=>zt,mouseEnterDelay:Ee,mouseLeaveDelay:Ve,overlayClassName:yt,overlayStyle:qe,destroyPopupOnHide:pt,dropdownRender:de}=y,et=Te(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ot=b("dropdown",z),_t=`${Ot}-button`,[Gt,Ne]=(0,ze.Z)(Ot),Le={menu:De,arrow:ct,autoFocus:Nt,align:Ye,disabled:oe,trigger:oe?[]:ye,onOpenChange:Qe,getPopupContainer:Dt||x,mouseEnterDelay:Ee,mouseLeaveDelay:Ve,overlayClassName:yt,overlayStyle:qe,destroyPopupOnHide:pt,dropdownRender:de},{compactSize:Pe,compactItemClassnames:Me}=(0,Oe.ri)(Ot,E),Ze=We()(_t,Me,Fe,Ne);"overlay"in y&&(Le.overlay=Xt),"open"in y&&(Le.open=nt),"placement"in y?Le.placement=it:Le.placement=E==="rtl"?"bottomLeft":"bottomRight";const ot=Ie.createElement(Be.ZP,{type:ee,danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ce,href:Tt,title:Vt},me),Pt=Ie.createElement(Be.ZP,{type:ee,danger:ne,icon:At}),[bt,wt]=we([ot,Pt]);return Gt(Ie.createElement(Ae.Z.Compact,Object.assign({className:Ze,size:Pe,block:!0},et),bt,Ie.createElement(te.Z,Object.assign({},Le),wt)))};Ge.__ANT_BUTTON=!0;var Ce=Ge;const ae=te.Z;ae.Button=Ce;var a=ae},47211:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var te=ge(17313),fe=ge(13826),We=ge(92899),Ie=ge(29878),le=ge(19447),Be=ge(83116),se=ge(37613),Oe=Ge=>{const{componentCls:Ce,menuCls:ae,colorError:a,colorTextLightSolid:y}=Ge,x=`${ae}-item`;return{[`${Ce}, ${Ce}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ze=Ge=>{const{componentCls:Ce,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:ce,colorBgElevated:me}=Ge;return[{[Ce]:Object.assign(Object.assign({},(0,te.Wf)(Ge)),{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}},[`${Ce}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ce}-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${Ce}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topRight`]:{animationName:fe.ly}})},(0,le.ZP)(Ge,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ce} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ce}, ${Ce}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,te.Qy)(Ge)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ce}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Ge.marginXS,fontSize:Ge.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ce}px`,color:Ge.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,te.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ce+Ge.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ce}-menu-submenu-title`]:{[`&, ${Ce}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ce}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,fe.oN)(Ge,"slide-up"),(0,fe.oN)(Ge,"slide-down"),(0,We.Fm)(Ge,"move-up"),(0,We.Fm)(Ge,"move-down"),(0,Ie._y)(Ge,"zoom-big")]]};var Te=(0,Be.Z)("Dropdown",(Ge,Ce)=>{let{rootPrefixCls:ae}=Ce;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Ge,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,le.fS)({contentRadius:ne}),ie=(0,se.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[ze(ie),Oe(ie)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},11611:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return xt}});var te=ge(59301),fe=ge(15277),We=ge(92310),Ie=ge.n(We),le=ge(54476),Be=ge(33885),se=ge(20068),Ae=ge(42978),Oe=ge(76190),ze=ge(75931),Te=ge(55468),Ge=ge(18929),Ce=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ae=te.createContext(null),a=0;function y(xe,pe){var Ue=te.useState(function(){return a+=1,String(a)}),ve=(0,Ae.Z)(Ue,1),Je=ve[0],ut=te.useContext(ae),Bt={data:pe,canPreview:xe};return te.useEffect(function(){if(ut)return ut.register(Je,Bt)},[]),te.useEffect(function(){ut&&ut.register(Je,Bt)},[xe,pe]),Je}function x(xe){return new Promise(function(pe){var Ue=document.createElement("img");Ue.onerror=function(){return pe(!1)},Ue.onload=function(){return pe(!0)},Ue.src=xe})}function b(xe){var pe=xe.src,Ue=xe.isCustomPlaceholder,ve=xe.fallback,Je=(0,te.useState)(Ue?"loading":"normal"),ut=(0,Ae.Z)(Je,2),Bt=ut[0],Xe=ut[1],St=(0,te.useRef)(!1),Ft=Bt==="error";(0,te.useEffect)(function(){x(pe).then(function(Mt){Mt||Xe("error")})},[pe]),(0,te.useEffect)(function(){Ue&&!St.current?Xe("loading"):Ft&&Xe("normal")},[pe]);var Ht=function(){Xe("normal")},tt=function(Et){St.current=!1,Bt==="loading"&&Et!=null&&Et.complete&&(Et.naturalWidth||Et.naturalHeight)&&(St.current=!0,Ht())},Zt=Ft&&ve?{src:ve}:{onLoad:Ht,src:pe};return[tt,Zt,Bt]}var E=ge(86923),z=ge(8224),ee=ge(10228),ne=ge(48736);function oe(xe,pe,Ue,ve){var Je=pe+Ue,ut=(Ue-ve)/2;if(Ue>ve){if(pe>0)return(0,se.Z)({},xe,ut);if(pe<0&&Je<ve)return(0,se.Z)({},xe,-ut)}else if(pe<0||Je>ve)return(0,se.Z)({},xe,pe<0?ut:-ut);return{}}function re(xe,pe,Ue,ve){var Je=(0,Te.g1)(),ut=Je.width,Bt=Je.height,Xe=null;return xe<=ut&&pe<=Bt?Xe={x:0,y:0}:(xe>ut||pe>Bt)&&(Xe=(0,Be.Z)((0,Be.Z)({},oe("x",Ue,xe,ut)),oe("y",ve,pe,Bt))),Xe}var ie=ge(13697),ce=ge(16089),me={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Fe(xe,pe,Ue,ve){var Je=(0,te.useRef)(null),ut=(0,te.useRef)([]),Bt=(0,te.useState)(me),Xe=(0,Ae.Z)(Bt,2),St=Xe[0],Ft=Xe[1],Ht=function(Et){Ft(me),ve&&!(0,ie.Z)(me,St)&&ve({transform:me,action:Et})},tt=function(Et,qt){Je.current===null&&(ut.current=[],Je.current=(0,ce.Z)(function(){Ft(function(tn){var ln=tn;return ut.current.forEach(function(Yt){ln=(0,Be.Z)((0,Be.Z)({},ln),Yt)}),Je.current=null,ve==null||ve({transform:ln,action:qt}),ln})})),ut.current.push((0,Be.Z)((0,Be.Z)({},St),Et))},Zt=function(Et,qt,tn,ln){var Yt=xe.current,ke=Yt.width,On=Yt.height,vn=Yt.offsetWidth,Nn=Yt.offsetHeight,je=Yt.offsetLeft,dt=Yt.offsetTop,Lt=Et,ft=St.scale*Et;ft>Ue?(Lt=Ue/St.scale,ft=Ue):ft<pe&&(Lt=pe/St.scale,ft=pe);var jt=tn!=null?tn:innerWidth/2,Wt=ln!=null?ln:innerHeight/2,Jt=Lt-1,un=Jt*ke*.5,bn=Jt*On*.5,$n=Jt*(jt-St.x-je),Kn=Jt*(Wt-St.y-dt),zn=St.x-($n-un),qn=St.y-(Kn-bn);if(Et<1&&ft===1){var Un=vn*ft,_n=Nn*ft,Yn=(0,Te.g1)(),ea=Yn.width,Cn=Yn.height;Un<=ea&&_n<=Cn&&(zn=0,qn=0)}tt({x:zn,y:qn,scale:ft},qt)};return{transform:St,resetTransform:Ht,updateTransform:tt,dispatchZoomChange:Zt}}var De=ge(43403),ct=ge(77900),Nt=function(pe){var Ue=pe.visible,ve=pe.maskTransitionName,Je=pe.getContainer,ut=pe.prefixCls,Bt=pe.rootClassName,Xe=pe.icons,St=pe.countRender,Ft=pe.showSwitch,Ht=pe.showProgress,tt=pe.current,Zt=pe.transform,Mt=pe.count,Et=pe.scale,qt=pe.minScale,tn=pe.maxScale,ln=pe.closeIcon,Yt=pe.onSwitchLeft,ke=pe.onSwitchRight,On=pe.onClose,vn=pe.onZoomIn,Nn=pe.onZoomOut,je=pe.onRotateRight,dt=pe.onRotateLeft,Lt=pe.onFlipX,ft=pe.onFlipY,jt=pe.toolbarRender,Wt=(0,te.useContext)(ae),Jt=Xe.rotateLeft,un=Xe.rotateRight,bn=Xe.zoomIn,$n=Xe.zoomOut,Kn=Xe.close,zn=Xe.left,qn=Xe.right,Un=Xe.flipX,_n=Xe.flipY,Yn="".concat(ut,"-operations-operation");te.useEffect(function(){var gn=function(In){In.keyCode===ee.Z.ESC&&On()};return Ue&&window.addEventListener("keydown",gn),function(){window.removeEventListener("keydown",gn)}},[Ue]);var ea=[{icon:_n,onClick:ft,type:"flipY"},{icon:Un,onClick:Lt,type:"flipX"},{icon:Jt,onClick:dt,type:"rotateLeft"},{icon:un,onClick:je,type:"rotateRight"},{icon:$n,onClick:Nn,type:"zoomOut",disabled:Et===qt},{icon:bn,onClick:vn,type:"zoomIn",disabled:Et===tn}],Cn=ea.map(function(gn){var wn,In=gn.icon,Rn=gn.onClick,cn=gn.type,ga=gn.disabled;return te.createElement("div",{className:Ie()(Yn,(wn={},(0,se.Z)(wn,"".concat(ut,"-operations-operation-").concat(cn),!0),(0,se.Z)(wn,"".concat(ut,"-operations-operation-disabled"),!!ga),wn)),onClick:Rn,key:cn},In)}),ra=te.createElement("div",{className:"".concat(ut,"-operations")},Cn);return te.createElement(ct.default,{visible:Ue,motionName:ve},function(gn){var wn=gn.className,In=gn.style;return te.createElement(De.Z,{open:!0,getContainer:Je!=null?Je:document.body},te.createElement("div",{className:Ie()("".concat(ut,"-operations-wrapper"),wn,Bt),style:In},ln===null?null:te.createElement("button",{className:"".concat(ut,"-close"),onClick:On},ln||Kn),Ft&&te.createElement(te.Fragment,null,te.createElement("div",{className:Ie()("".concat(ut,"-switch-left"),(0,se.Z)({},"".concat(ut,"-switch-left-disabled"),tt===0)),onClick:Yt},zn),te.createElement("div",{className:Ie()("".concat(ut,"-switch-right"),(0,se.Z)({},"".concat(ut,"-switch-right-disabled"),tt===Mt-1)),onClick:ke},qn)),te.createElement("div",{className:"".concat(ut,"-footer")},Ht&&te.createElement("div",{className:"".concat(ut,"-progress")},St?St(tt+1,Mt):"".concat(tt+1," / ").concat(Mt)),jt?jt(ra,(0,Be.Z)({icons:{flipYIcon:Cn[0],flipXIcon:Cn[1],rotateLeftIcon:Cn[2],rotateRightIcon:Cn[3],zoomOutIcon:Cn[4],zoomInIcon:Cn[5]},actions:{onFlipY:ft,onFlipX:Lt,onRotateLeft:dt,onRotateRight:je,onZoomOut:Nn,onZoomIn:vn},transform:Zt},Wt?{current:tt,total:Mt}:{})):ra)))})},Xt=Nt,ye=1,Ye=1,nt=["fallback","src","imgRef"],Qe=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],it=function(pe){var Ue=pe.fallback,ve=pe.src,Je=pe.imgRef,ut=(0,ze.Z)(pe,nt),Bt=b({src:ve,fallback:Ue}),Xe=(0,Ae.Z)(Bt,2),St=Xe[0],Ft=Xe[1];return te.createElement("img",(0,le.Z)({ref:function(tt){Je.current=tt,St(tt)}},ut,Ft))},Dt=function(pe){var Ue=pe.prefixCls,ve=pe.src,Je=pe.alt,ut=pe.fallback,Bt=pe.movable,Xe=Bt===void 0?!0:Bt,St=pe.onClose,Ft=pe.visible,Ht=pe.icons,tt=Ht===void 0?{}:Ht,Zt=pe.rootClassName,Mt=pe.closeIcon,Et=pe.getContainer,qt=pe.current,tn=qt===void 0?0:qt,ln=pe.count,Yt=ln===void 0?1:ln,ke=pe.countRender,On=pe.scaleStep,vn=On===void 0?.5:On,Nn=pe.minScale,je=Nn===void 0?1:Nn,dt=pe.maxScale,Lt=dt===void 0?50:dt,ft=pe.transitionName,jt=ft===void 0?"zoom":ft,Wt=pe.maskTransitionName,Jt=Wt===void 0?"fade":Wt,un=pe.imageRender,bn=pe.imgCommonProps,$n=pe.toolbarRender,Kn=pe.onTransform,zn=pe.onChange,qn=(0,ze.Z)(pe,Qe),Un=(0,te.useRef)(),_n=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Yn=(0,te.useState)(!1),ea=(0,Ae.Z)(Yn,2),Cn=ea[0],ra=ea[1],gn=(0,te.useContext)(ae),wn=gn&&Yt>1,In=gn&&Yt>=1,Rn=Fe(Un,je,Lt,Kn),cn=Rn.transform,ga=Rn.resetTransform,kn=Rn.updateTransform,ia=Rn.dispatchZoomChange,Vn=(0,te.useState)(!0),ca=(0,Ae.Z)(Vn,2),jn=ca[0],ta=ca[1],Zn=cn.rotate,Tn=cn.scale,ua=cn.x,la=cn.y,ba=Ie()((0,se.Z)({},"".concat(Ue,"-moving"),Cn));(0,te.useEffect)(function(){jn||ta(!0)},[jn]);var xa=function(){ga("close")},fa=function(){ia(ye+vn,"zoomIn")},wa=function(){ia(ye/(ye+vn),"zoomOut")},ht=function(){kn({rotate:Zn+90},"rotateRight")},rt=function(){kn({rotate:Zn-90},"rotateLeft")},lt=function(){kn({flipX:!cn.flipX},"flipX")},mt=function(){kn({flipY:!cn.flipY},"flipY")},Ut=function(Rt){Rt==null||Rt.preventDefault(),Rt==null||Rt.stopPropagation(),tn>0&&(ta(!1),ga("prev"),zn==null||zn(tn-1,tn))},mn=function(Rt){Rt==null||Rt.preventDefault(),Rt==null||Rt.stopPropagation(),tn<Yt-1&&(ta(!1),ga("next"),zn==null||zn(tn+1,tn))},xn=function(){if(Ft&&Cn){ra(!1);var Rt=_n.current,ha=Rt.transformX,na=Rt.transformY,Jn=ua!==ha&&la!==na;if(!Jn)return;var hn=Un.current.offsetWidth*Tn,pa=Un.current.offsetHeight*Tn,va=Un.current.getBoundingClientRect(),Fa=va.left,Ba=va.top,ya=Zn%180!==0,aa=re(ya?pa:hn,ya?hn:pa,Fa,Ba);aa&&kn((0,Be.Z)({},aa),"dragRebound")}},En=function(Rt){!Xe||Rt.button!==0||(Rt.preventDefault(),Rt.stopPropagation(),_n.current={deltaX:Rt.pageX-cn.x,deltaY:Rt.pageY-cn.y,transformX:cn.x,transformY:cn.y},ra(!0))},Gn=function(Rt){Ft&&Cn&&kn({x:Rt.pageX-_n.current.deltaX,y:Rt.pageY-_n.current.deltaY},"move")},Mn=function(Rt){if(!(!Ft||Rt.deltaY==0)){var ha=Math.abs(Rt.deltaY/100),na=Math.min(ha,Ye),Jn=ye+na*vn;Rt.deltaY>0&&(Jn=ye/Jn),ia(Jn,"wheel",Rt.clientX,Rt.clientY)}},ma=function(Rt){!Ft||!wn||(Rt.keyCode===ee.Z.LEFT?Ut():Rt.keyCode===ee.Z.RIGHT&&mn())},Hn=function(Rt){Ft&&(Tn!==1?kn({x:0,y:0,scale:1},"doubleClick"):ia(ye+vn,"doubleClick",Rt.clientX,Rt.clientY))};(0,te.useEffect)(function(){var Ln,Rt,ha,na;if(Xe){ha=(0,z.Z)(window,"mouseup",xn,!1),na=(0,z.Z)(window,"mousemove",Gn,!1);try{window.top!==window.self&&(Ln=(0,z.Z)(window.top,"mouseup",xn,!1),Rt=(0,z.Z)(window.top,"mousemove",Gn,!1))}catch(Jn){(0,ne.Kp)(!1,"[rc-image] ".concat(Jn))}}return function(){var Jn,hn,pa,va;(Jn=ha)===null||Jn===void 0||Jn.remove(),(hn=na)===null||hn===void 0||hn.remove(),(pa=Ln)===null||pa===void 0||pa.remove(),(va=Rt)===null||va===void 0||va.remove()}},[Ft,Cn,ua,la,Zn,Xe]),(0,te.useEffect)(function(){var Ln=(0,z.Z)(window,"keydown",ma,!1);return function(){Ln.remove()}},[Ft,wn,tn]);var La=te.createElement(it,(0,le.Z)({},bn,{width:pe.width,height:pe.height,imgRef:Un,className:"".concat(Ue,"-img"),alt:Je,style:{transform:"translate3d(".concat(cn.x,"px, ").concat(cn.y,"px, 0) scale3d(").concat(cn.flipX?"-":"").concat(Tn,", ").concat(cn.flipY?"-":"").concat(Tn,", 1) rotate(").concat(Zn,"deg)"),transitionDuration:!jn&&"0s"},fallback:ut,src:ve,onWheel:Mn,onMouseDown:En,onDoubleClick:Hn}));return te.createElement(te.Fragment,null,te.createElement(E.Z,(0,le.Z)({transitionName:jt,maskTransitionName:Jt,closable:!1,keyboard:!0,prefixCls:Ue,onClose:St,visible:Ft,wrapClassName:ba,rootClassName:Zt,getContainer:Et},qn,{afterClose:xa}),te.createElement("div",{className:"".concat(Ue,"-img-wrapper")},un?un(La,(0,Be.Z)({transform:cn},gn?{current:tn}:{})):La)),te.createElement(Xt,{visible:Ft,transform:cn,maskTransitionName:Jt,closeIcon:Mt,getContainer:Et,prefixCls:Ue,rootClassName:Zt,icons:tt,countRender:ke,showSwitch:wn,showProgress:In,current:tn,count:Yt,scale:Tn,minScale:je,maxScale:Lt,toolbarRender:$n,onSwitchLeft:Ut,onSwitchRight:mn,onZoomIn:fa,onZoomOut:wa,onRotateRight:ht,onRotateLeft:rt,onFlipX:lt,onFlipY:mt,onClose:St}))},Tt=Dt,At=ge(94480);function Vt(xe){var pe=te.useState({}),Ue=(0,Ae.Z)(pe,2),ve=Ue[0],Je=Ue[1],ut=te.useCallback(function(Xe,St){return Je(function(Ft){return(0,Be.Z)((0,Be.Z)({},Ft),{},(0,se.Z)({},Xe,St))}),function(){Je(function(Ft){var Ht=(0,Be.Z)({},Ft);return delete Ht[Xe],Ht})}},[]),Bt=te.useMemo(function(){return xe?xe.map(function(Xe){if(typeof Xe=="string")return{data:{src:Xe}};var St={};return Object.keys(Xe).forEach(function(Ft){["src"].concat((0,At.Z)(Ce)).includes(Ft)&&(St[Ft]=Xe[Ft])}),{data:St}}):Object.keys(ve).reduce(function(Xe,St){var Ft=ve[St],Ht=Ft.canPreview,tt=Ft.data;return Ht&&Xe.push({data:tt,id:St}),Xe},[])},[xe,ve]);return[Bt,ut]}var we=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ee=["src"],Ve=function(pe){var Ue,ve=pe.previewPrefixCls,Je=ve===void 0?"rc-image-preview":ve,ut=pe.children,Bt=pe.icons,Xe=Bt===void 0?{}:Bt,St=pe.items,Ft=pe.preview,Ht=pe.fallback,tt=(0,Oe.Z)(Ft)==="object"?Ft:{},Zt=tt.visible,Mt=tt.onVisibleChange,Et=tt.getContainer,qt=tt.current,tn=tt.movable,ln=tt.minScale,Yt=tt.maxScale,ke=tt.countRender,On=tt.closeIcon,vn=tt.onChange,Nn=tt.onTransform,je=tt.toolbarRender,dt=tt.imageRender,Lt=(0,ze.Z)(tt,we),ft=Vt(St),jt=(0,Ae.Z)(ft,2),Wt=jt[0],Jt=jt[1],un=(0,Ge.Z)(0,{value:qt}),bn=(0,Ae.Z)(un,2),$n=bn[0],Kn=bn[1],zn=(0,te.useState)(!1),qn=(0,Ae.Z)(zn,2),Un=qn[0],_n=qn[1],Yn=((Ue=Wt[$n])===null||Ue===void 0?void 0:Ue.data)||{},ea=Yn.src,Cn=(0,ze.Z)(Yn,Ee),ra=(0,Ge.Z)(!!Zt,{value:Zt,onChange:function(Zn,Tn){Mt==null||Mt(Zn,Tn,$n)}}),gn=(0,Ae.Z)(ra,2),wn=gn[0],In=gn[1],Rn=(0,te.useState)(null),cn=(0,Ae.Z)(Rn,2),ga=cn[0],kn=cn[1],ia=te.useCallback(function(ta,Zn,Tn){var ua=Wt.findIndex(function(la){return la.id===ta});In(!0),kn({x:Zn,y:Tn}),Kn(ua<0?0:ua),_n(!0)},[Wt]);te.useEffect(function(){wn?Un||Kn(0):_n(!1)},[wn]);var Vn=function(Zn,Tn){Kn(Zn),vn==null||vn(Zn,Tn)},ca=function(){In(!1),kn(null)},jn=te.useMemo(function(){return{register:Jt,onPreview:ia}},[Jt,ia]);return te.createElement(ae.Provider,{value:jn},ut,te.createElement(Tt,(0,le.Z)({"aria-hidden":!wn,movable:tn,visible:wn,prefixCls:Je,closeIcon:On,onClose:ca,mousePosition:ga,imgCommonProps:Cn,src:ea,fallback:Ht,icons:Xe,minScale:ln,maxScale:Yt,getContainer:Et,current:$n,count:Wt.length,countRender:ke,onTransform:Nn,toolbarRender:je,imageRender:dt,onChange:Vn},Lt)))},yt=Ve,qe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],pt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],de=function(pe){var Ue=pe.src,ve=pe.alt,Je=pe.onPreviewClose,ut=pe.prefixCls,Bt=ut===void 0?"rc-image":ut,Xe=pe.previewPrefixCls,St=Xe===void 0?"".concat(Bt,"-preview"):Xe,Ft=pe.placeholder,Ht=pe.fallback,tt=pe.width,Zt=pe.height,Mt=pe.style,Et=pe.preview,qt=Et===void 0?!0:Et,tn=pe.className,ln=pe.onClick,Yt=pe.onError,ke=pe.wrapperClassName,On=pe.wrapperStyle,vn=pe.rootClassName,Nn=(0,ze.Z)(pe,qe),je=Ft&&Ft!==!0,dt=(0,Oe.Z)(qt)==="object"?qt:{},Lt=dt.src,ft=dt.visible,jt=ft===void 0?void 0:ft,Wt=dt.onVisibleChange,Jt=Wt===void 0?Je:Wt,un=dt.getContainer,bn=un===void 0?void 0:un,$n=dt.mask,Kn=dt.maskClassName,zn=dt.movable,qn=dt.icons,Un=dt.scaleStep,_n=dt.minScale,Yn=dt.maxScale,ea=dt.imageRender,Cn=dt.toolbarRender,ra=(0,ze.Z)(dt,pt),gn=Lt!=null?Lt:Ue,wn=(0,Ge.Z)(!!jt,{value:jt,onChange:Jt}),In=(0,Ae.Z)(wn,2),Rn=In[0],cn=In[1],ga=b({src:Ue,isCustomPlaceholder:je,fallback:Ht}),kn=(0,Ae.Z)(ga,3),ia=kn[0],Vn=kn[1],ca=kn[2],jn=(0,te.useState)(null),ta=(0,Ae.Z)(jn,2),Zn=ta[0],Tn=ta[1],ua=(0,te.useContext)(ae),la=!!qt,ba=function(){cn(!1),Tn(null)},xa=Ie()(Bt,ke,vn,(0,se.Z)({},"".concat(Bt,"-error"),ca==="error")),fa=(0,te.useMemo)(function(){var lt={};return Ce.forEach(function(mt){pe[mt]!==void 0&&(lt[mt]=pe[mt])}),lt},Ce.map(function(lt){return pe[lt]})),wa=(0,te.useMemo)(function(){return(0,Be.Z)((0,Be.Z)({},fa),{},{src:gn})},[gn,fa]),ht=y(la,wa),rt=function(mt){var Ut=(0,Te.os)(mt.target),mn=Ut.left,xn=Ut.top;ua?ua.onPreview(ht,mn,xn):(Tn({x:mn,y:xn}),cn(!0)),ln==null||ln(mt)};return te.createElement(te.Fragment,null,te.createElement("div",(0,le.Z)({},Nn,{className:xa,onClick:la?rt:ln,style:(0,Be.Z)({width:tt,height:Zt},On)}),te.createElement("img",(0,le.Z)({},fa,{className:Ie()("".concat(Bt,"-img"),(0,se.Z)({},"".concat(Bt,"-img-placeholder"),Ft===!0),tn),style:(0,Be.Z)({height:Zt},Mt),ref:ia},Vn,{width:tt,height:Zt,onError:Yt})),ca==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(Bt,"-placeholder")},Ft),$n&&la&&te.createElement("div",{className:Ie()("".concat(Bt,"-mask"),Kn),style:{display:(Mt==null?void 0:Mt.display)==="none"?"none":void 0}},$n)),!ua&&la&&te.createElement(Tt,(0,le.Z)({"aria-hidden":!Rn,visible:Rn,prefixCls:St,onClose:ba,mousePosition:Zn,src:gn,alt:ve,fallback:Ht,getContainer:bn,icons:qn,movable:zn,scaleStep:Un,minScale:_n,maxScale:Yn,rootClassName:vn,imageRender:ea,imgCommonProps:fa,toolbarRender:Cn},ra)))};de.PreviewGroup=yt,de.displayName="Image";var et=de,Ot=et,_t=ge(62892),Gt=ge(36355),Ne=ge(31724),Le=ge(99267),Pe=ge(33853),Me=ge(38819),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},ot=Ze,Pt=ge(7657),bt=function(pe,Ue){return te.createElement(Pt.Z,(0,le.Z)({},pe,{ref:Ue,icon:ot}))},wt=te.forwardRef(bt),zt=wt,vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},It=vt,nn=function(pe,Ue){return te.createElement(Pt.Z,(0,le.Z)({},pe,{ref:Ue,icon:It}))},Sn=te.forwardRef(nn),sn=Sn,Kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},an=Kt,on=function(pe,Ue){return te.createElement(Pt.Z,(0,le.Z)({},pe,{ref:Ue,icon:an}))},pn=te.forwardRef(on),rn=pn,Pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Fn=Pn,fn=function(pe,Ue){return te.createElement(Pt.Z,(0,le.Z)({},pe,{ref:Ue,icon:Fn}))},Dn=te.forwardRef(fn),dn=Dn,Bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Wn=Bn,Qn=function(pe,Ue){return te.createElement(Pt.Z,(0,le.Z)({},pe,{ref:Ue,icon:Wn}))},sa=te.forwardRef(Qn),da=sa,An=ge(64993),Sa=ge(73819),oa=ge(17313),Pa=ge(29878),Xn=ge(1950),He=ge(83116),Ke=ge(37613);const Re=xe=>({position:xe||"absolute",inset:0}),gt=xe=>{const{iconCls:pe,motionDurationSlow:Ue,paddingXXS:ve,marginXXS:Je,prefixCls:ut,colorTextLightSolid:Bt}=xe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Bt,background:new An.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ue}`,[`.${ut}-mask-info`]:Object.assign(Object.assign({},oa.vS),{padding:`0 ${ve}px`,[pe]:{marginInlineEnd:Je,svg:{verticalAlign:"baseline"}}})}},Qt=xe=>{const{previewCls:pe,modalMaskBg:Ue,paddingSM:ve,marginXL:Je,margin:ut,paddingLG:Bt,previewOperationColorDisabled:Xe,previewOperationHoverColor:St,motionDurationSlow:Ft,iconCls:Ht,colorTextLightSolid:tt}=xe,Zt=new An.C(Ue).setAlpha(.1),Mt=Zt.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Je,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:xe.previewOperationColor},[`${pe}-progress`]:{marginBottom:ut},[`${pe}-close`]:{position:"fixed",top:Je,right:{_skip_check_:!0,value:Je},display:"flex",color:tt,backgroundColor:Zt.toRgbString(),borderRadius:"50%",padding:ve,outline:0,border:0,cursor:"pointer",transition:`all ${Ft}`,"&:hover":{backgroundColor:Mt.toRgbString()},[`& > ${Ht}`]:{fontSize:xe.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Bt}px`,backgroundColor:Zt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:ve,padding:ve,cursor:"pointer",transition:`all ${Ft}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${Ht}`]:{color:St},"&-disabled":{color:Xe,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Ht}`]:{fontSize:xe.previewOperationSize}}}}},en=xe=>{const{modalMaskBg:pe,iconCls:Ue,previewOperationColorDisabled:ve,previewCls:Je,zIndexPopup:ut,motionDurationSlow:Bt}=xe,Xe=new An.C(pe).setAlpha(.1),St=Xe.clone().setAlpha(.2);return{[`${Je}-switch-left, ${Je}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:ut+1,display:"flex",alignItems:"center",justifyContent:"center",width:xe.imagePreviewSwitchSize,height:xe.imagePreviewSwitchSize,marginTop:-xe.imagePreviewSwitchSize/2,color:xe.previewOperationColor,background:Xe.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Bt}`,userSelect:"none","&:hover":{background:St.toRgbString()},"&-disabled":{"&, &:hover":{color:ve,background:"transparent",cursor:"not-allowed",[`> ${Ue}`]:{cursor:"not-allowed"}}},[`> ${Ue}`]:{fontSize:xe.previewOperationSize}},[`${Je}-switch-left`]:{insetInlineStart:xe.marginSM},[`${Je}-switch-right`]:{insetInlineEnd:xe.marginSM}}},yn=xe=>{const{motionEaseOut:pe,previewCls:Ue,motionDurationSlow:ve,componentCls:Je}=xe;return[{[`${Je}-preview-root`]:{[Ue]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ue}-body`]:Object.assign(Object.assign({},Re()),{overflow:"hidden"}),[`${Ue}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${ve} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Re()),{transition:`transform ${ve} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ue}-moving`]:{[`${Ue}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Je}-preview-root`]:{[`${Ue}-wrap`]:{zIndex:xe.zIndexPopup}}},{[`${Je}-preview-operations-wrapper`]:{position:"fixed",zIndex:xe.zIndexPopup+1},"&":[Qt(xe),en(xe)]}]},$t=xe=>{const{componentCls:pe}=xe;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:xe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},gt(xe)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},Re())}}},Ct=xe=>{const{previewCls:pe}=xe;return{[`${pe}-root`]:(0,Pa._y)(xe,"zoom"),"&":(0,Xn.J$)(xe,!0)}};var ue=(0,He.Z)("Image",xe=>{const pe=`${xe.componentCls}-preview`,Ue=(0,Ke.TS)(xe,{previewCls:pe,modalMaskBg:new An.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:xe.controlHeightLG});return[$t(Ue),yn(Ue),(0,Sa.QA)((0,Ke.TS)(Ue,{componentCls:pe})),Ct(Ue)]},xe=>({zIndexPopup:xe.zIndexPopupBase+80,previewOperationColor:new An.C(xe.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new An.C(xe.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new An.C(xe.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:xe.fontSizeIcon*1.5})),he=function(xe,pe){var Ue={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&pe.indexOf(ve)<0&&(Ue[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ve=Object.getOwnPropertySymbols(xe);Je<ve.length;Je++)pe.indexOf(ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[Je])&&(Ue[ve[Je]]=xe[ve[Je]]);return Ue};const Se={rotateLeft:te.createElement(zt,null),rotateRight:te.createElement(sn,null),zoomIn:te.createElement(dn,null),zoomOut:te.createElement(da,null),close:te.createElement(Le.Z,null),left:te.createElement(Pe.Z,null),right:te.createElement(Me.Z,null),flipX:te.createElement(rn,null),flipY:te.createElement(rn,{rotate:90})};var $e=xe=>{var{previewPrefixCls:pe,preview:Ue}=xe,ve=he(xe,["previewPrefixCls","preview"]);const{getPrefixCls:Je}=te.useContext(Gt.E_),ut=Je("image",pe),Bt=`${ut}-preview`,Xe=Je(),[St,Ft]=ue(ut),Ht=te.useMemo(()=>{var tt;if(Ue===!1)return Ue;const Zt=typeof Ue=="object"?Ue:{},Mt=Ie()(Ft,(tt=Zt.rootClassName)!==null&&tt!==void 0?tt:"");return Object.assign(Object.assign({},Zt),{transitionName:(0,_t.m)(Xe,"zoom",Zt.transitionName),maskTransitionName:(0,_t.m)(Xe,"fade",Zt.maskTransitionName),rootClassName:Mt})},[Ue]);return St(te.createElement(Ot.PreviewGroup,Object.assign({preview:Ht,previewPrefixCls:Bt,icons:Se},ve)))},st=function(xe,pe){var Ue={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&pe.indexOf(ve)<0&&(Ue[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ve=Object.getOwnPropertySymbols(xe);Je<ve.length;Je++)pe.indexOf(ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[Je])&&(Ue[ve[Je]]=xe[ve[Je]]);return Ue};const kt=xe=>{const{prefixCls:pe,preview:Ue,className:ve,rootClassName:Je,style:ut}=xe,Bt=st(xe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Xe,locale:St=Ne.Z,getPopupContainer:Ft,image:Ht}=te.useContext(Gt.E_),tt=Xe("image",pe),Zt=Xe(),Mt=St.Image||Ne.Z.Image,[Et,qt]=ue(tt),tn=Ie()(Je,qt),ln=Ie()(ve,qt,Ht==null?void 0:Ht.className),Yt=te.useMemo(()=>{if(Ue===!1)return Ue;const On=typeof Ue=="object"?Ue:{},{getContainer:vn}=On,Nn=st(On,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${tt}-mask-info`},te.createElement(fe.Z,null),Mt==null?void 0:Mt.preview),icons:Se},Nn),{getContainer:vn||Ft,transitionName:(0,_t.m)(Zt,"zoom",On.transitionName),maskTransitionName:(0,_t.m)(Zt,"fade",On.maskTransitionName)})},[Ue,Mt]),ke=Object.assign(Object.assign({},Ht==null?void 0:Ht.style),ut);return Et(te.createElement(Ot,Object.assign({prefixCls:tt,preview:Yt,rootClassName:tn,className:ln,style:ke},Bt)))};kt.PreviewGroup=$e;var xt=kt},45818:function(be,at,ge){"use strict";ge.d(at,{D:function(){return z},Z:function(){return oe}});var te=ge(54476),fe=ge(59301),We={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"},Ie=We,le=ge(7657),Be=function(ie,ce){return fe.createElement(le.Z,(0,te.Z)({},ie,{ref:ce,icon:Ie}))},se=fe.forwardRef(Be),Ae=se,Oe=ge(33853),ze=ge(38819),Te=ge(92310),Ge=ge.n(Te),Ce=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ce={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ce[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(re);Fe<me.length;Fe++)ie.indexOf(me[Fe])<0&&Object.prototype.propertyIsEnumerable.call(re,me[Fe])&&(ce[me[Fe]]=re[me[Fe]]);return ce};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 re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=fe.forwardRef((re,ie)=>{const{prefixCls:ce,className:me,trigger:Fe,children:De,defaultCollapsed:ct=!1,theme:Nt="dark",style:Xt={},collapsible:ye=!1,reverseArrow:Ye=!1,width:nt=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:it,breakpoint:Dt,onCollapse:Tt,onBreakpoint:At}=re,Vt=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:we}=(0,fe.useContext)(x.Gs),[Ee,Ve]=(0,fe.useState)("collapsed"in re?re.collapsed:ct),[yt,qe]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in re&&Ve(re.collapsed)},[re.collapsed]);const pt=(Ne,Le)=>{"collapsed"in re||Ve(Ne),Tt==null||Tt(Ne,Le)},de=(0,fe.useRef)();de.current=Ne=>{qe(Ne.matches),At==null||At(Ne.matches),Ee!==Ne.matches&&pt(Ne.matches,"responsive")},(0,fe.useEffect)(()=>{function Ne(Pe){return de.current(Pe)}let Le;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&Dt&&Dt in E){Le=Pe(`(max-width: ${E[Dt]})`);try{Le.addEventListener("change",Ne)}catch(Me){Le.addListener(Ne)}Ne(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Ne)}catch(Pe){Le==null||Le.removeListener(Ne)}}},[Dt]),(0,fe.useEffect)(()=>{const Ne=ee("ant-sider-");return we.addSider(Ne),()=>we.removeSider(Ne)},[]);const et=()=>{pt(!Ee,"clickTrigger")},{getPrefixCls:Ot}=(0,fe.useContext)(y.E_),_t=()=>{const Ne=Ot("layout-sider",ce),Le=(0,Ce.Z)(Vt,["collapsed"]),Pe=Ee?Qe:nt,Me=a(Pe)?`${Pe}px`:String(Pe),Ze=parseFloat(String(Qe||0))===0?fe.createElement("span",{onClick:et,className:Ge()(`${Ne}-zero-width-trigger`,`${Ne}-zero-width-trigger-${Ye?"right":"left"}`),style:it},Fe||fe.createElement(Ae,null)):null,bt={expanded:Ye?fe.createElement(ze.Z,null):fe.createElement(Oe.Z,null),collapsed:Ye?fe.createElement(Oe.Z,null):fe.createElement(ze.Z,null)}[Ee?"collapsed":"expanded"],wt=Fe!==null?Ze||fe.createElement("div",{className:`${Ne}-trigger`,onClick:et,style:{width:Me}},Fe||bt):null,zt=Object.assign(Object.assign({},Xt),{flex:`0 0 ${Me}`,maxWidth:Me,minWidth:Me,width:Me}),vt=Ge()(Ne,`${Ne}-${Nt}`,{[`${Ne}-collapsed`]:!!Ee,[`${Ne}-has-trigger`]:ye&&Fe!==null&&!Ze,[`${Ne}-below`]:!!yt,[`${Ne}-zero-width`]:parseFloat(Me)===0},me);return fe.createElement("aside",Object.assign({className:vt},Le,{style:zt,ref:ie}),fe.createElement("div",{className:`${Ne}-children`},De),ye||yt&&Ze?wt:null)},Gt=fe.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return fe.createElement(z.Provider,{value:Gt},_t())})},84966:function(be,at,ge){"use strict";ge.d(at,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ce},ZP:function(){return ee}});var te=ge(94480),fe=ge(92310),We=ge.n(fe),Ie=ge(2738),le=ge(59301),Be=ge(36355),se=ge(83116),Oe=ne=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ce,lightTriggerColor:me}=ne;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:me,background:ce},[`${oe}-sider-zero-width-trigger`]:{color:me,background:ce,border:`1px solid ${re}`,borderInlineStart:0}}}};const ze=ne=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ce,footerBg:me,triggerBg:Fe,headerHeight:De,headerPadding:ct,headerColor:Nt,footerPadding:Xt,triggerHeight:ye,zeroTriggerHeight:Ye,zeroTriggerWidth:nt,motionDurationMid:Qe,motionDurationSlow:it,fontSize:Dt,borderRadius:Tt,bodyBg:At,headerBg:Vt,siderBg:we}=ne;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:we,transition:`all ${Qe}, 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:ce,lineHeight:`${ye}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-nt,zIndex:1,width:nt,height:Ye,color:ce,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:Tt,borderEndEndRadius:Tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-nt,borderStartStartRadius:Tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Tt}}}}},Oe(ne)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:De,padding:ct,color:Nt,lineHeight:`${De}px`,background:Vt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Xt,color:ie,fontSize:Dt,background:me},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,se.Z)("Layout",ne=>[ze(ne)],ne=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ce,controlHeightSM:me,marginXXS:Fe,colorTextLightSolid:De,colorBgContainer:ct}=ne,Nt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Nt}px`,headerColor:ce,footerPadding:`${me}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Fe*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ct,lightTriggerBg:ct,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(ne,oe){var re={};for(var ie in ne)Object.prototype.hasOwnProperty.call(ne,ie)&&oe.indexOf(ie)<0&&(re[ie]=ne[ie]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(ne);ce<ie.length;ce++)oe.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[ce])&&(re[ie[ce]]=ne[ie[ce]]);return re};const Ce=le.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:re,displayName:ie}=ne;return ce=>le.forwardRef((Fe,De)=>le.createElement(ce,Object.assign({ref:De,suffixCls:oe,tagName:re},Fe)))}const a=le.forwardRef((ne,oe)=>{const{prefixCls:re,suffixCls:ie,className:ce,tagName:me}=ne,Fe=Ge(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=le.useContext(Be.E_),ct=De("layout",re),[Nt,Xt]=Te(ct),ye=ie?`${ct}-${ie}`:ct;return Nt(le.createElement(me,Object.assign({className:We()(re||ye,ce,Xt),ref:oe},Fe)))}),y=le.forwardRef((ne,oe)=>{const{direction:re}=le.useContext(Be.E_),[ie,ce]=le.useState([]),{prefixCls:me,className:Fe,rootClassName:De,children:ct,hasSider:Nt,tagName:Xt,style:ye}=ne,Ye=Ge(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),nt=(0,Ie.Z)(Ye,["suffixCls"]),{getPrefixCls:Qe,layout:it}=le.useContext(Be.E_),Dt=Qe("layout",me),[Tt,At]=Te(Dt),Vt=We()(Dt,{[`${Dt}-has-sider`]:typeof Nt=="boolean"?Nt:ie.length>0,[`${Dt}-rtl`]:re==="rtl"},it==null?void 0:it.className,Fe,De,At),we=le.useMemo(()=>({siderHook:{addSider:Ee=>{ce(Ve=>[].concat((0,te.Z)(Ve),[Ee]))},removeSider:Ee=>{ce(Ve=>Ve.filter(yt=>yt!==Ee))}}}),[]);return Tt(le.createElement(Ce.Provider,{value:we},le.createElement(Xt,Object.assign({ref:oe,className:Vt,style:Object.assign(Object.assign({},it==null?void 0:it.style),ye)},nt),ct)))}),x=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(be,at,ge){"use strict";ge.d(at,{J:function(){return Be}});var te=ge(59301),fe=ge(33234),We=ge(70425),Ie=function(se,Ae){var Oe={};for(var ze in se)Object.prototype.hasOwnProperty.call(se,ze)&&Ae.indexOf(ze)<0&&(Oe[ze]=se[ze]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ze=Object.getOwnPropertySymbols(se);Te<ze.length;Te++)Ae.indexOf(ze[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,ze[Te])&&(Oe[ze[Te]]=se[ze[Te]]);return Oe};const le=te.createContext(null),Be=te.forwardRef((se,Ae)=>{const{children:Oe}=se,ze=Ie(se,["children"]),Te=te.useContext(le),Ge=te.useMemo(()=>Object.assign(Object.assign({},Te),ze),[Te,ze.prefixCls,ze.mode,ze.selectable]);return te.createElement(le.Provider,{value:Ge},te.createElement(fe.BR,null,(0,We.supportNodeRef)(Oe)?te.cloneElement(Oe,{ref:Ae}):Oe))});at.Z=le},20834:function(be,at,ge){"use strict";ge.d(at,{default:function(){return Gt}});var te=ge(15285),fe=ge(59301),We=ge(45818),Ie=ge(92310),le=ge.n(Ie),Be=ge(36355),se=function(Ne,Le){var Pe={};for(var Me in Ne)Object.prototype.hasOwnProperty.call(Ne,Me)&&Le.indexOf(Me)<0&&(Pe[Me]=Ne[Me]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Me=Object.getOwnPropertySymbols(Ne);Ze<Me.length;Ze++)Le.indexOf(Me[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Me[Ze])&&(Pe[Me[Ze]]=Ne[Me[Ze]]);return Pe},Oe=Ne=>{const{prefixCls:Le,className:Pe,dashed:Me}=Ne,Ze=se(Ne,["prefixCls","className","dashed"]),{getPrefixCls:ot}=fe.useContext(Be.E_),Pt=ot("menu",Le),bt=le()({[`${Pt}-item-divider-dashed`]:!!Me},Pe);return fe.createElement(te.iz,Object.assign({className:bt},Ze))},ze=ge(11592),Te=ge(2738),Ge=ge(6848),Ce=ge(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ne=>{var Le;const{className:Pe,children:Me,icon:Ze,title:ot,danger:Pt}=Ne,{prefixCls:bt,firstLevel:wt,direction:zt,disableMenuItemTitleTooltip:vt,inlineCollapsed:It}=fe.useContext(a),nn=pn=>{const rn=fe.createElement("span",{className:`${bt}-title-content`},Me);return(!Ze||(0,Ce.l$)(Me)&&Me.type==="span")&&Me&&pn&&wt&&typeof Me=="string"?fe.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Me.charAt(0)):rn},{siderCollapsed:Sn}=fe.useContext(We.D);let sn=ot;typeof ot=="undefined"?sn=wt?Me:"":ot===!1&&(sn="");const Kt={title:sn};!Sn&&!It&&(Kt.title=null,Kt.open=!1);const an=(0,ze.Z)(Me).length;let on=fe.createElement(te.ck,Object.assign({},(0,Te.Z)(Ne,["title","icon","danger"]),{className:le()({[`${bt}-item-danger`]:Pt,[`${bt}-item-only-child`]:(Ze?an+1:an)===1},Pe),title:typeof ot=="string"?ot:void 0}),(0,Ce.Tm)(Ze,{className:le()((0,Ce.l$)(Ze)?(Le=Ze.props)===null||Le===void 0?void 0:Le.className:"",`${bt}-item-icon`)}),nn(It));return vt||(on=fe.createElement(Ge.Z,Object.assign({},Kt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${bt}-inline-collapsed-tooltip`}),on)),on},E=Ne=>{var Le;const{popupClassName:Pe,icon:Me,title:Ze,theme:ot}=Ne,Pt=fe.useContext(a),{prefixCls:bt,inlineCollapsed:wt,theme:zt}=Pt,vt=(0,te.Xl)();let It;if(!Me)It=wt&&!vt.length&&Ze&&typeof Ze=="string"?fe.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Ze.charAt(0)):fe.createElement("span",{className:`${bt}-title-content`},Ze);else{const Sn=(0,Ce.l$)(Ze)&&Ze.type==="span";It=fe.createElement(fe.Fragment,null,(0,Ce.Tm)(Me,{className:le()((0,Ce.l$)(Me)?(Le=Me.props)===null||Le===void 0?void 0:Le.className:"",`${bt}-item-icon`)}),Sn?Ze:fe.createElement("span",{className:`${bt}-title-content`},Ze))}const nn=fe.useMemo(()=>Object.assign(Object.assign({},Pt),{firstLevel:!1}),[Pt]);return fe.createElement(a.Provider,{value:nn},fe.createElement(te.Wd,Object.assign({},(0,Te.Z)(Ne,["icon"]),{title:It,popupClassName:le()(bt,Pe,`${bt}-${ot||zt}`)})))},z=ge(18785),ee=ge(70425),ne=ge(62892),oe=ge(40875),re=function(Ne,Le){var Pe={};for(var Me in Ne)Object.prototype.hasOwnProperty.call(Ne,Me)&&Le.indexOf(Me)<0&&(Pe[Me]=Ne[Me]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Me=Object.getOwnPropertySymbols(Ne);Ze<Me.length;Ze++)Le.indexOf(Me[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Me[Ze])&&(Pe[Me[Ze]]=Ne[Me[Ze]]);return Pe};function ie(Ne){return(Ne||[]).map((Le,Pe)=>{if(Le&&typeof Le=="object"){const Me=Le,{label:Ze,children:ot,key:Pt,type:bt}=Me,wt=re(Me,["label","children","key","type"]),zt=Pt!=null?Pt:`tmp-${Pe}`;return ot||bt==="group"?bt==="group"?fe.createElement(te.BW,Object.assign({key:zt},wt,{title:Ze}),ie(ot)):fe.createElement(E,Object.assign({key:zt},wt,{title:Ze}),ie(ot)):bt==="divider"?fe.createElement(Oe,Object.assign({key:zt},wt)):fe.createElement(x,Object.assign({key:zt},wt),Ze)}return null}).filter(Le=>Le)}function ce(Ne){return fe.useMemo(()=>Ne&&ie(Ne),[Ne])}var me=ge(64993),Fe=ge(17313),De=ge(8378),ct=ge(13826),Nt=ge(29878),Xt=ge(83116),ye=ge(37613),nt=Ne=>{const{componentCls:Le,motionDurationSlow:Pe,horizontalLineHeight:Me,colorSplit:Ze,lineWidth:ot,lineType:Pt,itemPaddingInline:bt}=Ne;return{[`${Le}-horizontal`]:{lineHeight:Me,border:0,borderBottom:`${ot}px ${Pt} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:bt},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},it=Ne=>{let{componentCls:Le,menuArrowOffset:Pe}=Ne;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const Dt=Ne=>Object.assign({},(0,Fe.oN)(Ne));var At=(Ne,Le)=>{const{componentCls:Pe,itemColor:Me,itemSelectedColor:Ze,groupTitleColor:ot,itemBg:Pt,subMenuItemBg:bt,itemSelectedBg:wt,activeBarHeight:zt,activeBarWidth:vt,activeBarBorderWidth:It,motionDurationSlow:nn,motionEaseInOut:Sn,motionEaseOut:sn,itemPaddingInline:Kt,motionDurationMid:an,itemHoverColor:on,lineType:pn,colorSplit:rn,itemDisabledColor:Pn,dangerItemColor:Fn,dangerItemHoverColor:fn,dangerItemSelectedColor:Dn,dangerItemActiveBg:dn,dangerItemSelectedBg:Bn,itemHoverBg:Wn,itemActiveBg:Qn,menuSubMenuBg:sa,horizontalItemSelectedColor:da,horizontalItemSelectedBg:An,horizontalItemBorderRadius:Sa,horizontalItemHoverBg:oa,popupBg:Pa}=Ne;return{[`${Pe}-${Le}, ${Pe}-${Le} > ${Pe}`]:{color:Me,background:Pt,[`&${Pe}-root:focus-visible`]:Object.assign({},Dt(Ne)),[`${Pe}-item-group-title`]:{color:ot},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Ze}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${Pn} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:on}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Wn},"&:active":{backgroundColor:Qn}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Wn},"&:active":{backgroundColor:Qn}}},[`${Pe}-item-danger`]:{color:Fn,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:fn}},[`&${Pe}-item:active`]:{background:dn}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Ze,[`&${Pe}-item-danger`]:{color:Dn},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:wt,[`&${Pe}-item-danger`]:{backgroundColor:Bn}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},Dt(Ne))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:sa},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:Pa},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:Sa,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${nn} ${Sn}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:zt,borderBottomColor:da}},"&-selected":{color:da,backgroundColor:An,"&:hover":{backgroundColor:An},"&::after":{borderBottomWidth:zt,borderBottomColor:da}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${It}px ${pn} ${rn}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:bt},[`${Pe}-item, ${Pe}-submenu-title`]:It&&vt?{width:`calc(100% + ${It}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vt}px solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${an} ${sn}`,`opacity ${an} ${sn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:Dn}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${an} ${Sn}`,`opacity ${an} ${Sn}`].join(",")}}}}}};const Vt=Ne=>{const{componentCls:Le,itemHeight:Pe,itemMarginInline:Me,padding:Ze,menuArrowSize:ot,marginXS:Pt,itemMarginBlock:bt}=Ne,wt=Ze+ot+Pt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:Me,marginBlock:bt,width:`calc(100% - ${Me*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:wt}}};var Ee=Ne=>{const{componentCls:Le,iconCls:Pe,itemHeight:Me,colorTextLightSolid:Ze,dropdownWidth:ot,controlHeightLG:Pt,motionDurationMid:bt,motionEaseOut:wt,paddingXL:zt,itemMarginInline:vt,fontSizeLG:It,motionDurationSlow:nn,paddingXS:Sn,boxShadowSecondary:sn,collapsedWidth:Kt,collapsedIconSize:an}=Ne,on={height:Me,lineHeight:`${Me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Vt(Ne))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Vt(Ne)),{boxShadow:sn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:ot,maxHeight:`calc(100vh - ${Pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${nn}`,`background ${nn}`,`padding ${bt} ${wt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:on,[`& ${Le}-item-group-title`]:{paddingInlineStart:zt}},[`${Le}-item`]:on}},{[`${Le}-inline-collapsed`]:{width:Kt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${vt}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${Pe}`]:{margin:0,fontSize:an,lineHeight:`${Me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Sn})}}]};const Ve=Ne=>{const{componentCls:Le,motionDurationSlow:Pe,motionDurationMid:Me,motionEaseInOut:Ze,motionEaseOut:ot,iconCls:Pt,iconSize:bt,iconMarginInlineEnd:wt}=Ne;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Ze}`].join(","),[`${Le}-item-icon, ${Pt}`]:{minWidth:bt,fontSize:bt,transition:[`font-size ${Me} ${ot}`,`margin ${Pe} ${Ze}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:wt,opacity:1,transition:[`opacity ${Pe} ${Ze}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Le}-item-only-child`]:{[`> ${Pt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yt=Ne=>{const{componentCls:Le,motionDurationSlow:Pe,motionEaseInOut:Me,borderRadius:Ze,menuArrowSize:ot,menuArrowOffset:Pt}=Ne;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ne.margin,width:ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Me}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ot*.6,height:ot*.15,backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${Pe} ${Me}`,`transform ${Pe} ${Me}`,`top ${Pe} ${Me}`,`color ${Pe} ${Me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Pt})`},"&::after":{transform:`rotate(-45deg) translateY(${Pt})`}}}}},qe=Ne=>{const{antCls:Le,componentCls:Pe,fontSize:Me,motionDurationSlow:Ze,motionDurationMid:ot,motionEaseInOut:Pt,paddingXS:bt,padding:wt,colorSplit:zt,lineWidth:vt,zIndexPopup:It,borderRadiusLG:nn,subMenuItemBorderRadius:Sn,menuArrowSize:sn,menuArrowOffset:Kt,lineType:an,menuPanelMaskInset:on,groupTitleLineHeight:pn,groupTitleFontSize:rn}=Ne;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Fe.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,Fe.Wf)(Ne)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} 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:Ne.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${bt}px ${wt}px`,fontSize:rn,lineHeight:pn,transition:`all ${Ze}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Ze} ${Pt}`,`background ${Ze} ${Pt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Ze} ${Pt}`,`background ${Ze} ${Pt}`,`padding ${ot} ${Pt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${Pt}`,`padding ${Ze} ${Pt}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Ze}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:an,borderWidth:0,borderTopWidth:vt,marginBlock:vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ve(Ne)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Me*2}px ${wt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:nn,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${on}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:on},"\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:Ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ne.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:nn},Ve(Ne)),yt(Ne)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Sn},[`${Pe}-submenu-title::after`]:{transition:`transform ${Ze} ${Pt}`}})}}),yt(Ne)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${Le}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var pt=(Ne,Le)=>(0,Xt.Z)("Menu",Me=>{if(Le===!1)return[];const{colorBgElevated:Ze,colorPrimary:ot,colorTextLightSolid:Pt,controlHeightLG:bt,fontSize:wt,darkItemColor:zt,darkDangerItemColor:vt,darkItemBg:It,darkSubMenuItemBg:nn,darkItemSelectedColor:Sn,darkItemSelectedBg:sn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:an,darkGroupTitleColor:on,darkItemHoverColor:pn,darkItemDisabledColor:rn,darkDangerItemHoverColor:Pn,darkDangerItemSelectedColor:Fn,darkDangerItemActiveBg:fn}=Me,Dn=wt/7*5,dn=(0,ye.TS)(Me,{menuArrowSize:Dn,menuHorizontalHeight:bt*1.15,menuArrowOffset:`${Dn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ze}),Bn=(0,ye.TS)(dn,{itemColor:zt,itemHoverColor:pn,groupTitleColor:on,itemSelectedColor:Sn,itemBg:It,popupBg:It,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:an,itemDisabledColor:rn,dangerItemColor:vt,dangerItemHoverColor:Pn,dangerItemSelectedColor:Fn,dangerItemActiveBg:fn,dangerItemSelectedBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:Pt,horizontalItemSelectedBg:ot});return[qe(dn),nt(dn),Ee(dn),At(dn,"light"),At(Bn,"dark"),it(dn),(0,De.Z)(dn),(0,ct.oN)(dn,"slide-up"),(0,ct.oN)(dn,"slide-down"),(0,Nt._y)(dn,"zoom-big")]},Me=>{const{colorPrimary:Ze,colorError:ot,colorTextDisabled:Pt,colorErrorBg:bt,colorText:wt,colorTextDescription:zt,colorBgContainer:vt,colorFillAlter:It,colorFillContent:nn,lineWidth:Sn,lineWidthBold:sn,controlItemBgActive:Kt,colorBgTextHover:an,controlHeightLG:on,lineHeight:pn,colorBgElevated:rn,marginXXS:Pn,padding:Fn,fontSize:fn,controlHeightSM:Dn,fontSizeLG:dn,colorTextLightSolid:Bn,colorErrorHover:Wn}=Me,Qn=new me.C(Bn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Me.zIndexPopupBase+50,radiusItem:Me.borderRadiusLG,itemBorderRadius:Me.borderRadiusLG,radiusSubMenuItem:Me.borderRadiusSM,subMenuItemBorderRadius:Me.borderRadiusSM,colorItemText:wt,itemColor:wt,colorItemTextHover:wt,itemHoverColor:wt,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Ze,itemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:vt,itemBg:vt,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:nn,itemActiveBg:Kt,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:Sn,activeBarBorderWidth:Sn,colorItemTextDisabled:Pt,itemDisabledColor:Pt,colorDangerItemText:ot,dangerItemColor:ot,colorDangerItemTextHover:ot,dangerItemHoverColor:ot,colorDangerItemTextSelected:ot,dangerItemSelectedColor:ot,colorDangerItemBgActive:bt,dangerItemActiveBg:bt,colorDangerItemBgSelected:bt,dangerItemSelectedBg:bt,itemMarginInline:Me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:on,groupTitleLineHeight:pn,collapsedWidth:on*2,popupBg:rn,itemMarginBlock:Pn,itemPaddingInline:Fn,horizontalLineHeight:`${on*1.15}px`,iconSize:fn,iconMarginInlineEnd:Dn-fn,collapsedIconSize:dn,groupTitleFontSize:fn,darkItemDisabledColor:new me.C(Bn).setAlpha(.25).toRgbString(),darkItemColor:Qn,darkDangerItemColor:ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Bn,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:ot,darkItemHoverBg:"transparent",darkGroupTitleColor:Qn,darkItemHoverColor:Bn,darkDangerItemHoverColor:Wn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:ot}},{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"]]})(Ne),de=function(Ne,Le){var Pe={};for(var Me in Ne)Object.prototype.hasOwnProperty.call(Ne,Me)&&Le.indexOf(Me)<0&&(Pe[Me]=Ne[Me]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Me=Object.getOwnPropertySymbols(Ne);Ze<Me.length;Ze++)Le.indexOf(Me[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Me[Ze])&&(Pe[Me[Ze]]=Ne[Me[Ze]]);return Pe},Ot=(0,fe.forwardRef)((Ne,Le)=>{var Pe,Me;const Ze=fe.useContext(oe.Z),ot=Ze||{},{getPrefixCls:Pt,getPopupContainer:bt,direction:wt,menu:zt}=fe.useContext(Be.E_),vt=Pt(),{prefixCls:It,className:nn,style:Sn,theme:sn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:an,inlineCollapsed:on,siderCollapsed:pn,items:rn,children:Pn,rootClassName:Fn,mode:fn,selectable:Dn,onClick:dn,overflowedIndicatorPopupClassName:Bn}=Ne,Wn=de(Ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Qn=(0,Te.Z)(Wn,["collapsedWidth"]),sa=ce(rn)||Pn;(Pe=ot.validator)===null||Pe===void 0||Pe.call(ot,{mode:fn});const da=(0,ee.useEvent)(function(){var en;dn==null||dn.apply(void 0,arguments),(en=ot.onClick)===null||en===void 0||en.call(ot)}),An=ot.mode||fn,Sa=Dn!=null?Dn:ot.selectable,oa=fe.useMemo(()=>pn!==void 0?pn:on,[on,pn]),Pa={horizontal:{motionName:`${vt}-slide-up`},inline:(0,ne.Z)(vt),other:{motionName:`${vt}-zoom-big`}},Xn=Pt("menu",It||ot.prefixCls),[He,Ke]=pt(Xn,!Ze),Re=le()(`${Xn}-${sn}`,zt==null?void 0:zt.className,nn);let gt;if(typeof Kt=="function")gt=Kt;else if(Kt===null||Kt===!1)gt=null;else if(ot.expandIcon===null||ot.expandIcon===!1)gt=null;else{const en=Kt!=null?Kt:ot.expandIcon;gt=(0,Ce.Tm)(en,{className:le()(`${Xn}-submenu-expand-icon`,(0,Ce.l$)(en)?(Me=en.props)===null||Me===void 0?void 0:Me.className:"")})}const Qt=fe.useMemo(()=>({prefixCls:Xn,inlineCollapsed:oa||!1,direction:wt,firstLevel:!0,theme:sn,mode:An,disableMenuItemTitleTooltip:an}),[Xn,oa,wt,an,sn]);return He(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Qt},fe.createElement(te.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:le()(Xn,`${Xn}-${sn}`,Bn),mode:An,selectable:Sa,onClick:da},Qn,{inlineCollapsed:oa,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Sn),className:Re,prefixCls:Xn,direction:wt,defaultMotions:Pa,expandIcon:gt,ref:Le,rootClassName:le()(Fn,Ke)}),sa))))});const _t=(0,fe.forwardRef)((Ne,Le)=>{const Pe=(0,fe.useRef)(null),Me=fe.useContext(We.D);return(0,fe.useImperativeHandle)(Le,()=>({menu:Pe.current,focus:Ze=>{var ot;(ot=Pe.current)===null||ot===void 0||ot.focus(Ze)}})),fe.createElement(Ot,Object.assign({ref:Pe},Ne,Me))});_t.Item=x,_t.SubMenu=E,_t.Divider=Oe,_t.ItemGroup=te.BW;var Gt=_t},8224:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return fe}});var te=ge(4676);function fe(We,Ie,le,Be){var se=te.unstable_batchedUpdates?function(Oe){te.unstable_batchedUpdates(le,Oe)}:le;return We!=null&&We.addEventListener&&We.addEventListener(Ie,se,Be),{remove:function(){We!=null&&We.removeEventListener&&We.removeEventListener(Ie,se,Be)}}}},55468:function(be,at,ge){"use strict";ge.d(at,{g1:function(){return Te},os:function(){return Ce}});var te=/margin|padding|width|height|max|min|offset/,fe={left:!0,top:!0},We={cssFloat:1,styleFloat:1,float:1};function Ie(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function le(ae,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ae.offsetHeight;if(a==="width")return ae.offsetWidth}return a in fe||(fe[a]=te.test(a)),fe[a]?parseFloat(y)||0:y}function Be(ae,a){var y=arguments.length,x=Ie(ae);return a=We[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,y===1?x:le(ae,a,x[a]||ae.style[a])}function se(ae,a,y){var x=arguments.length;if(a=We[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&te.test(a)&&(y="".concat(y,"px")),ae.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&se(ae,b,a[b]);return Ie(ae)}function Ae(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function Oe(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function ze(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:a}}function Te(){var ae=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:a}}function Ge(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(ae){var a=ae.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}}}]);