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.
113 lines
364 KiB
113 lines
364 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5359],{33853:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return ke}});var ae=ge(32855),fe=ge(59301),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ae=_e,Se=ge(7657),Ne=function(Ie,Oe){return fe.createElement(Se.Z,(0,ae.Z)({},Ie,{ref:Oe,icon:Ae}))},le=fe.forwardRef(Ne),ke=le},38819:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return ke}});var ae=ge(32855),fe=ge(59301),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ae=_e,Se=ge(7657),Ne=function(Ie,Oe){return fe.createElement(Se.Z,(0,ae.Z)({},Ie,{ref:Oe,icon:Ae}))},le=fe.forwardRef(Ne),ke=le},21697:function(Le,Ye){"use strict";Ye.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function Le(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Le.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Le.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Le.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Le.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Le))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Ye=[];function ge(ne,a){var y=Ye.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=Ye.pop();return ne===void 0?new go.Point:ne}function fe(ne){Ye.push(ne)}function _e(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,ce=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ce=a);else{var se=(E-ee)/re,Fe=E-se*b;ie=ne,ce=se*ie+Fe}else if(re===0){var xe=(a-x)/oe,nt=a-xe*ne;ie=b,ce=xe*ie+nt}else{var xe=(a-x)/oe,se=(E-ee)/re,nt=a-xe*ne,Fe=E-se*b;ie=(Fe-nt)/(xe-se),ce=xe*ie+nt}return te.x=ie,te.y=ce,te}function Ae(ne,a,y,x,b,E,z,ee,te,oe,re,ie,ce,se){var Fe=1-te,xe=te,nt=ne*Fe+y*xe,vt=a*Fe+x*xe,kt=y*Fe+b*xe,ht=x*Fe+E*xe,wt=b*Fe+z*xe,_t=E*Fe+ee*xe,cn=nt*Fe+kt*xe,qt=vt*Fe+ht*xe,rn=kt*Fe+wt*xe,en=ht*Fe+_t*xe,fn=cn*Fe+rn*xe,xn=qt*Fe+en*xe;oe.x=nt,oe.y=vt,re.x=cn,re.y=qt,ie.x=fn,ie.y=xn,ce.x=rn,ce.y=en,se.x=wt,se.y=_t}var Se=new go.Spot(.156,.156),Ne=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Le("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=Se,b.spot2=Ne,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Le("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Le("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Le("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Le("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Le("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var ke=[];function ye(){var ne=ke.pop();return ne===void 0?[]:ne}function Ie(ne){ne.length=0,ke.push(ne)}function Oe(ne){for(var a=ye(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function De(ne){var a=Ee(ne),y=ye();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ie(a),y}function Ee(ne){for(var a=Oe(ne),y=ye(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=_e(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Ie(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Oe(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Oe(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Oe(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Oe(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Oe(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Oe(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Oe(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ee(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ee(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ee(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ee(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ee(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ee(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=De(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=De(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=De(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=De(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=De(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=De(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Le("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Le("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Le("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=Se,E.spot2=Ne,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Le("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Le("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=le/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 Le("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Le("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Le("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Le("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Le("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Le("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=le*.4;var oe=ae(),re=ae(),ie=ae(),ce=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ce,ce);var se=ae(),Fe=ae(),xe=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ce,ce,xe,se,Fe);var nt=ae(),vt=ae(),kt=ae();Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,nt,vt,kt,ce,ce);var ht=ae(),wt=ae(),_t=ae();return Ae(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ce,ce,_t,ht,wt),te.add(new go.PathSegment(go.PathSegment.Move,_t.x*a,_t.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ht.x*a,ht.y*y,wt.x*a,wt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,_t.x*a,_t.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,kt.x*a,kt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Fe.x*a,Fe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,nt.x*a,nt.y*y,vt.x*a,vt.y*y).close()),fe(oe),fe(re),fe(ie),fe(ce),fe(se),fe(Fe),fe(xe),fe(nt),fe(vt),fe(kt),fe(ht),fe(wt),fe(_t),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Le("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),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)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),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 se=ge(oe.x,oe.y);Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Fe=ge(oe.x,oe.y);ce.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.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=le*.35;var xe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),xe.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 nt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(nt),fe(te),fe(oe),fe(re),fe(ie),fe(se),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(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Le("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Le("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=_e(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Le("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Le("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=_e(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Le("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=_e(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=_e(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Le("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Le("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=_e(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=_e(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Le("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=_e(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Le("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Le("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=_e(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Le("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=_e(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Le("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=_e(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Le("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=_e(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Le("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=_e(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Le("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,le*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-le*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-le*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-le*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-le*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.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,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,le*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-le*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-le*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-le*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-le*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.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-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*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+le*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+le*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*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-le*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-le*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=le*b,ee=le*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ce=le*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ce)*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ce=le*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ce=le*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ce=le*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ce=le*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y,(te-ce)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Le("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=le*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.4,z=le*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ce=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,oe=.5;var Fe=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=le*.4,ee=.4,te=.8,oe=.5;var xe=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,oe=.5;var nt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var ce=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=le*.3,E=.3,Ae(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ae(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),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(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ce=.5,se=0,Fe=new go.PathFigure(te*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,(se+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(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ce=z,se=z,Fe=re*ce,xe=re*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,te*y,(ee-(Fe+ce)/2)*a,(te+(se+xe)/2)*y,(ee-ce)*a,(te+xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ce)*a,(te-xe)*y,(ee-Fe)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,te*y,(ee+Fe)*a,(te-se)*y,(ee+ce)*a,(te-xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(te+xe)*y,(ee+(Fe+ce)/2)*a,(te+(se+xe)/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 nt=new go.PathFigure(.2*a,y,!1);x.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var vt=new go.PathFigure(.8*a,y,!1);return x.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=le*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=le*.1,re=.1,ie=.9,ce=new go.PathFigure((re-te)*a,ie*y,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=le*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=le*.05,ce=.175,se=.95,ee=new go.PathFigure((ce-re)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-re)*y,(ce-re)*a,(se-ie)*y,(ce-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,se*y,(ce+ie)*a,(se-re)*y,(ce+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+re)*y,(ce+re)*a,(se+ie)*y,(ce+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,se*y,(ce-ie)*a,(se+re)*y,(ce-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ce=.375,se=.95,te=new go.PathFigure((ce-re)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-re)*y,(ce-re)*a,(se-ie)*y,(ce-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,se*y,(ce+ie)*a,(se-re)*y,(ce+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+re)*y,(ce+re)*a,(se+ie)*y,(ce+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,se*y,(ce-ie)*a,(se+re)*y,(ce-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ce=.625,se=.95,oe=new go.PathFigure((ce-re)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-re)*y,(ce-re)*a,(se-ie)*y,(ce-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,se*y,(ce+ie)*a,(se-re)*y,(ce+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+re)*y,(ce+re)*a,(se+ie)*y,(ce+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,se*y,(ce-ie)*a,(se+re)*y,(ce-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ce=.825,se=.95,Fe=new go.PathFigure((ce-re)*a,se*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-re)*y,(ce-re)*a,(se-ie)*y,(ce-ie)*a,(se-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,se*y,(ce+ie)*a,(se-re)*y,(ce+re)*a,(se-ie)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+re)*y,(ce+re)*a,(se+ie)*y,(ce+ie)*a,(se+re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,se*y,(ce-ie)*a,(se+re)*y,(ce-re)*a,(se+ie)*y).close());var xe=new go.PathFigure(0,y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=le*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*le,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081: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 Le={},Ye="5.0",ge={},ae=null,fe=!1,_e=!1,Ae=null,Se=!1,Ne=null,le=null,ke=0;ke<arguments.length;ke++){var ye=arguments[ke];if(ye!==null)switch(typeof ye){case"number":Ye=ye.toFixed(1);break;case"string":ye.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ye=ye:Ae=ye;break;case"object":typeof ye.is3D!="undefined"?ae=ye:ge=ye;break;case"boolean":fe=ye,_e=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!_e&&(fe=!0)),Ae!==null&&ge.id===void 0&&(ge.id=Ae);var Ie="",Oe="",De=!1,Ee=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(we){return parseFloat(we)>4?parseFloat(we):5};Le.setHTML5Codebase=function(we,Be){le=we,en(we,Be)},Le.setJavaCodebase=Le.setJavaCodebaseVersion=Le.isCompiledInstalled=Le.setPreCompiledScriptPath=Le.setPreCompiledResourcePath=function(){},Le.setHTML5CodebaseVersion=function(we,Be){var je=parseFloat(we);if(je!==NaN&&je<5){console.log("The GeoGebra HTML5 codebase version "+je+" is deprecated. Using version latest instead.");return}Ne=we,rn(we,Be)},Le.getHTML5CodebaseVersion=function(){return ne},Le.getParameters=function(){return ge},Le.setFontsCSSURL=function(we){z=we},Le.setGiacJSURL=function(we){},Le.setJNLPFile=function(we){Ie=we},Le.setJNLPBaseDir=function(we){},Le.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",je=ge.id,pt,Ue=!1,Lt=0;Lt<arguments.length;Lt++){var me=arguments[Lt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=me:je=arguments[Lt]):typeof me=="boolean"?Ue=me:me instanceof HTMLElement&&(pt=me)}Qe();function Qe(){if(!Se){setTimeout(Qe,200);return}Be=cn(Be);var Tt=pt||document.getElementById(je);if(!Tt){console.log("possibly bug on ajax loading? ");return}if(Le.removeExistingApplet(Tt,!1),ge.width===void 0&&Tt.clientWidth&&(ge.width=Tt.clientWidth),ge.height===void 0&&Tt.clientHeight&&(ge.height=Tt.clientHeight),!(ge.width&&ge.height)&&Be==="html5"&&(delete ge.width,delete ge.height),Ee=Be,Be==="screenshot")vt(Tt,ge);else{var Qt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Qt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Qt=(!oe()||we())&&re()),Qt?(Ee="screenshot",ht(Tt,ge,Ue,Be)):nt(Tt,ge,Ue)}}};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}Le.getViews=function(){return ae},Le.isJavaInstalled=function(){return!1};var ie=function(we){var Be=function(Lt){var me=JSON.parse(Lt),Qe=function(Dt){return Dt.type=="G"||Dt.type=="E"},Tt=me.elements?me.elements.filter(Qe)[0]:me;if(!Tt||!Tt.url){je();return}ge.fileName=Tt.url,ce(Tt.settings||{}),ae.is3D=!0;var Qt="https://www.geogebra.org/images/";Le.setPreviewImage(x||Tt.previewUrl,Qt+"GeoGebra_loading.png",Qt+"applet_play.png"),we()},je=function(){ge.onError&&ge.onError(),fn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},pt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+ge.material_id+"?scope=basic";se("https://"+pt+"/api/proxy.php?path="+encodeURIComponent(Ue),Be,je)};function ce(we){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(je){we[je]=!!we[je]}),Be.forEach(function(je){ge[je]===void 0&&we[je]!==void 0&&(ge[je]=we[je])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(we,Be,je){var pt=new XMLHttpRequest;pt.open("GET",we),pt.onload=function(){Be(pt.responseText)},pt.onerror=je,pt.send()}Le.isHTML5Installed=function(){return!0},Le.getLoadedAppletType=function(){return Ee},Le.setPreviewImage=function(we,Be,je){x=we,b=Be,E=je},Le.removeExistingApplet=function(we,Be){var je;typeof we=="string"&&(we=document.getElementById(we)),Ee=null;var pt=null;for(je=0;je<we.childNodes.length;je++){var Ue=we.childNodes[je],Lt=Ue.className;Lt==="applet_screenshot"?Be?(Ue.style.display="block",Ee="screenshot"):Ue.style.display="none":Lt!=="applet_scaler prerender"&&(we.removeChild(Ue),pt=Lt&&Lt.indexOf("appletParameters")!=-1?Ue.id:null,je--)}var me=ge.id!==void 0?ge.id:pt,Qe=window[me];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[me]=null)},Le.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Le.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Le.startAnimation=function(){var we=Le.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Le.stopAnimation=function(){var we=Le.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Le.getAppletObject=function(){var we=ge.id!==void 0?ge.id:"ggbApplet";return window[we]},Le.resize=function(){};var Fe=function(we,Be,je){var pt=document.createElement("param");pt.setAttribute("name",Be),pt.setAttribute("value",je),we.appendChild(pt)},xe=function(we){return we&&we!=="false"},nt=function(we,Be,je){te(ne)<=4.2&&(je=!0);var pt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(pt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var Lt=Be.width,me=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(te(ne)<=4.4)xe(Be.showToolBar)&&(Be.height-=7),xe(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&xe(Be.showToolBar)&&(Be.width=605,Lt=605);else{var Qe=100;(xe(Be.showToolBar)||xe(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),Qe=xe(Be.showMenuBar)?245:155),Lt<Qe&&(Be.width=Qe,Lt=Qe)}Ue.style.border="none",Ue.style.display="inline-block";for(var Tt in Be)Be.hasOwnProperty(Tt)&&Tt!=="appletOnLoad"&&Ue.setAttribute("data-param-"+Tt,Be[Tt]);z&&Ue.setAttribute("data-param-fontscssurl",z),Le.resize=function(){GGBAppletUtils.responsiveResize(we,Be)},window.addEventListener("resize",function(Bt){Le.resize()});var Qt=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!je&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var Dt=we.querySelector(".applet_scaler.prerender"),Ge=Dt!==null;if(Ge)var pe=Dt.querySelector(".ggb_preview");else{var pe=_t(Lt,me,Be.borderColor,!1);Dt=document.createElement("div"),Dt.className="applet_scaler",Dt.style.position="relative",Dt.style.display="block",Dt.style.width=Lt+"px",Dt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),te(ne)>=5?(Be.appletOnLoad=function(Bt){var Et=we.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Dt),window.GGBT_wsf_view&&$(window).trigger("resize"),Qt(Bt)},Ge||Dt.appendChild(pe)):Ue.appendChild(pe),Dt.appendChild(Ue),Ge||we.appendChild(Dt),setTimeout(function(){Le.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Ue),we.appendChild(he),Be.appletOnLoad=function(Bt){Le.resize(),Qt(Bt)}}function Te(Bt,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,Et.appletOnLoad):renderGGBElement(Bt),fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function $e(Bt,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(gn){Te(gn.article,gn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Bt.className+=" geogebraweb")):Te(Bt,Et)}if(pt){scriptLoadStarted=!0;for(var at=0;at<Ue.childNodes.length;at++){var ut=Ue.childNodes[at].tagName;ut==="TABLE"&&(Ue.removeChild(Ue.childNodes[at]),at--)}if(ggbHTML5LoadedScript!==null){var lt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');lt!=null&<.parentNode.removeChild(lt)}var Ft=document.createElement("script"),xt=function(){$e(Ue,Be)};Ft.src=Oe+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ft.src,fn("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",Be),!le&&(!Ne||Ne=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xt()):Oe.requirejs?__webpack_require__.e(981).then(function(){var Bt=[__webpack_require__(60981)];xt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(Ft.onload=xt,we.appendChild(Ft))}else $e(Ue,Be);Be.height=me,Be.width=Lt},vt=function(we,Be,je){var pt=_t(Be.width,Be.height,Be.borderColor,je),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Be.width+"px",Ue.style.height=Be.height+"px",Ue.className="applet_screenshot applet_scaler"+(je?" applet_screenshot_play":""),Ue.appendChild(pt);var Lt=GGBAppletUtils.getScale(Be,we,je);je?(we.appendChild(wt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),we.appendChild(Ue),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(Ue,Lt),Ue.style.width=Be.width+"px",Ue.style.height=Be.height+"px",Ue.parentNode.style.width=Be.width*Lt+"px",Ue.parentNode.style.height=Be.height*Lt+"px"),Le.resize=function(){kt(we,pt,Ue,je)},window.addEventListener("resize",function(me){Le.resize()}),Le.resize()};function kt(we,Be,je,pt){if(we.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ue=GGBAppletUtils.getScale(ge,we,pt);je.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(je,Ue),je.parentNode.style.width=ge.width*Ue+"px",je.parentNode.style.height=ge.height*Ue+"px"):(GGBAppletUtils.scaleElement(je,1),je.parentNode.style.width=ge.width+"px",je.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()}}Le.onExitFullscreen=function(we,Be){Be.appendChild(we)};var ht=function(we,Be,je,pt){vt(we,Be,!0);for(var Ue=function(){var Qe=[];for(me=0;me<we.childNodes.length;me++)Qe.push(we.childNodes[me]);if(window.GGBT_wsf_view){var Tt=window.GGBT_wsf_view.renderFullScreen(we,Be.id),Qt=document.getElementById("fullscreencontainer"),Dt=jQuery(we).find(".fullscreencontent");Dt.length>0?(Tt.remove(),Dt.attr("id","fullscreencontent").show(),jQuery(Qt).append(Dt),window.dispatchEvent(new Event("resize"))):nt(Tt,Be,!1),window.GGBT_wsf_view.launchFullScreen(Qt)}else Ee=pt,nt(we,Be,!1);if(!window.GGBT_wsf_view)for(me=0;me<Qe.length;me++)we.removeChild(Qe[me])},Lt=we.getElementsByClassName("ggb_preview_play"),me=0;me<Lt.length;me++)Lt[me].addEventListener("click",Ue,!1),Lt[me].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},wt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Be='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',je=document.createElement("style");je.styleSheet?je.styleSheet.cssText=Be:je.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(je)}return we},_t=function(we,Be,je,pt){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=we-2+"px",Ue.style.height=Be-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var Lt="lightgrey";je!==void 0&&(je==="none"?Lt="transparent":Lt=je),Ue.style.border="1px solid "+Lt;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",x!==null&&me.setAttribute("src",x),me.style.opacity=.7,b!==null){var Qe,Tt,Qt;if(!pt){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,me.style.opacity=.3,Tt=360,Tt>we/4*3&&(Tt=we/4*3),Qt=Tt/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",Tt),Qe.setAttribute("height",Qt);var Dt=(we-Tt)/2,Ge=(Be-Qt)/2;Qe.style.left=Dt+"px",Qe.style.top=Ge+"px",Ue.appendChild(Qe)}}return Ue.appendChild(me),Ue},cn=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},qt=["web","webSimple","web3d","tablet","tablet3d","phone"],rn=function(we,Be){if(ne=we,Be){en(ne,!0);return}var je=!fe;if(je){var pt=te(ne);!isNaN(pt)&&pt<4.4&&(je=!1)}var Ue,Lt;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var me=ne.indexOf("//");me>0?Lt=ne:me===0?Lt=Ue+ne:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in qt)if(ne.slice(qt[Qe].length*-1)===qt[Qe]||ne.slice((qt[Qe].length+1)*-1)===qt[Qe]+"/"){en(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!xe(ge.showToolBar)&&!xe(ge.showMenuBar)&&!xe(ge.showAlgebraInput)&&!xe(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",en(Lt,!1)},en=function(we,Be){if(we.requirejs){Oe=we;return}we.slice(-1)!=="/"&&(we+="/"),Oe=we,Be===null&&(Be=we.indexOf("http")===-1),De=Be,a="web.nocache.js",y=!1;var je=Oe.split("/");je.length>1&&(!Be&&je[je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):qt.indexOf(je[je.length-2])>=0&&(a=je[je.length-2]+".nocache.js")),je=we.split("/"),ne=je[je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var pt=parseFloat(ne);pt!==NaN&&pt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+pt+" is deprecated. Using version latest instead."),rn("5.0",Be))},fn=function(we,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(we)};ge.material_id!==void 0?ie(xn):xn();function xn(){var we=Ye;Ne!==null?we=Ne:parseFloat(we)<5&&(we="5.0"),rn(we,!1),le!==null&&en(le,De),Se=!0}return Le},GGBAppletUtils=function(){"use strict";function Le(){return window.GGBT_wsf_edit!==void 0}function Ye(Se,Ne){Ne!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ne+","+Ne+")",Se.style.webkitTransform="scale("+Ne+","+Ne+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ge(Se,Ne,le,ke,ye,Ie){var Oe=null;if(Ie!=null&&Ie!="")for(var De=Se.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+Ie+" ")>-1){Oe=De;break}else De=De.parentNode;var Ee=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Oe)Ee=Oe.offsetWidth,ne=Math.max(ke?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ee):(Ee=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Ee&&(ye===void 0||!ye)&&(document.dir==="rtl"?(x=Ee-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return Se&&((le===void 0||!le)&&Ne>0&&Ne+y<Ee?Ee=Ne:Ee-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=E)),{width:Ee,height:ne}}function ae(Se,Ne,le,ke,ye){if(Se.isScreenshoGenerator)return 1;var Ie=ke!==void 0&&ke,Oe=Se.noScaleMargin!=null&&Se.noScaleMargin,De=function(ee){return ee&&ee!=="false"},Ee=De(Se.autoHeight),ne=ge(Ne,Se.width,le,Ee,Ie&&window.GGBT_wsf_view||Oe,ye),a=parseInt(ne.width),y=Se.width,x=Se.height;if(y===void 0){var b=Ne.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ie?1:ne.height/x;return le!==void 0&&!le&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(Se,Ne,le){var ke=1,ye,Ie=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ie=Se.allowUpscale),Se.hasOwnProperty("scale")&&(ke=parseFloat(Se.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Ie=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))ye=ae(Se,Ne,Ie,le,Se.scaleContainerClass);else return ke;return Ie&&(!Se.hasOwnProperty("scale")||ke===1)?ye:Math.min(ke,ye)}function _e(Se){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Se.getBoundingClientRect(),ye=(Ne-ke.width)/2,Ie=(le-ke.height)/2;Ie<0&&(Ie=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye<40?Se.style.left="40px":Se.style.left=ye+"px",Se.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?Se.style.top="40px":Se.style.top=Ie+"px",Se.style.left=ye+"px")}function Ae(Se,Ne){var le=Se.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var ke=fe(Ne,Se);Le()&&le.setAttribute("data-param-scale",ke);for(var ye=null,Ie=0;Ie<Se.childNodes.length;Ie++)if(Se.childNodes[Ie].className!==void 0&&Se.childNodes[Ie].className.match(/^applet_scaler/)){ye=Se.childNodes[Ie];break}if(ye!==null&&ye.querySelector(".noscale")!==null)return;var Oe=Ne.id!==void 0?Ne.id:"ggbApplet",De=window[Oe];(De==null||!De.recalculateEnvironments)&&ye!==null&&!ye.className.match(/fullscreen/)&&(ye.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(ye.parentNode.style.width=Ne.width*ke+"px",ye.parentNode.style.height=Ne.height*ke+"px",Ye(ye,ke)):(Ye(ye,1),ye.parentNode.style.width=Ne.width+"px",ye.parentNode.style.height=Ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:Le,positionCenter:_e,getScale:fe,scaleElement:Ye}}();__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 Le=n.location.search;return Le.indexOf(J)!=-1||Le.indexOf(K)!=-1}function q(Le,Ye){}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(Le){var Ye=s[L].bindings;s[L].bindings=function(){for(var ge=Ye?Ye():{},ae=Le[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var _e=ae[fe];ge[_e[O]]=_e[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Le=o.createElement(Q);if(Le.id=L,Le.style.cssText=R+S,Le.tabIndex=-1,o.body.appendChild(Le),t=Le.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ye=document.compatMode==U?V:W;t.write(Ye+X),t.close()}}}function w(Le){function Ye(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=fe();if(_e){ae();return}function Ae(){if(!_e){if(!fe())return;_e=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var Se=setInterval(function(){Ae()},$)}function ge(ae){var fe=u(),_e=fe.body,Ae=fe.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=ae,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),_e.appendChild(Ae)}Ye(function(){ge(Le)})}webModule.__startLoadingFragment=function(Le){return C(Le)},webModule.__installRunAsyncCode=function(Le){var Ye=u(),ge=Ye.body,ae=Ye.createElement(_);ae.language=ab,ae.text=Le,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Le){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Le){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Le){var Ye=c[Le];return Ye==null?null:Ye},r=d,webModule.__errFn=e}function B(){function Le(Se){var Ne=Se.lastIndexOf(rb);Ne==-1&&(Ne=Se.length);var le=Se.indexOf(sb);le==-1&&(le=Se.length);var ke=Se.lastIndexOf(tb,Math.min(le,Ne));return ke>=O?Se.substring(O,ke+P):W}function Ye(Se){if(!Se.match(/^\w+:\/\//)){var Ne=o.createElement(ub);Ne.src=Se+vb,Se=Le(Ne.src)}return Se}function ge(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ae(){for(var Se=o.getElementsByTagName(_),Ne=O;Ne<Se.length;++Ne)if(Se[Ne].src.indexOf(xb)!=-1)return Le(Se[Ne].src);return W}function fe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function _e(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ae=ge();return Ae==W&&(Ae=ae()),Ae==W&&(Ae=fe()),Ae==W&&_e()&&(Ae=Le(o.location.href)),Ae=Ye(Ae),Ae}function C(Le){return Le.match(/^\//)||Le.match(/^[a-zA-Z]+:\/\//)?Le:webModule.__moduleBase+Le}function D(){var Le=[],Ye=O,ge=[],ae=[];function fe(Se){var Ne=ae[Se](),le=ge[Se];if(Ne in le)return Ne;var ke=[];for(var ye in le)ke[le[ye]]=ye;throw r&&r(Se,ke,Ne),null}if(__gwt_isKnownPropertyValue=function(Se,Ne){return Ne in ge[Se]},webModule.__getPropMap=function(){var Se={};for(var Ne in ge)ge.hasOwnProperty(Ne)&&(Se[Ne]=fe(Ne));return Se},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var Ae=_e.indexOf(Db);Ae!=-1&&(Ye=parseInt(_e.substring(Ae+P),$),_e=_e.substring(O,Ae))}catch(Se){}return webModule.__softPermutationId=Ye,C(_e+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})()},67303:function(Le,Ye,ge){"use strict";ge.d(Ye,{Ax:function(){return Ae},Ds:function(){return Se},KI:function(){return le},SI:function(){return _e},f1:function(){return fe}});var ae=ge(90524);function fe(ke){let ye=!0;if(ke.length>0){for(let Ie=0;Ie<ke.length;Ie++)if(ke[Ie].compile_success==0||!ke[Ie].compile_success){ye=!1;break}}else ye=!1;return ye}function _e(ke,ye=""){let Ie=[];for(let Oe=0;Oe<ke.length;Oe++){let De=ke[Oe],Ee=ye?`${ye}/${De.name}`:`${De.name}`;Ie.push({title:De.name,type:De.type,isLeaf:De.type!=="tree",key:Ee})}return Ie}function Ae(ke,ye,Ie){for(let Oe=0;Oe<ke.length;Oe++){let De=ke[Oe];if(De.key===ye){De.children=Ie;break}De.children&&Ae(De.children,ye,Ie)}return ke}function Se(ke,ye,Ie){let Oe;return function(){let De=this,Ee=arguments,ne=function(){Oe=null,Ie||ke.apply(De,Ee)},a=Ie&&!Oe;clearTimeout(Oe),Oe=setTimeout(ne,ye),a&&ke.apply(De,Ee)}}const Ne=!0,le=ae.Z.API_SERVER},6077:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Oe}});var ae=ge(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=ge(92310),Ae=ge.n(_e),Se=ge(71418),Ne=ge(2859),le=ge(82093),ke=ge(49661),ye=(De,Ee,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(De,Ee)).next())}),Oe=({data:De,className:Ee,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ce,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&Fe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[De==null?void 0:De.visible]);const Fe=()=>ye(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ht=yield(0,ke.ZJ)(De==null?void 0:De.src);z.current.src="",z.current.src=ht,z.current.onload=function(){kt()},ie(!1),se("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},nt=ht=>ye(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wt=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:ht.dataUrl}});wt!=null&&wt.id&&!E?(yield(0,le.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:wt==null?void 0:wt.id,settings:JSON.stringify(ht.state)}})).status===0&&x():wt!=null&&wt.id&&x(wt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),vt=()=>{const ht=document.querySelector('a[href="https://markerjs.com/"]');ht&&ht.parentNode&&(ht.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(_t=>{const cn=document.querySelector(_t.name);cn&&cn.setAttribute("title",_t.title)})},kt=()=>{ee.current=new Ne.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",nt),ee.current.addEventListener("beforeclose",xe),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(),De!=null&&De.snapshotData&&ee.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vt()},300)};return ae.createElement(ae.Fragment,null,(De==null?void 0:De.visible)&&ae.createElement(Se.Z,{spinning:re,tip:ce,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ae()(fe.imageDimensions,Ee,ne?fe.fullWidth:""),style:a},ae.createElement("img",{className:fe.img,ref:z}))))}},88615:function(Le,Ye,ge){"use strict";var ae=ge(59301),fe=ge(95237),_e=ge(43604),Ae=ge(99313),Se=ge(3113),Ne=ge(7664),le=ge(21697),ke=ge(48136),ye=ge(59301);const Ie=(0,ae.forwardRef)(({callback:Oe,showSaveButton:De,value:Ee=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ye.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>ye.createElement(_e.Z,{flex:"110px",className:le.Z.item},ye.createElement("div",null,ye.createElement(Ne.Z,{value:`$$${ee.value}$$`}),ee.name),ye.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>ye.createElement("div",{key:re},ye.createElement("h1",null,oe.name),ye.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>ye.createElement(_e.Z,{key:ce,onClick:()=>b(ie),className:le.Z.diamond},ye.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ye.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},x.map((ee,te)=>ye.createElement(_e.Z,{flex:"110px",className:le.Z.item},ye.createElement("div",null,ye.createElement(Ne.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ye.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>ye.createElement("div",{key:re},oe.name&&ye.createElement("h1",null,oe.name),ye.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>ye.createElement(_e.Z,{key:ce,onClick:()=>b(ie),className:le.Z.diamond},ye.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Oe&&Oe(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),ye.createElement("div",{className:le.Z.mathWrap},ye.createElement(Ae.default,{defaultActiveKey:"1",items:E}),ye.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ee||""),De&&ye.createElement("div",{className:le.Z.button},ye.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ye.Z=Ie},35584:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return dn}});var ae=ge(59301),fe=ge(33796),_e=ge(15277),Ae=ge(92310),Se=ge.n(Ae),Ne=ge(32855),le=ge(27247),ke=ge(74430),ye=ge(11913),Ie=ge(34666),Oe=ge(43079),De=ge(55468),Ee=ge(18929),ne=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=ae.createContext(null),y=0;function x(ze,de){var Ce=ae.useState(function(){return y+=1,String(y)}),Ve=(0,ye.Z)(Ce,1),Je=Ve[0],qe=ae.useContext(a),gt={data:de,canPreview:ze};return ae.useEffect(function(){if(qe)return qe.register(Je,gt)},[]),ae.useEffect(function(){qe&&qe.register(Je,gt)},[ze,de]),Je}function b(ze){return new Promise(function(de){var Ce=document.createElement("img");Ce.onerror=function(){return de(!1)},Ce.onload=function(){return de(!0)},Ce.src=ze})}function E(ze){var de=ze.src,Ce=ze.isCustomPlaceholder,Ve=ze.fallback,Je=(0,ae.useState)(Ce?"loading":"normal"),qe=(0,ye.Z)(Je,2),gt=qe[0],dt=qe[1],yt=(0,ae.useRef)(!1),ft=gt==="error";(0,ae.useEffect)(function(){b(de).then(function(Rt){Rt||dt("error")})},[de]),(0,ae.useEffect)(function(){Ce&&!yt.current?dt("loading"):ft&&dt("normal")},[de]);var Nt=function(){dt("normal")},ct=function(Ht){yt.current=!1,gt==="loading"&&Ht!=null&&Ht.complete&&(Ht.naturalWidth||Ht.naturalHeight)&&(yt.current=!0,Nt())},bt=ft&&Ve?{src:Ve}:{onLoad:Nt,src:de};return[ct,bt,gt]}var z=ge(86923),ee=ge(8224),te=ge(10228),oe=ge(48736);function re(ze,de,Ce,Ve){var Je=de+Ce,qe=(Ce-Ve)/2;if(Ce>Ve){if(de>0)return(0,ke.Z)({},ze,qe);if(de<0&&Je<Ve)return(0,ke.Z)({},ze,-qe)}else if(de<0||Je>Ve)return(0,ke.Z)({},ze,de<0?qe:-qe);return{}}function ie(ze,de,Ce,Ve){var Je=(0,De.g1)(),qe=Je.width,gt=Je.height,dt=null;return ze<=qe&&de<=gt?dt={x:0,y:0}:(ze>qe||de>gt)&&(dt=(0,le.Z)((0,le.Z)({},re("x",Ce,ze,qe)),re("y",Ve,de,gt))),dt}var ce=ge(13697),se=ge(16089),Fe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function xe(ze,de,Ce,Ve){var Je=(0,ae.useRef)(null),qe=(0,ae.useRef)([]),gt=(0,ae.useState)(Fe),dt=(0,ye.Z)(gt,2),yt=dt[0],ft=dt[1],Nt=function(Ht){ft(Fe),Ve&&!(0,ce.Z)(Fe,yt)&&Ve({transform:Fe,action:Ht})},ct=function(Ht,pn){Je.current===null&&(qe.current=[],Je.current=(0,se.Z)(function(){ft(function(be){var tn=be;return qe.current.forEach(function(jt){tn=(0,le.Z)((0,le.Z)({},tn),jt)}),Je.current=null,Ve==null||Ve({transform:tn,action:pn}),tn})})),qe.current.push((0,le.Z)((0,le.Z)({},yt),Ht))},bt=function(Ht,pn,be,tn){var jt=ze.current,Mn=jt.width,Kt=jt.height,Me=jt.offsetWidth,tt=jt.offsetHeight,St=jt.offsetLeft,Xe=jt.offsetTop,Mt=Ht,Ot=yt.scale*Ht;Ot>Ce?(Mt=Ce/yt.scale,Ot=Ce):Ot<de&&(Mt=de/yt.scale,Ot=de);var nn=be!=null?be:innerWidth/2,an=tn!=null?tn:innerHeight/2,mn=Mt-1,Yn=mn*Mn*.5,_n=mn*Kt*.5,Jn=mn*(nn-yt.x-St),ta=mn*(an-yt.y-Xe),On=yt.x-(Jn-Yn),Qn=yt.y-(ta-_n);if(Ht<1&&Ot===1){var kn=Me*Ot,Hn=tt*Ot,qn=(0,De.g1)(),Tn=qn.width,Ln=qn.height;kn<=Tn&&Hn<=Ln&&(On=0,Qn=0)}ct({x:On,y:Qn,scale:Ot},pn)};return{transform:yt,resetTransform:Nt,updateTransform:ct,dispatchZoomChange:bt}}var nt=ge(43403),vt=ge(77900),kt=function(de){var Ce=de.visible,Ve=de.maskTransitionName,Je=de.getContainer,qe=de.prefixCls,gt=de.rootClassName,dt=de.icons,yt=de.countRender,ft=de.showSwitch,Nt=de.showProgress,ct=de.current,bt=de.transform,Rt=de.count,Ht=de.scale,pn=de.minScale,be=de.maxScale,tn=de.closeIcon,jt=de.onSwitchLeft,Mn=de.onSwitchRight,Kt=de.onClose,Me=de.onZoomIn,tt=de.onZoomOut,St=de.onRotateRight,Xe=de.onRotateLeft,Mt=de.onFlipX,Ot=de.onFlipY,nn=de.toolbarRender,an=(0,ae.useContext)(a),mn=dt.rotateLeft,Yn=dt.rotateRight,_n=dt.zoomIn,Jn=dt.zoomOut,ta=dt.close,On=dt.left,Qn=dt.right,kn=dt.flipX,Hn=dt.flipY,qn="".concat(qe,"-operations-operation");ae.useEffect(function(){var ln=function(Zn){Zn.keyCode===te.Z.ESC&&Kt()};return Ce&&window.addEventListener("keydown",ln),function(){window.removeEventListener("keydown",ln)}},[Ce]);var Tn=[{icon:Hn,onClick:Ot,type:"flipY"},{icon:kn,onClick:Mt,type:"flipX"},{icon:mn,onClick:Xe,type:"rotateLeft"},{icon:Yn,onClick:St,type:"rotateRight"},{icon:Jn,onClick:tt,type:"zoomOut",disabled:Ht===pn},{icon:_n,onClick:Me,type:"zoomIn",disabled:Ht===be}],Ln=Tn.map(function(ln){var Bn,Zn=ln.icon,na=ln.onClick,on=ln.type,Cn=ln.disabled;return ae.createElement("div",{className:Se()(qn,(Bn={},(0,ke.Z)(Bn,"".concat(qe,"-operations-operation-").concat(on),!0),(0,ke.Z)(Bn,"".concat(qe,"-operations-operation-disabled"),!!Cn),Bn)),onClick:na,key:on},Zn)}),ea=ae.createElement("div",{className:"".concat(qe,"-operations")},Ln);return ae.createElement(vt.default,{visible:Ce,motionName:Ve},function(ln){var Bn=ln.className,Zn=ln.style;return ae.createElement(nt.Z,{open:!0,getContainer:Je!=null?Je:document.body},ae.createElement("div",{className:Se()("".concat(qe,"-operations-wrapper"),Bn,gt),style:Zn},tn===null?null:ae.createElement("button",{className:"".concat(qe,"-close"),onClick:Kt},tn||ta),ft&&ae.createElement(ae.Fragment,null,ae.createElement("div",{className:Se()("".concat(qe,"-switch-left"),(0,ke.Z)({},"".concat(qe,"-switch-left-disabled"),ct===0)),onClick:jt},On),ae.createElement("div",{className:Se()("".concat(qe,"-switch-right"),(0,ke.Z)({},"".concat(qe,"-switch-right-disabled"),ct===Rt-1)),onClick:Mn},Qn)),ae.createElement("div",{className:"".concat(qe,"-footer")},Nt&&ae.createElement("div",{className:"".concat(qe,"-progress")},yt?yt(ct+1,Rt):"".concat(ct+1," / ").concat(Rt)),nn?nn(ea,(0,le.Z)({icons:{flipYIcon:Ln[0],flipXIcon:Ln[1],rotateLeftIcon:Ln[2],rotateRightIcon:Ln[3],zoomOutIcon:Ln[4],zoomInIcon:Ln[5]},actions:{onFlipY:Ot,onFlipX:Mt,onRotateLeft:Xe,onRotateRight:St,onZoomOut:tt,onZoomIn:Me},transform:bt},an?{current:ct,total:Rt}:{})):ea)))})},ht=kt,wt=1,_t=1,cn=["fallback","src","imgRef"],qt=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],rn=function(de){var Ce=de.fallback,Ve=de.src,Je=de.imgRef,qe=(0,Oe.Z)(de,cn),gt=E({src:Ve,fallback:Ce}),dt=(0,ye.Z)(gt,2),yt=dt[0],ft=dt[1];return ae.createElement("img",(0,Ne.Z)({ref:function(ct){Je.current=ct,yt(ct)}},qe,ft))},en=function(de){var Ce=de.prefixCls,Ve=de.src,Je=de.alt,qe=de.fallback,gt=de.movable,dt=gt===void 0?!0:gt,yt=de.onClose,ft=de.visible,Nt=de.icons,ct=Nt===void 0?{}:Nt,bt=de.rootClassName,Rt=de.closeIcon,Ht=de.getContainer,pn=de.current,be=pn===void 0?0:pn,tn=de.count,jt=tn===void 0?1:tn,Mn=de.countRender,Kt=de.scaleStep,Me=Kt===void 0?.5:Kt,tt=de.minScale,St=tt===void 0?1:tt,Xe=de.maxScale,Mt=Xe===void 0?50:Xe,Ot=de.transitionName,nn=Ot===void 0?"zoom":Ot,an=de.maskTransitionName,mn=an===void 0?"fade":an,Yn=de.imageRender,_n=de.imgCommonProps,Jn=de.toolbarRender,ta=de.onTransform,On=de.onChange,Qn=(0,Oe.Z)(de,qt),kn=(0,ae.useRef)(),Hn=(0,ae.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),qn=(0,ae.useState)(!1),Tn=(0,ye.Z)(qn,2),Ln=Tn[0],ea=Tn[1],ln=(0,ae.useContext)(a),Bn=ln&&jt>1,Zn=ln&&jt>=1,na=xe(kn,St,Mt,ta),on=na.transform,Cn=na.resetTransform,jn=na.updateTransform,In=na.dispatchZoomChange,ha=(0,ae.useState)(!0),sa=(0,ye.Z)(ha,2),ua=sa[0],ra=sa[1],Wn=on.rotate,Xn=on.scale,ma=on.x,ia=on.y,Fa=Se()((0,ke.Z)({},"".concat(Ce,"-moving"),Ln));(0,ae.useEffect)(function(){ua||ra(!0)},[ua]);var it=function(){Cn("close")},We=function(){In(wt+Me,"zoomIn")},et=function(){In(wt/(wt+Me),"zoomOut")},ot=function(){jn({rotate:Wn+90},"rotateRight")},Zt=function(){jn({rotate:Wn-90},"rotateLeft")},Jt=function(){jn({flipX:!on.flipX},"flipX")},Sn=function(){jn({flipY:!on.flipY},"flipY")},Pn=function(Ct){Ct==null||Ct.preventDefault(),Ct==null||Ct.stopPropagation(),be>0&&(ra(!1),Cn("prev"),On==null||On(be-1,be))},yn=function(Ct){Ct==null||Ct.preventDefault(),Ct==null||Ct.stopPropagation(),be<jt-1&&(ra(!1),Cn("next"),On==null||On(be+1,be))},wn=function(){if(ft&&Ln){ea(!1);var Ct=Hn.current,un=Ct.transformX,Sa=Ct.transformY,aa=ma!==un&&ia!==Sa;if(!aa)return;var ca=kn.current.offsetWidth*Xn,Pa=kn.current.offsetHeight*Xn,la=kn.current.getBoundingClientRect(),ga=la.left,Ca=la.top,xa=Wn%180!==0,Ba=ie(xa?Pa:ca,xa?ca:Pa,ga,Ca);Ba&&jn((0,le.Z)({},Ba),"dragRebound")}},da=function(Ct){!dt||Ct.button!==0||(Ct.preventDefault(),Ct.stopPropagation(),Hn.current={deltaX:Ct.pageX-on.x,deltaY:Ct.pageY-on.y,transformX:on.x,transformY:on.y},ea(!0))},Dn=function(Ct){ft&&Ln&&jn({x:Ct.pageX-Hn.current.deltaX,y:Ct.pageY-Hn.current.deltaY},"move")},pa=function(Ct){if(!(!ft||Ct.deltaY==0)){var un=Math.abs(Ct.deltaY/100),Sa=Math.min(un,_t),aa=wt+Sa*Me;Ct.deltaY>0&&(aa=wt/aa),In(aa,"wheel",Ct.clientX,Ct.clientY)}},La=function(Ct){!ft||!Bn||(Ct.keyCode===te.Z.LEFT?Pn():Ct.keyCode===te.Z.RIGHT&&yn())},ya=function(Ct){ft&&(Xn!==1?jn({x:0,y:0,scale:1},"doubleClick"):In(wt+Me,"doubleClick",Ct.clientX,Ct.clientY))};(0,ae.useEffect)(function(){var sn,Ct,un,Sa;if(dt){un=(0,ee.Z)(window,"mouseup",wn,!1),Sa=(0,ee.Z)(window,"mousemove",Dn,!1);try{window.top!==window.self&&(sn=(0,ee.Z)(window.top,"mouseup",wn,!1),Ct=(0,ee.Z)(window.top,"mousemove",Dn,!1))}catch(aa){(0,oe.Kp)(!1,"[rc-image] ".concat(aa))}}return function(){var aa,ca,Pa,la;(aa=un)===null||aa===void 0||aa.remove(),(ca=Sa)===null||ca===void 0||ca.remove(),(Pa=sn)===null||Pa===void 0||Pa.remove(),(la=Ct)===null||la===void 0||la.remove()}},[ft,Ln,ma,ia,Wn,dt]),(0,ae.useEffect)(function(){var sn=(0,ee.Z)(window,"keydown",La,!1);return function(){sn.remove()}},[ft,Bn,be]);var Ea=ae.createElement(rn,(0,Ne.Z)({},_n,{width:de.width,height:de.height,imgRef:kn,className:"".concat(Ce,"-img"),alt:Je,style:{transform:"translate3d(".concat(on.x,"px, ").concat(on.y,"px, 0) scale3d(").concat(on.flipX?"-":"").concat(Xn,", ").concat(on.flipY?"-":"").concat(Xn,", 1) rotate(").concat(Wn,"deg)"),transitionDuration:!ua&&"0s"},fallback:qe,src:Ve,onWheel:pa,onMouseDown:da,onDoubleClick:ya}));return ae.createElement(ae.Fragment,null,ae.createElement(z.Z,(0,Ne.Z)({transitionName:nn,maskTransitionName:mn,closable:!1,keyboard:!0,prefixCls:Ce,onClose:yt,visible:ft,wrapClassName:Fa,rootClassName:bt,getContainer:Ht},Qn,{afterClose:it}),ae.createElement("div",{className:"".concat(Ce,"-img-wrapper")},Yn?Yn(Ea,(0,le.Z)({transform:on},ln?{current:be}:{})):Ea)),ae.createElement(ht,{visible:ft,transform:on,maskTransitionName:mn,closeIcon:Rt,getContainer:Ht,prefixCls:Ce,rootClassName:bt,icons:ct,countRender:Mn,showSwitch:Bn,showProgress:Zn,current:be,count:jt,scale:Xn,minScale:St,maxScale:Mt,toolbarRender:Jn,onSwitchLeft:Pn,onSwitchRight:yn,onZoomIn:We,onZoomOut:et,onRotateRight:ot,onRotateLeft:Zt,onFlipX:Jt,onFlipY:Sn,onClose:yt}))},fn=en,xn=ge(3300);function we(ze){var de=ae.useState({}),Ce=(0,ye.Z)(de,2),Ve=Ce[0],Je=Ce[1],qe=ae.useCallback(function(dt,yt){return Je(function(ft){return(0,le.Z)((0,le.Z)({},ft),{},(0,ke.Z)({},dt,yt))}),function(){Je(function(ft){var Nt=(0,le.Z)({},ft);return delete Nt[dt],Nt})}},[]),gt=ae.useMemo(function(){return ze?ze.map(function(dt){if(typeof dt=="string")return{data:{src:dt}};var yt={};return Object.keys(dt).forEach(function(ft){["src"].concat((0,xn.Z)(ne)).includes(ft)&&(yt[ft]=dt[ft])}),{data:yt}}):Object.keys(Ve).reduce(function(dt,yt){var ft=Ve[yt],Nt=ft.canPreview,ct=ft.data;return Nt&&dt.push({data:ct,id:yt}),dt},[])},[ze,Ve]);return[gt,qe]}var Be=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],je=["src"],pt=function(de){var Ce,Ve=de.previewPrefixCls,Je=Ve===void 0?"rc-image-preview":Ve,qe=de.children,gt=de.icons,dt=gt===void 0?{}:gt,yt=de.items,ft=de.preview,Nt=de.fallback,ct=(0,Ie.Z)(ft)==="object"?ft:{},bt=ct.visible,Rt=ct.onVisibleChange,Ht=ct.getContainer,pn=ct.current,be=ct.movable,tn=ct.minScale,jt=ct.maxScale,Mn=ct.countRender,Kt=ct.closeIcon,Me=ct.onChange,tt=ct.onTransform,St=ct.toolbarRender,Xe=ct.imageRender,Mt=(0,Oe.Z)(ct,Be),Ot=we(yt),nn=(0,ye.Z)(Ot,2),an=nn[0],mn=nn[1],Yn=(0,Ee.Z)(0,{value:pn}),_n=(0,ye.Z)(Yn,2),Jn=_n[0],ta=_n[1],On=(0,ae.useState)(!1),Qn=(0,ye.Z)(On,2),kn=Qn[0],Hn=Qn[1],qn=((Ce=an[Jn])===null||Ce===void 0?void 0:Ce.data)||{},Tn=qn.src,Ln=(0,Oe.Z)(qn,je),ea=(0,Ee.Z)(!!bt,{value:bt,onChange:function(Wn,Xn){Rt==null||Rt(Wn,Xn,Jn)}}),ln=(0,ye.Z)(ea,2),Bn=ln[0],Zn=ln[1],na=(0,ae.useState)(null),on=(0,ye.Z)(na,2),Cn=on[0],jn=on[1],In=ae.useCallback(function(ra,Wn,Xn){var ma=an.findIndex(function(ia){return ia.id===ra});Zn(!0),jn({x:Wn,y:Xn}),ta(ma<0?0:ma),Hn(!0)},[an]);ae.useEffect(function(){Bn?kn||ta(0):Hn(!1)},[Bn]);var ha=function(Wn,Xn){ta(Wn),Me==null||Me(Wn,Xn)},sa=function(){Zn(!1),jn(null)},ua=ae.useMemo(function(){return{register:mn,onPreview:In}},[mn,In]);return ae.createElement(a.Provider,{value:ua},qe,ae.createElement(fn,(0,Ne.Z)({"aria-hidden":!Bn,movable:be,visible:Bn,prefixCls:Je,closeIcon:Kt,onClose:sa,mousePosition:Cn,imgCommonProps:Ln,src:Tn,fallback:Nt,icons:dt,minScale:tn,maxScale:jt,getContainer:Ht,current:Jn,count:an.length,countRender:Mn,onTransform:tt,toolbarRender:St,imageRender:Xe,onChange:ha},Mt)))},Ue=pt,Lt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],me=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qe=function(de){var Ce=de.src,Ve=de.alt,Je=de.onPreviewClose,qe=de.prefixCls,gt=qe===void 0?"rc-image":qe,dt=de.previewPrefixCls,yt=dt===void 0?"".concat(gt,"-preview"):dt,ft=de.placeholder,Nt=de.fallback,ct=de.width,bt=de.height,Rt=de.style,Ht=de.preview,pn=Ht===void 0?!0:Ht,be=de.className,tn=de.onClick,jt=de.onError,Mn=de.wrapperClassName,Kt=de.wrapperStyle,Me=de.rootClassName,tt=(0,Oe.Z)(de,Lt),St=ft&&ft!==!0,Xe=(0,Ie.Z)(pn)==="object"?pn:{},Mt=Xe.src,Ot=Xe.visible,nn=Ot===void 0?void 0:Ot,an=Xe.onVisibleChange,mn=an===void 0?Je:an,Yn=Xe.getContainer,_n=Yn===void 0?void 0:Yn,Jn=Xe.mask,ta=Xe.maskClassName,On=Xe.movable,Qn=Xe.icons,kn=Xe.scaleStep,Hn=Xe.minScale,qn=Xe.maxScale,Tn=Xe.imageRender,Ln=Xe.toolbarRender,ea=(0,Oe.Z)(Xe,me),ln=Mt!=null?Mt:Ce,Bn=(0,Ee.Z)(!!nn,{value:nn,onChange:mn}),Zn=(0,ye.Z)(Bn,2),na=Zn[0],on=Zn[1],Cn=E({src:Ce,isCustomPlaceholder:St,fallback:Nt}),jn=(0,ye.Z)(Cn,3),In=jn[0],ha=jn[1],sa=jn[2],ua=(0,ae.useState)(null),ra=(0,ye.Z)(ua,2),Wn=ra[0],Xn=ra[1],ma=(0,ae.useContext)(a),ia=!!pn,Fa=function(){on(!1),Xn(null)},it=Se()(gt,Mn,Me,(0,ke.Z)({},"".concat(gt,"-error"),sa==="error")),We=(0,ae.useMemo)(function(){var Jt={};return ne.forEach(function(Sn){de[Sn]!==void 0&&(Jt[Sn]=de[Sn])}),Jt},ne.map(function(Jt){return de[Jt]})),et=(0,ae.useMemo)(function(){return(0,le.Z)((0,le.Z)({},We),{},{src:ln})},[ln,We]),ot=x(ia,et),Zt=function(Sn){var Pn=(0,De.os)(Sn.target),yn=Pn.left,wn=Pn.top;ma?ma.onPreview(ot,yn,wn):(Xn({x:yn,y:wn}),on(!0)),tn==null||tn(Sn)};return ae.createElement(ae.Fragment,null,ae.createElement("div",(0,Ne.Z)({},tt,{className:it,onClick:ia?Zt:tn,style:(0,le.Z)({width:ct,height:bt},Kt)}),ae.createElement("img",(0,Ne.Z)({},We,{className:Se()("".concat(gt,"-img"),(0,ke.Z)({},"".concat(gt,"-img-placeholder"),ft===!0),be),style:(0,le.Z)({height:bt},Rt),ref:In},ha,{width:ct,height:bt,onError:jt})),sa==="loading"&&ae.createElement("div",{"aria-hidden":"true",className:"".concat(gt,"-placeholder")},ft),Jn&&ia&&ae.createElement("div",{className:Se()("".concat(gt,"-mask"),ta),style:{display:(Rt==null?void 0:Rt.display)==="none"?"none":void 0}},Jn)),!ma&&ia&&ae.createElement(fn,(0,Ne.Z)({"aria-hidden":!na,visible:na,prefixCls:yt,onClose:Fa,mousePosition:Wn,src:ln,alt:Ve,fallback:Nt,getContainer:_n,icons:Qn,movable:On,scaleStep:kn,minScale:Hn,maxScale:qn,rootClassName:Me,imageRender:Tn,imgCommonProps:We,toolbarRender:Ln},ea)))};Qe.PreviewGroup=Ue,Qe.displayName="Image";var Tt=Qe,Qt=Tt,Dt=ge(62892),Ge=ge(36355),pe=ge(31724),he=ge(99267),Te=ge(33853),$e=ge(38819),at={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"},ut=at,lt=ge(7657),Ft=function(de,Ce){return ae.createElement(lt.Z,(0,Ne.Z)({},de,{ref:Ce,icon:ut}))},xt=ae.forwardRef(Ft),Bt=xt,Et={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"},gn=Et,Ze=function(de,Ce){return ae.createElement(lt.Z,(0,Ne.Z)({},de,{ref:Ce,icon:gn}))},He=ae.forwardRef(Ze),Re=He,rt={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"},At=rt,Wt=function(de,Ce){return ae.createElement(lt.Z,(0,Ne.Z)({},de,{ref:Ce,icon:At}))},Ut=ae.forwardRef(Wt),Yt=Ut,Pt={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"},It=Pt,Gn=function(de,Ce){return ae.createElement(lt.Z,(0,Ne.Z)({},de,{ref:Ce,icon:It}))},zt=ae.forwardRef(Gn),hn=zt,vn={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"},En=vn,Vn=function(de,Ce){return ae.createElement(lt.Z,(0,Ne.Z)({},de,{ref:Ce,icon:En}))},Un=ae.forwardRef(Vn),An=Un,Nn=ge(64993),Rn=ge(73819),Kn=ge(17313),Xt=ge(29878),Fn=ge(1950),zn=ge(83116),oa=ge(37613);const bn=ze=>({position:ze||"absolute",inset:0}),va=ze=>{const{iconCls:de,motionDurationSlow:Ce,paddingXXS:Ve,marginXXS:Je,prefixCls:qe,colorTextLightSolid:gt}=ze;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:gt,background:new Nn.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ce}`,[`.${qe}-mask-info`]:Object.assign(Object.assign({},Kn.vS),{padding:`0 ${Ve}px`,[de]:{marginInlineEnd:Je,svg:{verticalAlign:"baseline"}}})}},$n=ze=>{const{previewCls:de,modalMaskBg:Ce,paddingSM:Ve,marginXL:Je,margin:qe,paddingLG:gt,previewOperationColorDisabled:dt,previewOperationHoverColor:yt,motionDurationSlow:ft,iconCls:Nt,colorTextLightSolid:ct}=ze,bt=new Nn.C(Ce).setAlpha(.1),Rt=bt.clone().setAlpha(.2);return{[`${de}-footer`]:{position:"fixed",bottom:Je,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:ze.previewOperationColor},[`${de}-progress`]:{marginBottom:qe},[`${de}-close`]:{position:"fixed",top:Je,right:{_skip_check_:!0,value:Je},display:"flex",color:ct,backgroundColor:bt.toRgbString(),borderRadius:"50%",padding:Ve,outline:0,border:0,cursor:"pointer",transition:`all ${ft}`,"&:hover":{backgroundColor:Rt.toRgbString()},[`& > ${Nt}`]:{fontSize:ze.previewOperationSize}},[`${de}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${gt}px`,backgroundColor:bt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ve,padding:Ve,cursor:"pointer",transition:`all ${ft}`,userSelect:"none",[`&:not(${de}-operations-operation-disabled):hover > ${Nt}`]:{color:yt},"&-disabled":{color:dt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Nt}`]:{fontSize:ze.previewOperationSize}}}}},wa=ze=>{const{modalMaskBg:de,iconCls:Ce,previewOperationColorDisabled:Ve,previewCls:Je,zIndexPopup:qe,motionDurationSlow:gt}=ze,dt=new Nn.C(de).setAlpha(.1),yt=dt.clone().setAlpha(.2);return{[`${Je}-switch-left, ${Je}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:qe+1,display:"flex",alignItems:"center",justifyContent:"center",width:ze.imagePreviewSwitchSize,height:ze.imagePreviewSwitchSize,marginTop:-ze.imagePreviewSwitchSize/2,color:ze.previewOperationColor,background:dt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${gt}`,userSelect:"none","&:hover":{background:yt.toRgbString()},"&-disabled":{"&, &:hover":{color:Ve,background:"transparent",cursor:"not-allowed",[`> ${Ce}`]:{cursor:"not-allowed"}}},[`> ${Ce}`]:{fontSize:ze.previewOperationSize}},[`${Je}-switch-left`]:{insetInlineStart:ze.marginSM},[`${Je}-switch-right`]:{insetInlineEnd:ze.marginSM}}},fa=ze=>{const{motionEaseOut:de,previewCls:Ce,motionDurationSlow:Ve,componentCls:Je}=ze;return[{[`${Je}-preview-root`]:{[Ce]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ce}-body`]:Object.assign(Object.assign({},bn()),{overflow:"hidden"}),[`${Ce}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ve} ${de} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},bn()),{transition:`transform ${Ve} ${de} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ce}-moving`]:{[`${Ce}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Je}-preview-root`]:{[`${Ce}-wrap`]:{zIndex:ze.zIndexPopup}}},{[`${Je}-preview-operations-wrapper`]:{position:"fixed",zIndex:ze.zIndexPopup+1},"&":[$n(ze),wa(ze)]}]},ba=ze=>{const{componentCls:de}=ze;return{[de]:{position:"relative",display:"inline-block",[`${de}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${de}-img-placeholder`]:{backgroundColor:ze.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${de}-mask`]:Object.assign({},va(ze)),[`${de}-mask:hover`]:{opacity:1},[`${de}-placeholder`]:Object.assign({},bn())}}},ue=ze=>{const{previewCls:de}=ze;return{[`${de}-root`]:(0,Xt._y)(ze,"zoom"),"&":(0,Fn.J$)(ze,!0)}};var ve=(0,zn.Z)("Image",ze=>{const de=`${ze.componentCls}-preview`,Ce=(0,oa.TS)(ze,{previewCls:de,modalMaskBg:new Nn.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:ze.controlHeightLG});return[ba(Ce),fa(Ce),(0,Rn.QA)((0,oa.TS)(Ce,{componentCls:de})),ue(Ce)]},ze=>({zIndexPopup:ze.zIndexPopupBase+80,previewOperationColor:new Nn.C(ze.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Nn.C(ze.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Nn.C(ze.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:ze.fontSizeIcon*1.5})),Pe=function(ze,de){var Ce={};for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&de.indexOf(Ve)<0&&(Ce[Ve]=ze[Ve]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ve=Object.getOwnPropertySymbols(ze);Je<Ve.length;Je++)de.indexOf(Ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(ze,Ve[Je])&&(Ce[Ve[Je]]=ze[Ve[Je]]);return Ce};const Ke={rotateLeft:ae.createElement(Bt,null),rotateRight:ae.createElement(Re,null),zoomIn:ae.createElement(hn,null),zoomOut:ae.createElement(An,null),close:ae.createElement(he.Z,null),left:ae.createElement(Te.Z,null),right:ae.createElement($e.Z,null),flipX:ae.createElement(Yt,null),flipY:ae.createElement(Yt,{rotate:90})};var mt=ze=>{var{previewPrefixCls:de,preview:Ce}=ze,Ve=Pe(ze,["previewPrefixCls","preview"]);const{getPrefixCls:Je}=ae.useContext(Ge.E_),qe=Je("image",de),gt=`${qe}-preview`,dt=Je(),[yt,ft]=ve(qe),Nt=ae.useMemo(()=>{var ct;if(Ce===!1)return Ce;const bt=typeof Ce=="object"?Ce:{},Rt=Se()(ft,(ct=bt.rootClassName)!==null&&ct!==void 0?ct:"");return Object.assign(Object.assign({},bt),{transitionName:(0,Dt.m)(dt,"zoom",bt.transitionName),maskTransitionName:(0,Dt.m)(dt,"fade",bt.maskTransitionName),rootClassName:Rt})},[Ce]);return yt(ae.createElement(Qt.PreviewGroup,Object.assign({preview:Nt,previewPrefixCls:gt,icons:Ke},Ve)))},Vt=function(ze,de){var Ce={};for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&de.indexOf(Ve)<0&&(Ce[Ve]=ze[Ve]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ve=Object.getOwnPropertySymbols(ze);Je<Ve.length;Je++)de.indexOf(Ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(ze,Ve[Je])&&(Ce[Ve[Je]]=ze[Ve[Je]]);return Ce};const Gt=ze=>{const{prefixCls:de,preview:Ce,className:Ve,rootClassName:Je,style:qe}=ze,gt=Vt(ze,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:dt,locale:yt=pe.Z,getPopupContainer:ft,image:Nt}=ae.useContext(Ge.E_),ct=dt("image",de),bt=dt(),Rt=yt.Image||pe.Z.Image,[Ht,pn]=ve(ct),be=Se()(Je,pn),tn=Se()(Ve,pn,Nt==null?void 0:Nt.className),jt=ae.useMemo(()=>{if(Ce===!1)return Ce;const Kt=typeof Ce=="object"?Ce:{},{getContainer:Me}=Kt,tt=Vt(Kt,["getContainer"]);return Object.assign(Object.assign({mask:ae.createElement("div",{className:`${ct}-mask-info`},ae.createElement(_e.Z,null),Rt==null?void 0:Rt.preview),icons:Ke},tt),{getContainer:Me||ft,transitionName:(0,Dt.m)(bt,"zoom",Kt.transitionName),maskTransitionName:(0,Dt.m)(bt,"fade",Kt.maskTransitionName)})},[Ce,Rt]),Mn=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),qe);return Ht(ae.createElement(Qt,Object.assign({prefixCls:ct,preview:jt,rootClassName:be,className:tn,style:Mn},gt)))};Gt.PreviewGroup=mt;var $t=Gt,dn=()=>{const[ze,de]=(0,ae.useState)(""),[Ce,Ve]=(0,ae.useState)(0);let[Je,qe]=(0,ae.useState)(),[gt,dt]=(0,ae.useState)();const[yt,ft]=(0,ae.useState)(!1),Nt=(0,ae.useRef)("");(0,ae.useEffect)(()=>fe.Z.subscribe("preview-image",Me=>{de(Me),console.log(jt.current),document.body.style.overflow="hidden"}),[]),(0,ae.useEffect)(()=>(document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}),[]),(0,ae.useEffect)(()=>{Nt.current=ze},[ze]);function ct(Kt){Kt.keyCode==27&&Nt.current&&bt()}function bt(){document.body.style.overflow="auto",qe(void 0),dt(void 0),Ve(0),de("")}function Rt(){Ve(Ce+90)}function Ht(){Je=jt.current.width*1.1,gt=jt.current.height*1.1,dt(gt),qe(Je)}function pn(){Je=jt.current.width/1.1,gt=jt.current.height/1.1,dt(gt),qe(Je)}const be=(0,ae.useRef)(),tn=(0,ae.useRef)(),jt=(0,ae.useRef)(),Mn=Kt=>{(Kt.nativeEvent.target===be.current||Kt.nativeEvent.target===tn.current)&&bt()};return ae.createElement(ae.Fragment,null,ze?ae.createElement("div",null,ae.createElement("div",{className:"preview-wrp-group",ref:tn},ae.createElement($t,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,movable:!1,onVisibleChange:Kt=>{de("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},44905:function(Le,Ye,ge){"use strict";ge.d(Ye,{h:function(){return ee}});var ae=ge(59301),fe=ge(57809),_e=ge(78241),Ae=ge(3113),Se=ge(89780),Ne=ge.n(Se),le=ge(66543),ke=ge(59598),ye=Object.defineProperty,Ie=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?ye(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ee.call(oe,re)&&a(te,re,oe[re]);if(De)for(var re of De(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ie(te,Oe(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"]};Ye.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ce(Fe){ie(z[Fe][1])}function se(Fe){te(Fe)}return ae.createElement(_e.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:ce},Object.keys(z).map(Fe=>ae.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),ae.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ce=(0,ae.useRef)(),[se,Fe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let xe=function(nt){const vt=nt.getValue();oe&&oe(vt)};return se.on("change",xe),()=>{se.off("change",xe)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(ce.current&&!se){const xe=Ne().fromTextArea(ce.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Fe(xe)}},[ce.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ce}))}},89389:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return ba}});var ae=ge(59301),fe=ge(89780),_e=ge.n(fe),Ae=ge(76374),Se=ge(66543),Ne=ge(6313),le=ge(25717),ke=ge(99498),ye=ge(25419),Ie=ge(67549),Oe=ge(7664),De=({value:ue="",className:ve,showTextOnly:Pe,showLines:Ke,style:st={}})=>{const mt=(0,ae.useMemo)(()=>"",[ue]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:mt}}))},Ee=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ue,ve,Pe)=>ve in ue?ne(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[ve]=Pe,ee=(ue,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(ue,Pe,ve[Pe]);if(x)for(var Pe of x(ve))E.call(ve,Pe)&&z(ue,Pe,ve[Pe]);return ue},te=(ue,ve)=>a(ue,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ue,title:ve,icon:Pe,actionName:Ke,className:st="",children:mt}){function Vt(){ue(Ke)}return Ee.createElement("a",{title:ve,className:st,onClick:Vt},Ee.createElement("i",{className:`${Pe}`}),mt)}var ie=({watch:ue,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:Ke,fullScreen:st,insertTemp:mt,hidetoolBar:Vt,extraUse:Gt})=>{const $t=[...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 Ee.createElement("ul",{className:"markdown-toolbar-container"},!Vt&&$t.map((dn,ze)=>Ee.createElement("li",{key:ze},dn.actionName?Ee.createElement(re,te(ee({},dn),{onActionCallback:Ke})):Ee.createElement("span",{className:"v-line"}))),ve?Ee.createElement("li",null,Ee.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ke},Ee.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Ee.createElement(Ee.Fragment,null,Ee.createElement("li",null,Ee.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ke},Ee.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ee.createElement("li",null,Ee.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ke},Ee.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mt&&Ee.createElement("li",null,Ee.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mt}`,onActionCallback:Ke},Ee.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Gt&&Ee.createElement("li",null,Gt),Ee.createElement("li",{className:"btn-full-screen"},Ee.createElement(re,{icon:`${st?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:st?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ke})))},ce=ge(75790),se=ge(78241),Fe=ge(92832),xe=ge(3113),nt=Object.defineProperty,vt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,cn=(ue,ve,Pe)=>ve in ue?nt(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[ve]=Pe,qt=(ue,ve)=>{for(var Pe in ve||(ve={}))wt.call(ve,Pe)&&cn(ue,Pe,ve[Pe]);if(ht)for(var Pe of ht(ve))_t.call(ve,Pe)&&cn(ue,Pe,ve[Pe]);return ue},rn=(ue,ve)=>vt(ue,kt(ve));const en={labelCol:{span:4},wrapperCol:{span:20}};var fn=({callback:ue,onCancel:ve})=>{function Pe(Ke){ue(Ke)}return ae.createElement(se.default,rn(qt({},en),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Fe.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Fe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(xe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},xn=ge(44905),we=ge(45596),Be=ge(43418),je=ge(95237),pt=ge(6077),Ue=ge(59301),Lt=({callback:ue,onCancel:ve})=>{const Pe=document.createElement("canvas"),Ke=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ke.fillStyle="#ffffff",Ke.fillRect(0,0,Pe.width,Pe.height);const st=Pe.toDataURL("image/png");return Ue.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(je.Z,{style:{height:"100vh"}},Ue.createElement(pt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:st,visible:!0,title:String(Date.now())},onOk:mt=>{ue({src:mt.url})},onClose:ve})))},me=ge(12378);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},Qe.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var ve=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),ue.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var ve=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ke=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(Ke,ve)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),ue.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var ve=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),ue.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var ve=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ke=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(Ke,ve)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),ue.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;ue.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Pe-Ke.actualBounds.width/2,Ke.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var ue=this.diagram,ve=ue.selection.first();if(ve){ue.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;ue.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.actualBounds.x,Pe-Ke.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(ue){var ve=this.diagram;ve.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Pe=new Array;ve.selection.each(function(Gt){Gt instanceof go.Link||Pe.push(Gt)});for(var Ke=0;Ke<Pe.length-1;Ke++){var st=Pe[Ke],mt=st.actualBounds.y+st.actualBounds.height+ue,Vt=Pe[Ke+1];Vt.move(new go.Point(st.actualBounds.x,mt))}ve.commitTransaction("align Column")},Qe.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var ve=this.diagram;ve.startTransaction("align Row");var Pe=new Array;ve.selection.each(function(Gt){Gt instanceof go.Link||Pe.push(Gt)});for(var Ke=0;Ke<Pe.length-1;Ke++){var st=Pe[Ke],mt=st.actualBounds.x+st.actualBounds.width+ue,Vt=Pe[Ke+1];Vt.move(new go.Point(mt,st.actualBounds.y))}ve.commitTransaction("align Row")},Qe.prototype.canRotate=function(ue){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},Qe.prototype.rotate=function(ue){ue===void 0&&(ue=90);var ve=this.diagram;ve.startTransaction("rotate "+ue.toString());var ve=this.diagram;ve.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ue)}),ve.commitTransaction("rotate "+ue.toString())},Qe.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var ve=new go.Map;ue.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var Ke=0;Pe.parts.each(function(st){if(!st.isSelected){var mt=st.zOrder;isNaN(mt)?st.zOrder=0:Ke=Math.max(Ke,mt)}}),ve.set(Pe,Ke)}),ue.selection.each(function(Pe){Qe._assignZOrder(Pe,ve.get(Pe.layer)+1)}),ue.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var ve=new go.Map;ue.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var Ke=0;Pe.parts.each(function(st){if(!st.isSelected){var mt=st.zOrder;isNaN(mt)?st.zOrder=0:Ke=Math.min(Ke,mt)}}),ve.set(Pe,Ke)}),ue.selection.each(function(Pe){Qe._assignZOrder(Pe,ve.get(Pe.layer)-1-Qe._findGroupDepth(Pe))}),ue.commitTransaction("pushToBack")},Qe._assignZOrder=function(ue,ve,Pe){Pe===void 0&&(Pe=ue),ue.layer===Pe.layer&&(ue.zOrder=ve),ue instanceof go.Group&&ue.memberParts.each(function(Ke){Qe._assignZOrder(Ke,ve+1,Pe)})},Qe._findGroupDepth=function(ue){if(ue instanceof go.Group){var ve=0;return ue.memberParts.each(function(Pe){ve=Math.max(ve,Qe._findGroupDepth(Pe))}),ve+1}else return 0},Qe.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var ve=ue.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(ve){ue.push(ve)}),this.diagram.parts.each(function(ve){ue.push(ve)}),ue},Qe.prototype._arrowKeyMove=function(){var ue=this.diagram,ve=ue.lastInput,Pe=0,Ke=0;if(ve.control||ve.meta)Pe=1,Ke=1;else if(ue.grid!==null){var st=ue.grid.gridCellSize;Ke=st.width,Pe=st.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(mt){ve.key==="Up"?mt.move(new go.Point(mt.actualBounds.x,mt.actualBounds.y-Pe)):ve.key==="Down"?mt.move(new go.Point(mt.actualBounds.x,mt.actualBounds.y+Pe)):ve.key==="Left"?mt.move(new go.Point(mt.actualBounds.x-Ke,mt.actualBounds.y)):ve.key==="Right"&&mt.move(new go.Point(mt.actualBounds.x+Ke,mt.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var ue=this.diagram,ve=ue.lastInput,Pe=null;ve.key==="Up"?Pe=this._findNearestPartTowards(270):ve.key==="Down"?Pe=this._findNearestPartTowards(90):ve.key==="Left"?Pe=this._findNearestPartTowards(180):ve.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ve.shift?Pe.isSelected=!0:ve.control||ve.meta?Pe.isSelected=!Pe.isSelected:ue.select(Pe))},Qe.prototype._findNearestPartTowards=function(ue){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Pe=ve.actualBounds.center,Ke=this._getAllParts(),st=1/0,mt=ve,Vt=0;Vt<Ke.length;Vt++){var Gt=Ke[Vt];if(Gt!==ve&&Gt.canSelect()){var $t=Gt.actualBounds.center,dn=Pe.directionPoint($t),ze=this._angleCloseness(dn,ue);if(ze<=45){var de=Pe.distanceSquaredPoint($t);de*=1+Math.sin(ze*Math.PI/180),de<st&&(st=de,mt=Gt)}}}return mt},Qe.prototype._angleCloseness=function(ue,ve){return Math.min(Math.abs(ve-ue),Math.min(Math.abs(ve+360-ue),Math.abs(ve-360-ue)))},Qe.prototype._arrowKeyTree=function(){var ue=this.diagram,ve=ue.selection.first();if(ve instanceof go.Node){var Pe=ue.lastInput;if(Pe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)ue.commandHandler.canExpandTree(ve)&&ue.commandHandler.expandTree(ve);else{var Ke=this._sortTreeChildrenByY(ve).first();Ke!==null&&ue.select(Ke)}}else if(Pe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)ue.commandHandler.canCollapseTree(ve)&&ue.commandHandler.collapseTree(ve);else{var st=ve.findTreeParentNode();st!==null&&ue.select(st)}else if(Pe.key==="Up"){var st=ve.findTreeParentNode();if(st!==null){var mt=this._sortTreeChildrenByY(st),Vt=mt.indexOf(ve);if(Vt>0){for(var Gt=mt.elt(Vt-1);Gt!==null&&Gt.isTreeExpanded&&!Gt.isTreeLeaf;){var $t=this._sortTreeChildrenByY(Gt);Gt=$t.last()}Gt!==null&&ue.select(Gt)}else ue.select(st)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Ke=this._sortTreeChildrenByY(ve).first();Ke!==null&&ue.select(Ke)}else for(;ve!==null;){var st=ve.findTreeParentNode();if(st===null)break;var mt=this._sortTreeChildrenByY(st),Vt=mt.indexOf(ve);if(Vt<mt.length-1){ue.select(mt.elt(Vt+1));break}else ve=st}var dn=ue.selection.first();dn!==null&&ue.scrollToRect(dn.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(ue){var ve=new go.List().addAll(ue.findTreeChildrenNodes());return ve.sort(function(Pe,Ke){var st=Pe.location,mt=Ke.location;return st.y<mt.y?-1:st.y>mt.y?1:st.x<mt.x?-1:st.x>mt.x?1:0}),ve},Qe.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},Qe.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(Qe.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(Qe.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 Tt=Qe,Qt=ge(20397),Dt=ge(43604),Ge=ge(82093),pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=ge(59301),Te=(ue,ve,Pe)=>new Promise((Ke,st)=>{var mt=$t=>{try{Gt(Pe.next($t))}catch(dn){st(dn)}},Vt=$t=>{try{Gt(Pe.throw($t))}catch(dn){st(dn)}},Gt=$t=>$t.done?Ke($t.value):Promise.resolve($t.value).then(mt,Vt);Gt((Pe=Pe.apply(ue,ve)).next())});function $e({onCancel:ue,callback:ve}){let Pe=(0,ae.useRef)(),Ke=(0,ae.useRef)(),st=(0,ae.useRef)(),mt=(0,ae.useRef)(!1);const Vt=(0,ae.useRef)(!1),[Gt,$t]=(0,ae.useState)(0);function dn(){const de=me.bx.make,Ce={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"};Pe.current=new me.S0(Ke.current,{padding:20,grid:de(me.s_,"Grid",de(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),de(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Me=>{var tt=Me.diagram.commandHandler.addTopLevelParts(Me.diagram.selection,!0);tt||Me.diagram.currentTool.doCancel()},commandHandler:de(Tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Me=>{var tt=Me.subject;tt.location=tt.location.copy().snapToGridPoint(Me.diagram.grid.gridOrigin,Me.diagram.grid.gridCellSize),setTimeout(()=>{Me.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Me=>{var tt=Me.subject;setTimeout(()=>{Me.diagram.commandHandler.editTextBlock()})},LinkRelinked:Me=>{var tt=Me.parameter.part;tt.invalidateConnectedLinks();var St=Me.subject;Me.diagram.toolManager.linkingTool.isForwards?St.toNode.invalidateConnectedLinks():St.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=de(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),de(me.bn,{name:"SHAPE",fill:Ce.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),de(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),de(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=de("ToolTip",de(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},de(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),de(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function Ve(Me,tt){var St=(Xe,Mt)=>{Xe.handled=!0,Xe.diagram.model.commit(Ot=>{var nn=Mt.part.adornedPart,an=new me.E9().setRectSpot(nn.actualBounds,Me);an.subtract(nn.location),an.scale(2,2),an.x+=Math.sign(an.x)*130,an.y+=Math.sign(an.y)*130,an.add(nn.location),an.snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize);var mn=Ot.copyNodeData(nn.data);Ot.setGroupKeyForNodeData(mn,Ot.getGroupKeyForNodeData(nn.data)),Ot.addNodeData(mn);var Yn={from:nn.key,to:Ot.getKeyForNodeData(mn)};Ot.addLinkData(Yn);var _n=Xe.diagram.findNodeForData(mn);_n.location=an,Xe.diagram.select(_n),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)})};return de(me.bn,{figure:tt,alignment:Me,alignmentFocus:Me.opposite(),width:Me.equals(me.z6.Top)||Me.equals(me.z6.Bottom)?25:18,height:Me.equals(me.z6.Top)||Me.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:Ce.white,strokeWidth:4,mouseEnter:(Xe,Mt)=>Mt.fill="dodgerblue",mouseLeave:(Xe,Mt)=>Mt.fill="orange",isActionable:!0,click:St,contextClick:St})}function Je(Me){return de(me.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:(tt,St)=>St.fill="dodgerblue",mouseLeave:(tt,St)=>St.fill="orange",click:(tt,St)=>{tt.diagram.commandHandler.showContextMenu(St.part.adornedPart)}},Me||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=de(me.uz,"Spot",de(me.Vm,{padding:10}),Ve(me.z6.Top,"TriangleUp"),Ve(me.z6.Left,"TriangleLeft"),Ve(me.z6.Right,"TriangleRight"),Ve(me.z6.Bottom,"TriangleDown"),Je({alignment:new me.z6(.75,0)}));function qe(Me,tt){return(St,Xe)=>{St.handled=!0,St.diagram.model.commit(Mt=>{Mt.set(Xe.part.adornedPart.data,Me,tt)})}}function gt(Me,tt){return tt||(tt="color"),de(me.bn,{width:16,height:16,stroke:"lightgray",fill:Me,margin:1,background:"transparent",mouseEnter:(St,Xe)=>Xe.stroke="dodgerblue",mouseLeave:(St,Xe)=>Xe.stroke="lightgray",click:qe(tt,Me),contextClick:qe(tt,Me)})}function dt(){return[de("ContextMenuButton",de(me.s_,"Horizontal",gt(Ce.white,"fill"),gt(Ce.beige,"fill"),gt(Ce.extralightblue,"fill"),gt(Ce.extralightred,"fill"))),de("ContextMenuButton",de(me.s_,"Horizontal",gt(Ce.lightgray,"fill"),gt(Ce.lightgreen,"fill"),gt(Ce.lightblue,"fill"),gt(Ce.lightred,"fill")))]}function yt(){return[de("ContextMenuButton",de(me.s_,"Horizontal",gt(Ce.black),gt(Ce.green),gt(Ce.blue),gt(Ce.red))),de("ContextMenuButton",de(me.s_,"Horizontal",gt(Ce.white),gt(Ce.magenta),gt(Ce.purple),gt(Ce.orange)))]}function ft(Me,tt){return tt||(tt="thickness"),de(me.bn,"LineH",{width:16,height:16,strokeWidth:Me,margin:1,background:"transparent",mouseEnter:(St,Xe)=>Xe.background="dodgerblue",mouseLeave:(St,Xe)=>Xe.background="transparent",click:qe(tt,Me),contextClick:qe(tt,Me)})}function Nt(Me,tt){return tt||(tt="dash"),de(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Me,margin:1,background:"transparent",mouseEnter:(St,Xe)=>Xe.background="dodgerblue",mouseLeave:(St,Xe)=>Xe.background="transparent",click:qe(tt,Me),contextClick:qe(tt,Me)})}function ct(){return[de("ContextMenuButton",de(me.s_,"Horizontal",ft(1),ft(2),ft(3),ft(4))),de("ContextMenuButton",de(me.s_,"Horizontal",Nt(null),Nt([2,4]),Nt([4,4])))]}function bt(Me,tt){return tt||(tt="figure"),de(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Me,margin:1,background:"transparent",mouseEnter:(St,Xe)=>Xe.fill="dodgerblue",mouseLeave:(St,Xe)=>Xe.fill="lightgray",click:qe(tt,Me),contextClick:qe(tt,Me)})}Pe.current.nodeTemplate.contextMenu=de("ContextMenu",de("ContextMenuButton",de(me.s_,"Horizontal",bt("Rectangle"),bt("RoundedRectangle"),bt("Ellipse"),bt("Diamond"))),de("ContextMenuButton",de(me.s_,"Horizontal",bt("Parallelogram2"),bt("ManualOperation"),bt("Procedure"),bt("Cylinder1"))),de("ContextMenuButton",de(me.s_,"Horizontal",bt("Terminator"),bt("CreateRequest"),bt("Document"),bt("TriangleDown"))),dt(),yt(),ct()),Pe.current.groupTemplate=de(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Me,tt)=>{var St=tt.addMembers(tt.diagram.selection,!0);St||tt.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),de(me.s_,"Auto",{name:"BODY"},de(me.bn,{parameter1:10,fill:Ce.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),de(me.Vm,{background:"transparent",margin:20})),de(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=de(me.uz,"Spot",de(me.s_,"Auto",de(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),de(me.Vm,{margin:1.5})),Je({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=de("ContextMenu",dt(),yt(),ct()),Pe.current.linkTemplate=de(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",Me=>Me>=1?10:0),new me.KX("toShortLength","dir",Me=>Me>=1?10:0),new me.KX("points").makeTwoWay(),de(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),de(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Me=>Me===1)),de(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Me=>Me>=1),new me.KX("width","thickness",Me=>7+3*Me),new me.KX("height","thickness",Me=>7+3*Me),new me.KX("segmentOffset","thickness",Me=>new me.E9(-15,4+1.5*Me))),de(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Me=>Me===2),new me.KX("width","thickness",Me=>7+3*Me),new me.KX("height","thickness",Me=>7+3*Me),new me.KX("segmentOffset","thickness",Me=>new me.E9(-15,4+1.5*Me))),de(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=de(me.uz,de(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rt(2)},new me.KX("pathPattern","thickness",Rt)),Je({alignmentFocus:new me.z6(0,0,-6,-4)}));function Rt(Me){return de(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Me+4).toString()+" H3"})}function Ht(Me){var tt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Me===0?tt="M0 0 M16 16 M0 8 L16 8":Me===2&&(tt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),de(me.bn,{geometryString:tt,margin:2,background:"transparent",mouseEnter:(St,Xe)=>Xe.background="dodgerblue",mouseLeave:(St,Xe)=>Xe.background="transparent",click:qe("dir",Me),contextClick:qe("dir",Me)})}function pn(Me){var tt=(St,Xe)=>{St.handled=!0,St.diagram.model.commit(Mt=>{var Ot=Xe.part.adornedPart;Mt.set(Ot.data,Me?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(Me?Ot.toNode:Ot.fromNode).invalidateConnectedLinks()})};return de(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(St,Xe)=>Xe.background="dodgerblue",mouseLeave:(St,Xe)=>Xe.background="transparent",click:tt,contextClick:tt})}function be(Me,tt){var St=0,Xe=me.z6.RightSide;Me.equals(me.z6.Top)?(St=270,Xe=me.z6.TopSide):Me.equals(me.z6.Left)?(St=180,Xe=me.z6.LeftSide):Me.equals(me.z6.Bottom)&&(St=90,Xe=me.z6.BottomSide),tt||(St-=180);var Mt=(Ot,nn)=>{Ot.handled=!0,Ot.diagram.model.commit(an=>{var mn=nn.part.adornedPart;an.set(mn.data,tt?"toSpot":"fromSpot",me.z6.stringify(Xe)),(tt?mn.toNode:mn.fromNode).invalidateConnectedLinks()})};return de(me.bn,{alignment:Me,alignmentFocus:Me.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:St,background:"transparent",mouseEnter:(Ot,nn)=>nn.background="dodgerblue",mouseLeave:(Ot,nn)=>nn.background="transparent",click:Mt,contextClick:Mt})}Pe.current.linkTemplate.contextMenu=de("ContextMenu",yt(),ct(),de("ContextMenuButton",de(me.s_,"Horizontal",Ht(0),Ht(1),Ht(2))),de("ContextMenuButton",de(me.s_,"Horizontal",de(me.s_,"Spot",pn(!1),be(me.z6.Top,!1),be(me.z6.Left,!1),be(me.z6.Right,!1),be(me.z6.Bottom,!1)),de(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},pn(!0),be(me.z6.Top,!0),be(me.z6.Left,!0),be(me.z6.Right,!0),be(me.z6.Bottom,!0)))));const tn=`{ "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 jt=["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 Mn(Me){return console.log("shapeName:",Me),jt.indexOf(Me)>=0}var Kt=new me.YI(st.current,{maxSelectionCount:1,linkTemplate:de(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:de(me.uz,"Link",{locationSpot:me.z6.Center},de(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),de(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),de(me.bn,{isPanelMain:!0,strokeWidth:2}),de(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(Me=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Me.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Me){var tt;const St=Me.subject.part;var Xe=(tt=document.activeElement)==null?void 0:tt.value;typeof Xe=="string"&&Xe.trim()===""&&Pe.current.model.commit(function(Mt){Mt.set(St.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Kt.nodeTemplate=de(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),de(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),de(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=de(me.s_,"Grid",de(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),de(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const ze=()=>Te(this,null,function*(){var de=Pe.current.makeImage();const Ce=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:de.src}});ve({src:Ce.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{dn()},500),$t(Gt+1),()=>{Pe.current=null}),[]),he.createElement("div",{ref:Vt,className:mt.current?`${pe.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Gt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(je.Z,null,he.createElement(Dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(Dt.Z,{onClick:()=>{var de,Ce,Ve=Pe.current.selection.first();if(mt.current=!mt.current,document.activeElement&&Ve){let Je=(Ce=(de=document.activeElement)==null?void 0:de.value)==null?void 0:Ce.trim();typeof Je=="string"&&Pe.current.model.commit(function(qe){qe.set(Ve.data,"text",Je||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}$t(Gt+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:pe.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:pe.myPaletteDiv,ref:st})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:Ke,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(xe.ZP,{size:"large",onClick:ze,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var at=$e,ut=ge(5112),lt=ge(5871);const Ft=ut.ZP.Group,xt={margin:"0 8px"};var Bt=({callback:ue,onCancel:ve})=>{function Pe(Ke){ue(Ke)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:xt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:xt},"\u884C\u6570"),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(lt.Z,null)),ae.createElement("span",{style:xt},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(lt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:xt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(Ft,null,ae.createElement(ut.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ut.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ut.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ut.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(xe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Et=ge(49770),gn=ge(11081),Ze=ge.n(gn),Re=(0,ae.forwardRef)(({use3d:ue,width:ve,height:Pe,callback:Ke,showSaveButton:st},mt)=>{const Vt=(0,ae.useRef)(),Gt=(0,ae.useRef)(),[$t,dn]=(0,ae.useState)(!1),ze=(0,ae.useRef)({id:Vt,appName:"graphing",width:ve||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Gt.current=new(Ze())(ze.current,!0),window.onload=function(){Gt.current.inject("applet_container")}},[]);const de=()=>{var Ce=window.ggbApplet.getPNGBase64(1,!0,72);return Ke&&Ke(Ce),Ce};return(0,ae.useEffect)(()=>{ze.current.appName=$t?"3D":"graphing",Gt.current.inject("applet_container")},[$t]),(0,ae.useEffect)(()=>{dn(ue)},[ue]),(0,ae.useImperativeHandle)(mt,()=>({getImgData:de})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Vt}),ae.createElement(je.Z,{align:"middle"},ae.createElement(Dt.Z,{flex:1},ae.createElement(Et.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:$t,onChange:Ce=>dn(Ce)})),ae.createElement(Dt.Z,null,ae.createElement(xe.ZP,{size:"large",onClick:de,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),rt=ge(88615),At=ge(1012),Wt=ge(8591);const Ut="link",Yt="upload-image",Pt="add-flowchart",It="draw-image",Gn="add-flowchart",zt="code-block",hn="add-table",vn="------------",En={default:vn,left:`:${vn}`,center:`:${vn}:`,right:`${vn}:`};var Vn=ge(17904),Un=(ue,ve,Pe)=>new Promise((Ke,st)=>{var mt=$t=>{try{Gt(Pe.next($t))}catch(dn){st(dn)}},Vt=$t=>{try{Gt(Pe.throw($t))}catch(dn){st(dn)}},Gt=$t=>$t.done?Ke($t.value):Promise.resolve($t.value).then(mt,Vt);Gt((Pe=Pe.apply(ue,ve)).next())});function An(){}let Nn=0;const Rn=1e4,Kn="\u2581",Xt="@\u2581\u2581@",Fn="@\u2581@",zn=`
|
|
**\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`,oa=["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 bn(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const $n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",wa={[$n+"-B"]:"bold",[$n+"-I"]:"italic"},fa={[Ut]:"\u6DFB\u52A0\u94FE\u63A5",[zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Yt]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[hn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ba=({defaultValue:ue="",onChange:ve,width:Pe="100%",height:Ke=400,miniToolbar:st=!1,isFocus:mt=!1,watch:Vt,insertTemp:Gt,mode:$t="markdown",id:dn="markdown-editor-id",showResizeBar:ze=!1,noStorage:de=!1,showNullButton:Ce=!1,showNullProgramButton:Ve=!1,hidetoolBar:Je=!1,fullScreen:qe=!1,onBlur:gt,onCMBeforeChange:dt,onFullScreen:yt,className:ft="",disablePaste:Nt=!1,disabled:ct=!1,disabledFill:bt=!1,placeholder:Rt="",values:Ht="",extraUse:pn})=>{const[be,tn]=(0,ae.useState)(null),[jt,Mn]=(0,ae.useState)(ue),[Kt,Me]=(0,ae.useState)(Vt),[tt,St]=(0,ae.useState)(qe),[Xe,Mt]=(0,ae.useState)(""),[Ot,nn]=(0,ae.useState)(0),[an,mn]=(0,ae.useState)(Ke),[Yn,_n]=(0,ae.useState)(!1),Jn=(0,ae.useRef)((0,At.Z)()),ta=(0,ae.useRef)(!1),On=(0,ae.useRef)(),[Qn,kn]=(0,ae.useState)(0),[Hn,qn]=(0,ae.useState)(0),Tn=(0,ae.useRef)(),Ln=(0,ae.useRef)(),ea=(0,ae.useRef)(),ln=(0,ae.useRef)(),Bn=()=>Un(void 0,null,function*(){var it;const We=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Jn.current}});(it=We==null?void 0:We.attachments)!=null&&it.length&&(console.log("cm:",be,Tn),We.attachments.map(et=>{et.content_type.indexOf("image")>-1?be.replaceSelection(``):et.content_type.indexOf("video")>-1?be.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):et.content_type.indexOf("pdf")>-1?be.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type}&disposition=inline" target="_blank">${et.name}</a>`):be.replaceSelection(`[${et.name}](${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type})`)}))});(0,ae.useEffect)(()=>{const it=window.scrollY||window.pageYOffset;Mn(Ht),be==null||be.setValue(Ht),window.scrollTo(0,it)},[Ht]),(0,ae.useEffect)(()=>{yt==null||yt(tt)},[tt]),(0,ae.useEffect)(()=>{if(Tn.current){let it=function(et,ot){var Zt;if(Nt){ot.preventDefault();return}const Jt=ot.clipboardData;if(Jt){const Sn=Jt.types.toString(),Pn=Jt.items;if(Sn==="Files"||Jt.types.indexOf("Files")>-1){if(ot.preventDefault(),$t=="stex")return;try{let yn=Pn[1];((Zt=Pn[0])==null?void 0:Zt.kind)==="file"&&(yn=Pn[0]);const wn=yn.getAsFile(),da=wn.name.split(".").pop();(0,we.I)(wn,Dn=>{var pa,La,ya;Dn.id?((pa=wn==null?void 0:wn.type)==null?void 0:pa.indexOf("image"))>-1?We.replaceSelection(`<img width="100%" src="/api/attachments/${Dn.id}?type=${Dn.content_type})" alt="" />`):((La=wn==null?void 0:wn.type)==null?void 0:La.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dn.id}"></video>`):((ya=wn==null?void 0:wn.type)==null?void 0:ya.indexOf("pdf"))>-1?We.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):oa.includes(da)?We.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):We.replaceSelection(`[${wn.name}](/api/attachments/${Dn.id}?type=${Dn.content_type})`):(Dn==null?void 0:Dn.status)===401&&(Wt.ZP.warning((Dn==null?void 0:Dn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(yn){Wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const We=_e().fromTextArea(Tn.current,{mode:$t,lineNumbers:!st,lineWrapping:!0,value:ue,autoCloseTags:!Ve,autoCloseBrackets:!0});return We.on("keyup",function(et,ot){ot.keyCode===8&&(et.getValue()==""?We.setOption("placeholder",Rt):We.setOption("placeholder",null))}),We.on("keydown",function(et,ot){if(ot.keyCode===8){var Zt=na(et);Zt&&ot.preventDefault()}}),mt&&We.focus(),We.on("paste",it),We.on("dragleave",function(et,ot){Ln.current.classList.remove("mouse-hover-md")}),ct&&We.on("beforeChange",function(et,ot){(ot.origin==="paste"||ot.origin==="+input")&&ot.cancel()}),tn(We),()=>{We.off("paste",it)}}},[]);const Zn=(0,ae.useCallback)(()=>{if(Ln.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[an,Ln,tt]);(0,ae.useEffect)(()=>{function it(){let We=new Ae.Z(et=>{for(let ot of et)(ot.target.offsetHeight>0||ot.target.offsetWidth>0)&&(Zn(),be.setSize("100%","100%"),be.refresh())});return We.observe(Tn.current.parentElement),We}if(be){const We=it();return()=>{var et,ot;(et=Tn.current)!=null&&et.parentElement&&We.unobserve((ot=Tn.current)==null?void 0:ot.parentElement)}}},[be,Zn]),(0,ae.useEffect)(()=>{if(be){let it=[];for(const[We,et]of Object.entries(wa)){let ot={[We]:()=>{on(et)}};it.push(ot),be.addKeyMap(ot)}return On.current=setInterval(()=>{ta.current&&Bn()},4e3),()=>{clearInterval(On.current);for(let We of it)be.removeKeyMap(We)}}},[be]),(0,ae.useEffect)(()=>{qe!==tt&&St(qe)},[qe]),(0,Vn.Z)(()=>{if(!de&&Ot>0){let it=new Date().getTime(),We=window.sessionStorage.getItem(dn);it>=Ot+Rn&&(!We||We!==jt)&&(window.sessionStorage.setItem(dn,jt),_n(!0))}},Rn),(0,ae.useEffect)(()=>{Me(Vt)},[be,Vt]),(0,ae.useEffect)(()=>{be&&mt&&be.focus()},[be,mt]),(0,ae.useEffect)(()=>{if(Kt&&be){let it=function(et){let ot=et.target;if(ln.current){let Zt=ot.scrollTop/ot.scrollHeight;ln.current.scrollTop=ln.current.scrollHeight*Zt}};const We=be.getScrollerElement();return We.addEventListener("scroll",it),()=>{We.removeEventListener("scroll",it)}}},[be,Kt]),(0,ae.useEffect)(()=>{if(be&&dt){let it=function(We,et){dt(We,et)};return be.on("beforeChange",it),()=>{be.off("beforeChange",it)}}},[be,dt]),(0,ae.useEffect)(()=>{if(be&>){let it=function(){gt(be.getValue())};return be.on("blur",it),()=>{be.off("blur",it)}}},[be,gt]);function na(it,We){var et=it.getDoc(),ot=et.getCursor(),Zt=et.getLine(ot.line),Jt=Zt.charAt(ot.ch-1),Sn=Zt.lastIndexOf("@\u2581@",ot.ch),Pn=Zt.lastIndexOf("@\u2581\u2581@",ot.ch),yn=Sn>Pn?Sn:Pn,wn=Sn>Pn?3:4;if(Xt.indexOf(Jt)===-1)return null;if(console.log("change1:",We,it,Zt,ot,yn,Sn,Pn,Jt),yn>=0&&ot.ch-yn<5){var da=yn+wn;return et.replaceRange("",{line:ot.line,ch:yn},{line:ot.line,ch:da}),{line:ot.line,ch:da}}return null}(0,ae.useEffect)(()=>{if(be){let it=function(We,et){const ot=We.getValue();Mn(ot),nn(new Date().getTime()),We.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Ve?ve(ot,Wn(ot)):ve(ot))};return be.on("change",it),()=>{be.off("change",it)}}},[be,ve]),(0,ae.useEffect)(()=>{if(be)if(ue==null)be.setValue(""),Mn("");else{const it=window.scrollY||window.pageYOffset;ue!==be.getValue()&&(be.setValue(ue),Mn(ue),be.setCursor(ct?1:be.lineCount(),0),window.scrollTo(0,it))}},[be,ue]);const on=(0,ae.useCallback)(it=>{const We=be.getCursor(),et=be.getSelection();let ot=et.split(`
|
|
`);switch(it){case"bold":return be.replaceSelection("**"+et+"**"),et===""&&be.setCursor(We.line,We.ch+2),be.focus();case"italic":return be.replaceSelection("*"+et+"*"),et===""&&be.setCursor(We.line,We.ch+1),be.focus();case"code":return be.replaceSelection("`"+et+"`"),et===""&&be.setCursor(We.line,We.ch+1),be.focus();case"inline-latex":return Mt("inline-latex"),be.focus();case"latex":return be.replaceSelection("```latex\n"+et+"\n```"),be.setCursor(We.line+1,et.length+1),be.focus();case"line-break":return be.replaceSelection(`<br/>
|
|
`),be.focus();case"list-ul":return et===""?be.replaceSelection("- "+et):be.replaceSelection(ot.map(Zt=>Zt===""?"":`- ${Zt}`).join(`
|
|
`)),be.focus();case"list-ol":return et===""?be.replaceSelection("1. "+et):be.replaceSelection(ot.map((Zt,Jt)=>Zt===""?"":`${Jt+1}. ${Zt}`).join(`
|
|
`)),be.focus();case"add-null-ch":return et===""&&be.setCursor(We.line,We.ch),be.replaceSelection(Kn),be.focus();case"add-signal":return et===""&&be.setCursor(We.line,We.ch),be.replaceSelection(Fn),be.focus();case"add-multiple":return et===""&&be.setCursor(We.line,We.ch),be.replaceSelection(Xt),be.focus();case"inster-template-1":return et===""&&be.setCursor(We.line,We.ch),be.replaceSelection(zn),be.focus();case"eraser":return be.setValue(""),be.focus();case"trigger-watch":return Me(!Kt),be.focus();case"trigger-full-screen":return St(!tt),be.focus();case Ut:Mt(Ut);return;case zt:Mt(zt);return;case Yt:Mt(Yt);return;case It:Mt(It);return;case"maths-latex":Mt("maths-latex");return;case Pt:Mt(Pt);return;case hn:Mt(hn);return;default:throw new Error}},[be,Kt,tt]),Cn=(0,ae.useCallback)((it,We)=>{var et,ot,Zt,Jt,Sn,Pn;switch(Mt(""),Xe){case Ut:const{title:pa,link:La}=it;return be.replaceSelection(`[${pa}](${La})`),be.focus();case zt:const{language:ya,content:Ea}=it;return be.replaceSelection(["```"+ya,Ea,"```"].join(`
|
|
`)),be.focus();case"maths-latex":for(var yn=atob(it),wn=new Uint8Array(yn.length),da=0;da<yn.length;da++)wn[da]=yn.charCodeAt(da);var Dn=new Blob([wn],{type:"image/png"});(0,we.I)(Dn,ga=>{ga.id?be.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":be.replaceSelection("`$$"+it+"$$`");break;case Yt:case It:case Gn:const{src:sn,alt:Ct}=it,un=We,Sa=(Zt=(ot=(et=un==null?void 0:un.name)==null?void 0:et.split("."))==null?void 0:ot.pop)==null?void 0:Zt.call(ot);return((Jt=un==null?void 0:un.type)==null?void 0:Jt.indexOf("image"))>-1||!(un!=null&&un.type)?un.align||un.width?be.replaceSelection(`<p style="text-align:${un.align||"initial"}"><img width="${un.width?un.width+"%":"initial"}" src="${sn}" alt="${Ct||""}" /></p>`):be.replaceSelection(`<img width="100%" src="${sn}" alt="${Ct||""}" />`):((Sn=un==null?void 0:un.type)==null?void 0:Sn.indexOf("video"))>-1?be.replaceSelection(`<video width="100%" controls src="${sn}"></video>`):((Pn=un==null?void 0:un.type)==null?void 0:Pn.indexOf("pdf"))>-1?be.replaceSelection(`<a href="${sn}?type=${un.type}&disposition=inline" target="_blank">${un.name}</a>`):oa.includes(Sa)?be.replaceSelection(`<a href="${sn}?type=office&disposition=inline" target="_blank">${un.name}</a>`):be.replaceSelection(`[${un.name}](${sn})`),be.focus();case hn:const{row:aa,col:ca,align:Pa}=it;let la=`
|
|
`;for(let ga=0;ga<aa;ga++){let Ca=[],xa=[];for(let Ba=0;Ba<ca;Ba++)ga===1&&xa.push(En[Pa]),Ca.push(" ");ga===1&&(la+=`| ${xa.join(" | ")} |
|
|
`),la+=`| ${Ca.join(ca===1?"":" | ")} |
|
|
`}return be.replaceSelection(la+`
|
|
`),be.focus();default:throw new Error}},[be,Xe]),jn=(0,ae.useMemo)(()=>{switch(Xe){case Ut:return ae.createElement(fn,{callback:Cn,onCancel:In});case zt:return ae.createElement(xn.Z,{callback:Cn,onCancel:In});case Yt:return ae.createElement(we.Z,{callback:Cn,onCancel:In});case Pt:return ae.createElement(at,{callback:Cn,onCancel:In});case hn:return ae.createElement(Bt,{callback:Cn,onCancel:In});case"maths-latex":return ae.createElement(Re,{showSaveButton:!0,callback:Cn});case"inline-latex":return ae.createElement(rt.Z,{showSaveButton:!0,callback:Cn});default:return null}},[Xe]);function In(){Mt("")}(0,ae.useEffect)(()=>{if(ea.current){let it=function(Sn){Zt=!0,Jt=Sn.pageY},We=function(){Zt=!1},et=function(Sn){if(Zt){let Pn=Sn.pageY-Jt;Pn<0&&(Pn=0),Pn>300&&(Pn=300);let yn=Ke+Pn+"px";mn(yn)}},ot=ea.current,Zt=!1,Jt=0;return ot.addEventListener("mousedown",it),document.addEventListener("mousemove",et),document.addEventListener("mouseup",We),()=>{ot.removeEventListener("mousedown",it),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",We)}}},[be,ea]),(0,ae.useEffect)(()=>{mn(Ke)},[Ke]);const ha=bn(Pe),sa=bn(an),ua={width:ha,height:sa},ra=(0,ae.useMemo)(()=>{if(Ot){let it=new Date(Ot),We=it.getHours(),et=it.getMinutes(),ot=it.getSeconds();return We=We<10?"0"+We:We,et=et<10?"0"+et:et,ot=ot<10?"0"+ot:ot,`${We}:${et}:${ot}`}return 0},[Ot]),Wn=it=>{const We=[];if(Ve){let et=-1;it=it.replace(/(@▁▁@|@▁@)/g,function(ot,Zt,Jt){We.push({multiLine:ot!==Fn})})}return We};function Xn(){window.sessionStorage.removeItem(dn),_n(!1),nn(0)}function ma(){_n(!1),nn(0),be.setValue(window.sessionStorage.getItem(dn))}(0,ae.useEffect)(()=>{fa[Xe]&&Xe!==It&&Xe!==Pt&&setTimeout(()=>{const it=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-it.offsetWidth/2,et=window.innerHeight/2-it.offsetHeight/2;kn(We),qn(et)},0)},[Xe]);const ia=it=>{it.preventDefault();const We=it.clientX-Qn,et=it.clientY-Hn;document.body.onmousemove=ot=>{let Zt=ot.clientX-We,Jt=ot.clientY-et;const Sn=document.getElementsByClassName("markdown-popup-form")[0],Pn=window.innerWidth-Sn.offsetWidth,yn=window.innerHeight-Sn.offsetHeight;Zt=Math.max(0,Math.min(Zt,Pn)),Jt=Math.max(0,Math.min(Jt,yn)),Fa(ot.clientX,ot.clientY,We,et)&&(kn(Zt),qn(Jt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fa=(it,We,et,ot)=>{const Zt=document.body.clientHeight,Jt=document.body.clientWidth;return it<20&&et>it||it>Jt-20&&et<it||We<20&&ot>We||We>Zt-20&&ot<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Ln},ae.createElement("div",{className:`markdown-editor-container ${ft} ${Kt?"on-preview":""} ${st?"mini":""} ${tt?"full-screen":""}`,style:ua},ae.createElement(ie,{insertTemp:Gt,watch:Kt,fullScreen:tt,showNullButton:Ce,showNullProgramButton:Ve,onActionCallback:on,hidetoolBar:Je,extraUse:pn}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Tn,placeholder:Rt})),Kt?ae.createElement("div",{ref:ln,className:"preview-container"},$t==="stex"&&ae.createElement(De,{value:jt}),$t!=="stex"&&ae.createElement(Oe.Z,{disabledFill:bt,showProgramFill:Ve,value:jt})):null))),ze?ae.createElement("a",{ref:ea,className:"editor-resize"}):null,Xe===It&&ae.createElement(Lt,{callback:Cn,onCancel:In}),Xe===Pt&&ae.createElement(at,{callback:Cn,onCancel:In}),ae.createElement(ce.Z,null,fa[Xe]&&Xe!==It&&Xe!==Pt?ae.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Qn,top:Hn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ia},fa[Xe]),open:!0,onCancel:In,footer:null,destroyOnClose:!0,width:Xe===Pt?"1200px":null,height:Xe===Pt?"80vh":null,className:"markdown-popup-form"},jn):null))}},45596:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return re},I:function(){return ce}});var ae=ge(78241),fe=ge(8591),_e=ge(92832),Ae=ge(81327),Se=ge(5871),Ne=ge(5112),le=ge(3113),ke=ge(67303),ye=ge(59301),Ie=ge(34055),Oe=ge(59301),De=Object.defineProperty,Ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(se,Fe,xe)=>Fe in se?De(se,Fe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):se[Fe]=xe,E=(se,Fe)=>{for(var xe in Fe||(Fe={}))y.call(Fe,xe)&&b(se,xe,Fe[xe]);if(a)for(var xe of a(Fe))x.call(Fe,xe)&&b(se,xe,Fe[xe]);return se},z=(se,Fe)=>Ee(se,ne(Fe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:se,onCancel:Fe})=>{const[xe]=ee();let nt=(0,ye.useRef)();function vt(wt){nt.current.width=xe.getFieldValue("width"),nt.current.align=xe.getFieldValue("align"),se(wt,nt.current)}function kt(wt,_t){if(wt.status===-1){fe.ZP.error(wt.message);return}xe.setFieldsValue({src:`/api/attachments/${wt.id}`,type:_t.type})}function ht(wt){let _t=wt.target.files[0];nt.current=_t,ce(_t,kt)}return Oe.createElement(ae.default,z(E({form:xe},oe),{className:"upload-image-panel",onFinish:vt,style:{width:470,overflow:"hidden"}}),Oe.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Oe.createElement("div",{className:"flex-container"},Oe.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Oe.createElement(_e.default,{style:te})),Oe.createElement(ie,{onFileChange:ht}))),Oe.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Oe.createElement(_e.default,{style:{width:264}})),Oe.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Oe.createElement(Ae.Z,null,Oe.createElement(ae.default.Item,{name:"width",style:{margin:0}},Oe.createElement(Se.Z,{style:{width:264}})),Oe.createElement("span",{className:"ml8"},"%"))),Oe.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Oe.createElement(Ne.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"}]})),Oe.createElement("aside",null,Oe.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Oe.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(le.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return Oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Oe.createElement("input",{type:"file",onChange:se}))}function ce(se,Fe){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let xe=new FormData;xe.append("editormd-image-file",se),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var nt=new window.XMLHttpRequest;nt.withCredentials=!0,nt.addEventListener("load",function(vt){Fe(JSON.parse(vt.target.responseText),se)},!1),nt.addEventListener("error",function(vt){console.error(vt)},!1),nt.open("POST",`${ke.KI}/api/attachments.json`),nt.send(xe)}},75790:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return _e}});var ae=ge(59301),fe=ge(4676);class _e extends ae.Component{constructor(Se){super(Se);const Ne=window.document;this.node=Ne.createElement("div"),Ne.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,fe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return fe}});var ae=ge(59301);function fe(_e,Ae){const Se=(0,ae.useRef)();(0,ae.useEffect)(()=>{Se.current=_e}),(0,ae.useEffect)(()=>{function Ne(){Se.current()}if(Ae!==null){let le=setInterval(Ne,Ae);return()=>clearInterval(le)}},[Ae])}},15331:function(Le,Ye,ge){"use strict";ge.r(Ye),ge.d(Ye,{default:function(){return gn}});var ae=ge(59301),fe=ge(76560),_e=ge(95237),Ae=ge(43604),Se=ge(61186),Ne=ge.n(Se),le=ge(20834),ke=ge(44e3),ye=ge(71418),Ie=ge(26724),Oe=ge.n(Ie),De=ge(90524),Ee=ge(7664),ne={flex_box_center:"flex_box_center___OfYbN",flex_space_between:"flex_space_between___hrkuU",flex_box_vertical_center:"flex_box_vertical_center___jxUNa",flex_box_center_end:"flex_box_center_end___toHnG",flex_box_column:"flex_box_column___hO761",userInfo:"userInfo___AOrZJ",navInfo:"navInfo___eCDON",actived:"actived___FDrE1",topBar:"topBar___L5Hq4",tabs:"tabs___K46zs",active:"active___hMEvd",list:"list____5qRM",tags:"tags___R3aHm",searchWrp:"searchWrp___AlrVM",listMessage:"listMessage___DSDfV",deleteMsg:"deleteMsg___omx9n",listRightMessage:"listRightMessage___lZyYc",content:"content___vaWQf",msg:"msg___BhVg6",msgDate:"msgDate___oRFwZ"},a=Object.defineProperty,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(Ze,He,Re)=>He in Ze?a(Ze,He,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ze[He]=Re,z=(Ze,He)=>{for(var Re in He||(He={}))x.call(He,Re)&&E(Ze,Re,He[Re]);if(y)for(var Re of y(He))b.call(He,Re)&&E(Ze,Re,He[Re]);return Ze},ee=(Ze,He)=>{var Re={};for(var rt in Ze)x.call(Ze,rt)&&He.indexOf(rt)<0&&(Re[rt]=Ze[rt]);if(Ze!=null&&y)for(var rt of y(Ze))He.indexOf(rt)<0&&b.call(Ze,rt)&&(Re[rt]=Ze[rt]);return Re},te=(Ze,He,Re)=>new Promise((rt,At)=>{var Wt=Pt=>{try{Yt(Re.next(Pt))}catch(It){At(It)}},Ut=Pt=>{try{Yt(Re.throw(Pt))}catch(It){At(It)}},Yt=Pt=>Pt.done?rt(Pt.value):Promise.resolve(Pt.value).then(Wt,Ut);Yt((Re=Re.apply(Ze,He)).next())});const{SubMenu:oe}=le.default,{Sider:re,Content:ie}=ke.default,ce=Ze=>{var He=Ze,{messages:Re,globalSetting:rt,loading:At,user:Wt,dispatch:Ut}=He,Yt=ee(He,["messages","globalSetting","loading","user","dispatch"]);const Pt=(0,fe.useParams)(),It=(0,fe.useLocation)(),{userInfo:Gn}=Wt,[zt,hn]=(0,ae.useState)(!1),[vn,En]=(0,ae.useState)({per_page:20,page:1}),[Vn,Un]=(0,ae.useState)({per_page:20,page:1}),[An,Nn]=(0,ae.useState)([]);(0,ae.useEffect)(()=>{vn.page=1,Kn()},[Pt.userId]);const Rn=Xt=>{var Fn,zn;fe.history.push(`/messages/${(Fn=Wt==null?void 0:Wt.userInfo)==null?void 0:Fn.login}/message_detail?target_ids=${(zn=Xt==null?void 0:Xt.target)==null?void 0:zn.id}`)},Kn=()=>te(void 0,null,function*(){var Xt;hn(!1);const Fn=yield Ut({type:"messages/getPrivateMessages",payload:z(z({},Pt),Vn)});Fn!=null&&Fn.private_messages&&(Nn([...An,...Fn.private_messages]),((Xt=Fn.private_messages)==null?void 0:Xt.length)===20&&hn(!0))});return ae.createElement("aside",{className:ne.listRightMessage},ae.createElement(Oe(),{loadMore:()=>{Vn.page++,Kn()},hasMore:zt,useWindow:!1},ae.createElement(ye.Z,{spinning:At["messages/getPrivateMessages"]},ae.createElement("div",{className:"minH500"},An==null?void 0:An.map(function(Xt,Fn){var zn,oa;return ae.createElement("aside",{key:Fn},ae.createElement(_e.Z,{onClick:()=>Rn(Xt)},ae.createElement(Ae.Z,{flex:"58px"},ae.createElement("img",{src:De.Z.IMG_SERVER+"/images/"+((zn=Xt==null?void 0:Xt.target)==null?void 0:zn.image_url),alt:""})),ae.createElement(Ae.Z,{flex:"1"},ae.createElement(_e.Z,null,ae.createElement(Ae.Z,{span:24},ae.createElement(_e.Z,null,ae.createElement(Ae.Z,{flex:"1"},ae.createElement("span",{className:ne.userName},(oa=Xt==null?void 0:Xt.target)==null?void 0:oa.name)),ae.createElement(Ae.Z,null,ae.createElement("span",{className:"ml15 c-grey-c"},Ne()(Xt.send_time).fromNow())))),ae.createElement(Ae.Z,{span:24},ae.createElement("div",{className:["mt15",ne.content].join(" ")},ae.createElement(Ee.Z,{value:Xt.content||""})))))))})))))};var se=(0,fe.connect)(({messages:Ze,loading:He,user:Re,globalSetting:rt})=>({messages:Ze,globalSetting:rt,user:Re,loading:He.effects}))(ce),Fe=ge(78241),xe=ge(8591),nt=ge(3113),vt=ge(35584),kt=ge(49661),ht=ge(93440),wt=ge(89389),_t=ge(33796),cn=Object.defineProperty,qt=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,we=(Ze,He,Re)=>He in Ze?cn(Ze,He,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ze[He]=Re,Be=(Ze,He)=>{for(var Re in He||(He={}))fn.call(He,Re)&&we(Ze,Re,He[Re]);if(en)for(var Re of en(He))xn.call(He,Re)&&we(Ze,Re,He[Re]);return Ze},je=(Ze,He)=>qt(Ze,rn(He)),pt=(Ze,He)=>{var Re={};for(var rt in Ze)fn.call(Ze,rt)&&He.indexOf(rt)<0&&(Re[rt]=Ze[rt]);if(Ze!=null&&en)for(var rt of en(Ze))He.indexOf(rt)<0&&xn.call(Ze,rt)&&(Re[rt]=Ze[rt]);return Re},Ue=(Ze,He,Re)=>new Promise((rt,At)=>{var Wt=Pt=>{try{Yt(Re.next(Pt))}catch(It){At(It)}},Ut=Pt=>{try{Yt(Re.throw(Pt))}catch(It){At(It)}},Yt=Pt=>Pt.done?rt(Pt.value):Promise.resolve(Pt.value).then(Wt,Ut);Yt((Re=Re.apply(Ze,He)).next())});const{SubMenu:Lt}=le.default,{Sider:me,Content:Qe}=ke.default,Tt=Ze=>{var He=Ze,{messages:Re,globalSetting:rt,loading:At,user:Wt,dispatch:Ut}=He,Yt=pt(He,["messages","globalSetting","loading","user","dispatch"]);const Pt=(0,fe.useParams)(),[It,Gn]=(0,fe.useSearchParams)(),[zt,hn]=(0,ae.useState)({per_page:20,page:1}),[vn,En]=(0,ae.useState)([]),[Vn,Un]=(0,ae.useState)(!1),[An,Nn]=(0,ae.useState)(!1),[Rn,Kn]=(0,ae.useState)(""),Xt=(0,ae.useRef)(),[Fn]=Fe.default.useForm();let[zn,oa]=(0,ae.useState)([]),[bn,va]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{zt.page=1,$n()},[It.get("target_ids")]);const $n=()=>Ue(void 0,null,function*(){Un(!1);const ue=yield Ut({type:"messages/getPrivateMessageDetails",payload:Be(je(Be({},Pt),{target_id:It.get("target_ids")}),zt)});ue!=null&&ue.messages&&(zn=ue==null?void 0:ue.messages,(zn==null?void 0:zn.length)===20&&setTimeout(()=>{Un(!0),va(!1)},500),zt.page===1?En([...ue==null?void 0:ue.messages.reverse()]):En([...vn,...ue==null?void 0:ue.messages.reverse()]))});(0,ae.useEffect)(()=>{console.log("newData.length:",zt,zn.length,zn),zt.page===1&&bn&&(Xt.current.scrollTop=Xt.current.scrollHeight)},[vn]),(0,ae.useEffect)(()=>{Xt.current.onclick=ue=>{ue.target.nodeName==="IMG"&&ue.target.alt!==""&&_t.Z.publish("preview-image",ue.target.src)}},[]);const wa=(ue,ve)=>Ue(void 0,null,function*(){(yield(0,ht.dl)(je(Be({},Pt),{id:ue.id}))).status===0&&(vn.splice(ve,1),En([...vn]))}),fa=()=>Ue(void 0,null,function*(){if(Rn==="")return xe.ZP.error("\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u590D"),!1;Kn(""),Nn(!0),yield(0,ht.w0)(je(Be({},Pt),{content:Rn,target_id:It.get("target_ids")})),Nn(!1),zt.page=1,Fn.resetFields(),$n()}),ba=(0,ae.useMemo)(()=>{const{userInfo:ue}=Wt||{};return(ue==null?void 0:ue.is_teacher)&&(ue==null?void 0:ue.professional_certification)},[Wt]);return ae.createElement("section",null,ae.createElement("aside",{className:ne.listMessage,ref:Xt},ae.createElement(Oe(),{isReverse:!0,loadMore:()=>{zt.page++,$n()},hasMore:Vn,useWindow:!1},!Vn&&ae.createElement("div",{className:"tc mt20 animated fadeIn"},ae.createElement("span",{className:ne.msgDate},"\u6CA1\u6709\u4FE1\u606F\u4E86\uFF5E\uFF5E")),ae.createElement(ye.Z,{spinning:At["messages/getPrivateMessageDetails"]},ae.createElement("aside",{className:"minH500"},vn==null?void 0:vn.map(function(ue,ve){var Pe;return ae.createElement("aside",{key:ve},ae.createElement(_e.Z,{justify:"center"},ae.createElement(Ae.Z,{flex:"1",className:"tc"},ae.createElement("span",{className:ne.msgDate},Ne()(ue.send_time).format("YYYY-MM-DD")))),ae.createElement(_e.Z,{onClick:()=>(0,kt._g)(ue)},ae.createElement(Ae.Z,{flex:"58px"},ae.createElement("img",{src:De.Z.IMG_SERVER+"/images/"+((Pe=ue==null?void 0:ue.sender)==null?void 0:Pe.image_url),alt:""})),ae.createElement(Ae.Z,null,ae.createElement("div",{className:ne.msg},ae.createElement(Ee.Z,{value:ue.content||""}),ae.createElement("span",{onClick:()=>wa(ue,ve),className:["current",ne.deleteMsg].join(" ")},"\u5220\u9664"))),ae.createElement(Ae.Z,null,ae.createElement("span",{className:"c-grey-c ml10"},Ne()(ue.send_time).format("HH:mm")))))}))))),ae.createElement("aside",{className:"pl30 pr30 mb30 mt30"},ba?ae.createElement(Fe.default,{form:Fn},ae.createElement(Fe.default.Item,{name:"content"},ae.createElement(wt.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D",height:150,onChange:ue=>Kn(ue)})),ae.createElement(_e.Z,null,ae.createElement(Ae.Z,{flex:"1"},ae.createElement("span",{className:"c-red font14"},"\u5728\u95EE\u9898\u53CD\u9988\u65F6\uFF0C\u8BF7\u540C\u65F6\u53D1\u9001\u95EE\u9898\u53D1\u751F\u9875\u7684\u7F51\u5740\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u6211\u4EEC\u9AD8\u6548\u7684\u4E3A\u60A8\u670D\u52A1")),ae.createElement(Ae.Z,null,ae.createElement(nt.ZP,{loading:An,type:"primary",onClick:()=>fa()},"\u56DE\u590D")))):ae.createElement("p",{className:"c-red font14",style:{textAlign:"center"}},"\u4EC5\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u4F7F\u7528\u79C1\u4FE1\u529F\u80FD")),ae.createElement(vt.Z,null))};var Qt=(0,fe.connect)(({messages:Ze,loading:He,user:Re,globalSetting:rt})=>({messages:Ze,globalSetting:rt,user:Re,loading:He.effects}))(Tt),Dt=ge(15993),Ge=Object.defineProperty,pe=Object.defineProperties,he=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ut=(Ze,He,Re)=>He in Ze?Ge(Ze,He,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ze[He]=Re,lt=(Ze,He)=>{for(var Re in He||(He={}))$e.call(He,Re)&&ut(Ze,Re,He[Re]);if(Te)for(var Re of Te(He))at.call(He,Re)&&ut(Ze,Re,He[Re]);return Ze},Ft=(Ze,He)=>pe(Ze,he(He)),xt=(Ze,He)=>{var Re={};for(var rt in Ze)$e.call(Ze,rt)&&He.indexOf(rt)<0&&(Re[rt]=Ze[rt]);if(Ze!=null&&Te)for(var rt of Te(Ze))He.indexOf(rt)<0&&at.call(Ze,rt)&&(Re[rt]=Ze[rt]);return Re},Bt=(Ze,He,Re)=>new Promise((rt,At)=>{var Wt=Pt=>{try{Yt(Re.next(Pt))}catch(It){At(It)}},Ut=Pt=>{try{Yt(Re.throw(Pt))}catch(It){At(It)}},Yt=Pt=>Pt.done?rt(Pt.value):Promise.resolve(Pt.value).then(Wt,Ut);Yt((Re=Re.apply(Ze,He)).next())});const Et=Ze=>{var He=Ze,{messages:Re,globalSetting:rt,loading:At,user:Wt,dispatch:Ut}=He,Yt=xt(He,["messages","globalSetting","loading","user","dispatch"]),Pt;const[It,Gn]=(0,fe.useSearchParams)(),zt=(0,fe.useParams)(),{userInfo:hn}=Wt,{tidingsList:vn,privateMessageDetails:En}=Re,[Vn,Un]=(0,ae.useState)({per_page:20,page:1}),[An,Nn]=(0,ae.useState)({per_page:20,page:1}),[Rn,Kn]=(0,ae.useState)([]),[Xt,Fn]=(0,ae.useState)([]);(0,ae.useEffect)(()=>{Vn.page=1},[zt.userId]);const zn=()=>Bt(void 0,null,function*(){const bn=yield Ut({type:"messages/getPrivateMessageDetails",payload:Ft(lt({},zt),{target_id:It.get("target_ids")})});bn!=null&&bn.messages&&Kn(bn.messages)}),oa=()=>Bt(void 0,null,function*(){const bn=yield Ut({type:"messages/getPrivateMessages",payload:lt(lt({},zt),An)});bn!=null&&bn.private_messages&&Fn(bn.private_messages)});return ae.createElement("section",{className:ne.bg},ae.createElement("section",{className:"edu-container mt20"},ae.createElement(_e.Z,{gutter:[20,20]},ae.createElement(Dt.Z,null),ae.createElement(Ae.Z,{flex:"1"},ae.createElement("aside",{className:"bg-white"},ae.createElement("aside",{className:["font16",ne.topBar].join(" ")},ae.createElement(_e.Z,null,ae.createElement(Ae.Z,{flex:"30px",className:"tc"},ae.createElement(fe.Link,{to:`/messages/${zt.userId}/private_messages`,className:"iconfont icon-zuojiantou c-black pl10"})),ae.createElement(Ae.Z,{flex:"1",className:"tc"},(Pt=En==null?void 0:En.target)==null?void 0:Pt.name,"\u4E0E\u4F60\u7684\u79C1\u4FE1"),ae.createElement(Ae.Z,{flex:"290px",className:"tl"},ae.createElement("span",{className:"pl30"},"\u79C1\u4FE1\u5217\u8868")))),ae.createElement(_e.Z,null,ae.createElement(Ae.Z,{flex:"1"},ae.createElement(Qt,null)),ae.createElement(Ae.Z,{flex:"290px"},ae.createElement(se,null))))))))};var gn=(0,fe.connect)(({messages:Ze,loading:He,user:Re,globalSetting:rt})=>({messages:Ze,globalSetting:rt,user:Re,loading:He.effects}))(Et)},15993:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return E}});var ae=ge(59301),fe=ge(76560),_e=ge(20834),Ae=ge(44e3),Se=ge(43604),Ne=ge(90524),le={flex_box_center:"flex_box_center___cQVhO",flex_space_between:"flex_space_between___L36a6",flex_box_vertical_center:"flex_box_vertical_center___sIHwG",flex_box_center_end:"flex_box_center_end___OqNyE",flex_box_column:"flex_box_column___Ct7XG",userInfo:"userInfo____uyMZ",navInfo:"navInfo___acXs6",actived:"actived___WhZza",newTip:"newTip___Jdd6B"},ke=Object.defineProperty,ye=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,De=(z,ee,te)=>ee in z?ke(z,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):z[ee]=te,Ee=(z,ee)=>{for(var te in ee||(ee={}))Ie.call(ee,te)&&De(z,te,ee[te]);if(ye)for(var te of ye(ee))Oe.call(ee,te)&&De(z,te,ee[te]);return z},ne=(z,ee)=>{var te={};for(var oe in z)Ie.call(z,oe)&&ee.indexOf(oe)<0&&(te[oe]=z[oe]);if(z!=null&&ye)for(var oe of ye(z))ee.indexOf(oe)<0&&Oe.call(z,oe)&&(te[oe]=z[oe]);return te};const{SubMenu:a}=_e.default,{Sider:y,Content:x}=Ae.default,b=z=>{var ee=z,{messages:te,globalSetting:oe,loading:re,user:ie,dispatch:ce}=ee,se=ne(ee,["messages","globalSetting","loading","user","dispatch"]);const Fe=(0,fe.useParams)(),{userInfo:xe}=ie,nt=(0,fe.useLocation)(),{tidingsList:vt,privateMessage:kt,unreadInfo:ht}=te,[wt,_t]=(0,ae.useState)({per_page:10,page:1});(0,ae.useEffect)(()=>{cn()},[Fe.userId]);const cn=()=>{ce({type:"messages/unreadMessageInfo",payload:Ee(Ee({},wt),Fe)})};return ae.createElement(Se.Z,{flex:"264px"},ae.createElement("aside",{className:le.userInfo},ae.createElement("img",{className:"mt40",src:Ne.Z.IMG_SERVER+"/images/"+(xe==null?void 0:xe.image_url)}),ae.createElement("p",{className:"font24 mt10"},xe==null?void 0:xe.username),ae.createElement("p",{className:"mt20"},xe==null?void 0:xe.user_identity)),ae.createElement("ul",{className:le.navInfo},ae.createElement(fe.Link,{to:`/messages/${xe==null?void 0:xe.login}/user_tidings`},ae.createElement("li",{className:nt.pathname.indexOf("user_tidings")>-1&&le.actived},"\u6D88\u606F",!!(ht!=null&&ht.unread_tiding_count)&&ae.createElement("span",{className:le.newTip},ht==null?void 0:ht.unread_tiding_count))),ae.createElement(fe.Link,{to:`/messages/${xe==null?void 0:xe.login}/private_messages`},ae.createElement("li",{className:(nt.pathname.indexOf("private_messages")>-1||nt.pathname.indexOf("message_detail")>-1)&&le.actived},"\u79C1\u4FE1",!!(ht!=null&&ht.unread_message_count)&&ae.createElement("span",{className:le.newTip},ht==null?void 0:ht.unread_message_count)))))};var E=(0,fe.connect)(({messages:z,loading:ee,user:te,globalSetting:oe})=>({messages:z,globalSetting:oe,user:te,loading:ee.effects}))(b)},45818:function(Le,Ye,ge){"use strict";ge.d(Ye,{D:function(){return z},Z:function(){return oe}});var ae=ge(32855),fe=ge(59301),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ae=_e,Se=ge(7657),Ne=function(ie,ce){return fe.createElement(Se.Z,(0,ae.Z)({},ie,{ref:ce,icon:Ae}))},le=fe.forwardRef(Ne),ke=le,ye=ge(33853),Ie=ge(38819),Oe=ge(92310),De=ge.n(Oe),Ee=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ce={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(ce[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,se=Object.getOwnPropertySymbols(re);Fe<se.length;Fe++)ie.indexOf(se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(re,se[Fe])&&(ce[se[Fe]]=re[se[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:se,trigger:Fe,children:xe,defaultCollapsed:nt=!1,theme:vt="dark",style:kt={},collapsible:ht=!1,reverseArrow:wt=!1,width:_t=200,collapsedWidth:cn=80,zeroWidthTriggerStyle:qt,breakpoint:rn,onCollapse:en,onBreakpoint:fn}=re,xn=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:we}=(0,fe.useContext)(x.Gs),[Be,je]=(0,fe.useState)("collapsed"in re?re.collapsed:nt),[pt,Ue]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in re&&je(re.collapsed)},[re.collapsed]);const Lt=(Ge,pe)=>{"collapsed"in re||je(Ge),en==null||en(Ge,pe)},me=(0,fe.useRef)();me.current=Ge=>{Ue(Ge.matches),fn==null||fn(Ge.matches),Be!==Ge.matches&&Lt(Ge.matches,"responsive")},(0,fe.useEffect)(()=>{function Ge(he){return me.current(he)}let pe;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&rn&&rn in E){pe=he(`(max-width: ${E[rn]})`);try{pe.addEventListener("change",Ge)}catch(Te){pe.addListener(Ge)}Ge(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",Ge)}catch(he){pe==null||pe.removeListener(Ge)}}},[rn]),(0,fe.useEffect)(()=>{const Ge=ee("ant-sider-");return we.addSider(Ge),()=>we.removeSider(Ge)},[]);const Qe=()=>{Lt(!Be,"clickTrigger")},{getPrefixCls:Tt}=(0,fe.useContext)(y.E_),Qt=()=>{const Ge=Tt("layout-sider",ce),pe=(0,Ee.Z)(xn,["collapsed"]),he=Be?cn:_t,Te=a(he)?`${he}px`:String(he),$e=parseFloat(String(cn||0))===0?fe.createElement("span",{onClick:Qe,className:De()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${wt?"right":"left"}`),style:qt},Fe||fe.createElement(ke,null)):null,lt={expanded:wt?fe.createElement(Ie.Z,null):fe.createElement(ye.Z,null),collapsed:wt?fe.createElement(ye.Z,null):fe.createElement(Ie.Z,null)}[Be?"collapsed":"expanded"],Ft=Fe!==null?$e||fe.createElement("div",{className:`${Ge}-trigger`,onClick:Qe,style:{width:Te}},Fe||lt):null,xt=Object.assign(Object.assign({},kt),{flex:`0 0 ${Te}`,maxWidth:Te,minWidth:Te,width:Te}),Bt=De()(Ge,`${Ge}-${vt}`,{[`${Ge}-collapsed`]:!!Be,[`${Ge}-has-trigger`]:ht&&Fe!==null&&!$e,[`${Ge}-below`]:!!pt,[`${Ge}-zero-width`]:parseFloat(Te)===0},se);return fe.createElement("aside",Object.assign({className:Bt},pe,{style:xt,ref:ie}),fe.createElement("div",{className:`${Ge}-children`},xe),ht||pt&&$e?Ft:null)},Dt=fe.useMemo(()=>({siderCollapsed:Be}),[Be]);return fe.createElement(z.Provider,{value:Dt},Qt())})},44e3:function(Le,Ye,ge){"use strict";var ae=ge(84966),fe=ge(45818);const _e=ae.ZP;_e.Header=ae.h4,_e.Footer=ae.$_,_e.Content=ae.VY,_e.Sider=fe.Z,Ye.default=_e},84966:function(Le,Ye,ge){"use strict";ge.d(Ye,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ee},ZP:function(){return ee}});var ae=ge(3300),fe=ge(92310),_e=ge.n(fe),Ae=ge(2738),Se=ge(59301),Ne=ge(36355),le=ge(83116),ye=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ce,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:ce},[`${oe}-sider-zero-width-trigger`]:{color:se,background:ce,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ie=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ce,footerBg:se,triggerBg:Fe,headerHeight:xe,headerPadding:nt,headerColor:vt,footerPadding:kt,triggerHeight:ht,zeroTriggerHeight:wt,zeroTriggerWidth:_t,motionDurationMid:cn,motionDurationSlow:qt,fontSize:rn,borderRadius:en,bodyBg:fn,headerBg:xn,siderBg:we}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:fn,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:we,transition:`all ${cn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ht},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ht,color:ce,lineHeight:`${ht}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${cn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-_t,zIndex:1,width:_t,height:wt,color:ce,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:en,borderEndEndRadius:en,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_t,borderStartStartRadius:en,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:en}}}}},ye(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:xe,padding:nt,color:vt,lineHeight:`${xe}px`,background:xn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:kt,color:ie,fontSize:rn,background:se},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Oe=(0,le.Z)("Layout",te=>[Ie(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ce,controlHeightSM:se,marginXXS:Fe,colorTextLightSolid:xe,colorBgContainer:nt}=te,vt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${vt}px`,headerColor:ce,footerPadding:`${se}px ${vt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Fe*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:nt,lightTriggerBg:nt,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),De=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(te);ce<ie.length;ce++)oe.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ce])&&(re[ie[ce]]=te[ie[ce]]);return re};const Ee=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ce=>Se.forwardRef((Fe,xe)=>Se.createElement(ce,Object.assign({ref:xe,suffixCls:oe,tagName:re},Fe)))}const a=Se.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ce,tagName:se}=te,Fe=De(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=Se.useContext(Ne.E_),nt=xe("layout",re),[vt,kt]=Oe(nt),ht=ie?`${nt}-${ie}`:nt;return vt(Se.createElement(se,Object.assign({className:_e()(re||ht,ce,kt),ref:oe},Fe)))}),y=Se.forwardRef((te,oe)=>{const{direction:re}=Se.useContext(Ne.E_),[ie,ce]=Se.useState([]),{prefixCls:se,className:Fe,rootClassName:xe,children:nt,hasSider:vt,tagName:kt,style:ht}=te,wt=De(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_t=(0,Ae.Z)(wt,["suffixCls"]),{getPrefixCls:cn,layout:qt}=Se.useContext(Ne.E_),rn=cn("layout",se),[en,fn]=Oe(rn),xn=_e()(rn,{[`${rn}-has-sider`]:typeof vt=="boolean"?vt:ie.length>0,[`${rn}-rtl`]:re==="rtl"},qt==null?void 0:qt.className,Fe,xe,fn),we=Se.useMemo(()=>({siderHook:{addSider:Be=>{ce(je=>[].concat((0,ae.Z)(je),[Be]))},removeSider:Be=>{ce(je=>je.filter(pt=>pt!==Be))}}}),[]);return en(Se.createElement(Ee.Provider,{value:we},Se.createElement(kt,Object.assign({ref:oe,className:xn,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),ht)},_t),nt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Le,Ye,ge){"use strict";ge.d(Ye,{J:function(){return Ne}});var ae=ge(59301),fe=ge(33234),_e=ge(70425),Ae=function(le,ke){var ye={};for(var Ie in le)Object.prototype.hasOwnProperty.call(le,Ie)&&ke.indexOf(Ie)<0&&(ye[Ie]=le[Ie]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ie=Object.getOwnPropertySymbols(le);Oe<Ie.length;Oe++)ke.indexOf(Ie[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,Ie[Oe])&&(ye[Ie[Oe]]=le[Ie[Oe]]);return ye};const Se=ae.createContext(null),Ne=ae.forwardRef((le,ke)=>{const{children:ye}=le,Ie=Ae(le,["children"]),Oe=ae.useContext(Se),De=ae.useMemo(()=>Object.assign(Object.assign({},Oe),Ie),[Oe,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(Se.Provider,{value:De},ae.createElement(fe.BR,null,(0,_e.supportNodeRef)(ye)?ae.cloneElement(ye,{ref:ke}):ye))});Ye.Z=Se},20834:function(Le,Ye,ge){"use strict";ge.d(Ye,{default:function(){return Dt}});var ae=ge(15285),fe=ge(59301),_e=ge(45818),Ae=ge(92310),Se=ge.n(Ae),Ne=ge(36355),le=function(Ge,pe){var he={};for(var Te in Ge)Object.prototype.hasOwnProperty.call(Ge,Te)&&pe.indexOf(Te)<0&&(he[Te]=Ge[Te]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Te=Object.getOwnPropertySymbols(Ge);$e<Te.length;$e++)pe.indexOf(Te[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Te[$e])&&(he[Te[$e]]=Ge[Te[$e]]);return he},ye=Ge=>{const{prefixCls:pe,className:he,dashed:Te}=Ge,$e=le(Ge,["prefixCls","className","dashed"]),{getPrefixCls:at}=fe.useContext(Ne.E_),ut=at("menu",pe),lt=Se()({[`${ut}-item-divider-dashed`]:!!Te},he);return fe.createElement(ae.iz,Object.assign({className:lt},$e))},Ie=ge(11592),Oe=ge(2738),De=ge(6848),Ee=ge(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ge=>{var pe;const{className:he,children:Te,icon:$e,title:at,danger:ut}=Ge,{prefixCls:lt,firstLevel:Ft,direction:xt,disableMenuItemTitleTooltip:Bt,inlineCollapsed:Et}=fe.useContext(a),gn=Wt=>{const Ut=fe.createElement("span",{className:`${lt}-title-content`},Te);return(!$e||(0,Ee.l$)(Te)&&Te.type==="span")&&Te&&Wt&&Ft&&typeof Te=="string"?fe.createElement("div",{className:`${lt}-inline-collapsed-noicon`},Te.charAt(0)):Ut},{siderCollapsed:Ze}=fe.useContext(_e.D);let He=at;typeof at=="undefined"?He=Ft?Te:"":at===!1&&(He="");const Re={title:He};!Ze&&!Et&&(Re.title=null,Re.open=!1);const rt=(0,Ie.Z)(Te).length;let At=fe.createElement(ae.ck,Object.assign({},(0,Oe.Z)(Ge,["title","icon","danger"]),{className:Se()({[`${lt}-item-danger`]:ut,[`${lt}-item-only-child`]:($e?rt+1:rt)===1},he),title:typeof at=="string"?at:void 0}),(0,Ee.Tm)($e,{className:Se()((0,Ee.l$)($e)?(pe=$e.props)===null||pe===void 0?void 0:pe.className:"",`${lt}-item-icon`)}),gn(Et));return Bt||(At=fe.createElement(De.Z,Object.assign({},Re,{placement:xt==="rtl"?"left":"right",overlayClassName:`${lt}-inline-collapsed-tooltip`}),At)),At},E=Ge=>{var pe;const{popupClassName:he,icon:Te,title:$e,theme:at}=Ge,ut=fe.useContext(a),{prefixCls:lt,inlineCollapsed:Ft,theme:xt}=ut,Bt=(0,ae.Xl)();let Et;if(!Te)Et=Ft&&!Bt.length&&$e&&typeof $e=="string"?fe.createElement("div",{className:`${lt}-inline-collapsed-noicon`},$e.charAt(0)):fe.createElement("span",{className:`${lt}-title-content`},$e);else{const Ze=(0,Ee.l$)($e)&&$e.type==="span";Et=fe.createElement(fe.Fragment,null,(0,Ee.Tm)(Te,{className:Se()((0,Ee.l$)(Te)?(pe=Te.props)===null||pe===void 0?void 0:pe.className:"",`${lt}-item-icon`)}),Ze?$e:fe.createElement("span",{className:`${lt}-title-content`},$e))}const gn=fe.useMemo(()=>Object.assign(Object.assign({},ut),{firstLevel:!1}),[ut]);return fe.createElement(a.Provider,{value:gn},fe.createElement(ae.Wd,Object.assign({},(0,Oe.Z)(Ge,["icon"]),{title:Et,popupClassName:Se()(lt,he,`${lt}-${at||xt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(Ge,pe){var he={};for(var Te in Ge)Object.prototype.hasOwnProperty.call(Ge,Te)&&pe.indexOf(Te)<0&&(he[Te]=Ge[Te]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Te=Object.getOwnPropertySymbols(Ge);$e<Te.length;$e++)pe.indexOf(Te[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Te[$e])&&(he[Te[$e]]=Ge[Te[$e]]);return he};function ie(Ge){return(Ge||[]).map((pe,he)=>{if(pe&&typeof pe=="object"){const Te=pe,{label:$e,children:at,key:ut,type:lt}=Te,Ft=re(Te,["label","children","key","type"]),xt=ut!=null?ut:`tmp-${he}`;return at||lt==="group"?lt==="group"?fe.createElement(ae.BW,Object.assign({key:xt},Ft,{title:$e}),ie(at)):fe.createElement(E,Object.assign({key:xt},Ft,{title:$e}),ie(at)):lt==="divider"?fe.createElement(ye,Object.assign({key:xt},Ft)):fe.createElement(x,Object.assign({key:xt},Ft),$e)}return null}).filter(pe=>pe)}function ce(Ge){return fe.useMemo(()=>Ge&&ie(Ge),[Ge])}var se=ge(64993),Fe=ge(17313),xe=ge(8378),nt=ge(13826),vt=ge(29878),kt=ge(83116),ht=ge(37613),_t=Ge=>{const{componentCls:pe,motionDurationSlow:he,horizontalLineHeight:Te,colorSplit:$e,lineWidth:at,lineType:ut,itemPaddingInline:lt}=Ge;return{[`${pe}-horizontal`]:{lineHeight:Te,border:0,borderBottom:`${at}px ${ut} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:lt},[`> ${pe}-item:hover,
|
|
> ${pe}-item-active,
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},qt=Ge=>{let{componentCls:pe,menuArrowOffset:he}=Ge;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const rn=Ge=>Object.assign({},(0,Fe.oN)(Ge));var fn=(Ge,pe)=>{const{componentCls:he,itemColor:Te,itemSelectedColor:$e,groupTitleColor:at,itemBg:ut,subMenuItemBg:lt,itemSelectedBg:Ft,activeBarHeight:xt,activeBarWidth:Bt,activeBarBorderWidth:Et,motionDurationSlow:gn,motionEaseInOut:Ze,motionEaseOut:He,itemPaddingInline:Re,motionDurationMid:rt,itemHoverColor:At,lineType:Wt,colorSplit:Ut,itemDisabledColor:Yt,dangerItemColor:Pt,dangerItemHoverColor:It,dangerItemSelectedColor:Gn,dangerItemActiveBg:zt,dangerItemSelectedBg:hn,itemHoverBg:vn,itemActiveBg:En,menuSubMenuBg:Vn,horizontalItemSelectedColor:Un,horizontalItemSelectedBg:An,horizontalItemBorderRadius:Nn,horizontalItemHoverBg:Rn,popupBg:Kn}=Ge;return{[`${he}-${pe}, ${he}-${pe} > ${he}`]:{color:Te,background:ut,[`&${he}-root:focus-visible`]:Object.assign({},rn(Ge)),[`${he}-item-group-title`]:{color:at},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:$e}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${Yt} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:At}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:vn},"&:active":{backgroundColor:En}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:vn},"&:active":{backgroundColor:En}}},[`${he}-item-danger`]:{color:Pt,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:It}},[`&${he}-item:active`]:{background:zt}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:$e,[`&${he}-item-danger`]:{color:Gn},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:Ft,[`&${he}-item-danger`]:{backgroundColor:hn}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},rn(Ge))},[`&${he}-submenu > ${he}`]:{backgroundColor:Vn},[`&${he}-popup > ${he}`]:{backgroundColor:Kn},[`&${he}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:Nn,"&::after":{position:"absolute",insetInline:Re,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${gn} ${Ze}`,content:'""'},"&:hover, &-active, &-open":{background:Rn,"&::after":{borderBottomWidth:xt,borderBottomColor:Un}},"&-selected":{color:Un,backgroundColor:An,"&:hover":{backgroundColor:An},"&::after":{borderBottomWidth:xt,borderBottomColor:Un}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Et}px ${Wt} ${Ut}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:lt},[`${he}-item, ${he}-submenu-title`]:Et&&Bt?{width:`calc(100% + ${Et}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bt}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${rt} ${He}`,`opacity ${rt} ${He}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:Gn}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${rt} ${Ze}`,`opacity ${rt} ${Ze}`].join(",")}}}}}};const xn=Ge=>{const{componentCls:pe,itemHeight:he,itemMarginInline:Te,padding:$e,menuArrowSize:at,marginXS:ut,itemMarginBlock:lt}=Ge,Ft=$e+at+ut;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:Te,marginBlock:lt,width:`calc(100% - ${Te*2}px)`},[`> ${pe}-item,
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
${pe}-submenu-title`]:{paddingInlineEnd:Ft}}};var Be=Ge=>{const{componentCls:pe,iconCls:he,itemHeight:Te,colorTextLightSolid:$e,dropdownWidth:at,controlHeightLG:ut,motionDurationMid:lt,motionEaseOut:Ft,paddingXL:xt,itemMarginInline:Bt,fontSizeLG:Et,motionDurationSlow:gn,paddingXS:Ze,boxShadowSecondary:He,collapsedWidth:Re,collapsedIconSize:rt}=Ge,At={height:Te,lineHeight:`${Te}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},xn(Ge))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},xn(Ge)),{boxShadow:He})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:at,maxHeight:`calc(100vh - ${ut*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${gn}`,`background ${gn}`,`padding ${lt} ${Ft}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:At,[`& ${pe}-item-group-title`]:{paddingInlineStart:xt}},[`${pe}-item`]:At}},{[`${pe}-inline-collapsed`]:{width:Re,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${pe}-item,
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${Bt}px)`,textOverflow:"clip",[`
|
|
${pe}-submenu-arrow,
|
|
${pe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${pe}-item-icon, ${he}`]:{margin:0,fontSize:rt,lineHeight:`${Te}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:$e}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Ze})}}]};const je=Ge=>{const{componentCls:pe,motionDurationSlow:he,motionDurationMid:Te,motionEaseInOut:$e,motionEaseOut:at,iconCls:ut,iconSize:lt,iconMarginInlineEnd:Ft}=Ge;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${$e}`].join(","),[`${pe}-item-icon, ${ut}`]:{minWidth:lt,fontSize:lt,transition:[`font-size ${Te} ${at}`,`margin ${he} ${$e}`,`color ${he}`].join(","),"+ span":{marginInlineStart:Ft,opacity:1,transition:[`opacity ${he} ${$e}`,`margin ${he}`,`color ${he}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ut}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pt=Ge=>{const{componentCls:pe,motionDurationSlow:he,motionEaseInOut:Te,borderRadius:$e,menuArrowSize:at,menuArrowOffset:ut}=Ge;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:at,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${Te}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:at*.6,height:at*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${he} ${Te}`,`transform ${he} ${Te}`,`top ${he} ${Te}`,`color ${he} ${Te}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ut})`},"&::after":{transform:`rotate(-45deg) translateY(${ut})`}}}}},Ue=Ge=>{const{antCls:pe,componentCls:he,fontSize:Te,motionDurationSlow:$e,motionDurationMid:at,motionEaseInOut:ut,paddingXS:lt,padding:Ft,colorSplit:xt,lineWidth:Bt,zIndexPopup:Et,borderRadiusLG:gn,subMenuItemBorderRadius:Ze,menuArrowSize:He,menuArrowOffset:Re,lineType:rt,menuPanelMaskInset:At,groupTitleLineHeight:Wt,groupTitleFontSize:Ut}=Ge;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Ge)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Te,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${lt}px ${Ft}px`,fontSize:Ut,lineHeight:Wt,transition:`all ${$e}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${$e} ${ut}`,`background ${$e} ${ut}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${$e} ${ut}`,`background ${$e} ${ut}`,`padding ${at} ${ut}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${$e} ${ut}`,`padding ${$e} ${ut}`].join(",")},[`${he}-title-content`]:{transition:`color ${$e}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:rt,borderWidth:0,borderTopWidth:Bt,marginBlock:Bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),je(Ge)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${Te*2}px ${Ft}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:gn,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${At}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:At},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:gn},je(Ge)),pt(Ge)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:Ze},[`${he}-submenu-title::after`]:{transition:`transform ${$e} ${ut}`}})}}),pt(Ge)),{[`&-inline-collapsed ${he}-submenu-arrow,
|
|
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Re})`},"&::after":{transform:`rotate(45deg) translateX(-${Re})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${He*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Re})`},"&::before":{transform:`rotate(45deg) translateX(${Re})`}}})},{[`${pe}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var Lt=(Ge,pe)=>(0,kt.Z)("Menu",Te=>{if(pe===!1)return[];const{colorBgElevated:$e,colorPrimary:at,colorTextLightSolid:ut,controlHeightLG:lt,fontSize:Ft,darkItemColor:xt,darkDangerItemColor:Bt,darkItemBg:Et,darkSubMenuItemBg:gn,darkItemSelectedColor:Ze,darkItemSelectedBg:He,darkDangerItemSelectedBg:Re,darkItemHoverBg:rt,darkGroupTitleColor:At,darkItemHoverColor:Wt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:It}=Te,Gn=Ft/7*5,zt=(0,ht.TS)(Te,{menuArrowSize:Gn,menuHorizontalHeight:lt*1.15,menuArrowOffset:`${Gn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),hn=(0,ht.TS)(zt,{itemColor:xt,itemHoverColor:Wt,groupTitleColor:At,itemSelectedColor:Ze,itemBg:Et,popupBg:Et,subMenuItemBg:gn,itemActiveBg:"transparent",itemSelectedBg:He,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:rt,itemDisabledColor:Ut,dangerItemColor:Bt,dangerItemHoverColor:Yt,dangerItemSelectedColor:Pt,dangerItemActiveBg:It,dangerItemSelectedBg:Re,menuSubMenuBg:gn,horizontalItemSelectedColor:ut,horizontalItemSelectedBg:at});return[Ue(zt),_t(zt),Be(zt),fn(zt,"light"),fn(hn,"dark"),qt(zt),(0,xe.Z)(zt),(0,nt.oN)(zt,"slide-up"),(0,nt.oN)(zt,"slide-down"),(0,vt._y)(zt,"zoom-big")]},Te=>{const{colorPrimary:$e,colorError:at,colorTextDisabled:ut,colorErrorBg:lt,colorText:Ft,colorTextDescription:xt,colorBgContainer:Bt,colorFillAlter:Et,colorFillContent:gn,lineWidth:Ze,lineWidthBold:He,controlItemBgActive:Re,colorBgTextHover:rt,controlHeightLG:At,lineHeight:Wt,colorBgElevated:Ut,marginXXS:Yt,padding:Pt,fontSize:It,controlHeightSM:Gn,fontSizeLG:zt,colorTextLightSolid:hn,colorErrorHover:vn}=Te,En=new se.C(hn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Te.zIndexPopupBase+50,radiusItem:Te.borderRadiusLG,itemBorderRadius:Te.borderRadiusLG,radiusSubMenuItem:Te.borderRadiusSM,subMenuItemBorderRadius:Te.borderRadiusSM,colorItemText:Ft,itemColor:Ft,colorItemTextHover:Ft,itemHoverColor:Ft,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:Bt,itemBg:Bt,colorItemBgHover:rt,itemHoverBg:rt,colorItemBgActive:gn,itemActiveBg:Re,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:Re,itemSelectedBg:Re,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:He,activeBarHeight:He,colorActiveBarBorderSize:Ze,activeBarBorderWidth:Ze,colorItemTextDisabled:ut,itemDisabledColor:ut,colorDangerItemText:at,dangerItemColor:at,colorDangerItemTextHover:at,dangerItemHoverColor:at,colorDangerItemTextSelected:at,dangerItemSelectedColor:at,colorDangerItemBgActive:lt,dangerItemActiveBg:lt,colorDangerItemBgSelected:lt,dangerItemSelectedBg:lt,itemMarginInline:Te.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:At,groupTitleLineHeight:Wt,collapsedWidth:At*2,popupBg:Ut,itemMarginBlock:Yt,itemPaddingInline:Pt,horizontalLineHeight:`${At*1.15}px`,iconSize:It,iconMarginInlineEnd:Gn-It,collapsedIconSize:zt,groupTitleFontSize:It,darkItemDisabledColor:new se.C(hn).setAlpha(.25).toRgbString(),darkItemColor:En,darkDangerItemColor:at,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:hn,darkItemSelectedBg:$e,darkDangerItemSelectedBg:at,darkItemHoverBg:"transparent",darkGroupTitleColor:En,darkItemHoverColor:hn,darkDangerItemHoverColor:vn,darkDangerItemSelectedColor:hn,darkDangerItemActiveBg:at}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ge),me=function(Ge,pe){var he={};for(var Te in Ge)Object.prototype.hasOwnProperty.call(Ge,Te)&&pe.indexOf(Te)<0&&(he[Te]=Ge[Te]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Te=Object.getOwnPropertySymbols(Ge);$e<Te.length;$e++)pe.indexOf(Te[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Te[$e])&&(he[Te[$e]]=Ge[Te[$e]]);return he},Tt=(0,fe.forwardRef)((Ge,pe)=>{var he,Te;const $e=fe.useContext(oe.Z),at=$e||{},{getPrefixCls:ut,getPopupContainer:lt,direction:Ft,menu:xt}=fe.useContext(Ne.E_),Bt=ut(),{prefixCls:Et,className:gn,style:Ze,theme:He="light",expandIcon:Re,_internalDisableMenuItemTitleTooltip:rt,inlineCollapsed:At,siderCollapsed:Wt,items:Ut,children:Yt,rootClassName:Pt,mode:It,selectable:Gn,onClick:zt,overflowedIndicatorPopupClassName:hn}=Ge,vn=me(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),En=(0,Oe.Z)(vn,["collapsedWidth"]),Vn=ce(Ut)||Yt;(he=at.validator)===null||he===void 0||he.call(at,{mode:It});const Un=(0,ee.useEvent)(function(){var $n;zt==null||zt.apply(void 0,arguments),($n=at.onClick)===null||$n===void 0||$n.call(at)}),An=at.mode||It,Nn=Gn!=null?Gn:at.selectable,Rn=fe.useMemo(()=>Wt!==void 0?Wt:At,[At,Wt]),Kn={horizontal:{motionName:`${Bt}-slide-up`},inline:(0,te.Z)(Bt),other:{motionName:`${Bt}-zoom-big`}},Xt=ut("menu",Et||at.prefixCls),[Fn,zn]=Lt(Xt,!$e),oa=Se()(`${Xt}-${He}`,xt==null?void 0:xt.className,gn);let bn;if(typeof Re=="function")bn=Re;else if(Re===null||Re===!1)bn=null;else if(at.expandIcon===null||at.expandIcon===!1)bn=null;else{const $n=Re!=null?Re:at.expandIcon;bn=(0,Ee.Tm)($n,{className:Se()(`${Xt}-submenu-expand-icon`,(0,Ee.l$)($n)?(Te=$n.props)===null||Te===void 0?void 0:Te.className:"")})}const va=fe.useMemo(()=>({prefixCls:Xt,inlineCollapsed:Rn||!1,direction:Ft,firstLevel:!0,theme:He,mode:An,disableMenuItemTitleTooltip:rt}),[Xt,Rn,Ft,rt,He]);return Fn(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:va},fe.createElement(ae.ZP,Object.assign({getPopupContainer:lt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Xt,`${Xt}-${He}`,hn),mode:An,selectable:Nn,onClick:Un},En,{inlineCollapsed:Rn,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Ze),className:oa,prefixCls:Xt,direction:Ft,defaultMotions:Kn,expandIcon:bn,ref:pe,rootClassName:Se()(Pt,zn)}),Vn))))});const Qt=(0,fe.forwardRef)((Ge,pe)=>{const he=(0,fe.useRef)(null),Te=fe.useContext(_e.D);return(0,fe.useImperativeHandle)(pe,()=>({menu:he.current,focus:$e=>{var at;(at=he.current)===null||at===void 0||at.focus($e)}})),fe.createElement(Tt,Object.assign({ref:he},Ge,Te))});Qt.Item=x,Qt.SubMenu=E,Qt.Divider=ye,Qt.ItemGroup=ae.BW;var Dt=Qt},8224:function(Le,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return fe}});var ae=ge(4676);function fe(_e,Ae,Se,Ne){var le=ae.unstable_batchedUpdates?function(ye){ae.unstable_batchedUpdates(Se,ye)}:Se;return _e!=null&&_e.addEventListener&&_e.addEventListener(Ae,le,Ne),{remove:function(){_e!=null&&_e.removeEventListener&&_e.removeEventListener(Ae,le,Ne)}}}},55468:function(Le,Ye,ge){"use strict";ge.d(Ye,{g1:function(){return Oe},os:function(){return Ee}});var ae=/margin|padding|width|height|max|min|offset/,fe={left:!0,top:!0},_e={cssFloat:1,styleFloat:1,float:1};function Ae(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function Se(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in fe||(fe[a]=ae.test(a)),fe[a]?parseFloat(y)||0:y}function Ne(ne,a){var y=arguments.length,x=Ae(ne);return a=_e[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?x:Se(ne,a,x[a]||ne.style[a])}function le(ne,a,y){var x=arguments.length;if(a=_e[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&ae.test(a)&&(y="".concat(y,"px")),ne.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&le(ne,b,a[b]);return Ae(ne)}function ke(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function ye(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function Ie(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:a}}function Oe(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function De(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ee(ne){var a=ne.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)}}},51581:function(Le,Ye,ge){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ae=function(){function De(Ee,ne){for(var a=0;a<ne.length;a++){var y=ne[a];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(Ee,y.key,y)}}return function(Ee,ne,a){return ne&&De(Ee.prototype,ne),a&&De(Ee,a),Ee}}(),fe=ge(59301),_e=Ne(fe),Ae=ge(12708),Se=Ne(Ae);function Ne(De){return De&&De.__esModule?De:{default:De}}function le(De,Ee){var ne={};for(var a in De)Ee.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(De,a)&&(ne[a]=De[a]);return ne}function ke(De,Ee){if(!(De instanceof Ee))throw new TypeError("Cannot call a class as a function")}function ye(De,Ee){if(!De)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee&&(typeof Ee=="object"||typeof Ee=="function")?Ee:De}function Ie(De,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ee);De.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:De,enumerable:!1,writable:!0,configurable:!0}}),Ee&&(Object.setPrototypeOf?Object.setPrototypeOf(De,Ee):De.__proto__=Ee)}var Oe=function(De){Ie(Ee,De);function Ee(ne){ke(this,Ee);var a=ye(this,(Ee.__proto__||Object.getPrototypeOf(Ee)).call(this,ne));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return ae(Ee,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,y={get passive(){a=!0}};try{document.addEventListener("test",null,y),document.removeEventListener("test",null,y)}catch(x){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var y=this.props.getScrollParent&&this.props.getScrollParent();return y!=null?y:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!a)){var y=window;this.props.useWindow===!1&&(y=a),y.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),y.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,y=window,x=this.getParentElement(a),b=void 0;if(this.props.useWindow){var E=document.documentElement||document.body.parentNode||document.body,z=y.pageYOffset!==void 0?y.pageYOffset:E.scrollTop;this.props.isReverse?b=z:b=this.calculateOffset(a,z)}else this.props.isReverse?b=x.scrollTop:b=a.scrollHeight-x.scrollTop-x.clientHeight;b<Number(this.props.threshold)&&a&&a.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=x.scrollHeight,this.beforeScrollTop=x.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(a,y){return a?this.calculateTopPosition(a)+(a.offsetHeight-y-window.innerHeight):0}},{key:"calculateTopPosition",value:function(a){return a?a.offsetTop+this.calculateTopPosition(a.offsetParent):0}},{key:"render",value:function(){var a=this,y=this.filterProps(this.props),x=y.children,b=y.element,E=y.hasMore,z=y.initialLoad,ee=y.isReverse,te=y.loader,oe=y.loadMore,re=y.pageStart,ie=y.ref,ce=y.threshold,se=y.useCapture,Fe=y.useWindow,xe=y.getScrollParent,nt=le(y,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);nt.ref=function(kt){a.scrollComponent=kt,ie&&ie(kt)};var vt=[x];return E&&(te?ee?vt.unshift(te):vt.push(te):this.defaultLoader&&(ee?vt.unshift(this.defaultLoader):vt.push(this.defaultLoader))),_e.default.createElement(b,nt,vt)}}]),Ee}(fe.Component);Oe.propTypes={children:Se.default.node.isRequired,element:Se.default.node,hasMore:Se.default.bool,initialLoad:Se.default.bool,isReverse:Se.default.bool,loader:Se.default.node,loadMore:Se.default.func.isRequired,pageStart:Se.default.number,ref:Se.default.func,getScrollParent:Se.default.func,threshold:Se.default.number,useCapture:Se.default.bool,useWindow:Se.default.bool},Oe.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Ye.default=Oe,Le.exports=Ye.default},26724:function(Le,Ye,ge){Le.exports=ge(51581)}}]);
|