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.
121 lines
355 KiB
121 lines
355 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6904],{26227:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return _e}});var ae=ge(54476),Te=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ne=Ke,ve=ge(7657),we=function(ze,dt){return Te.createElement(ve.Z,(0,ae.Z)({},ze,{ref:dt,icon:Ne}))},se=Te.forwardRef(we),_e=se},41464:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return _e}});var ae=ge(54476),Te=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ne=Ke,ve=ge(7657),we=function(ze,dt){return Te.createElement(ve.Z,(0,ae.Z)({},ze,{ref:dt,icon:Ne}))},se=Te.forwardRef(we),_e=se},61481:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return _e}});var ae=ge(54476),Te=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ne=Ke,ve=ge(7657),we=function(ze,dt){return Te.createElement(ve.Z,(0,ae.Z)({},ze,{ref:dt,icon:Ne}))},se=Te.forwardRef(we),_e=se},14547:function(be,at){"use strict";at.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52626:function(){"use strict"},61159:function(){"use strict";function be(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(be.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(be.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(be.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var at=[];function ge(te,a){var y=at.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=at.pop();return te===void 0?new go.Point:te}function Te(te){at.push(te)}function Ke(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,re=b-z,ie=NaN,fe=NaN;if(oe===0)if(re===0)te===y&&(ie=te,fe=a);else{var ce=(x-ee)/re,Be=x-ce*b;ie=te,fe=ce*ie+Be}else if(re===0){var Ce=(a-E)/oe,Xe=a-Ce*te;ie=b,fe=Ce*ie+Xe}else{var Ce=(a-E)/oe,ce=(x-ee)/re,Xe=a-Ce*te,Be=x-ce*b;ie=(Be-Xe)/(Ce-ce),fe=Ce*ie+Xe}return ne.x=ie,ne.y=fe,ne}function Ne(te,a,y,E,b,x,z,ee,ne,oe,re,ie,fe,ce){var Be=1-ne,Ce=ne,Xe=te*Be+y*Ce,wt=a*Be+E*Ce,Ft=y*Be+b*Ce,tn=E*Be+x*Ce,nn=b*Be+z*Ce,bt=x*Be+ee*Ce,Nt=Xe*Be+Ft*Ce,Tt=wt*Be+tn*Ce,Et=Ft*Be+nn*Ce,dn=tn*Be+bt*Ce,kn=Nt*Be+Et*Ce,hn=Tt*Be+dn*Ce;oe.x=Xe,oe.y=wt,re.x=Nt,re.y=Tt,ie.x=kn,ie.y=hn,fe.x=Et,fe.y=dn,ce.x=nn,ce.y=bt}var ve=new go.Spot(.156,.156),we=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*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(te,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ve,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,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(te,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(te,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(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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&&x.setSpots(b/a,0,(a-b)/a,1),x}});var _e=[];function Ue(){var te=_e.pop();return te===void 0?[]:te}function ze(te){te.length=0,_e.push(te)}function dt(te){for(var a=Ue(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<te;z++)x=2*Math.PI/te*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ve(te){var a=Je(te),y=Ue();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return ze(a),y}function Je(te){for(var a=dt(te),y=Ue(),E=Math.floor(a.length/2),b=a.length-1,x=te%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],ze(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=dt(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(te,a,y){var E=dt(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(te,a,y){var E=dt(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(te,a,y){var E=dt(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(te,a,y){var E=dt(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(te,a,y){var E=dt(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(te,a,y){var E=dt(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(te,a,y){var E=Je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(te,a,y){var E=Je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(te,a,y){var E=Je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(te,a,y){var E=Je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(te,a,y){var E=Je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(te,a,y){var E=Je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ze(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(te,a,y){var E=Ve(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(te,a,y){var E=Ve(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(te,a,y){var E=Ve(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(te,a,y){var E=Ve(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(te,a,y){var E=Ve(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(te,a,y){var E=Ve(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),ze(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,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,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,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())),x.spot1=ve,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,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(te,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=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,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(te,a,y){var E=se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.parameter1:NaN;if((isNaN(E)||E<0)&&(E=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 x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,re=new go.PathFigure(ne,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.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 x=.2,z=.3,ee=0,ne=x*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.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 x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.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+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(te,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=se*.4;var oe=ae(),re=ae(),ie=ae(),fe=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ie,fe,fe);var ce=ae(),Be=ae(),Ce=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,fe,fe,Ce,ce,Be);var Xe=ae(),wt=ae(),Ft=ae();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Xe,wt,Ft,fe,fe);var tn=ae(),nn=ae(),bt=ae();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,fe,fe,bt,tn,nn),ne.add(new go.PathSegment(go.PathSegment.Move,bt.x*a,bt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,tn.x*a,tn.y*y,nn.x*a,nn.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,bt.x*a,bt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Ft.x*a,Ft.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,Be.x*a,Be.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ft.x*a,Ft.y*y,Xe.x*a,Xe.y*y,wt.x*a,wt.y*y).close()),Te(oe),Te(re),Te(ie),Te(fe),Te(ce),Te(Be),Te(Ce),Te(Xe),Te(wt),Te(Ft),Te(tn),Te(nn),Te(bt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.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(te,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(te,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),re=ae(),ie=ae(),fe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ie,oe,ne,ne),fe.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 ce=ge(oe.x,oe.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,re,ie);var Be=ge(oe.x,oe.y);fe.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),fe.add(new go.PathSegment(go.PathSegment.Line,a,0)),fe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),fe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),fe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=se*.35;var Ce=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var Xe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Xe),Te(ne),Te(oe),Te(re),Te(ie),Te(ce),Te(Be),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(te,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(te,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(te,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(te,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(te,a,y){var E=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 E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(re.x,re.y),Te(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(re.x,re.y),Te(re),ne}),go.Shape.defineFigureGenerator("Chevron",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ke(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(0,.9*y,!0);return E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.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 x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.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 x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.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 x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.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 x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.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 x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,ne=.5,oe=.1,re=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var ie=.05,fe=se*ie;ne=.05,oe=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+fe)*a,(oe-ie)*y,(ne+ie)*a,(oe-fe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,fe=se*ie,ne=.825,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-fe)*y,(ne+fe)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-fe)*a,(oe-ie)*y,(ne-ie)*a,(oe-fe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,fe=se*ie,ne=.5,oe=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-fe)*y,(ne+fe)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-fe)*a,(oe-ie)*y,(ne-ie)*a,(oe-fe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,fe=se*ie,ne=.175,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-fe)*y,(ne+fe)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-fe)*a,(oe-ie)*y,(ne-ie)*a,(oe-fe)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,fe=se*ie,ne=.05,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-fe)*y,(ne-fe)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.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 x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Database",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*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+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*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+x)*a,0,a,(.2-x)*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+x)*y,(.8+x)*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-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.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 x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);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());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.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 x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.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 x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.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 x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.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 E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var 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,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Process",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.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 E.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)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(te,a,y){var E=new go.Geometry,b=se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inverter",function(te,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*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-x)*y));var ie=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Resistor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inductor",function(te,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(te,a,y){var E=new go.Geometry,b=se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Diode",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.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)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(te,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,ne=0,oe=.5,re=(b-a)/2,ie=(x-y)/2,fe=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var ce=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var Be=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,ne=.8,oe=.5;var Ce=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ne=1,oe=.5;var Xe=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.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 x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(te,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),re=ae(),ie=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,re,ie);var fe=ge(oe.x,oe.y),ce=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*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+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=se*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,re,ie),ce.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 ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Te(ne),Te(oe),Te(re),Te(ie),Te(fe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.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()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FireHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.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()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(te,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,fe=.5,ce=0,Be=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(fe+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.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 x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,fe=z,ce=z,Be=re*fe,Ce=re*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-fe)*a,ne*y,(ee-(Be+fe)/2)*a,(ne+(ce+Ce)/2)*y,(ee-fe)*a,(ne+Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-fe)*a,(ne-Ce)*y,(ee-Be)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+fe)*a,ne*y,(ee+Be)*a,(ne-ce)*y,(ee+fe)*a,(ne-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+fe)*a,(ne+Ce)*y,(ee+(Be+fe)/2)*a,(ne+(ce+Ce)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Xe=new go.PathFigure(.2*a,y,!1);E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var wt=new go.PathFigure(.8*a,y,!1);return E.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.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 x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Caution",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.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 x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*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)),E}),go.Shape.defineFigureGenerator("Recycle",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.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 x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Package",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.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 x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.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 x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.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 x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Workcell",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Supermarket",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,ne=.2,oe=.9,re=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Forklift",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=se*.1,re=.1,ie=.9,fe=new go.PathFigure((re-ne)*a,ie*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),ne=.1,oe=se*.1,re=.4,ie=.9;var ce=new go.PathFigure((re-ne)*a,ie*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.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 x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=se*.05,fe=.175,ce=.95,ee=new go.PathFigure((fe-re)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-re)*y,(fe-re)*a,(ce-ie)*y,(fe-ie)*a,(ce-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(fe+re)*a,ce*y,(fe+ie)*a,(ce-re)*y,(fe+re)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+re)*y,(fe+re)*a,(ce+ie)*y,(fe+ie)*a,(ce+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(fe-re)*a,ce*y,(fe-ie)*a,(ce+re)*y,(fe-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,fe=.375,ce=.95,ne=new go.PathFigure((fe-re)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-re)*y,(fe-re)*a,(ce-ie)*y,(fe-ie)*a,(ce-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(fe+re)*a,ce*y,(fe+ie)*a,(ce-re)*y,(fe+re)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+re)*y,(fe+re)*a,(ce+ie)*y,(fe+ie)*a,(ce+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(fe-re)*a,ce*y,(fe-ie)*a,(ce+re)*y,(fe-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,fe=.625,ce=.95,oe=new go.PathFigure((fe-re)*a,ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-re)*y,(fe-re)*a,(ce-ie)*y,(fe-ie)*a,(ce-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(fe+re)*a,ce*y,(fe+ie)*a,(ce-re)*y,(fe+re)*a,(ce-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+re)*y,(fe+re)*a,(ce+ie)*y,(fe+ie)*a,(ce+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(fe-re)*a,ce*y,(fe-ie)*a,(ce+re)*y,(fe-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,fe=.825,ce=.95,Be=new go.PathFigure((fe-re)*a,ce*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce-re)*y,(fe-re)*a,(ce-ie)*y,(fe-ie)*a,(ce-re)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(fe+re)*a,ce*y,(fe+ie)*a,(ce-re)*y,(fe+re)*a,(ce-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ce+re)*y,(fe+re)*a,(ce+ie)*y,(fe+ie)*a,(ce+re)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(fe-re)*a,ce*y,(fe-ie)*a,(ce+re)*y,(fe-re)*a,(ce+ie)*y).close());var Ce=new go.PathFigure(0,y,!1);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=se*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-ne)*y,(oe-ne)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ne)*a,(re-ee)*y,(oe+ee)*a,(re-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ne)*y,(oe+ne)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ne)*a,(re+ee)*y,(oe-ee)*a,(re+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Globe",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Wave",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Operator",function(te,a,y){var E=new go.Geometry,b=.3,x=se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Battery",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Help",function(te,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*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)),E}),go.Shape.defineFigureGenerator("Location",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Map",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Eject",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.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 x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.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()),E}),go.Shape.defineFigureGenerator("5Bars",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.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 x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Key",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FilmTape",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.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 x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(te,a,y){var E=new go.Geometry,b=8,x=b*se,z=new go.PathFigure(b,0,!1);E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.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()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.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 x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.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 x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(te,a,y){var E=new go.Geometry,b=15,x=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),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()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.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()),E}),go.Shape.defineFigureGenerator("Drink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.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 x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),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")},97393:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var be={},at="5.0",ge={},ae=null,Te=!1,Ke=!1,Ne=null,ve=!1,we=null,se=null,_e=0;_e<arguments.length;_e++){var Ue=arguments[_e];if(Ue!==null)switch(typeof Ue){case"number":at=Ue.toFixed(1);break;case"string":Ue.match(new RegExp("^[0-9]\\.[0-9]+$"))?at=Ue:Ne=Ue;break;case"object":typeof Ue.is3D!="undefined"?ae=Ue:ge=Ue;break;case"boolean":Te=Ue,Ke=!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&&!Ke&&(Te=!0)),Ne!==null&&ge.id===void 0&&(ge.id=Ne);var ze="",dt="",Ve=!1,Je=null,te=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ne=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};be.setHTML5Codebase=function(pe,De){se=pe,dn(pe,De)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(pe,De){var Fe=parseFloat(pe);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}we=pe,Et(pe,De)},be.getHTML5CodebaseVersion=function(){return te},be.getParameters=function(){return ge},be.setFontsCSSURL=function(pe){z=pe},be.setGiacJSURL=function(pe){},be.setJNLPFile=function(pe){ze=pe},be.setJNLPBaseDir=function(pe){},be.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",Fe=ge.id,He,Ee=!1,Qe=0;Qe<arguments.length;Qe++){var de=arguments[Qe];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?De=de:Fe=arguments[Qe]):typeof de=="boolean"?Ee=de:de instanceof HTMLElement&&(He=de)}We();function We(){if(!ve){setTimeout(We,200);return}De=Nt(De);var ft=He||document.getElementById(Fe);if(!ft){console.log("possibly bug on ajax loading? ");return}if(be.removeExistingApplet(ft,!1),ge.width===void 0&&ft.clientWidth&&(ge.width=ft.clientWidth),ge.height===void 0&&ft.clientHeight&&(ge.height=ft.clientHeight),!(ge.width&&ge.height)&&De==="html5"&&(delete ge.width,delete ge.height),Je=De,De==="screenshot")wt(ft,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||pe())&&re()),_t?(Je="screenshot",tn(ft,ge,Ee,De)):Xe(ft,ge,Ee)}}};function oe(){try{return window.self!==window.top}catch(pe){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}be.getViews=function(){return ae},be.isJavaInstalled=function(){return!1};var ie=function(pe){var De=function(Qe){var de=JSON.parse(Qe),We=function(St){return St.type=="G"||St.type=="E"},ft=de.elements?de.elements.filter(We)[0]:de;if(!ft||!ft.url){Fe();return}ge.fileName=ft.url,fe(ft.settings||{}),ae.is3D=!0;var _t="https://www.geogebra.org/images/";be.setPreviewImage(E||ft.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),pe()},Fe=function(){ge.onError&&ge.onError(),kn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},He=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ee="/materials/"+ge.material_id+"?scope=basic";ce("https://"+He+"/api/proxy.php?path="+encodeURIComponent(Ee),De,Fe)};function fe(pe){var De=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){pe[Fe]=!!pe[Fe]}),De.forEach(function(Fe){ge[Fe]===void 0&&pe[Fe]!==void 0&&(ge[Fe]=pe[Fe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ce(pe,De,Fe){var He=new XMLHttpRequest;He.open("GET",pe),He.onload=function(){De(He.responseText)},He.onerror=Fe,He.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Je},be.setPreviewImage=function(pe,De,Fe){E=pe,b=De,x=Fe},be.removeExistingApplet=function(pe,De){var Fe;typeof pe=="string"&&(pe=document.getElementById(pe)),Je=null;var He=null;for(Fe=0;Fe<pe.childNodes.length;Fe++){var Ee=pe.childNodes[Fe],Qe=Ee.className;Qe==="applet_screenshot"?De?(Ee.style.display="block",Je="screenshot"):Ee.style.display="none":Qe!=="applet_scaler prerender"&&(pe.removeChild(Ee),He=Qe&&Qe.indexOf("appletParameters")!=-1?Ee.id:null,Fe--)}var de=ge.id!==void 0?ge.id:He,We=window[de];We&&typeof We.getBase64=="function"&&(We.remove(),window[de]=null)},be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=be.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var pe=be.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},be.stopAnimation=function(){var pe=be.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},be.getAppletObject=function(){var pe=ge.id!==void 0?ge.id:"ggbApplet";return window[pe]},be.resize=function(){};var Be=function(pe,De,Fe){var He=document.createElement("param");He.setAttribute("name",De),He.setAttribute("value",Fe),pe.appendChild(He)},Ce=function(pe){return pe&&pe!=="false"},Xe=function(pe,De,Fe){ne(te)<=4.2&&(Fe=!0);var He=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(He=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ee=document.createElement("div");Ee.classList.add("appletParameters","notranslate");var Qe=De.width,de=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(ne(te)<=4.4)Ce(De.showToolBar)&&(De.height-=7),Ce(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Ce(De.showToolBar)&&(De.width=605,Qe=605);else{var We=100;(Ce(De.showToolBar)||Ce(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),We=Ce(De.showMenuBar)?245:155),Qe<We&&(De.width=We,Qe=We)}Ee.style.border="none",Ee.style.display="inline-block";for(var ft in De)De.hasOwnProperty(ft)&&ft!=="appletOnLoad"&&Ee.setAttribute("data-param-"+ft,De[ft]);z&&Ee.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(pe,De)},window.addEventListener("resize",function(Jt){be.resize()});var _t=typeof De.appletOnLoad=="function"?De.appletOnLoad:function(){};if(!Fe&&De.width!==void 0){De.hasOwnProperty("showSplash")||Ee.setAttribute("data-param-showSplash","false");var St=pe.querySelector(".applet_scaler.prerender"),Yt=St!==null;if(Yt)var Ct=St.querySelector(".ggb_preview");else{var Ct=bt(Qe,de,De.borderColor,!1);St=document.createElement("div"),St.className="applet_scaler",St.style.position="relative",St.style.display="block",St.style.width=Qe+"px",St.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(St,"66%"),ne(te)>=5?(De.appletOnLoad=function(Jt){var Nn=pe.querySelector(".ggb_preview");Nn&&Nn.parentNode.removeChild(Nn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(St),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(Jt)},Yt||St.appendChild(Ct)):Ee.appendChild(Ct),St.appendChild(Ee),Yt||pe.appendChild(St),setTimeout(function(){be.resize()},1)}else{var kt=document.createElement("div");kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.appendChild(Ee),pe.appendChild(kt),De.appletOnLoad=function(Jt){be.resize(),_t(Jt)}}function Mn(Jt,Nn){Nn&&typeof Nn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Jt,Nn.appletOnLoad):renderGGBElement(Jt),kn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nn)}function $t(Jt,Nn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Jt,params:Nn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ca){Mn(ca.article,ca.params)}),html5AppletsToProcess=null)},ne(te)<5&&(Jt.className+=" geogebraweb")):Mn(Jt,Nn)}if(He){scriptLoadStarted=!0;for(var It=0;It<Ee.childNodes.length;It++){var Bn=Ee.childNodes[It].tagName;Bn==="TABLE"&&(Ee.removeChild(Ee.childNodes[It]),It--)}if(ggbHTML5LoadedScript!==null){var pn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');pn!=null&&pn.parentNode.removeChild(pn)}var zn=document.createElement("script"),ln=function(){$t(Ee,De)};zn.src=dt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=zn.src,kn("GeoGebra HTML5 codebase loaded: '"+dt+"'.",De),!se&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ln()):dt.requirejs?__webpack_require__.e(8542).then(function(){var Jt=[__webpack_require__(28542)];ln.apply(null,Jt)}.bind(this)).catch(__webpack_require__.oe):(zn.onload=ln,pe.appendChild(zn))}else $t(Ee,De);De.height=de,De.width=Qe},wt=function(pe,De,Fe){var He=bt(De.width,De.height,De.borderColor,Fe),Ee=document.createElement("div");Ee.style.position="relative",Ee.style.display="block",Ee.style.width=De.width+"px",Ee.style.height=De.height+"px",Ee.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),Ee.appendChild(He);var Qe=GGBAppletUtils.getScale(De,pe,Fe);Fe?(pe.appendChild(nn()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ee,"66%"),pe.appendChild(Ee),Qe!==1&&!isNaN(Qe)&&(GGBAppletUtils.scaleElement(Ee,Qe),Ee.style.width=De.width+"px",Ee.style.height=De.height+"px",Ee.parentNode.style.width=De.width*Qe+"px",Ee.parentNode.style.height=De.height*Qe+"px"),be.resize=function(){Ft(pe,He,Ee,Fe)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function Ft(pe,De,Fe,He){if(pe.contains(De)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var Ee=GGBAppletUtils.getScale(ge,pe,He);Fe.parentNode!==null&&(!isNaN(Ee)&&Ee!==1?(GGBAppletUtils.scaleElement(Fe,Ee),Fe.parentNode.style.width=ge.width*Ee+"px",Fe.parentNode.style.height=ge.height*Ee+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=ge.width+"px",Fe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}be.onExitFullscreen=function(pe,De){De.appendChild(pe)};var tn=function(pe,De,Fe,He){wt(pe,De,!0);for(var Ee=function(){var We=[];for(de=0;de<pe.childNodes.length;de++)We.push(pe.childNodes[de]);if(window.GGBT_wsf_view){var ft=window.GGBT_wsf_view.renderFullScreen(pe,De.id),_t=document.getElementById("fullscreencontainer"),St=jQuery(pe).find(".fullscreencontent");St.length>0?(ft.remove(),St.attr("id","fullscreencontent").show(),jQuery(_t).append(St),window.dispatchEvent(new Event("resize"))):Xe(ft,De,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Je=He,Xe(pe,De,!1);if(!window.GGBT_wsf_view)for(de=0;de<We.length;de++)pe.removeChild(We[de])},Qe=pe.getElementsByClassName("ggb_preview_play"),de=0;de<Qe.length;de++)Qe[de].addEventListener("click",Ee,!1),Qe[de].addEventListener("ontouchstart",Ee,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},nn=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var De='.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");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=De:Fe.appendChild(document.createTextNode(De)),document.getElementsByTagName("head")[0].appendChild(Fe)}return pe},bt=function(pe,De,Fe,He){var Ee=document.createElement("div");Ee.className="ggb_preview",Ee.style.position="absolute",Ee.style.zIndex="90",Ee.style.width=pe-2+"px",Ee.style.height=De-2+"px",Ee.style.top="0px",Ee.style.left="0px",Ee.style.overflow="hidden",Ee.style.backgroundColor="white";var Qe="lightgrey";Fe!==void 0&&(Fe==="none"?Qe="transparent":Qe=Fe),Ee.style.border="1px solid "+Qe;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var We,ft,_t;if(!He){We=document.createElement("img"),We.style.position="absolute",We.style.zIndex="1001",We.style.opacity=1,de.style.opacity=.3,ft=360,ft>pe/4*3&&(ft=pe/4*3),_t=ft/5.8,We.setAttribute("src",b),We.setAttribute("width",ft),We.setAttribute("height",_t);var St=(pe-ft)/2,Yt=(De-_t)/2;We.style.left=St+"px",We.style.top=Yt+"px",Ee.appendChild(We)}}return Ee.appendChild(de),Ee},Nt=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},Tt=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(pe,De){if(te=pe,De){dn(te,!0);return}var Fe=!Te;if(Fe){var He=ne(te);!isNaN(He)&&He<4.4&&(Fe=!1)}var Ee,Qe;window.location.protocol.substr(0,4)==="http"?Ee=window.location.protocol:Ee="http:";var de=te.indexOf("//");de>0?Qe=te:de===0?Qe=Ee+te:Qe="https://www.geogebra.org/apps/5.2.814.0/";for(var We in Tt)if(te.slice(Tt[We].length*-1)===Tt[We]||te.slice((Tt[We].length+1)*-1)===Tt[We]+"/"){dn(Qe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ce(ge.showToolBar)&&!Ce(ge.showMenuBar)&&!Ce(ge.showAlgebraInput)&&!Ce(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?Qe+="webSimple/":Qe+="web3d/",dn(Qe,!1)},dn=function(pe,De){if(pe.requirejs){dt=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),dt=pe,De===null&&(De=pe.indexOf("http")===-1),Ve=De,a="web.nocache.js",y=!1;var Fe=dt.split("/");Fe.length>1&&(!De&&Fe[Fe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Tt.indexOf(Fe[Fe.length-2])>=0&&(a=Fe[Fe.length-2]+".nocache.js")),Fe=pe.split("/"),te=Fe[Fe.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var He=parseFloat(te);He!==NaN&&He<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+He+" is deprecated. Using version latest instead."),Et("5.0",De))},kn=function(pe,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(pe)};ge.material_id!==void 0?ie(hn):hn();function hn(){var pe=at;we!==null?pe=we:parseFloat(pe)<5&&(pe="5.0"),Et(pe,!1),se!==null&&dn(se,Ve),ve=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function at(ve,we){we!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+we+","+we+")",ve.style.webkitTransform="scale("+we+","+we+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ge(ve,we,se,_e,Ue,ze){var dt=null;if(ze!=null&&ze!="")for(var Ve=ve.parentNode;Ve!=null;)if((" "+Ve.className+" ").indexOf(" "+ze+" ")>-1){dt=Ve;break}else Ve=Ve.parentNode;var Je=0,te=0,a=0,y=0,E=0,b=0,x=0;if(dt)Je=dt.offsetWidth,te=Math.max(_e?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Je=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Je):(Je=window.innerWidth,te=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=Je&&(Ue===void 0||!Ue)&&(document.dir==="rtl"?(E=Je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ve&&((se===void 0||!se)&&we>0&&we+y<Je?Je=we:Je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(te-=x)),{width:Je,height:te}}function ae(ve,we,se,_e,Ue){if(ve.isScreenshoGenerator)return 1;var ze=_e!==void 0&&_e,dt=ve.noScaleMargin!=null&&ve.noScaleMargin,Ve=function(ee){return ee&&ee!=="false"},Je=Ve(ve.autoHeight),te=ge(we,ve.width,se,Je,ze&&window.GGBT_wsf_view||dt,Ue),a=parseInt(te.width),y=ve.width,E=ve.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=ze?1:te.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Te(ve,we,se){var _e=1,Ue,ze=!1;if(ve.hasOwnProperty("allowUpscale")&&(ze=ve.allowUpscale),ve.hasOwnProperty("scale")&&(_e=parseFloat(ve.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(ze=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Ue=ae(ve,we,ze,se,ve.scaleContainerClass);else return _e;return ze&&(!ve.hasOwnProperty("scale")||_e===1)?Ue:Math.min(_e,Ue)}function Ke(ve){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=ve.getBoundingClientRect(),Ue=(we-_e.width)/2,ze=(se-_e.height)/2;ze<0&&(ze=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ue<40?ve.style.left="40px":ve.style.left=Ue+"px",ve.style.top=ze+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze<40?ve.style.top="40px":ve.style.top=ze+"px",ve.style.left=Ue+"px")}function Ne(ve,we){var se=ve.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var _e=Te(we,ve);be()&&se.setAttribute("data-param-scale",_e);for(var Ue=null,ze=0;ze<ve.childNodes.length;ze++)if(ve.childNodes[ze].className!==void 0&&ve.childNodes[ze].className.match(/^applet_scaler/)){Ue=ve.childNodes[ze];break}if(Ue!==null&&Ue.querySelector(".noscale")!==null)return;var dt=we.id!==void 0?we.id:"ggbApplet",Ve=window[dt];(Ve==null||!Ve.recalculateEnvironments)&&Ue!==null&&!Ue.className.match(/fullscreen/)&&(Ue.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Ue.parentNode.style.width=we.width*_e+"px",Ue.parentNode.style.height=we.height*_e+"px",at(Ue,_e)):(at(Ue,1),Ue.parentNode.style.width=we.width+"px",Ue.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:be,positionCenter:Ke,getScale:Te,scaleElement:at}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,at){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(be){var at=s[L].bindings;s[L].bindings=function(){for(var ge=at?at():{},ae=be[webModule.__softPermutationId],Te=O;Te<ae.length;Te++){var Ke=ae[Te];ge[Ke[O]]=Ke[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var at=document.compatMode==U?V:W;t.write(at+X),t.close()}}}function w(be){function at(ae){function Te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=Te();if(Ke){ae();return}function Ne(){if(!Ke){if(!Te())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var ve=setInterval(function(){Ne()},$)}function ge(ae){var Te=u(),Ke=Te.body,Ne=Te.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ae,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Ne)}at(function(){ge(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var at=u(),ge=at.body,ae=at.createElement(_);ae.language=ab,ae.text=be,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(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var at=c[be];return at==null?null:at},r=d,webModule.__errFn=e}function B(){function be(ve){var we=ve.lastIndexOf(rb);we==-1&&(we=ve.length);var se=ve.indexOf(sb);se==-1&&(se=ve.length);var _e=ve.lastIndexOf(tb,Math.min(se,we));return _e>=O?ve.substring(O,_e+P):W}function at(ve){if(!ve.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ve+vb,ve=be(we.src)}return ve}function ge(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),we=O;we<ve.length;++we)if(ve[we].src.indexOf(xb)!=-1)return be(ve[we].src);return W}function Te(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Ke(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Ne=ge();return Ne==W&&(Ne=ae()),Ne==W&&(Ne=Te()),Ne==W&&Ke()&&(Ne=be(o.location.href)),Ne=at(Ne),Ne}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],at=O,ge=[],ae=[];function Te(ve){var we=ae[ve](),se=ge[ve];if(we in se)return we;var _e=[];for(var Ue in se)_e[se[Ue]]=Ue;throw r&&r(ve,_e,we),null}if(__gwt_isKnownPropertyValue=function(ve,we){return we in ge[ve]},webModule.__getPropMap=function(){var ve={};for(var we in ge)ge.hasOwnProperty(we)&&(ve[we]=Te(we));return ve},webModule.__computePropValue=Te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ne=Ke.indexOf(Db);Ne!=-1&&(at=parseInt(Ke.substring(Ne+P),$),Ke=Ke.substring(O,Ne))}catch(ve){}return webModule.__softPermutationId=at,C(Ke+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})()},2130:function(be,at,ge){"use strict";ge.d(at,{Ax:function(){return Ne},Ds:function(){return ve},KI:function(){return se},SI:function(){return Ke},f1:function(){return Te}});var ae=ge(29701);function Te(_e){let Ue=!0;if(_e.length>0){for(let ze=0;ze<_e.length;ze++)if(_e[ze].compile_success==0||!_e[ze].compile_success){Ue=!1;break}}else Ue=!1;return Ue}function Ke(_e,Ue=""){let ze=[];for(let dt=0;dt<_e.length;dt++){let Ve=_e[dt],Je=Ue?`${Ue}/${Ve.name}`:`${Ve.name}`;ze.push({title:Ve.name,type:Ve.type,isLeaf:Ve.type!=="tree",key:Je})}return ze}function Ne(_e,Ue,ze){for(let dt=0;dt<_e.length;dt++){let Ve=_e[dt];if(Ve.key===Ue){Ve.children=ze;break}Ve.children&&Ne(Ve.children,Ue,ze)}return _e}function ve(_e,Ue,ze){let dt;return function(){let Ve=this,Je=arguments,te=function(){dt=null,ze||_e.apply(Ve,Je)},a=ze&&!dt;clearTimeout(dt),dt=setTimeout(te,Ue),a&&_e.apply(Ve,Je)}}const we=!0,se=ae.Z.API_SERVER},67340:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ve}});var ae=ge(59301),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=ge(92310),Ne=ge.n(Ke),ve=ge(71418),we=ge(2859),se=ge(59729),_e=ge(99770),Ue=ge(58024),ze=(Je,te,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(ne){E(ne)}},x=ee=>{try{z(a.throw(ee))}catch(ne){E(ne)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(Je,te)).next())}),Ve=({data:Je,className:te,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ue.useIntl)(),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),re=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),[fe,ce]=(0,ae.useState)(!1),[Be,Ce]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{re.current||(re.current=document.createElement("style"),document.head.appendChild(re.current)),Je!=null&&Je.visible?(document.body.setAttribute("data-custom","y-hidden"),re.current.innerHTML=" html { overflow-y: hidden; }",Je!=null&&Je.src&&Xe()):(document.body.removeAttribute("data-custom"),re.current&&(document.head.removeChild(re.current),re.current=null))},[Je==null?void 0:Je.visible]);const Xe=()=>ze(void 0,null,function*(){ce(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const bt=yield(0,_e.ZJ)(Je==null?void 0:Je.src);ne.current.src="",ne.current.src=bt,ne.current.onload=function(){nn()},ce(!1),Ce("")}),wt=()=>{document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",E()},Ft=bt=>ze(void 0,null,function*(){ce(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Nt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Je.title,file:bt.dataUrl}});Nt!=null&&Nt.id&&!z?(yield(0,se.ZP)(`/api/attachments/${Je.id}/add_subitem.json`,{method:"post",body:{subitem_id:Nt==null?void 0:Nt.id,settings:JSON.stringify(bt.state)}})).status===0&&b():Nt!=null&&Nt.id&&b(Nt),document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",ce(!1),Ce("")}),tn=()=>{const bt=document.querySelector('a[href="https://markerjs.com/"]');bt&&bt.parentNode&&(bt.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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Tt=>{const Et=document.querySelector(Tt.name);Et&&Et.setAttribute("title",Tt.title)})},nn=()=>{oe.current=new we.hP(ne.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",Ft),oe.current.addEventListener("beforeclose",wt),x&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),Je!=null&&Je.snapshotData&&oe.current.restoreState(Je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),tn()},300)};return ae.createElement(ae.Fragment,null,(Je==null?void 0:Je.visible)&&ae.createElement(ve.Z,{spinning:fe,tip:Be,style:{position:"absolute"}},ae.createElement("div",{ref:ie,className:Ne()(Te.imageDimensions,te,a?Te.fullWidth:""),style:y},ae.createElement("img",{className:Te.img,ref:ne}))))}},58595:function(be,at,ge){"use strict";var ae=ge(59301),Te=ge(95237),Ke=ge(43604),Ne=ge(99313),ve=ge(3113),we=ge(72481),se=ge(14547),_e=ge(48136),Ue=ge(58024),ze=ge(59301);const dt=(0,ae.forwardRef)(({callback:Ve,showSaveButton:Je,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ue.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:ze.createElement(Te.Z,{className:se.Z.lists,gutter:[10,10]},b.map((oe,re)=>ze.createElement(Ke.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:`$$${oe.value}$$`}),oe.name),ze.createElement("div",{className:se.Z.children},oe.children.map((ie,fe)=>ze.createElement("div",{key:fe},ze.createElement("h1",null,ie.name),ze.createElement(Te.Z,{gutter:[10,10]},ie.data.map((ce,Be)=>ze.createElement(Ke.Z,{key:Be,onClick:()=>z(ce),className:se.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ce.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:ze.createElement(Te.Z,{className:se.Z.lists,gutter:[10,10]},x.map((oe,re)=>ze.createElement(Ke.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),ze.createElement("div",{className:se.Z.children},oe.children.map((ie,fe)=>ze.createElement("div",{key:fe},ie.name&&ze.createElement("h1",null,ie.name),ze.createElement(Te.Z,{gutter:[10,10]},ie.data.map((ce,Be)=>ze.createElement(Ke.Z,{key:Be,onClick:()=>z(ce),className:se.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ce.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var re=oe.innerText;return Ve&&Ve(re),re};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),ze.createElement("div",{className:se.Z.mathWrap},ze.createElement(Ne.default,{defaultActiveKey:"1",items:ee}),ze.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},te||""),Je&&ze.createElement("div",{className:se.Z.button},ze.createElement(ve.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});at.Z=dt},5722:function(be,at,ge){"use strict";ge.d(at,{h:function(){return ne}});var ae=ge(59301),Te=ge(57809),Ke=ge(78241),Ne=ge(3113),ve=ge(89780),we=ge.n(ve),se=ge(43753),_e=ge(77227),Ue=ge(58024),ze=Object.defineProperty,dt=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,re,ie)=>re in oe?ze(oe,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[re]=ie,E=(oe,re)=>{for(var ie in re||(re={}))te.call(re,ie)&&y(oe,ie,re[ie]);if(Je)for(var ie of Je(re))a.call(re,ie)&&y(oe,ie,re[ie]);return oe},b=(oe,re)=>dt(oe,Ve(re));const x=Te.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};at.Z=({callback:oe,onCancel:re})=>{const[ie,fe]=(0,ae.useState)("python");function ce(Xe){fe(ee[Xe][1])}function Be(Xe){oe(Xe)}const Ce=(0,Ue.useIntl)();return ae.createElement(Ke.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Be,style:{width:500}}),ae.createElement(Ke.default.Item,{label:Ce.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(Te.default,{getPopupContainer:Xe=>Xe.parentNode,onChange:ce},Object.keys(ee).map(Xe=>ae.createElement(x,{key:Xe,value:Xe},ee[Xe][0])))),ae.createElement(Ke.default.Item,{label:Ce.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ne,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ce.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ne.ZP,{type:"ghost",onClick:re},Ce.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:re,mode:ie,options:fe={}}){const ce=(0,ae.useRef)(),[Be,Ce]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Be){let Xe=function(wt){const Ft=wt.getValue();re&&re(Ft)};return Be.on("change",Xe),()=>{Be.off("change",Xe)}}},[Be,re]),(0,ae.useEffect)(()=>{Be&&Be.setOption("mode",ie)},[Be,ie]),(0,ae.useEffect)(()=>{Be&&(oe!==Be.getValue()||oe==="")&&setTimeout(()=>{Be.setValue(oe||"")},300)},[Be,oe]),(0,ae.useEffect)(()=>{if(ce.current&&!Be){const Xe=we().fromTextArea(ce.current,E({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},fe));Ce(Xe)}},[ce.current,Be]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ce}))}},99672:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Qn}});var ae=ge(59301),Te=ge(89780),Ke=ge.n(Te),Ne=ge(76374),ve=ge(43753),we=ge(6313),se=ge(25717),_e=ge(99498),Ue=ge(25419),ze=ge(67549),dt=ge(72481),Ve=({value:le="",className:Se,showTextOnly:ue,showLines:$e,style:tt={}})=>{const it=(0,ae.useMemo)(()=>"",[le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:it}}))},Je=ge(58024),te=ge(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Se,ue)=>Se in le?a(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):le[Se]=ue,ne=(le,Se)=>{for(var ue in Se||(Se={}))x.call(Se,ue)&&ee(le,ue,Se[ue]);if(b)for(var ue of b(Se))z.call(Se,ue)&&ee(le,ue,Se[ue]);return le},oe=(le,Se)=>y(le,E(Se));function re({onActionCallback:le,title:Se,icon:ue,actionName:$e,className:tt="",children:it}){function Gt(){le($e)}return te.createElement("a",{title:Se,className:tt,onClick:Gt},te.createElement("i",{className:`${ue}`}),it)}var ie=({watch:le,showNullButton:Se,showNullProgramButton:ue,onActionCallback:$e,fullScreen:tt,insertTemp:it,hidetoolBar:Gt,extraUse:Bt})=>{const mt=(0,Je.useIntl)(),Un=[...[{title:mt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:mt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:mt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:mt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:mt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:mt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:mt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:mt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:mt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:mt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:mt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:mt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:mt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:mt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:mt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:mt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?mt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):mt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Gt&&Un.map((Fn,je)=>te.createElement("li",{key:je},Fn.actionName?te.createElement(re,oe(ne({},Fn),{onActionCallback:$e})):te.createElement("span",{className:"v-line"}))),Se?te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$e},te.createElement("span",{className:"fill-tip"},mt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",mt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,ue?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$e},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$e},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,it&&te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:mt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${it}`,onActionCallback:$e},te.createElement("span",{className:"fill-tip"},mt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Bt&&te.createElement("li",null,Bt),te.createElement("li",{className:"btn-full-screen"},te.createElement(re,{icon:`${tt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$e})))},fe=ge(31020),ce=ge(78241),Be=ge(92832),Ce=ge(3113),Xe=Object.defineProperty,wt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Nt=(le,Se,ue)=>Se in le?Xe(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):le[Se]=ue,Tt=(le,Se)=>{for(var ue in Se||(Se={}))nn.call(Se,ue)&&Nt(le,ue,Se[ue]);if(tn)for(var ue of tn(Se))bt.call(Se,ue)&&Nt(le,ue,Se[ue]);return le},Et=(le,Se)=>wt(le,Ft(Se));const dn={labelCol:{span:4},wrapperCol:{span:20}};var kn=({callback:le,onCancel:Se})=>{function ue(tt){le(tt)}const $e=(0,Je.useIntl)();return ae.createElement(ce.default,Et(Tt({},dn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,style:{width:500}}),ae.createElement(ce.default.Item,{label:$e.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Be.default,null)),ae.createElement(ce.default.Item,{label:$e.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Be.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},$e.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ce.ZP,{type:"ghost",onClick:Se},$e.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},hn=ge(5722),pe=ge(72248),De=ge(43418),Fe=ge(95237),He=ge(67340),Ee=ge(59301),Qe=({callback:le,onCancel:Se})=>{const ue=document.createElement("canvas"),$e=ue.getContext("2d");ue.width=1e3,ue.height=800,$e.fillStyle="#ffffff",$e.fillRect(0,0,ue.width,ue.height);const tt=ue.toDataURL("image/png");return Ee.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ee.createElement(Fe.Z,{style:{height:"100vh"}},Ee.createElement(He.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:tt,visible:!0,title:String(Date.now())},onOk:it=>{le({src:it.url})},onClose:Se})))},de=ge(12378);function We(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(We,go.CommandHandler),We.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},We.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Se=1/0;le.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.x,Se))}),le.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se,ue.position.y))}),le.commitTransaction("aligning left")},We.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Se=-1/0;le.selection.each(function(ue){if(!(ue instanceof go.Link)){var $e=ue.actualBounds.x+ue.actualBounds.width;Se=Math.max($e,Se)}}),le.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se-ue.actualBounds.width,ue.position.y))}),le.commitTransaction("aligning right")},We.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Se=1/0;le.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.y,Se))}),le.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Se))}),le.commitTransaction("alignTop")},We.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Se=-1/0;le.selection.each(function(ue){if(!(ue instanceof go.Link)){var $e=ue.actualBounds.y+ue.actualBounds.height;Se=Math.max($e,Se)}}),le.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Se-ue.actualBounds.height))}),le.commitTransaction("aligning bottom")},We.prototype.alignCenterX=function(){var le=this.diagram,Se=le.selection.first();if(Se){le.startTransaction("aligning Center X");var ue=Se.actualBounds.x+Se.actualBounds.width/2;le.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point(ue-$e.actualBounds.width/2,$e.actualBounds.y))}),le.commitTransaction("aligning Center X")}},We.prototype.alignCenterY=function(){var le=this.diagram,Se=le.selection.first();if(Se){le.startTransaction("aligning Center Y");var ue=Se.actualBounds.y+Se.actualBounds.height/2;le.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point($e.actualBounds.x,ue-$e.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},We.prototype.alignColumn=function(le){var Se=this.diagram;Se.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ue=new Array;Se.selection.each(function(Bt){Bt instanceof go.Link||ue.push(Bt)});for(var $e=0;$e<ue.length-1;$e++){var tt=ue[$e],it=tt.actualBounds.y+tt.actualBounds.height+le,Gt=ue[$e+1];Gt.move(new go.Point(tt.actualBounds.x,it))}Se.commitTransaction("align Column")},We.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Se=this.diagram;Se.startTransaction("align Row");var ue=new Array;Se.selection.each(function(Bt){Bt instanceof go.Link||ue.push(Bt)});for(var $e=0;$e<ue.length-1;$e++){var tt=ue[$e],it=tt.actualBounds.x+tt.actualBounds.width+le,Gt=ue[$e+1];Gt.move(new go.Point(it,tt.actualBounds.y))}Se.commitTransaction("align Row")},We.prototype.canRotate=function(le){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<1)},We.prototype.rotate=function(le){le===void 0&&(le=90);var Se=this.diagram;Se.startTransaction("rotate "+le.toString());var Se=this.diagram;Se.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=le)}),Se.commitTransaction("rotate "+le.toString())},We.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Se=new go.Map;le.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var $e=0;ue.parts.each(function(tt){if(!tt.isSelected){var it=tt.zOrder;isNaN(it)?tt.zOrder=0:$e=Math.max($e,it)}}),Se.set(ue,$e)}),le.selection.each(function(ue){We._assignZOrder(ue,Se.get(ue.layer)+1)}),le.commitTransaction("pullToFront")},We.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Se=new go.Map;le.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var $e=0;ue.parts.each(function(tt){if(!tt.isSelected){var it=tt.zOrder;isNaN(it)?tt.zOrder=0:$e=Math.min($e,it)}}),Se.set(ue,$e)}),le.selection.each(function(ue){We._assignZOrder(ue,Se.get(ue.layer)-1-We._findGroupDepth(ue))}),le.commitTransaction("pushToBack")},We._assignZOrder=function(le,Se,ue){ue===void 0&&(ue=le),le.layer===ue.layer&&(le.zOrder=Se),le instanceof go.Group&&le.memberParts.each(function($e){We._assignZOrder($e,Se+1,ue)})},We._findGroupDepth=function(le){if(le instanceof go.Group){var Se=0;return le.memberParts.each(function(ue){Se=Math.max(Se,We._findGroupDepth(ue))}),Se+1}else return 0},We.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Se=le.lastInput;if(Se.key==="Up"||Se.key==="Down"||Se.key==="Left"||Se.key==="Right"){var ue=this.arrowKeyBehavior;if(ue==="none")return;if(ue==="select"){this._arrowKeySelect();return}else if(ue==="move"){this._arrowKeyMove();return}else if(ue==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},We.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Se){le.push(Se)}),this.diagram.parts.each(function(Se){le.push(Se)}),le},We.prototype._arrowKeyMove=function(){var le=this.diagram,Se=le.lastInput,ue=0,$e=0;if(Se.control||Se.meta)ue=1,$e=1;else if(le.grid!==null){var tt=le.grid.gridCellSize;$e=tt.width,ue=tt.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(it){Se.key==="Up"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y-ue)):Se.key==="Down"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y+ue)):Se.key==="Left"?it.move(new go.Point(it.actualBounds.x-$e,it.actualBounds.y)):Se.key==="Right"&&it.move(new go.Point(it.actualBounds.x+$e,it.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},We.prototype._arrowKeySelect=function(){var le=this.diagram,Se=le.lastInput,ue=null;Se.key==="Up"?ue=this._findNearestPartTowards(270):Se.key==="Down"?ue=this._findNearestPartTowards(90):Se.key==="Left"?ue=this._findNearestPartTowards(180):Se.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Se.shift?ue.isSelected=!0:Se.control||Se.meta?ue.isSelected=!ue.isSelected:le.select(ue))},We.prototype._findNearestPartTowards=function(le){var Se=this.diagram.selection.first();if(Se===null)return null;for(var ue=Se.actualBounds.center,$e=this._getAllParts(),tt=1/0,it=Se,Gt=0;Gt<$e.length;Gt++){var Bt=$e[Gt];if(Bt!==Se&&Bt.canSelect()){var mt=Bt.actualBounds.center,on=ue.directionPoint(mt),Un=this._angleCloseness(on,le);if(Un<=45){var Fn=ue.distanceSquaredPoint(mt);Fn*=1+Math.sin(Un*Math.PI/180),Fn<tt&&(tt=Fn,it=Bt)}}}return it},We.prototype._angleCloseness=function(le,Se){return Math.min(Math.abs(Se-le),Math.min(Math.abs(Se+360-le),Math.abs(Se-360-le)))},We.prototype._arrowKeyTree=function(){var le=this.diagram,Se=le.selection.first();if(Se instanceof go.Node){var ue=le.lastInput;if(ue.key==="Right"){if(!Se.isTreeLeaf)if(!Se.isTreeExpanded)le.commandHandler.canExpandTree(Se)&&le.commandHandler.expandTree(Se);else{var $e=this._sortTreeChildrenByY(Se).first();$e!==null&&le.select($e)}}else if(ue.key==="Left")if(!Se.isTreeLeaf&&Se.isTreeExpanded)le.commandHandler.canCollapseTree(Se)&&le.commandHandler.collapseTree(Se);else{var tt=Se.findTreeParentNode();tt!==null&&le.select(tt)}else if(ue.key==="Up"){var tt=Se.findTreeParentNode();if(tt!==null){var it=this._sortTreeChildrenByY(tt),Gt=it.indexOf(Se);if(Gt>0){for(var Bt=it.elt(Gt-1);Bt!==null&&Bt.isTreeExpanded&&!Bt.isTreeLeaf;){var mt=this._sortTreeChildrenByY(Bt);Bt=mt.last()}Bt!==null&&le.select(Bt)}else le.select(tt)}}else if(ue.key==="Down")if(Se.isTreeExpanded&&!Se.isTreeLeaf){var $e=this._sortTreeChildrenByY(Se).first();$e!==null&&le.select($e)}else for(;Se!==null;){var tt=Se.findTreeParentNode();if(tt===null)break;var it=this._sortTreeChildrenByY(tt),Gt=it.indexOf(Se);if(Gt<it.length-1){le.select(it.elt(Gt+1));break}else Se=tt}var on=le.selection.first();on!==null&&le.scrollToRect(on.actualBounds)}},We.prototype._sortTreeChildrenByY=function(le){var Se=new go.List().addAll(le.findTreeChildrenNodes());return Se.sort(function(ue,$e){var tt=ue.location,it=$e.location;return tt.y<it.y?-1:tt.y>it.y?1:tt.x<it.x?-1:tt.x>it.x?1:0}),Se},We.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},We.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(We.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(We.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var ft=We,_t=ge(61159),St=ge(43604),Yt=ge(59729),Ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},kt=ge(59301),Mn=(le,Se,ue)=>new Promise(($e,tt)=>{var it=mt=>{try{Bt(ue.next(mt))}catch(on){tt(on)}},Gt=mt=>{try{Bt(ue.throw(mt))}catch(on){tt(on)}},Bt=mt=>mt.done?$e(mt.value):Promise.resolve(mt.value).then(it,Gt);Bt((ue=ue.apply(le,Se)).next())});function $t({onCancel:le,callback:Se}){let ue=(0,ae.useRef)(),$e=(0,ae.useRef)(),tt=(0,ae.useRef)(),it=(0,ae.useRef)(!1);const Gt=(0,ae.useRef)(!1),[Bt,mt]=(0,ae.useState)(0);function on(){const je=de.bx.make,xt={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"};ue.current=new de.S0($e.current,{padding:20,grid:je(de.s_,"Grid",je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),je(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Oe=>{var ot=Oe.diagram.commandHandler.addTopLevelParts(Oe.diagram.selection,!0);ot||Oe.diagram.currentTool.doCancel()},commandHandler:je(ft),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Oe=>{var ot=Oe.subject;ot.location=ot.location.copy().snapToGridPoint(Oe.diagram.grid.gridOrigin,Oe.diagram.grid.gridCellSize),setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Oe=>{var ot=Oe.subject;setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Oe=>{var ot=Oe.parameter.part;ot.invalidateConnectedLinks();var qe=Oe.subject;Oe.diagram.toolManager.linkingTool.isForwards?qe.toNode.invalidateConnectedLinks():qe.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.current.nodeTemplate=je(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),je(de.bn,{name:"SHAPE",fill:xt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),je(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),je(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.nodeTemplate.toolTip=je("ToolTip",je(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},je(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),je(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function On(Oe,ot){var qe=(nt,Ot)=>{nt.handled=!0,nt.diagram.model.commit(At=>{var Pt=Ot.part.adornedPart,Kt=new de.E9().setRectSpot(Pt.actualBounds,Oe);Kt.subtract(Pt.location),Kt.scale(2,2),Kt.x+=Math.sign(Kt.x)*130,Kt.y+=Math.sign(Kt.y)*130,Kt.add(Pt.location),Kt.snapToGridPoint(nt.diagram.grid.gridOrigin,nt.diagram.grid.gridCellSize);var qt=At.copyNodeData(Pt.data);At.setGroupKeyForNodeData(qt,At.getGroupKeyForNodeData(Pt.data)),At.addNodeData(qt);var Hn={from:Pt.key,to:At.getKeyForNodeData(qt)};At.addLinkData(Hn);var Kn=nt.diagram.findNodeForData(qt);Kn.location=Kt,nt.diagram.select(Kn),setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()},20)})};return je(de.bn,{figure:ot,alignment:Oe,alignmentFocus:Oe.opposite(),width:Oe.equals(de.z6.Top)||Oe.equals(de.z6.Bottom)?25:18,height:Oe.equals(de.z6.Top)||Oe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:xt.white,strokeWidth:4,mouseEnter:(nt,Ot)=>Ot.fill="dodgerblue",mouseLeave:(nt,Ot)=>Ot.fill="orange",isActionable:!0,click:qe,contextClick:qe})}function xn(Oe){return je(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ot,qe)=>qe.fill="dodgerblue",mouseLeave:(ot,qe)=>qe.fill="orange",click:(ot,qe)=>{ot.diagram.commandHandler.showContextMenu(qe.part.adornedPart)}},Oe||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=je(de.uz,"Spot",je(de.Vm,{padding:10}),On(de.z6.Top,"TriangleUp"),On(de.z6.Left,"TriangleLeft"),On(de.z6.Right,"TriangleRight"),On(de.z6.Bottom,"TriangleDown"),xn({alignment:new de.z6(.75,0)}));function cn(Oe,ot){return(qe,nt)=>{qe.handled=!0,qe.diagram.model.commit(Ot=>{Ot.set(nt.part.adornedPart.data,Oe,ot)})}}function me(Oe,ot){return ot||(ot="color"),je(de.bn,{width:16,height:16,stroke:"lightgray",fill:Oe,margin:1,background:"transparent",mouseEnter:(qe,nt)=>nt.stroke="dodgerblue",mouseLeave:(qe,nt)=>nt.stroke="lightgray",click:cn(ot,Oe),contextClick:cn(ot,Oe)})}function ye(){return[je("ContextMenuButton",je(de.s_,"Horizontal",me(xt.white,"fill"),me(xt.beige,"fill"),me(xt.extralightblue,"fill"),me(xt.extralightred,"fill"))),je("ContextMenuButton",je(de.s_,"Horizontal",me(xt.lightgray,"fill"),me(xt.lightgreen,"fill"),me(xt.lightblue,"fill"),me(xt.lightred,"fill")))]}function Le(){return[je("ContextMenuButton",je(de.s_,"Horizontal",me(xt.black),me(xt.green),me(xt.blue),me(xt.red))),je("ContextMenuButton",je(de.s_,"Horizontal",me(xt.white),me(xt.magenta),me(xt.purple),me(xt.orange)))]}function Ge(Oe,ot){return ot||(ot="thickness"),je(de.bn,"LineH",{width:16,height:16,strokeWidth:Oe,margin:1,background:"transparent",mouseEnter:(qe,nt)=>nt.background="dodgerblue",mouseLeave:(qe,nt)=>nt.background="transparent",click:cn(ot,Oe),contextClick:cn(ot,Oe)})}function ke(Oe,ot){return ot||(ot="dash"),je(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Oe,margin:1,background:"transparent",mouseEnter:(qe,nt)=>nt.background="dodgerblue",mouseLeave:(qe,nt)=>nt.background="transparent",click:cn(ot,Oe),contextClick:cn(ot,Oe)})}function Re(){return[je("ContextMenuButton",je(de.s_,"Horizontal",Ge(1),Ge(2),Ge(3),Ge(4))),je("ContextMenuButton",je(de.s_,"Horizontal",ke(null),ke([2,4]),ke([4,4])))]}function Ae(Oe,ot){return ot||(ot="figure"),je(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Oe,margin:1,background:"transparent",mouseEnter:(qe,nt)=>nt.fill="dodgerblue",mouseLeave:(qe,nt)=>nt.fill="lightgray",click:cn(ot,Oe),contextClick:cn(ot,Oe)})}ue.current.nodeTemplate.contextMenu=je("ContextMenu",je("ContextMenuButton",je(de.s_,"Horizontal",Ae("Rectangle"),Ae("RoundedRectangle"),Ae("Ellipse"),Ae("Diamond"))),je("ContextMenuButton",je(de.s_,"Horizontal",Ae("Parallelogram2"),Ae("ManualOperation"),Ae("Procedure"),Ae("Cylinder1"))),je("ContextMenuButton",je(de.s_,"Horizontal",Ae("Terminator"),Ae("CreateRequest"),Ae("Document"),Ae("TriangleDown"))),ye(),Le(),Re()),ue.current.groupTemplate=je(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Oe,ot)=>{var qe=ot.addMembers(ot.diagram.selection,!0);qe||ot.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),je(de.s_,"Auto",{name:"BODY"},je(de.bn,{parameter1:10,fill:xt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),je(de.Vm,{background:"transparent",margin:20})),je(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ue.current.groupTemplate.selectionAdornmentTemplate=je(de.uz,"Spot",je(de.s_,"Auto",je(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),je(de.Vm,{margin:1.5})),xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=je("ContextMenu",ye(),Le(),Re()),ue.current.linkTemplate=je(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Oe=>Oe>=1?10:0),new de.KX("toShortLength","dir",Oe=>Oe>=1?10:0),new de.KX("points").makeTwoWay(),je(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),je(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe===1)),je(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe>=1),new de.KX("width","thickness",Oe=>7+3*Oe),new de.KX("height","thickness",Oe=>7+3*Oe),new de.KX("segmentOffset","thickness",Oe=>new de.E9(-15,4+1.5*Oe))),je(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe===2),new de.KX("width","thickness",Oe=>7+3*Oe),new de.KX("height","thickness",Oe=>7+3*Oe),new de.KX("segmentOffset","thickness",Oe=>new de.E9(-15,4+1.5*Oe))),je(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.linkTemplate.selectionAdornmentTemplate=je(de.uz,je(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Me(2)},new de.KX("pathPattern","thickness",Me)),xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Me(Oe){return je(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Oe+4).toString()+" H3"})}function lt(Oe){var ot="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Oe===0?ot="M0 0 M16 16 M0 8 L16 8":Oe===2&&(ot="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),je(de.bn,{geometryString:ot,margin:2,background:"transparent",mouseEnter:(qe,nt)=>nt.background="dodgerblue",mouseLeave:(qe,nt)=>nt.background="transparent",click:cn("dir",Oe),contextClick:cn("dir",Oe)})}function he(Oe){var ot=(qe,nt)=>{qe.handled=!0,qe.diagram.model.commit(Ot=>{var At=nt.part.adornedPart;Ot.set(At.data,Oe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Oe?At.toNode:At.fromNode).invalidateConnectedLinks()})};return je(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(qe,nt)=>nt.background="dodgerblue",mouseLeave:(qe,nt)=>nt.background="transparent",click:ot,contextClick:ot})}function ut(Oe,ot){var qe=0,nt=de.z6.RightSide;Oe.equals(de.z6.Top)?(qe=270,nt=de.z6.TopSide):Oe.equals(de.z6.Left)?(qe=180,nt=de.z6.LeftSide):Oe.equals(de.z6.Bottom)&&(qe=90,nt=de.z6.BottomSide),ot||(qe-=180);var Ot=(At,Pt)=>{At.handled=!0,At.diagram.model.commit(Kt=>{var qt=Pt.part.adornedPart;Kt.set(qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(nt)),(ot?qt.toNode:qt.fromNode).invalidateConnectedLinks()})};return je(de.bn,{alignment:Oe,alignmentFocus:Oe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:qe,background:"transparent",mouseEnter:(At,Pt)=>Pt.background="dodgerblue",mouseLeave:(At,Pt)=>Pt.background="transparent",click:Ot,contextClick:Ot})}ue.current.linkTemplate.contextMenu=je("ContextMenu",Le(),Re(),je("ContextMenuButton",je(de.s_,"Horizontal",lt(0),lt(1),lt(2))),je("ContextMenuButton",je(de.s_,"Horizontal",je(de.s_,"Spot",he(!1),ut(de.z6.Top,!1),ut(de.z6.Left,!1),ut(de.z6.Right,!1),ut(de.z6.Bottom,!1)),je(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},he(!0),ut(de.z6.Top,!0),ut(de.z6.Left,!0),ut(de.z6.Right,!0),ut(de.z6.Bottom,!0)))));const Mt=`{ "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 Dt=["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 Xt(Oe){return console.log("shapeName:",Oe),Dt.indexOf(Oe)>=0}var Cn=new de.YI(tt.current,{maxSelectionCount:1,linkTemplate:je(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:je(de.uz,"Link",{locationSpot:de.z6.Center},je(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),je(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),je(de.bn,{isPanelMain:!0,strokeWidth:2}),je(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Oe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Oe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Oe){var ot;const qe=Oe.subject.part;var nt=(ot=document.activeElement)==null?void 0:ot.value;typeof nt=="string"&&nt.trim()===""&&ue.current.model.commit(function(Ot){Ot.set(qe.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=je(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),je(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),je(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ue.current.grid=je(de.s_,"Grid",je(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),je(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ue.current.grid.visible=!0,ue.current.grid.gridCellStroke="darkgray",ue.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ue.current,ue.current}const Un=()=>Mn(this,null,function*(){var je=ue.current.makeImage();const xt=yield(0,Yt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:je.src}});Se({src:xt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{on()},500),mt(Bt+1),()=>{ue.current=null}),[]);const Fn=(0,Je.useIntl)();return kt.createElement("div",{ref:Gt,className:it.current?`${Ct.maxH60} body-overflow-initial`:"body-overflow-initial"},kt.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:kt.createElement(Fe.Z,null,kt.createElement(St.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),kt.createElement(St.Z,{onClick:()=>{var je,xt,On=ue.current.selection.first();if(it.current=!it.current,document.activeElement&&On){let xn=(xt=(je=document.activeElement)==null?void 0:je.value)==null?void 0:xt.trim();typeof xn=="string"&&ue.current.model.commit(function(cn){cn.set(On.data,"text",xn||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}mt(Bt+1)}},kt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Fn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},kt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ct.flowChartWrp},kt.createElement("div",{style:{display:"flex",height:"100%"}},kt.createElement("div",{style:{width:"300px",height:"100%"}},kt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),kt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ct.myPaletteDiv,ref:tt})),kt.createElement("div",{style:{flex:1,position:"relative"}},kt.createElement("div",{ref:$e,style:{height:"80vh"}}))),kt.createElement("div",{className:"tr"},kt.createElement(Ce.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Fn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var It=$t,Bn=ge(5112),pn=ge(5871);const zn=Bn.ZP.Group,ln={margin:"0 8px"};var Jt=({callback:le,onCancel:Se})=>{function ue(tt){le(tt)}const $e=(0,Je.useIntl)();return ae.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ue},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:ln},$e.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:ln},$e.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(pn.Z,null)),ae.createElement("span",{style:ln},$e.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(pn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:ln},$e.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ce.default.Item,{name:"align"},ae.createElement(zn,null,ae.createElement(Bn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Bn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Bn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Bn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},$e.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ce.ZP,{type:"ghost",onClick:Se},$e.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Nn=ge(78673),ca=ge(97393),ha=ge.n(ca),pa=(0,ae.forwardRef)(({use3d:le,width:Se,height:ue,callback:$e,showSaveButton:tt},it)=>{const Gt=(0,ae.useRef)(),Bt=(0,ae.useRef)(),mt=(0,Je.useIntl)(),[on,Un]=(0,ae.useState)(!1),Fn=(0,ae.useRef)({id:Gt,appName:"graphing",width:Se||1e3,height:ue||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)(()=>{Bt.current=new(ha())(Fn.current,!0),window.onload=function(){Bt.current.inject("applet_container")}},[]);const je=()=>{var xt=window.ggbApplet.getPNGBase64(1,!0,72);return $e&&$e(xt),xt};return(0,ae.useEffect)(()=>{Fn.current.appName=on?"3D":"graphing",Bt.current.inject("applet_container")},[on]),(0,ae.useEffect)(()=>{Un(le)},[le]),(0,ae.useImperativeHandle)(it,()=>({getImgData:je})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gt}),ae.createElement(Fe.Z,{align:"middle"},ae.createElement(St.Z,{flex:1},ae.createElement(Nn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:mt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:on,onChange:xt=>Un(xt)})),ae.createElement(St.Z,null,ae.createElement(Ce.ZP,{size:"large",onClick:je,style:{zIndex:8,marginTop:10},type:"primary"},mt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Vn=ge(58595),Pe=ge(1012),xe=ge(8591);const Ie="link",Ye="upload-image",rt="add-flowchart",pt="draw-image",yt="add-flowchart",ht="code-block",Lt="add-table",jt="------------",Rt={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var Wt=ge(87184),un=(le,Se,ue)=>new Promise(($e,tt)=>{var it=mt=>{try{Bt(ue.next(mt))}catch(on){tt(on)}},Gt=mt=>{try{Bt(ue.throw(mt))}catch(on){tt(on)}},Bt=mt=>mt.done?$e(mt.value):Promise.resolve(mt.value).then(it,Gt);Bt((ue=ue.apply(le,Se)).next())});function vn(){}let Ln=0;const an=1e4,Ut="\u2581",An="@\u2581\u2581@",yn="@\u2581@",wn=`
|
|
**\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`,Qt=["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 $n(le){return/^\d+$/.test(le)?`${le}px`:le}const jn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[jn+"-B"]:"bold",[jn+"-I"]:"italic"};var Qn=({defaultValue:le="",onChange:Se,width:ue="100%",height:$e=400,miniToolbar:tt=!1,isFocus:it=!1,watch:Gt,insertTemp:Bt,mode:mt="markdown",id:on="markdown-editor-id",showResizeBar:Un=!1,noStorage:Fn=!1,showNullButton:je=!1,showNullProgramButton:xt=!1,hidetoolBar:On=!1,fullScreen:xn=!1,onBlur:cn,onCMBeforeChange:me,onFullScreen:ye,className:Le="",disablePaste:Ge=!1,disabled:ke=!1,disabledFill:Re=!1,placeholder:Ae="",values:Me="",extraUse:lt})=>{const[he,ut]=(0,ae.useState)(null),[Mt,Dt]=(0,ae.useState)(le),[Xt,Cn]=(0,ae.useState)(Gt),[Oe,ot]=(0,ae.useState)(xn),[qe,nt]=(0,ae.useState)(""),[Ot,At]=(0,ae.useState)(0),[Pt,Kt]=(0,ae.useState)($e),[qt,Hn]=(0,ae.useState)(!1),Kn=(0,ae.useRef)((0,Pe.Z)()),Wn=(0,ae.useRef)(!1),da=(0,ae.useRef)(),[la,ua]=(0,ae.useState)(0),[na,Rn]=(0,ae.useState)(0),en=(0,ae.useRef)(),qn=(0,ae.useRef)(),ea=(0,ae.useRef)(),ta=(0,ae.useRef)(),aa=()=>un(void 0,null,function*(){var st;const Ze=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Kn.current}});(st=Ze==null?void 0:Ze.attachments)!=null&&st.length&&(console.log("cm:",he,en),Ze.attachments.map(et=>{et.content_type.indexOf("image")>-1?he.replaceSelection(``):et.content_type.indexOf("video")>-1?he.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):et.content_type.indexOf("pdf")>-1?he.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type}&disposition=inline" target="_blank">${et.name}</a>`):he.replaceSelection(`[${et.name}](${ENV.API_SERVER}/api/attachments/${et.id}?type=${et.content_type})`)}))});(0,ae.useEffect)(()=>{const st=window.scrollY||window.pageYOffset;Dt(Me),he==null||he.setValue(Me),window.scrollTo(0,st)},[Me]),(0,ae.useEffect)(()=>{ye==null||ye(Oe)},[Oe]),(0,ae.useEffect)(()=>{if(en.current){let st=function(et,gt){var Zt;if(Ge){gt.preventDefault();return}const sn=gt.clipboardData;if(sn){const Gn=sn.types.toString(),En=sn.items;if(Gn==="Files"||sn.types.indexOf("Files")>-1){if(gt.preventDefault(),mt=="stex")return;try{let Dn=En[1];((Zt=En[0])==null?void 0:Zt.kind)==="file"&&(Dn=En[0]);const Tn=Dn.getAsFile(),Jn=Tn.name.split(".").pop();(0,pe.I)(Tn,ct=>{var Ht,rn,zt;ct.id?((Ht=Tn==null?void 0:Tn.type)==null?void 0:Ht.indexOf("image"))>-1?Ze.replaceSelection(`<img width="100%" src="/api/attachments/${ct.id}?type=${ct.content_type})" alt="" />`):((rn=Tn==null?void 0:Tn.type)==null?void 0:rn.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="/api/attachments/${ct.id}"></video>`):((zt=Tn==null?void 0:Tn.type)==null?void 0:zt.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="/api/attachments/${ct.id}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):Qt.includes(Jn)?Ze.replaceSelection(`<a href="/api/attachments/${ct.id}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):Ze.replaceSelection(`[${Tn.name}](/api/attachments/${ct.id}?type=${ct.content_type})`):(ct==null?void 0:ct.status)===401&&(xe.ZP.warning((ct==null?void 0:ct.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dn){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ze=Ke().fromTextArea(en.current,{mode:mt,lineNumbers:!tt,lineWrapping:!0,value:le,autoCloseTags:!xt,autoCloseBrackets:!0});return Ze.on("keyup",function(et,gt){gt.keyCode===8&&(et.getValue()==""?Ze.setOption("placeholder",Ae):Ze.setOption("placeholder",null))}),Ze.on("keydown",function(et,gt){if(gt.keyCode===8){var Zt=Sa(et);Zt&>.preventDefault()}}),it&&Ze.focus(),Ze.on("paste",st),Ze.on("dragleave",function(et,gt){qn.current.classList.remove("mouse-hover-md")}),ke&&Ze.on("beforeChange",function(et,gt){(gt.origin==="paste"||gt.origin==="+input")&>.cancel()}),ut(Ze),()=>{Ze.off("paste",st)}}},[]);const _n=(0,ae.useCallback)(()=>{if(qn.current)try{}catch(st){console.log(st,"---- to set md editor body height")}},[Pt,qn,Oe]);(0,ae.useEffect)(()=>{function st(){let Ze=new Ne.Z(et=>{for(let gt of et)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&(_n(),he.setSize("100%","100%"),he.refresh())});return Ze.observe(en.current.parentElement),Ze}if(he){const Ze=st();return()=>{var et,gt;(et=en.current)!=null&&et.parentElement&&Ze.unobserve((gt=en.current)==null?void 0:gt.parentElement)}}},[he,_n]),(0,ae.useEffect)(()=>{if(he){let st=[];for(const[Ze,et]of Object.entries(In)){let gt={[Ze]:()=>{vt(et)}};st.push(gt),he.addKeyMap(gt)}return da.current=setInterval(()=>{Wn.current&&aa()},4e3),()=>{clearInterval(da.current);for(let Ze of st)he.removeKeyMap(Ze)}}},[he]),(0,ae.useEffect)(()=>{xn!==Oe&&ot(xn)},[xn]),(0,Wt.Z)(()=>{if(!Fn&&Ot>0){let st=new Date().getTime(),Ze=window.sessionStorage.getItem(on);st>=Ot+an&&(!Ze||Ze!==Mt)&&(window.sessionStorage.setItem(on,Mt),Hn(!0))}},an),(0,ae.useEffect)(()=>{Cn(Gt)},[he,Gt]),(0,ae.useEffect)(()=>{he&&it&&he.focus()},[he,it]),(0,ae.useEffect)(()=>{if(Xt&&he){let st=function(et){let gt=et.target;if(ta.current){let Zt=gt.scrollTop/gt.scrollHeight;ta.current.scrollTop=ta.current.scrollHeight*Zt}};const Ze=he.getScrollerElement();return Ze.addEventListener("scroll",st),()=>{Ze.removeEventListener("scroll",st)}}},[he,Xt]),(0,ae.useEffect)(()=>{if(he&&me){let st=function(Ze,et){me(Ze,et)};return he.on("beforeChange",st),()=>{he.off("beforeChange",st)}}},[he,me]),(0,ae.useEffect)(()=>{if(he&&cn){let st=function(){cn(he.getValue())};return he.on("blur",st),()=>{he.off("blur",st)}}},[he,cn]);function Sa(st,Ze){var et=st.getDoc(),gt=et.getCursor(),Zt=et.getLine(gt.line),sn=Zt.charAt(gt.ch-1),Gn=Zt.lastIndexOf("@\u2581@",gt.ch),En=Zt.lastIndexOf("@\u2581\u2581@",gt.ch),Dn=Gn>En?Gn:En,Tn=Gn>En?3:4;if(An.indexOf(sn)===-1)return null;if(console.log("change1:",Ze,st,Zt,gt,Dn,Gn,En,sn),Dn>=0&>.ch-Dn<5){var Jn=Dn+Tn;return et.replaceRange("",{line:gt.line,ch:Dn},{line:gt.line,ch:Jn}),{line:gt.line,ch:Jn}}return null}(0,ae.useEffect)(()=>{if(he){let st=function(Ze,et){const gt=Ze.getValue();Dt(gt),At(new Date().getTime()),Ze.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Se&&(xt?Se(gt,Pn(gt)):Se(gt))};return he.on("change",st),()=>{he.off("change",st)}}},[he,Se]),(0,ae.useEffect)(()=>{if(he)if(le==null)he.setValue(""),Dt("");else{const st=window.scrollY||window.pageYOffset;le!==he.getValue()&&(he.setValue(le),Dt(le),he.setCursor(ke?1:he.lineCount(),0),window.scrollTo(0,st))}},[he,le]);const vt=(0,ae.useCallback)(st=>{const Ze=he.getCursor(),et=he.getSelection();let gt=et.split(`
|
|
`);switch(st){case"bold":return he.replaceSelection("**"+et+"**"),et===""&&he.setCursor(Ze.line,Ze.ch+2),he.focus();case"italic":return he.replaceSelection("*"+et+"*"),et===""&&he.setCursor(Ze.line,Ze.ch+1),he.focus();case"code":return he.replaceSelection("`"+et+"`"),et===""&&he.setCursor(Ze.line,Ze.ch+1),he.focus();case"inline-latex":return nt("inline-latex"),he.focus();case"latex":return he.replaceSelection("```latex\n"+et+"\n```"),he.setCursor(Ze.line+1,et.length+1),he.focus();case"line-break":return he.replaceSelection(`<br/>
|
|
`),he.focus();case"list-ul":return et===""?he.replaceSelection("- "+et):he.replaceSelection(gt.map(Zt=>Zt===""?"":`- ${Zt}`).join(`
|
|
`)),he.focus();case"list-ol":return et===""?he.replaceSelection("1. "+et):he.replaceSelection(gt.map((Zt,sn)=>Zt===""?"":`${sn+1}. ${Zt}`).join(`
|
|
`)),he.focus();case"add-null-ch":return et===""&&he.setCursor(Ze.line,Ze.ch),he.replaceSelection(Ut),he.focus();case"add-signal":return et===""&&he.setCursor(Ze.line,Ze.ch),he.replaceSelection(yn),he.focus();case"add-multiple":return et===""&&he.setCursor(Ze.line,Ze.ch),he.replaceSelection(An),he.focus();case"inster-template-1":return et===""&&he.setCursor(Ze.line,Ze.ch),he.replaceSelection(wn),he.focus();case"eraser":return he.setValue(""),he.focus();case"trigger-watch":return Cn(!Xt),he.focus();case"trigger-full-screen":return ot(!Oe),he.focus();case Ie:nt(Ie);return;case ht:nt(ht);return;case Ye:nt(Ye);return;case pt:nt(pt);return;case"maths-latex":nt("maths-latex");return;case rt:nt(rt);return;case Lt:nt(Lt);return;default:throw new Error}},[he,Xt,Oe]),Vt=(0,ae.useCallback)((st,Ze)=>{var et,gt,Zt,sn,Gn,En;switch(nt(""),qe){case Ie:const{title:Ht,link:rn}=st;return he.replaceSelection(`[${Ht}](${rn})`),he.focus();case ht:const{language:zt,content:gn}=st;return he.replaceSelection(["```"+zt,gn,"```"].join(`
|
|
`)),he.focus();case"maths-latex":for(var Dn=atob(st),Tn=new Uint8Array(Dn.length),Jn=0;Jn<Dn.length;Jn++)Tn[Jn]=Dn.charCodeAt(Jn);var ct=new Blob([Tn],{type:"image/png"});(0,pe.I)(ct,ia=>{ia.id?he.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":he.replaceSelection("`$$"+st+"$$`");break;case Ye:case pt:case yt:const{src:bn,alt:ga}=st,mn=Ze,ma=(Zt=(gt=(et=mn==null?void 0:mn.name)==null?void 0:et.split("."))==null?void 0:gt.pop)==null?void 0:Zt.call(gt);return((sn=mn==null?void 0:mn.type)==null?void 0:sn.indexOf("image"))>-1||!(mn!=null&&mn.type)?mn.align||mn.width?he.replaceSelection(`<p style="text-align:${mn.align||"initial"}"><img width="${mn.width?mn.width+"%":"initial"}" src="${bn}" alt="${ga||""}" /></p>`):he.replaceSelection(`<img width="100%" src="${bn}" alt="${ga||""}" />`):((Gn=mn==null?void 0:mn.type)==null?void 0:Gn.indexOf("video"))>-1?he.replaceSelection(`<video width="100%" controls src="${bn}"></video>`):((En=mn==null?void 0:mn.type)==null?void 0:En.indexOf("pdf"))>-1?he.replaceSelection(`<a href="${bn}?type=${mn.type}&disposition=inline" target="_blank">${mn.name}</a>`):Qt.includes(ma)?he.replaceSelection(`<a href="${bn}?type=office&disposition=inline" target="_blank">${mn.name}</a>`):he.replaceSelection(`[${mn.name}](${bn})`),he.focus();case Lt:const{row:ba,col:Ea,align:Ga}=st;let Fa=`
|
|
`;for(let ia=0;ia<ba;ia++){let Ba=[],xa=[];for(let Ca=0;Ca<Ea;Ca++)ia===1&&xa.push(Rt[Ga]),Ba.push(" ");ia===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ba.join(Ea===1?"":" | ")} |
|
|
`}return he.replaceSelection(Fa+`
|
|
`),he.focus();default:throw new Error}},[he,qe]),Zn=(0,ae.useMemo)(()=>{switch(qe){case Ie:return ae.createElement(kn,{callback:Vt,onCancel:Sn});case ht:return ae.createElement(hn.Z,{callback:Vt,onCancel:Sn});case Ye:return ae.createElement(pe.Z,{callback:Vt,onCancel:Sn});case rt:return ae.createElement(It,{callback:Vt,onCancel:Sn});case Lt:return ae.createElement(Jt,{callback:Vt,onCancel:Sn});case"maths-latex":return ae.createElement(pa,{showSaveButton:!0,callback:Vt});case"inline-latex":return ae.createElement(Vn.Z,{showSaveButton:!0,callback:Vt});default:return null}},[qe]);function Sn(){nt("")}(0,ae.useEffect)(()=>{if(ea.current){let st=function(Gn){Zt=!0,sn=Gn.pageY},Ze=function(){Zt=!1},et=function(Gn){if(Zt){let En=Gn.pageY-sn;En<0&&(En=0),En>300&&(En=300);let Dn=$e+En+"px";Kt(Dn)}},gt=ea.current,Zt=!1,sn=0;return gt.addEventListener("mousedown",st),document.addEventListener("mousemove",et),document.addEventListener("mouseup",Ze),()=>{gt.removeEventListener("mousedown",st),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",Ze)}}},[he,ea]),(0,ae.useEffect)(()=>{Kt($e)},[$e]);const oa=$n(ue),Yn=$n(Pt),va={width:oa,height:Yn},Pa=(0,ae.useMemo)(()=>{if(Ot){let st=new Date(Ot),Ze=st.getHours(),et=st.getMinutes(),gt=st.getSeconds();return Ze=Ze<10?"0"+Ze:Ze,et=et<10?"0"+et:et,gt=gt<10?"0"+gt:gt,`${Ze}:${et}:${gt}`}return 0},[Ot]),Pn=st=>{const Ze=[];if(xt){let et=-1;st=st.replace(/(@▁▁@|@▁@)/g,function(gt,Zt,sn){Ze.push({multiLine:gt!==yn})})}return Ze};function fn(){window.sessionStorage.removeItem(on),Hn(!1),At(0)}function ra(){Hn(!1),At(0),he.setValue(window.sessionStorage.getItem(on))}const sa=(0,Je.useIntl)(),fa={[Ie]:"\u6DFB\u52A0\u94FE\u63A5",[ht]:sa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Ye]:sa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[pt]:"\u6DFB\u52A0\u753B\u56FE",[rt]:sa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Lt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":sa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":sa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{fa[qe]&&qe!==pt&&qe!==rt&&setTimeout(()=>{const st=document.getElementsByClassName("markdown-popup-form")[0],Ze=window.innerWidth/2-st.offsetWidth/2,et=window.innerHeight/2-st.offsetHeight/2;ua(Ze),Rn(et)},0)},[qe]);const ya=st=>{st.preventDefault();const Ze=st.clientX-la,et=st.clientY-na;document.body.onmousemove=gt=>{let Zt=gt.clientX-Ze,sn=gt.clientY-et;const Gn=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth-Gn.offsetWidth,Dn=window.innerHeight-Gn.offsetHeight;Zt=Math.max(0,Math.min(Zt,En)),sn=Math.max(0,Math.min(sn,Dn)),wa(gt.clientX,gt.clientY,Ze,et)&&(ua(Zt),Rn(sn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(st,Ze,et,gt)=>{const Zt=document.body.clientHeight,sn=document.body.clientWidth;return st<20&&et>st||st>sn-20&&et<st||Ze<20&>>Ze||Ze>Zt-20&><Ze?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:qn},ae.createElement("div",{className:`markdown-editor-container ${Le} ${Xt?"on-preview":""} ${tt?"mini":""} ${Oe?"full-screen":""}`,style:va},ae.createElement(ie,{insertTemp:Bt,watch:Xt,fullScreen:Oe,showNullButton:je,showNullProgramButton:xt,onActionCallback:vt,hidetoolBar:On,extraUse:lt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:en,placeholder:Ae})),Xt?ae.createElement("div",{ref:ta,className:"preview-container"},mt==="stex"&&ae.createElement(Ve,{value:Mt}),mt!=="stex"&&ae.createElement(dt.Z,{disabledFill:Re,showProgramFill:xt,value:Mt})):null))),Un?ae.createElement("a",{ref:ea,className:"editor-resize"}):null,qe===pt&&ae.createElement(Qe,{callback:Vt,onCancel:Sn}),qe===rt&&ae.createElement(It,{callback:Vt,onCancel:Sn}),ae.createElement(fe.Z,null,fa[qe]&&qe!==pt&&qe!==rt?ae.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:na},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},fa[qe]),open:!0,onCancel:Sn,footer:null,destroyOnClose:!0,width:qe===rt?"1200px":null,height:qe===rt?"80vh":null,className:"markdown-popup-form"},Zn):null))}},72248:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return ie},I:function(){return ce}});var ae=ge(78241),Te=ge(8591),Ke=ge(92832),Ne=ge(81327),ve=ge(5871),we=ge(5112),se=ge(3113),_e=ge(2130),Ue=ge(59301),ze=ge(58938),dt=ge(58024),Ve=ge(59301),Je=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Be,Ce,Xe)=>Ce in Be?Je(Be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Be[Ce]=Xe,z=(Be,Ce)=>{for(var Xe in Ce||(Ce={}))E.call(Ce,Xe)&&x(Be,Xe,Ce[Xe]);if(y)for(var Xe of y(Ce))b.call(Ce,Xe)&&x(Be,Xe,Ce[Xe]);return Be},ee=(Be,Ce)=>te(Be,a(Ce));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:Be,onCancel:Ce})=>{const[Xe]=ne();let wt=(0,Ue.useRef)();const Ft=(0,dt.useIntl)();function tn(Nt){wt.current.width=Xe.getFieldValue("width"),wt.current.align=Xe.getFieldValue("align"),Be(Nt,wt.current)}function nn(Nt,Tt){if(Nt.status===-1){Te.ZP.error(Nt.message);return}Xe.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:Tt.type})}function bt(Nt){let Tt=Nt.target.files[0];wt.current=Tt,ce(Tt,nn)}return Ve.createElement(ae.default,ee(z({form:Xe},re),{className:"upload-image-panel",onFinish:tn,style:{width:470,overflow:"hidden"}}),Ve.createElement(ae.default.Item,{label:Ft.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Ve.createElement("div",{className:"flex-container"},Ve.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ve.createElement(Ke.default,{style:oe})),Ve.createElement(fe,{onFileChange:bt}))),Ve.createElement(ae.default.Item,{label:Ft.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Ve.createElement(Ke.default,{style:{width:264}})),Ve.createElement(ae.default.Item,{label:Ft.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Ve.createElement(Ne.Z,null,Ve.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ve.createElement(ve.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(ae.default.Item,{label:Ft.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Ve.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Ft.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Ft.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Ft.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Ve.createElement("aside",null,Ve.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ve.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ft.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Ve.createElement(se.ZP,{type:"default",onClick:Ce},Ft.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function fe({onFileChange:Be}){return Ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ve.createElement("input",{type:"file",onChange:Be}))}function ce(Be,Ce){if(!Be)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ze.bg)())throw Te.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",Be),Xe.append("file_param_name","editormd-image-file"),Xe.append("byxhr","true");var wt=new window.XMLHttpRequest;wt.withCredentials=!0,wt.addEventListener("load",function(Ft){Ce(JSON.parse(Ft.target.responseText),Be)},!1),wt.addEventListener("error",function(Ft){console.error(Ft)},!1),wt.open("POST",`${_e.KI}/api/attachments.json`),wt.send(Xe)}},31020:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Ke}});var ae=ge(59301),Te=ge(4676);class Ke extends ae.Component{constructor(ve){super(ve);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Te.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},87184:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var ae=ge(59301);function Te(Ke,Ne){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Ke}),(0,ae.useEffect)(()=>{function we(){ve.current()}if(Ne!==null){let se=setInterval(we,Ne);return()=>clearInterval(se)}},[Ne])}},54370:function(be,at,ge){"use strict";ge.r(at),ge.d(at,{default:function(){return De}});var ae=ge(59301),Te=ge(71418),Ke=ge(52626),Ne=ge(58024),ve=ge(24905),we=ge(54580),se=ge(78241),_e=ge(8591),Ue=ge(43418),ze=ge(92832),dt=ge(3113),Ve=ge(61481),Je=ge(29701),te=ge(99672),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Fe,He,Ee)=>He in Fe?a(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Fe[He]=Ee,ne=(Fe,He)=>{for(var Ee in He||(He={}))x.call(He,Ee)&&ee(Fe,Ee,He[Ee]);if(b)for(var Ee of b(He))z.call(He,Ee)&&ee(Fe,Ee,He[Ee]);return Fe},oe=(Fe,He)=>y(Fe,E(He)),re=(Fe,He)=>{var Ee={};for(var Qe in Fe)x.call(Fe,Qe)&&He.indexOf(Qe)<0&&(Ee[Qe]=Fe[Qe]);if(Fe!=null&&b)for(var Qe of b(Fe))He.indexOf(Qe)<0&&z.call(Fe,Qe)&&(Ee[Qe]=Fe[Qe]);return Ee};const ie=ve.default.Group,{Dragger:fe}=we.default;function ce(Fe,He){const Ee=new FileReader;Ee.addEventListener("load",()=>He(Ee.result)),Ee.readAsDataURL(Fe)}var Be=({callback:Fe,tags:He=[],initialValues:Ee={},removeAttachment:Qe})=>{const de=(0,Ne.useIntl)(),[We,ft]=(0,ae.useState)(""),[_t]=se.default.useForm();function St($t){const It=$t,{cover_id:Bn,attachment_ids:pn}=It,zn=re(It,["cover_id","attachment_ids"]);Fe(oe(ne({},zn),{cover_id:Bn==null?void 0:Bn.map(ln=>ln.response?ln.response.id:ln.uid)[(Bn==null?void 0:Bn.length)-1],attachment_ids:pn?pn==null?void 0:pn.map(ln=>ln.response?ln.response.id:ln.uid):[]}))}function Yt($t){return Array.isArray($t)?$t:$t&&$t.fileList}const Ct={multiple:!0,beforeUpload:$t=>{const It=$t.size/1024/1024<100;if(!It)return _e.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(100MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),It},action:`${Je.Z.API_SERVER}/api/attachments.json`,onRemove:$t=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:de.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Qe($t.response?$t.response.id:$t.uid),onCancel:()=>!1})}};function kt($t){$t.file.status==="done"&&ce($t.file.originFileObj,It=>ft(It))}const Mn={showUploadList:!1,withCredentials:!0,action:`${Je.Z.API_SERVER}/api/attachments.json`,onChange:kt};return(0,ae.useEffect)(()=>{Ee.title&&(_t.setFieldsValue(Ee),Ee.cover_id.length>0&&ft(Je.Z.IMG_SERVER+Ee.cover_id[0].url))},[Ee]),ae.createElement(se.default,{form:_t,initialValues:Ee,className:"moop-panel",style:{marginBottom:20},onFinish:St},ae.createElement(se.default.Item,{label:de.formatMessage({id:"classroomUploadVideoResourcesCheckIn.title",defaultMessage:"\u6807\u9898"}),name:"title",extra:ae.createElement("div",{className:"tip"},"\u7B80\u660E\u627C\u8981\u4ECB\u7ECD\u6587\u6863/\u89C6\u9891\u6240\u5305\u542B\u7684\u4E3B\u8981\u7684\u5185\u5BB9"),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ze.default,{placeholder:"\u4F8B\u5982\uFF1A\u8F6F\u4EF6\u5DE5\u7A0B\u6559\u5B66\u6848\u4F8B"})),ae.createElement("div",{className:"flex-container"},ae.createElement(se.default.Item,{label:"\u4F5C\u8005",name:"author_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u540D\u79F0"}]},ae.createElement(ze.default,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",style:{marginRight:20,width:200}})),ae.createElement(se.default.Item,{name:"author_school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0"}]},ae.createElement(ze.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0",style:{width:200}}))),ae.createElement(se.default.Item,{name:"tag_ids",label:"\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u6807\u7B7E"}]},ae.createElement(ie,null,He.map($t=>ae.createElement(ve.default,{key:$t.id,value:$t.id}," ",$t.name," ")))),ae.createElement(se.default.Item,{name:"publish",valuePropName:"checked"},ae.createElement(ve.default,null,"\u662F\u5426\u7533\u8BF7\u53D1\u5E03")),ae.createElement(se.default.Item,{name:"content",label:de.formatMessage({id:"classroomProgrammingHomework.description",defaultMessage:"\u63CF\u8FF0"}),valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ae.createElement(te.Z,{id:"moop_cases_content",height:400})),ae.createElement(se.default.Item,{name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Yt},ae.createElement(fe,ne({},Ct),ae.createElement("p",{className:"c-blue",style:{marginBottom:10,fontSize:18}},"\u4E0A\u4F20\u9644\u4EF6"),ae.createElement("p",{className:"c-grey-c"},"\u4ECE\u6211\u7684\u7535\u8111\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u6863\uFF1A\u6309\u4F4FCTRL\u53EF\u4EE5\u4E0A\u4F20\u591A\u4EFD\u6587\u6863\u3002\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\uFF1A100MB"))),ae.createElement(se.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE",extra:"\u4E0A\u4F20\u5C3A\u5BF8\uFF1A120*90 px",getValueFromEvent:Yt,valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE"}]},ae.createElement(we.default,ne({},Mn),We?ae.createElement("img",{src:We,width:120}):ae.createElement("a",{title:"\u4E0A\u4F20\u5C01\u9762\u56FE",className:"upload-cover"}," ",ae.createElement(Ve.Z,null)," "))),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u5BA1\u6838\u8BF4\u660E"),ae.createElement("p",null," \u5E73\u53F0\u7BA1\u7406\u5458\u5C06\u5BF9\u6BCF\u5929\u65B0\u4E0A\u4F20\u7684\u6587\u6863\u8FDB\u884C\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u7684\u6587\u6863\u5C06\u516C\u5F00\u663E\u793A\uFF0C\u5426\u5219\u5C06\u79C1\u6709\u5316\u6216\u79FB\u9664 ")),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u6E29\u99A8\u63D0\u793A"),ae.createElement("ul",{style:{padding:0}},ae.createElement("li",null,"1.\u8BF7\u52FF\u4E0A\u4F20\u5DF2\u8BBE\u7F6E\u52A0\u5BC6\u53E3\u4EE4\u7684\u6587\u6863\u8D44\u6E90\uFF1B"),ae.createElement("li",null,"2.\u53EF\u4EE5\u4E0A\u4F20\u7B26\u5408\u6559\u5B66\u6848\u4F8B\u6807\u51C6\u7684\u6587\u6863\u8D44\u6599\uFF0C\u5982",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34799",target:"_blank"}," \u6848\u4F8B\u5165\u5E93\u6807\u51C6 ")," \u3001",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34798",target:"_blank"},"\u6848\u4F8B\u4F7F\u7528\u8BF4\u660E\u4E66"),"\u4EE5\u53CA\u5176\u4ED6\u8D44\u6599\u7B49\uFF0C\u4E0A\u4F20\u652F\u6301\u7684\u6587\u4EF6\u6700\u5927\u5BB9\u91CF\uFF1A100MB\uFF1B"),ae.createElement("li",null,"3.\u8BF7\u786E\u4FDD\u4E0A\u4F20\u5185\u5BB9\u65E0\u4FB5\u6743\u6216\u8FDD\u53CD\u56FD\u5BB6\u5173\u4E8E\u4E92\u8054\u7F51\u653F\u7B56\u7684\u4E0D\u826F\u884C\u4E3A\uFF1B"),ae.createElement("li",null,"4.\u8BF7\u4F7F\u7528Chrome\uFF0CFirefox\uFF0CSafari\uFF0CIE11\uFF08\u53CA\u4EE5\u4E0A\u7248\u672C\uFF09\u6D4F\u89C8\u5668\uFF1B"))),ae.createElement(se.default.Item,{style:{marginTop:10}},ae.createElement(dt.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4")))},Ce=ge(67561),Xe=Object.defineProperty,wt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Nt=(Fe,He,Ee)=>He in Fe?Xe(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Fe[He]=Ee,Tt=(Fe,He)=>{for(var Ee in He||(He={}))nn.call(He,Ee)&&Nt(Fe,Ee,He[Ee]);if(tn)for(var Ee of tn(He))bt.call(He,Ee)&&Nt(Fe,Ee,He[Ee]);return Fe},Et=(Fe,He)=>wt(Fe,Ft(He)),dn=(Fe,He,Ee)=>new Promise((Qe,de)=>{var We=St=>{try{_t(Ee.next(St))}catch(Yt){de(Yt)}},ft=St=>{try{_t(Ee.throw(St))}catch(Yt){de(Yt)}},_t=St=>St.done?Qe(St.value):Promise.resolve(St.value).then(We,ft);_t((Ee=Ee.apply(Fe,He)).next())});const kn={loading:!1,data:{},tags:[]};var hn=(Fe=>(Fe[Fe.GET_DATA=0]="GET_DATA",Fe[Fe.SET_LOADING=1]="SET_LOADING",Fe[Fe.GET_TAGS=2]="GET_TAGS",Fe))(hn||{});function pe(Fe,He){switch(He.type){case 0:return Tt(Tt({},Fe),He.payload);case 2:return Et(Tt({},Fe),{tags:He.payload});case 1:return Et(Tt({},Fe),{loading:He.payload});default:throw new Error}}var De=()=>{const{caseId:Fe}=(0,Ne.useParams)(),[He,Ee]=(0,ae.useReducer)(pe,kn),{loading:Qe,tags:de,data:We}=He;(0,ae.useEffect)(()=>{function St(){return dn(this,null,function*(){const Yt=yield(0,Ce.rO)({tab_module_type:"moop_cases"});Yt.un_purchased&&Ee({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Ee({type:2,payload:Yt.library_tags})})}St()},[]),(0,ae.useEffect)(()=>{let St=!1;function Yt(){return dn(this,null,function*(){Ee({type:1,payload:!1});let Ct=yield(0,Ce.$J)(Fe);const{author_name:kt,author_school_name:Mn,content:$t,cover:It,attachments:Bn,status:pn,title:zn,tags:ln}=Ct;St||(Ct.status===404?Ne.history.push("/moop_cases"):Ee({type:0,payload:{data:{title:zn,author_name:kt,author_school_name:Mn,content:$t,tag_ids:ln.map(Jt=>Jt.id),publish:pn==="published",attachment_ids:Bn.map(Jt=>({uid:Jt.id,id:Jt.id,name:Jt.title,url:Jt.url,filesize:Jt.filesize,status:"done"})),cover_id:It!=null&&It.id?[{uid:It==null?void 0:It.id,id:It==null?void 0:It.id,name:It==null?void 0:It.title,url:It==null?void 0:It.url,filesize:It==null?void 0:It.filesize,status:"done"}]:[]},loading:!1}}))})}return!St&&Fe&&Yt(),()=>{St=!0}},[Fe]);function ft(St){return dn(this,null,function*(){if(Fe)yield(0,Ce.bN)(Fe,St),Ne.history.push(`/moop_cases/${Fe}/publish-success`);else{const{id:Yt}=yield(0,Ce.jP)(St);Yt&&Ne.history.push(`/moop_cases/${Yt}/publish-success`)}})}const _t={initialValues:We,tags:de,removeAttachment:Ce.JZ,callback:ft};return ae.createElement(Te.Z,{spinning:Qe,delay:500},ae.createElement("div",{className:"moop-info"},ae.createElement("div",{className:"crumb"},ae.createElement(Ne.Link,{to:"/moop_cases"},"\u6559\u5B66\u6848\u4F8B > "),ae.createElement("span",null,"\u65B0\u5EFA")),ae.createElement("div",{className:"title"},ae.createElement("h2",null,"\u4E0A\u4F20\u6559\u5B66\u6848\u4F8B"),ae.createElement(Ne.Link,{to:"/moop_cases"},"\u8FD4\u56DE")),ae.createElement(Be,Tt({},_t))))}},67561:function(be,at,ge){"use strict";ge.d(at,{$J:function(){return Ke},JZ:function(){return ve},bN:function(){return se},jP:function(){return we},rO:function(){return Ne}});var ae=ge(59729),Te=(_e,Ue,ze)=>new Promise((dt,Ve)=>{var Je=y=>{try{a(ze.next(y))}catch(E){Ve(E)}},te=y=>{try{a(ze.throw(y))}catch(E){Ve(E)}},a=y=>y.done?dt(y.value):Promise.resolve(y.value).then(Je,te);a((ze=ze.apply(_e,Ue)).next())});function Ke(_e){return(0,ae.U2)(`libraries/${_e}.json`)}function Ne(_e){return(0,ae.U2)("library_tags.json",_e)}function ve(_e){return Te(this,null,function*(){return(yield(0,ae.IV)(`attachments/${_e}.json`)).status===0})}function we(_e){return(0,ae.v_)("libraries.json",_e)}function se(_e,Ue){return(0,ae.gz)(`libraries/${_e}.json`,Ue)}},56762:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var ae=ge(59301);function Te(){const[,Ke]=ae.useReducer(Ne=>Ne+1,0);return Ke}},24905:function(be,at,ge){"use strict";ge.d(at,{default:function(){return re}});var ae=ge(92310),Te=ge.n(ae),Ke=ge(5630),Ne=ge(59301),ve=ge(36355),we=ge(1684),se=ge(32441),Ue=Ne.createContext(null),ze=ge(98447),dt=ge(14088),Ve=ge(4572),Je=function(ie,fe){var ce={};for(var Be in ie)Object.prototype.hasOwnProperty.call(ie,Be)&&fe.indexOf(Be)<0&&(ce[Be]=ie[Be]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Be=Object.getOwnPropertySymbols(ie);Ce<Be.length;Ce++)fe.indexOf(Be[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,Be[Ce])&&(ce[Be[Ce]]=ie[Be[Ce]]);return ce};const te=(ie,fe)=>{var ce;const{prefixCls:Be,className:Ce,rootClassName:Xe,children:wt,indeterminate:Ft=!1,style:tn,onMouseEnter:nn,onMouseLeave:bt,skipGroup:Nt=!1,disabled:Tt}=ie,Et=Je(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:dn,direction:kn,checkbox:hn}=Ne.useContext(ve.E_),pe=Ne.useContext(Ue),{isFormItemInput:De}=Ne.useContext(se.aM),Fe=Ne.useContext(we.Z),He=(ce=(pe==null?void 0:pe.disabled)||Tt)!==null&&ce!==void 0?ce:Fe,Ee=Ne.useRef(Et.value);Ne.useEffect(()=>{pe==null||pe.registerValue(Et.value)},[]),Ne.useEffect(()=>{if(!Nt)return Et.value!==Ee.current&&(pe==null||pe.cancelValue(Ee.current),pe==null||pe.registerValue(Et.value),Ee.current=Et.value),()=>pe==null?void 0:pe.cancelValue(Et.value)},[Et.value]);const Qe=dn("checkbox",Be),[de,We]=(0,ze.ZP)(Qe),ft=Object.assign({},Et);pe&&!Nt&&(ft.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),pe.toggleOption&&pe.toggleOption({label:wt,value:Et.value})},ft.name=pe.name,ft.checked=pe.value.includes(Et.value));const _t=Te()(`${Qe}-wrapper`,{[`${Qe}-rtl`]:kn==="rtl",[`${Qe}-wrapper-checked`]:ft.checked,[`${Qe}-wrapper-disabled`]:He,[`${Qe}-wrapper-in-form-item`]:De},hn==null?void 0:hn.className,Ce,Xe,We),St=Te()({[`${Qe}-indeterminate`]:Ft},Ve.A,We),Yt=Ft?"mixed":void 0;return de(Ne.createElement(dt.Z,{component:"Checkbox",disabled:He},Ne.createElement("label",{className:_t,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),tn),onMouseEnter:nn,onMouseLeave:bt},Ne.createElement(Ke.Z,Object.assign({"aria-checked":Yt},ft,{prefixCls:Qe,className:St,disabled:He,ref:fe})),wt!==void 0&&Ne.createElement("span",null,wt))))};var y=Ne.forwardRef(te),E=ge(94480),b=ge(2738),x=function(ie,fe){var ce={};for(var Be in ie)Object.prototype.hasOwnProperty.call(ie,Be)&&fe.indexOf(Be)<0&&(ce[Be]=ie[Be]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Be=Object.getOwnPropertySymbols(ie);Ce<Be.length;Ce++)fe.indexOf(Be[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,Be[Ce])&&(ce[Be[Ce]]=ie[Be[Ce]]);return ce};const z=(ie,fe)=>{const{defaultValue:ce,children:Be,options:Ce=[],prefixCls:Xe,className:wt,rootClassName:Ft,style:tn,onChange:nn}=ie,bt=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Nt,direction:Tt}=Ne.useContext(ve.E_),[Et,dn]=Ne.useState(bt.value||ce||[]),[kn,hn]=Ne.useState([]);Ne.useEffect(()=>{"value"in bt&&dn(bt.value||[])},[bt.value]);const pe=Ne.useMemo(()=>Ce.map(Ct=>typeof Ct=="string"||typeof Ct=="number"?{label:Ct,value:Ct}:Ct),[Ce]),De=Ct=>{hn(kt=>kt.filter(Mn=>Mn!==Ct))},Fe=Ct=>{hn(kt=>[].concat((0,E.Z)(kt),[Ct]))},He=Ct=>{const kt=Et.indexOf(Ct.value),Mn=(0,E.Z)(Et);kt===-1?Mn.push(Ct.value):Mn.splice(kt,1),"value"in bt||dn(Mn),nn==null||nn(Mn.filter($t=>kn.includes($t)).sort(($t,It)=>{const Bn=pe.findIndex(zn=>zn.value===$t),pn=pe.findIndex(zn=>zn.value===It);return Bn-pn}))},Ee=Nt("checkbox",Xe),Qe=`${Ee}-group`,[de,We]=(0,ze.ZP)(Ee),ft=(0,b.Z)(bt,["value","disabled"]),_t=Ce.length?pe.map(Ct=>Ne.createElement(y,{prefixCls:Ee,key:Ct.value.toString(),disabled:"disabled"in Ct?Ct.disabled:bt.disabled,value:Ct.value,checked:Et.includes(Ct.value),onChange:Ct.onChange,className:`${Qe}-item`,style:Ct.style,title:Ct.title},Ct.label)):Be,St={toggleOption:He,value:Et,disabled:bt.disabled,name:bt.name,registerValue:Fe,cancelValue:De},Yt=Te()(Qe,{[`${Qe}-rtl`]:Tt==="rtl"},wt,Ft,We);return de(Ne.createElement("div",Object.assign({className:Yt,style:tn},ft,{ref:fe}),Ne.createElement(Ue.Provider,{value:St},_t)))},ee=Ne.forwardRef(z);var ne=Ne.memo(ee);const oe=y;oe.Group=ne,oe.__ANT_CHECKBOX=!0;var re=oe},98447:function(be,at,ge){"use strict";ge.d(at,{C2:function(){return ve}});var ae=ge(17313),Te=ge(37613),Ke=ge(83116);const Ne=we=>{const{checkboxCls:se}=we,_e=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${_e}:not(${_e}-disabled),
|
|
${se}:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{borderColor:we.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${_e}-checked:not(${_e}-disabled),
|
|
${se}-checked:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:we.colorTextDisabled}}}]};function ve(we,se){const _e=(0,Te.TS)(se,{checkboxCls:`.${we}`,checkboxSize:se.controlInteractiveSize});return[Ne(_e)]}at.ZP=(0,Ke.Z)("Checkbox",(we,se)=>{let{prefixCls:_e}=se;return[ve(_e,we)]})},93948:function(be,at,ge){"use strict";ge.d(at,{Z:function(){return Vn}});var ae=ge(59301),Te=ge(29679),Ke=ge(40001),Ne=ge(19248),ve=ge(99267),we=ge(92310),se=ge.n(we),_e=ge(2738),Ue=ge(36355),ze=ge(54476),dt=ge(33885),Ve=ge(75931),Je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var xe=(0,ae.useRef)([]),Ie=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ye=Date.now(),rt=!1;xe.current.forEach(function(pt){if(pt){rt=!0;var yt=pt.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Ie.current&&Ye-Ie.current<100&&(yt.transitionDuration="0s, 0s")}}),rt&&(Ie.current=Date.now())}),xe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(xe){var Ie=(0,dt.Z)((0,dt.Z)({},Je),xe),Ye=Ie.className,rt=Ie.percent,pt=Ie.prefixCls,yt=Ie.strokeColor,ht=Ie.strokeLinecap,Lt=Ie.strokeWidth,jt=Ie.style,Rt=Ie.trailColor,Wt=Ie.trailWidth,un=Ie.transition,vn=(0,Ve.Z)(Ie,a);delete vn.gapPosition;var Ln=Array.isArray(rt)?rt:[rt],an=Array.isArray(yt)?yt:[yt],Ut=te(),An=Lt/2,yn=100-Lt/2,wn="M ".concat(ht==="round"?An:0,",").concat(An,`
|
|
L `).concat(ht==="round"?yn:100,",").concat(An),Qt="0 0 100 ".concat(Lt),$n=0;return ae.createElement("svg",(0,ze.Z)({className:se()("".concat(pt,"-line"),Ye),viewBox:Qt,preserveAspectRatio:"none",style:jt},vn),ae.createElement("path",{className:"".concat(pt,"-line-trail"),d:wn,strokeLinecap:ht,stroke:Rt,strokeWidth:Wt||Lt,fillOpacity:"0"}),Ln.map(function(Xn,jn){var In=1;switch(ht){case"round":In=1-Lt/100;break;case"square":In=1-Lt/2/100;break;default:In=1;break}var Qn={strokeDasharray:"".concat(Xn*In,"px, 100px"),strokeDashoffset:"-".concat($n,"px"),transition:un||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},le=an[jn]||an[an.length-1];return $n+=Xn,ae.createElement("path",{key:jn,className:"".concat(pt,"-line-path"),d:wn,strokeLinecap:ht,stroke:le,strokeWidth:Lt,fillOpacity:"0",ref:function(ue){Ut[jn]=ue},style:Qn})}))},E=y,b=ge(76190),x=ge(42978),z=ge(47273),ee=0,ne=(0,z.Z)();function oe(){var Pe;return ne?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var re=function(Pe){var xe=ae.useState(),Ie=(0,x.Z)(xe,2),Ye=Ie[0],rt=Ie[1];return ae.useEffect(function(){rt("rc_progress_".concat(oe()))},[]),Pe||Ye},ie=function(xe){var Ie=xe.bg,Ye=xe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ie}},Ye)};function fe(Pe,xe){return Object.keys(Pe).map(function(Ie){var Ye=parseFloat(Ie),rt="".concat(Math.floor(Ye*xe),"%");return"".concat(Pe[Ie]," ").concat(rt)})}var ce=ae.forwardRef(function(Pe,xe){var Ie=Pe.prefixCls,Ye=Pe.color,rt=Pe.gradientId,pt=Pe.radius,yt=Pe.style,ht=Pe.ptg,Lt=Pe.strokeLinecap,jt=Pe.strokeWidth,Rt=Pe.size,Wt=Pe.gapDegree,un=Ye&&(0,b.Z)(Ye)==="object",vn=un?"#FFF":void 0,Ln=Rt/2,an=ae.createElement("circle",{className:"".concat(Ie,"-circle-path"),r:pt,cx:Ln,cy:Ln,stroke:vn,strokeLinecap:Lt,strokeWidth:jt,opacity:ht===0?0:1,style:yt,ref:xe});if(!un)return an;var Ut="".concat(rt,"-conic"),An=Wt?"".concat(180+Wt/2,"deg"):"0deg",yn=fe(Ye,(360-Wt)/360),wn=fe(Ye,1),Qt="conic-gradient(from ".concat(An,", ").concat(yn.join(", "),")"),$n="linear-gradient(to ".concat(Wt?"bottom":"top",", ").concat(wn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ut},an),ae.createElement("foreignObject",{x:0,y:0,width:Rt,height:Rt,mask:"url(#".concat(Ut,")")},ae.createElement(ie,{bg:$n},ae.createElement(ie,{bg:Qt}))))}),Be=ce,Ce=100,Xe=function(xe,Ie,Ye,rt,pt,yt,ht,Lt,jt,Rt){var Wt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,un=Ye/100*360*((360-yt)/360),vn=yt===0?0:{bottom:0,top:180,left:90,right:-90}[ht],Ln=(100-rt)/100*Ie;jt==="round"&&rt!==100&&(Ln+=Rt/2,Ln>=Ie&&(Ln=Ie-.01));var an=Ce/2;return{stroke:typeof Lt=="string"?Lt:void 0,strokeDasharray:"".concat(Ie,"px ").concat(xe),strokeDashoffset:Ln+Wt,transform:"rotate(".concat(pt+un+vn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},wt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ft(Pe){var xe=Pe!=null?Pe:[];return Array.isArray(xe)?xe:[xe]}var tn=function(xe){var Ie=(0,dt.Z)((0,dt.Z)({},Je),xe),Ye=Ie.id,rt=Ie.prefixCls,pt=Ie.steps,yt=Ie.strokeWidth,ht=Ie.trailWidth,Lt=Ie.gapDegree,jt=Lt===void 0?0:Lt,Rt=Ie.gapPosition,Wt=Ie.trailColor,un=Ie.strokeLinecap,vn=Ie.style,Ln=Ie.className,an=Ie.strokeColor,Ut=Ie.percent,An=(0,Ve.Z)(Ie,wt),yn=Ce/2,wn=re(Ye),Qt="".concat(wn,"-gradient"),$n=yn-yt/2,Xn=Math.PI*2*$n,jn=jt>0?90+jt/2:-90,In=Xn*((360-jt)/360),Qn=(0,b.Z)(pt)==="object"?pt:{count:pt,space:2},le=Qn.count,Se=Qn.space,ue=Ft(Ut),$e=Ft(an),tt=$e.find(function(Fn){return Fn&&(0,b.Z)(Fn)==="object"}),it=tt&&(0,b.Z)(tt)==="object",Gt=it?"butt":un,Bt=Xe(Xn,In,0,100,jn,jt,Rt,Wt,Gt,yt),mt=te(),on=function(){var je=0;return ue.map(function(xt,On){var xn=$e[On]||$e[$e.length-1],cn=Xe(Xn,In,je,xt,jn,jt,Rt,xn,Gt,yt);return je+=xt,ae.createElement(Be,{key:On,color:xn,ptg:xt,radius:$n,prefixCls:rt,gradientId:Qt,style:cn,strokeLinecap:Gt,strokeWidth:yt,gapDegree:jt,ref:function(ye){mt[On]=ye},size:Ce})}).reverse()},Un=function(){var je=Math.round(le*(ue[0]/100)),xt=100/le,On=0;return new Array(le).fill(null).map(function(xn,cn){var me=cn<=je-1?$e[0]:Wt,ye=me&&(0,b.Z)(me)==="object"?"url(#".concat(Qt,")"):void 0,Le=Xe(Xn,In,On,xt,jn,jt,Rt,me,"butt",yt,Se);return On+=(In-Le.strokeDashoffset+Se)*100/In,ae.createElement("circle",{key:cn,className:"".concat(rt,"-circle-path"),r:$n,cx:yn,cy:yn,stroke:ye,strokeWidth:yt,opacity:1,style:Le,ref:function(ke){mt[cn]=ke}})})};return ae.createElement("svg",(0,ze.Z)({className:se()("".concat(rt,"-circle"),Ln),viewBox:"0 0 ".concat(Ce," ").concat(Ce),style:vn,id:Ye,role:"presentation"},An),!le&&ae.createElement("circle",{className:"".concat(rt,"-circle-trail"),r:$n,cx:yn,cy:yn,stroke:Wt,strokeLinecap:Gt,strokeWidth:ht||yt,style:Bt}),le?Un():on())},nn=tn,bt={Line:E,Circle:nn},Nt=ge(6848),Tt=ge(30071);function Et(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function dn(Pe){let{success:xe,successPercent:Ie}=Pe,Ye=Ie;return xe&&"progress"in xe&&(Ye=xe.progress),xe&&"percent"in xe&&(Ye=xe.percent),Ye}const kn=Pe=>{let{percent:xe,success:Ie,successPercent:Ye}=Pe;const rt=Et(dn({success:Ie,successPercent:Ye}));return[rt,Et(Et(xe)-rt)]},hn=Pe=>{let{success:xe={},strokeColor:Ie}=Pe;const{strokeColor:Ye}=xe;return[Ye||Tt.presetPrimaryColors.green,Ie||null]},pe=(Pe,xe,Ie)=>{var Ye,rt,pt,yt;let ht=-1,Lt=-1;if(xe==="step"){const jt=Ie.steps,Rt=Ie.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(ht=Pe==="small"?2:14,Lt=Rt!=null?Rt:8):typeof Pe=="number"?[ht,Lt]=[Pe,Pe]:[ht=14,Lt=8]=Pe,ht*=jt}else if(xe==="line"){const jt=Ie==null?void 0:Ie.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Lt=jt||(Pe==="small"?6:8):typeof Pe=="number"?[ht,Lt]=[Pe,Pe]:[ht=-1,Lt=8]=Pe}else(xe==="circle"||xe==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[ht,Lt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[ht,Lt]=[Pe,Pe]:(ht=(rt=(Ye=Pe[0])!==null&&Ye!==void 0?Ye:Pe[1])!==null&&rt!==void 0?rt:120,Lt=(yt=(pt=Pe[0])!==null&&pt!==void 0?pt:Pe[1])!==null&&yt!==void 0?yt:120));return[ht,Lt]},De=3,Fe=Pe=>De/Pe*100;var Ee=Pe=>{const{prefixCls:xe,trailColor:Ie=null,strokeLinecap:Ye="round",gapPosition:rt,gapDegree:pt,width:yt=120,type:ht,children:Lt,success:jt,size:Rt=yt}=Pe,[Wt,un]=pe(Rt,"circle");let{strokeWidth:vn}=Pe;vn===void 0&&(vn=Math.max(Fe(Wt),6));const Ln={width:Wt,height:un,fontSize:Wt*.15+6},an=ae.useMemo(()=>{if(pt||pt===0)return pt;if(ht==="dashboard")return 75},[pt,ht]),Ut=rt||ht==="dashboard"&&"bottom"||void 0,An=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",yn=hn({success:jt,strokeColor:Pe.strokeColor}),wn=se()(`${xe}-inner`,{[`${xe}-circle-gradient`]:An}),Qt=ae.createElement(nn,{percent:kn(Pe),strokeWidth:vn,trailWidth:vn,strokeColor:yn,strokeLinecap:Ye,trailColor:Ie,prefixCls:xe,gapDegree:an,gapPosition:Ut});return ae.createElement("div",{className:wn,style:Ln},Wt<=20?ae.createElement(Nt.Z,{title:Lt},ae.createElement("span",null,Qt)):ae.createElement(ae.Fragment,null,Qt,Lt))},Qe=function(Pe,xe){var Ie={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&xe.indexOf(Ye)<0&&(Ie[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ye=Object.getOwnPropertySymbols(Pe);rt<Ye.length;rt++)xe.indexOf(Ye[rt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[rt])&&(Ie[Ye[rt]]=Pe[Ye[rt]]);return Ie};const de=Pe=>{let xe=[];return Object.keys(Pe).forEach(Ie=>{const Ye=parseFloat(Ie.replace(/%/g,""));isNaN(Ye)||xe.push({key:Ye,value:Pe[Ie]})}),xe=xe.sort((Ie,Ye)=>Ie.key-Ye.key),xe.map(Ie=>{let{key:Ye,value:rt}=Ie;return`${rt} ${Ye}%`}).join(", ")},We=(Pe,xe)=>{const{from:Ie=Tt.presetPrimaryColors.blue,to:Ye=Tt.presetPrimaryColors.blue,direction:rt=xe==="rtl"?"to left":"to right"}=Pe,pt=Qe(Pe,["from","to","direction"]);if(Object.keys(pt).length!==0){const yt=de(pt);return{backgroundImage:`linear-gradient(${rt}, ${yt})`}}return{backgroundImage:`linear-gradient(${rt}, ${Ie}, ${Ye})`}};var _t=Pe=>{const{prefixCls:xe,direction:Ie,percent:Ye,size:rt,strokeWidth:pt,strokeColor:yt,strokeLinecap:ht="round",children:Lt,trailColor:jt=null,success:Rt}=Pe,Wt=yt&&typeof yt!="string"?We(yt,Ie):{backgroundColor:yt},un=ht==="square"||ht==="butt"?0:void 0,vn={backgroundColor:jt||void 0,borderRadius:un},Ln=rt!=null?rt:[-1,pt||(rt==="small"?6:8)],[an,Ut]=pe(Ln,"line",{strokeWidth:pt}),An=Object.assign({width:`${Et(Ye)}%`,height:Ut,borderRadius:un},Wt),yn=dn(Pe),wn={width:`${Et(yn)}%`,height:Ut,borderRadius:un,backgroundColor:Rt==null?void 0:Rt.strokeColor},Qt={width:an<0?"100%":an,height:Ut};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${xe}-outer`,style:Qt},ae.createElement("div",{className:`${xe}-inner`,style:vn},ae.createElement("div",{className:`${xe}-bg`,style:An}),yn!==void 0?ae.createElement("div",{className:`${xe}-success-bg`,style:wn}):null)),Lt)},Yt=Pe=>{const{size:xe,steps:Ie,percent:Ye=0,strokeWidth:rt=8,strokeColor:pt,trailColor:yt=null,prefixCls:ht,children:Lt}=Pe,jt=Math.round(Ie*(Ye/100)),Rt=xe==="small"?2:14,Wt=xe!=null?xe:[Rt,rt],[un,vn]=pe(Wt,"step",{steps:Ie,strokeWidth:rt}),Ln=un/Ie,an=new Array(Ie);for(let Ut=0;Ut<Ie;Ut++){const An=Array.isArray(pt)?pt[Ut]:pt;an[Ut]=ae.createElement("div",{key:Ut,className:se()(`${ht}-steps-item`,{[`${ht}-steps-item-active`]:Ut<=jt-1}),style:{backgroundColor:Ut<=jt-1?An:yt,width:Ln,height:vn}})}return ae.createElement("div",{className:`${ht}-steps-outer`},an,Lt)},Ct=ge(36237),kt=ge(17313),Mn=ge(83116),$t=ge(37613);const It=Pe=>{const xe=Pe?"100%":"-100%";return new Ct.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Bn=Pe=>{const{componentCls:xe,iconCls:Ie}=Pe;return{[xe]:Object.assign(Object.assign({},(0,kt.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Pe.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ie]:{fontSize:Pe.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:It(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:It(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:Pe.colorError},[`${xe}-text`]:{color:Pe.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Pe.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:Pe.colorSuccess},[`${xe}-text`]:{color:Pe.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:Pe.colorSuccess}}})}},pn=Pe=>{const{componentCls:xe,iconCls:Ie}=Pe;return{[xe]:{[`${xe}-circle-trail`]:{stroke:Pe.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ie]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:Pe.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:Pe.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},zn=Pe=>{const{componentCls:xe}=Pe;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},ln=Pe=>{const{componentCls:xe,iconCls:Ie}=Pe;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${Ie}`]:{fontSize:Pe.fontSizeSM}}}};var Jt=(0,Mn.Z)("Progress",Pe=>{const xe=Pe.marginXXS/2,Ie=(0,$t.TS)(Pe,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[Bn(Ie),pn(Ie),zn(Ie),ln(Ie)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nn=function(Pe,xe){var Ie={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&xe.indexOf(Ye)<0&&(Ie[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ye=Object.getOwnPropertySymbols(Pe);rt<Ye.length;rt++)xe.indexOf(Ye[rt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[rt])&&(Ie[Ye[rt]]=Pe[Ye[rt]]);return Ie};const ca=null,ha=["normal","exception","active","success"];var pa=ae.forwardRef((Pe,xe)=>{const{prefixCls:Ie,className:Ye,rootClassName:rt,steps:pt,strokeColor:yt,percent:ht=0,size:Lt="default",showInfo:jt=!0,type:Rt="line",status:Wt,format:un,style:vn}=Pe,Ln=Nn(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=ae.useMemo(()=>{var ue,$e;const tt=dn(Pe);return parseInt(tt!==void 0?(ue=tt!=null?tt:0)===null||ue===void 0?void 0:ue.toString():($e=ht!=null?ht:0)===null||$e===void 0?void 0:$e.toString(),10)},[ht,Pe.success,Pe.successPercent]),Ut=ae.useMemo(()=>!ha.includes(Wt)&&an>=100?"success":Wt||"normal",[Wt,an]),{getPrefixCls:An,direction:yn,progress:wn}=ae.useContext(Ue.E_),Qt=An("progress",Ie),[$n,Xn]=Jt(Qt),jn=ae.useMemo(()=>{if(!jt)return null;const ue=dn(Pe);let $e;const tt=un||(Gt=>`${Gt}%`),it=Rt==="line";return un||Ut!=="exception"&&Ut!=="success"?$e=tt(Et(ht),Et(ue)):Ut==="exception"?$e=it?ae.createElement(Ne.Z,null):ae.createElement(ve.Z,null):Ut==="success"&&($e=it?ae.createElement(Te.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${Qt}-text`,title:typeof $e=="string"?$e:void 0},$e)},[jt,ht,an,Ut,Rt,Qt,un]),In=Array.isArray(yt)?yt[0]:yt,Qn=typeof yt=="string"||Array.isArray(yt)?yt:void 0;let le;Rt==="line"?le=pt?ae.createElement(Yt,Object.assign({},Pe,{strokeColor:Qn,prefixCls:Qt,steps:pt}),jn):ae.createElement(_t,Object.assign({},Pe,{strokeColor:In,prefixCls:Qt,direction:yn}),jn):(Rt==="circle"||Rt==="dashboard")&&(le=ae.createElement(Ee,Object.assign({},Pe,{strokeColor:In,prefixCls:Qt,progressStatus:Ut}),jn));const Se=se()(Qt,`${Qt}-status-${Ut}`,`${Qt}-${Rt==="dashboard"&&"circle"||pt&&"steps"||Rt}`,{[`${Qt}-inline-circle`]:Rt==="circle"&&pe(Lt,"circle")[0]<=20,[`${Qt}-show-info`]:jt,[`${Qt}-${Lt}`]:typeof Lt=="string",[`${Qt}-rtl`]:yn==="rtl"},wn==null?void 0:wn.className,Ye,rt,Xn);return $n(ae.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),vn),className:Se,role:"progressbar","aria-valuenow":an},(0,_e.Z)(Ln,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),le))}),Vn=pa},54580:function(be,at,ge){"use strict";ge.d(at,{default:function(){return cn}});var ae=ge(59301),Te=ge(94480),Ke=ge(92310),Ne=ge.n(Ke),ve=ge(54476),we=ge(67732),se=ge(83652),_e=ge(42403),Ue=ge(158),ze=ge(20068),dt=ge(75931),Ve=ge(75044),Je=ge(76190),te=ge(3202),a=ge(26112);function y(me,ye){var Le="cannot ".concat(me.method," ").concat(me.action," ").concat(ye.status,"'"),Ge=new Error(Le);return Ge.status=ye.status,Ge.method=me.method,Ge.url=me.action,Ge}function E(me){var ye=me.responseText||me.response;if(!ye)return ye;try{return JSON.parse(ye)}catch(Le){return ye}}function b(me){var ye=new XMLHttpRequest;me.onProgress&&ye.upload&&(ye.upload.onprogress=function(Re){Re.total>0&&(Re.percent=Re.loaded/Re.total*100),me.onProgress(Re)});var Le=new FormData;me.data&&Object.keys(me.data).forEach(function(ke){var Re=me.data[ke];if(Array.isArray(Re)){Re.forEach(function(Ae){Le.append("".concat(ke,"[]"),Ae)});return}Le.append(ke,Re)}),me.file instanceof Blob?Le.append(me.filename,me.file,me.file.name):Le.append(me.filename,me.file),ye.onerror=function(Re){me.onError(Re)},ye.onload=function(){return ye.status<200||ye.status>=300?me.onError(y(me,ye),E(ye)):me.onSuccess(E(ye),ye)},ye.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in ye&&(ye.withCredentials=!0);var Ge=me.headers||{};return Ge["X-Requested-With"]!==null&&ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ge).forEach(function(ke){Ge[ke]!==null&&ye.setRequestHeader(ke,Ge[ke])}),ye.send(Le),{abort:function(){ye.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=ge(48736),oe=function(me,ye){if(me&&ye){var Le=Array.isArray(ye)?ye:ye.split(","),Ge=me.name||"",ke=me.type||"",Re=ke.replace(/\/.*$/,"");return Le.some(function(Ae){var Me=Ae.trim();if(/^\*(\/\*)?$/.test(Ae))return!0;if(Me.charAt(0)==="."){var lt=Ge.toLowerCase(),he=Me.toLowerCase(),ut=[he];return(he===".jpg"||he===".jpeg")&&(ut=[".jpg",".jpeg"]),ut.some(function(Mt){return lt.endsWith(Mt)})}return/\/\*$/.test(Me)?Re===Me.replace(/\/.*$/,""):ke===Me?!0:/^\w+$/.test(Me)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Me,"'.Skip for check.")),!0):!1})}return!0};function re(me,ye){var Le=me.createReader(),Ge=[];function ke(){Le.readEntries(function(Re){var Ae=Array.prototype.slice.apply(Re);Ge=Ge.concat(Ae);var Me=!Ae.length;Me?ye(Ge):ke()})}ke()}var ie=function(ye,Le,Ge){var ke=function Re(Ae,Me){Ae&&(Ae.path=Me||"",Ae.isFile?Ae.file(function(lt){Ge(lt)&&(Ae.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=Ae.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),Le([lt]))}):Ae.isDirectory&&re(Ae,function(lt){lt.forEach(function(he){Re(he,"".concat(Me).concat(Ae.name,"/"))})}))};ye.forEach(function(Re){ke(Re.webkitGetAsEntry())})},fe=ie,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(me){(0,_e.Z)(Le,me);var ye=(0,Ue.Z)(Le);function Le(){var Ge;(0,we.Z)(this,Le);for(var ke=arguments.length,Re=new Array(ke),Ae=0;Ae<ke;Ae++)Re[Ae]=arguments[Ae];return Ge=ye.call.apply(ye,[this].concat(Re)),Ge.state={uid:ee()},Ge.reqs={},Ge.fileInput=void 0,Ge._isMounted=void 0,Ge.onChange=function(Me){var lt=Ge.props,he=lt.accept,ut=lt.directory,Mt=Me.target.files,Dt=(0,Te.Z)(Mt).filter(function(Xt){return!ut||oe(Xt,he)});Ge.uploadFiles(Dt),Ge.reset()},Ge.onClick=function(Me){var lt=Ge.fileInput;if(lt){var he=Me.target,ut=Ge.props.onClick;if(he&&he.tagName==="BUTTON"){var Mt=lt.parentNode;Mt.focus(),he.blur()}lt.click(),ut&&ut(Me)}},Ge.onKeyDown=function(Me){Me.key==="Enter"&&Ge.onClick(Me)},Ge.onFileDrop=function(Me){var lt=Ge.props.multiple;if(Me.preventDefault(),Me.type!=="dragover")if(Ge.props.directory)fe(Array.prototype.slice.call(Me.dataTransfer.items),Ge.uploadFiles,function(ut){return oe(ut,Ge.props.accept)});else{var he=(0,Te.Z)(Me.dataTransfer.files).filter(function(ut){return oe(ut,Ge.props.accept)});lt===!1&&(he=he.slice(0,1)),Ge.uploadFiles(he)}},Ge.uploadFiles=function(Me){var lt=(0,Te.Z)(Me),he=lt.map(function(ut){return ut.uid=ee(),Ge.processFile(ut,lt)});Promise.all(he).then(function(ut){var Mt=Ge.props.onBatchStart;Mt==null||Mt(ut.map(function(Dt){var Xt=Dt.origin,Cn=Dt.parsedFile;return{file:Xt,parsedFile:Cn}})),ut.filter(function(Dt){return Dt.parsedFile!==null}).forEach(function(Dt){Ge.post(Dt)})})},Ge.processFile=function(){var Me=(0,te.Z)((0,Ve.Z)().mark(function lt(he,ut){var Mt,Dt,Xt,Cn,Oe,ot,qe,nt,Ot;return(0,Ve.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Mt=Ge.props.beforeUpload,Dt=he,!Mt){Pt.next=14;break}return Pt.prev=3,Pt.next=6,Mt(he,ut);case 6:Dt=Pt.sent,Pt.next=12;break;case 9:Pt.prev=9,Pt.t0=Pt.catch(3),Dt=!1;case 12:if(Dt!==!1){Pt.next=14;break}return Pt.abrupt("return",{origin:he,parsedFile:null,action:null,data:null});case 14:if(Xt=Ge.props.action,typeof Xt!="function"){Pt.next=21;break}return Pt.next=18,Xt(he);case 18:Cn=Pt.sent,Pt.next=22;break;case 21:Cn=Xt;case 22:if(Oe=Ge.props.data,typeof Oe!="function"){Pt.next=29;break}return Pt.next=26,Oe(he);case 26:ot=Pt.sent,Pt.next=30;break;case 29:ot=Oe;case 30:return qe=((0,Je.Z)(Dt)==="object"||typeof Dt=="string")&&Dt?Dt:he,qe instanceof File?nt=qe:nt=new File([qe],he.name,{type:he.type}),Ot=nt,Ot.uid=he.uid,Pt.abrupt("return",{origin:he,data:ot,parsedFile:Ot,action:Cn});case 35:case"end":return Pt.stop()}},lt,null,[[3,9]])}));return function(lt,he){return Me.apply(this,arguments)}}(),Ge.saveFileInput=function(Me){Ge.fileInput=Me},Ge}return(0,se.Z)(Le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ke){var Re=this,Ae=ke.data,Me=ke.origin,lt=ke.action,he=ke.parsedFile;if(this._isMounted){var ut=this.props,Mt=ut.onStart,Dt=ut.customRequest,Xt=ut.name,Cn=ut.headers,Oe=ut.withCredentials,ot=ut.method,qe=Me.uid,nt=Dt||b,Ot={action:lt,filename:Xt,data:Ae,file:he,headers:Cn,withCredentials:Oe,method:ot||"post",onProgress:function(Pt){var Kt=Re.props.onProgress;Kt==null||Kt(Pt,he)},onSuccess:function(Pt,Kt){var qt=Re.props.onSuccess;qt==null||qt(Pt,he,Kt),delete Re.reqs[qe]},onError:function(Pt,Kt){var qt=Re.props.onError;qt==null||qt(Pt,Kt,he),delete Re.reqs[qe]}};Mt(Me),this.reqs[qe]=nt(Ot)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ke){var Re=this.reqs;if(ke){var Ae=ke.uid?ke.uid:ke;Re[Ae]&&Re[Ae].abort&&Re[Ae].abort(),delete Re[Ae]}else Object.keys(Re).forEach(function(Me){Re[Me]&&Re[Me].abort&&Re[Me].abort(),delete Re[Me]})}},{key:"render",value:function(){var ke=this.props,Re=ke.component,Ae=ke.prefixCls,Me=ke.className,lt=ke.disabled,he=ke.id,ut=ke.style,Mt=ke.multiple,Dt=ke.accept,Xt=ke.capture,Cn=ke.children,Oe=ke.directory,ot=ke.openFileDialogOnClick,qe=ke.onMouseEnter,nt=ke.onMouseLeave,Ot=(0,dt.Z)(ke,ce),At=Ne()((0,ze.Z)((0,ze.Z)((0,ze.Z)({},Ae,!0),"".concat(Ae,"-disabled"),lt),Me,Me)),Pt=Oe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Kt=lt?{}:{onClick:ot?this.onClick:function(){},onKeyDown:ot?this.onKeyDown:function(){},onMouseEnter:qe,onMouseLeave:nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Re,(0,ve.Z)({},Kt,{className:At,role:"button",style:ut}),ae.createElement("input",(0,ve.Z)({},(0,a.Z)(Ot,{aria:!0,data:!0}),{id:he,disabled:lt,type:"file",ref:this.saveFileInput,onClick:function(Hn){return Hn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Dt},Pt,{multiple:Mt,onChange:this.onChange},Xt!=null?{capture:Xt}:{})),Cn)}}]),Le}(ae.Component),Ce=Be;function Xe(){}var wt=function(me){(0,_e.Z)(Le,me);var ye=(0,Ue.Z)(Le);function Le(){var Ge;(0,we.Z)(this,Le);for(var ke=arguments.length,Re=new Array(ke),Ae=0;Ae<ke;Ae++)Re[Ae]=arguments[Ae];return Ge=ye.call.apply(ye,[this].concat(Re)),Ge.uploader=void 0,Ge.saveUploader=function(Me){Ge.uploader=Me},Ge}return(0,se.Z)(Le,[{key:"abort",value:function(ke){this.uploader.abort(ke)}},{key:"render",value:function(){return ae.createElement(Ce,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),Le}(ae.Component);wt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Xe,onError:Xe,onSuccess:Xe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ft=wt,tn=Ft,nn=ge(18929),bt=ge(4676),Nt=ge(36355),Tt=ge(1684),Et=ge(9763),dn=ge(31724),kn={icon:function(ye,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Le}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:ye}}]}},name:"file",theme:"twotone"},hn=kn,pe=ge(7657),De=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:hn}))},Fe=ae.forwardRef(De),He=Fe,Ee=ge(58617),Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=Qe,We=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:de}))},ft=ae.forwardRef(We),_t=ft,St={icon:function(ye,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:ye}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Le}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Le}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Le}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:ye}}]}},name:"picture",theme:"twotone"},Yt=St,Ct=function(ye,Le){return ae.createElement(pe.Z,(0,ve.Z)({},ye,{ref:Le,icon:Yt}))},kt=ae.forwardRef(Ct),Mn=kt,$t=ge(77900),It=ge(56762),Bn=ge(62892),pn=ge(92343),zn=ge(3113);function ln(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function Jt(me,ye){const Le=(0,Te.Z)(ye),Ge=Le.findIndex(ke=>{let{uid:Re}=ke;return Re===me.uid});return Ge===-1?Le.push(me):Le[Ge]=me,Le}function Nn(me,ye){const Le=me.uid!==void 0?"uid":"name";return ye.filter(Ge=>Ge[Le]===me[Le])[0]}function ca(me,ye){const Le=me.uid!==void 0?"uid":"name",Ge=ye.filter(ke=>ke[Le]!==me[Le]);return Ge.length===ye.length?null:Ge}const ha=function(){const ye=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ge=ye[ye.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ge)||[""])[0]},La=me=>me.indexOf("image/")===0,pa=me=>{if(me.type&&!me.thumbUrl)return La(me.type);const ye=me.thumbUrl||me.url||"",Le=ha(ye);return/^data:image\//.test(ye)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Le)?!0:!(/^data:/.test(ye)||Le)},Vn=200;function Pe(me){return new Promise(ye=>{if(!me.type||!La(me.type)){ye("");return}const Le=document.createElement("canvas");Le.width=Vn,Le.height=Vn,Le.style.cssText=`position: fixed; left: 0; top: 0; width: ${Vn}px; height: ${Vn}px; z-index: 9999; display: none;`,document.body.appendChild(Le);const Ge=Le.getContext("2d"),ke=new Image;if(ke.onload=()=>{const{width:Re,height:Ae}=ke;let Me=Vn,lt=Vn,he=0,ut=0;Re>Ae?(lt=Ae*(Vn/Re),ut=-(lt-Me)/2):(Me=Re*(Vn/Ae),he=-(Me-lt)/2),Ge.drawImage(ke,he,ut,Me,lt);const Mt=Le.toDataURL();document.body.removeChild(Le),window.URL.revokeObjectURL(ke.src),ye(Mt)},ke.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Re=new FileReader;Re.onload=()=>{Re.result&&(ke.src=Re.result)},Re.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Re=new FileReader;Re.onload=()=>{Re.result&&ye(Re.result)},Re.readAsDataURL(me)}else ke.src=window.URL.createObjectURL(me)})}var xe=ge(26227),Ie=ge(41464),Ye=ge(15277),rt=ge(93948),pt=ge(6848),ht=ae.forwardRef((me,ye)=>{let{prefixCls:Le,className:Ge,style:ke,locale:Re,listType:Ae,file:Me,items:lt,progress:he,iconRender:ut,actionIconRender:Mt,itemRender:Dt,isImgUrl:Xt,showPreviewIcon:Cn,showRemoveIcon:Oe,showDownloadIcon:ot,previewIcon:qe,removeIcon:nt,downloadIcon:Ot,onPreview:At,onDownload:Pt,onClose:Kt}=me;var qt,Hn;const{status:Kn}=Me,[Wn,da]=ae.useState(Kn);ae.useEffect(()=>{Kn!=="removed"&&da(Kn)},[Kn]);const[la,ua]=ae.useState(!1);ae.useEffect(()=>{const Pn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(Pn)}},[]);const na=ut(Me);let Rn=ae.createElement("div",{className:`${Le}-icon`},na);if(Ae==="picture"||Ae==="picture-card"||Ae==="picture-circle")if(Wn==="uploading"||!Me.thumbUrl&&!Me.url){const Pn=Ne()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Wn!=="uploading"});Rn=ae.createElement("div",{className:Pn},na)}else{const Pn=Xt!=null&&Xt(Me)?ae.createElement("img",{src:Me.thumbUrl||Me.url,alt:Me.name,className:`${Le}-list-item-image`,crossOrigin:Me.crossOrigin}):na,fn=Ne()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Xt&&!Xt(Me)});Rn=ae.createElement("a",{className:fn,onClick:ra=>At(Me,ra),href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pn)}const en=Ne()(`${Le}-list-item`,`${Le}-list-item-${Wn}`),qn=typeof Me.linkProps=="string"?JSON.parse(Me.linkProps):Me.linkProps,ea=Oe?Mt((typeof nt=="function"?nt(Me):nt)||ae.createElement(xe.Z,null),()=>Kt(Me),Le,Re.removeFile):null,ta=ot&&Wn==="done"?Mt((typeof Ot=="function"?Ot(Me):Ot)||ae.createElement(Ie.Z,null),()=>Pt(Me),Le,Re.downloadFile):null,aa=Ae!=="picture-card"&&Ae!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ne()(`${Le}-list-item-actions`,{picture:Ae==="picture"})},ta,ea),_n=Ne()(`${Le}-list-item-name`),Sa=Me.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_n,title:Me.name},qn,{href:Me.url,onClick:Pn=>At(Me,Pn)}),Me.name),aa]:[ae.createElement("span",{key:"view",className:_n,onClick:Pn=>At(Me,Pn),title:Me.name},Me.name),aa],vt={pointerEvents:"none",opacity:.5},Vt=Cn?ae.createElement("a",{href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Me.url||Me.thumbUrl?void 0:vt,onClick:Pn=>At(Me,Pn),title:Re.previewFile},typeof qe=="function"?qe(Me):qe||ae.createElement(Ye.Z,null)):null,Zn=(Ae==="picture-card"||Ae==="picture-circle")&&Wn!=="uploading"&&ae.createElement("span",{className:`${Le}-list-item-actions`},Vt,Wn==="done"&&ta,ea),{getPrefixCls:Sn}=ae.useContext(Nt.E_),oa=Sn(),Yn=ae.createElement("div",{className:en},Rn,Sa,Zn,la&&ae.createElement($t.default,{motionName:`${oa}-fade`,visible:Wn==="uploading",motionDeadline:2e3},Pn=>{let{className:fn}=Pn;const ra="percent"in Me?ae.createElement(rt.Z,Object.assign({},he,{type:"line",percent:Me.percent,"aria-label":Me["aria-label"],"aria-labelledby":Me["aria-labelledby"]})):null;return ae.createElement("div",{className:Ne()(`${Le}-list-item-progress`,fn)},ra)})),va=Me.response&&typeof Me.response=="string"?Me.response:((qt=Me.error)===null||qt===void 0?void 0:qt.statusText)||((Hn=Me.error)===null||Hn===void 0?void 0:Hn.message)||Re.uploadError,Pa=Wn==="error"?ae.createElement(pt.Z,{title:va,getPopupContainer:Pn=>Pn.parentNode},Yn):Yn;return ae.createElement("div",{className:Ne()(`${Le}-list-item-container`,Ge),style:ke,ref:ye},Dt?Dt(Pa,Me,lt,{download:Pt.bind(null,Me),preview:At.bind(null,Me),remove:Kt.bind(null,Me)}):Pa)});const Lt=(me,ye)=>{const{listType:Le="text",previewFile:Ge=Pe,onPreview:ke,onDownload:Re,onRemove:Ae,locale:Me,iconRender:lt,isImageUrl:he=pa,prefixCls:ut,items:Mt=[],showPreviewIcon:Dt=!0,showRemoveIcon:Xt=!0,showDownloadIcon:Cn=!1,removeIcon:Oe,previewIcon:ot,downloadIcon:qe,progress:nt={size:[-1,2],showInfo:!1},appendAction:Ot,appendActionVisible:At=!0,itemRender:Pt,disabled:Kt}=me,qt=(0,It.Z)(),[Hn,Kn]=ae.useState(!1);ae.useEffect(()=>{Le!=="picture"&&Le!=="picture-card"&&Le!=="picture-circle"||(Mt||[]).forEach(vt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(vt.originFileObj instanceof File||vt.originFileObj instanceof Blob)||vt.thumbUrl!==void 0||(vt.thumbUrl="",Ge&&Ge(vt.originFileObj).then(Vt=>{vt.thumbUrl=Vt||"",qt()}))})},[Le,Mt,Ge]),ae.useEffect(()=>{Kn(!0)},[]);const Wn=(vt,Vt)=>{if(ke)return Vt==null||Vt.preventDefault(),ke(vt)},da=vt=>{typeof Re=="function"?Re(vt):vt.url&&window.open(vt.url)},la=vt=>{Ae==null||Ae(vt)},ua=vt=>{if(lt)return lt(vt,Le);const Vt=vt.status==="uploading",Zn=he&&he(vt)?ae.createElement(Mn,null):ae.createElement(He,null);let Sn=Vt?ae.createElement(Ee.Z,null):ae.createElement(_t,null);return Le==="picture"?Sn=Vt?ae.createElement(Ee.Z,null):Zn:(Le==="picture-card"||Le==="picture-circle")&&(Sn=Vt?Me.uploading:Zn),Sn},na=(vt,Vt,Zn,Sn)=>{const oa={type:"text",size:"small",title:Sn,onClick:Yn=>{Vt(),(0,pn.l$)(vt)&&vt.props.onClick&&vt.props.onClick(Yn)},className:`${Zn}-list-item-action`,disabled:Kt};if((0,pn.l$)(vt)){const Yn=(0,pn.Tm)(vt,Object.assign(Object.assign({},vt.props),{onClick:()=>{}}));return ae.createElement(zn.ZP,Object.assign({},oa,{icon:Yn}))}return ae.createElement(zn.ZP,Object.assign({},oa),ae.createElement("span",null,vt))};ae.useImperativeHandle(ye,()=>({handlePreview:Wn,handleDownload:da}));const{getPrefixCls:Rn}=ae.useContext(Nt.E_),en=Rn("upload",ut),qn=Rn(),ea=Ne()(`${en}-list`,`${en}-list-${Le}`),ta=(0,Te.Z)(Mt.map(vt=>({key:vt.uid,file:vt})));let _n={motionDeadline:2e3,motionName:`${en}-${Le==="picture-card"||Le==="picture-circle"?"animate-inline":"animate"}`,keys:ta,motionAppear:Hn};const Sa=ae.useMemo(()=>{const vt=Object.assign({},(0,Bn.Z)(qn));return delete vt.onAppearEnd,delete vt.onEnterEnd,delete vt.onLeaveEnd,vt},[qn]);return Le!=="picture-card"&&Le!=="picture-circle"&&(_n=Object.assign(Object.assign({},Sa),_n)),ae.createElement("div",{className:ea},ae.createElement($t.CSSMotionList,Object.assign({},_n,{component:!1}),vt=>{let{key:Vt,file:Zn,className:Sn,style:oa}=vt;return ae.createElement(ht,{key:Vt,locale:Me,prefixCls:en,className:Sn,style:oa,file:Zn,items:Mt,progress:nt,listType:Le,isImgUrl:he,showPreviewIcon:Dt,showRemoveIcon:Xt,showDownloadIcon:Cn,removeIcon:Oe,previewIcon:ot,downloadIcon:qe,iconRender:ua,actionIconRender:na,itemRender:Pt,onPreview:Wn,onDownload:da,onClose:la})}),Ot&&ae.createElement($t.default,Object.assign({},_n,{visible:At,forceRender:!0}),vt=>{let{className:Vt,style:Zn}=vt;return(0,pn.Tm)(Ot,Sn=>({className:Ne()(Sn.className,Vt),style:Object.assign(Object.assign(Object.assign({},Zn),{pointerEvents:Vt?"none":void 0}),Sn.style)}))}))};var Rt=ae.forwardRef(Lt),Wt=ge(17313),un=ge(8378),vn=ge(83116),Ln=ge(37613),Ut=me=>{const{componentCls:ye,iconCls:Le}=me;return{[`${ye}-wrapper`]:{[`${ye}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[ye]:{padding:`${me.padding}px 0`},[`${ye}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ye}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ye}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${ye}-drag-icon`]:{marginBottom:me.margin,[Le]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${ye}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${ye}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${ye}-disabled`]:{cursor:"not-allowed",[`p${ye}-drag-icon ${Le},
|
|
p${ye}-text,
|
|
p${ye}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},yn=me=>{const{componentCls:ye,antCls:Le,iconCls:Ge,fontSize:ke,lineHeight:Re}=me,Ae=`${ye}-list-item`,Me=`${Ae}-actions`,lt=`${Ae}-action`,he=Math.round(ke*Re);return{[`${ye}-wrapper`]:{[`${ye}-list`]:Object.assign(Object.assign({},(0,Wt.dF)()),{lineHeight:me.lineHeight,[Ae]:{position:"relative",height:me.lineHeight*ke,marginTop:me.marginXS,fontSize:ke,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ae}-name`]:Object.assign(Object.assign({},Wt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Re,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Me]:{[lt]:{opacity:0},[`${lt}${Le}-btn-sm`]:{height:he,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${lt}:focus-visible,
|
|
&.picture ${lt}
|
|
`]:{opacity:1},[Ge]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Ge}`]:{color:me.colorText}},[`${ye}-icon ${Ge}`]:{color:me.colorTextDescription,fontSize:ke},[`${Ae}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:ke+me.paddingXS,fontSize:ke,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ae}:hover ${lt}`]:{opacity:1,color:me.colorText},[`${Ae}-error`]:{color:me.colorError,[`${Ae}-name, ${ye}-icon ${Ge}`]:{color:me.colorError},[Me]:{[`${Ge}, ${Ge}:hover`]:{color:me.colorError},[lt]:{opacity:1}}},[`${ye}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},wn=ge(36237),Qt=ge(1950);const $n=new wn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Xn=new wn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var In=me=>{const{componentCls:ye}=me,Le=`${ye}-animate-inline`;return[{[`${ye}-wrapper`]:{[`${Le}-appear, ${Le}-enter, ${Le}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Le}-appear, ${Le}-enter`]:{animationName:$n},[`${Le}-leave`]:{animationName:Xn}}},{[`${ye}-wrapper`]:(0,Qt.J$)(me)},$n,Xn]},Qn=ge(30071),le=ge(64993);const Se=me=>{const{componentCls:ye,iconCls:Le,uploadThumbnailSize:Ge,uploadProgressOffset:ke}=me,Re=`${ye}-list`,Ae=`${Re}-item`;return{[`${ye}-wrapper`]:{[`
|
|
${Re}${Re}-picture,
|
|
${Re}${Re}-picture-card,
|
|
${Re}${Re}-picture-circle
|
|
`]:{[Ae]:{position:"relative",height:Ge+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ae}-thumbnail`]:Object.assign(Object.assign({},Wt.vS),{width:Ge,height:Ge,lineHeight:`${Ge+me.paddingSM}px`,textAlign:"center",flex:"none",[Le]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ae}-progress`]:{bottom:ke,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ge+me.paddingXS}},[`${Ae}-error`]:{borderColor:me.colorError,[`${Ae}-thumbnail ${Le}`]:{[`svg path[fill='${Qn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Qn.blue.primary}']`]:{fill:me.colorError}}},[`${Ae}-uploading`]:{borderStyle:"dashed",[`${Ae}-name`]:{marginBottom:ke}}},[`${Re}${Re}-picture-circle ${Ae}`]:{[`&, &::before, ${Ae}-thumbnail`]:{borderRadius:"50%"}}}}},ue=me=>{const{componentCls:ye,iconCls:Le,fontSizeLG:Ge,colorTextLightSolid:ke}=me,Re=`${ye}-list`,Ae=`${Re}-item`,Me=me.uploadPicCardSize;return{[`
|
|
${ye}-wrapper${ye}-picture-card-wrapper,
|
|
${ye}-wrapper${ye}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Wt.dF)()),{display:"inline-block",width:"100%",[`${ye}${ye}-select`]:{width:Me,height:Me,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${ye}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ye}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Re}${Re}-picture-card, ${Re}${Re}-picture-circle`]:{[`${Re}-item-container`]:{display:"inline-block",width:Me,height:Me,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ae]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ae}:hover`]:{[`&::before, ${Ae}-actions`]:{opacity:1}},[`${Ae}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{zIndex:10,width:Ge,margin:`0 ${me.marginXXS}px`,fontSize:Ge,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ae}-actions, ${Ae}-actions:hover`]:{[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{color:new le.C(ke).setAlpha(.65).toRgbString(),"&:hover":{color:ke}}},[`${Ae}-thumbnail, ${Ae}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ae}-name`]:{display:"none",textAlign:"center"},[`${Ae}-file + ${Ae}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ae}-uploading`]:{[`&${Ae}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Le}-eye, ${Le}-download, ${Le}-delete`]:{display:"none"}},[`${Ae}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ye}-wrapper${ye}-picture-circle-wrapper`]:{[`${ye}${ye}-select`]:{borderRadius:"50%"}}}};var tt=me=>{const{componentCls:ye}=me;return{[`${ye}-rtl`]:{direction:"rtl"}}};const it=me=>{const{componentCls:ye,colorTextDisabled:Le}=me;return{[`${ye}-wrapper`]:Object.assign(Object.assign({},(0,Wt.Wf)(me)),{[ye]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ye}-select`]:{display:"inline-block"},[`${ye}-disabled`]:{color:Le,cursor:"not-allowed"}})}};var Gt=(0,vn.Z)("Upload",me=>{const{fontSizeHeading3:ye,fontSize:Le,lineHeight:Ge,lineWidth:ke,controlHeightLG:Re}=me,Ae=Math.round(Le*Ge),Me=(0,Ln.TS)(me,{uploadThumbnailSize:ye*2,uploadProgressOffset:Ae/2+ke,uploadPicCardSize:Re*2.55});return[it(Me),Ut(Me),Se(Me),ue(Me),yn(Me),In(Me),tt(Me),(0,un.Z)(Me)]},me=>({actionsColor:me.colorTextDescription})),Bt=function(me,ye,Le,Ge){function ke(Re){return Re instanceof Le?Re:new Le(function(Ae){Ae(Re)})}return new(Le||(Le=Promise))(function(Re,Ae){function Me(ut){try{he(Ge.next(ut))}catch(Mt){Ae(Mt)}}function lt(ut){try{he(Ge.throw(ut))}catch(Mt){Ae(Mt)}}function he(ut){ut.done?Re(ut.value):ke(ut.value).then(Me,lt)}he((Ge=Ge.apply(me,ye||[])).next())})};const mt=`__LIST_IGNORE_${Date.now()}__`,on=(me,ye)=>{const{fileList:Le,defaultFileList:Ge,onRemove:ke,showUploadList:Re=!0,listType:Ae="text",onPreview:Me,onDownload:lt,onChange:he,onDrop:ut,previewFile:Mt,disabled:Dt,locale:Xt,iconRender:Cn,isImageUrl:Oe,progress:ot,prefixCls:qe,className:nt,type:Ot="select",children:At,style:Pt,itemRender:Kt,maxCount:qt,data:Hn={},multiple:Kn=!1,action:Wn="",accept:da="",supportServerRender:la=!0,rootClassName:ua}=me,na=ae.useContext(Tt.Z),Rn=Dt!=null?Dt:na,[en,qn]=(0,nn.Z)(Ge||[],{value:Le,postState:ct=>ct!=null?ct:[]}),[ea,ta]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const ct=Date.now();(Le||[]).forEach((Ht,rn)=>{!Ht.uid&&!Object.isFrozen(Ht)&&(Ht.uid=`__AUTO__${ct}_${rn}__`)})},[Le]);const _n=(ct,Ht,rn)=>{let zt=(0,Te.Z)(Ht),gn=!1;qt===1?zt=zt.slice(-1):qt&&(gn=zt.length>qt,zt=zt.slice(0,qt)),(0,bt.flushSync)(()=>{qn(zt)});const bn={file:ct,fileList:zt};rn&&(bn.event=rn),(!gn||zt.some(ga=>ga.uid===ct.uid))&&(0,bt.flushSync)(()=>{he==null||he(bn)})},Sa=(ct,Ht)=>Bt(void 0,void 0,void 0,function*(){const{beforeUpload:rn,transformFile:zt}=me;let gn=ct;if(rn){const bn=yield rn(ct,Ht);if(bn===!1)return!1;if(delete ct[mt],bn===mt)return Object.defineProperty(ct,mt,{value:!0,configurable:!0}),!1;typeof bn=="object"&&bn&&(gn=bn)}return zt&&(gn=yield zt(gn)),gn}),vt=ct=>{const Ht=ct.filter(gn=>!gn.file[mt]);if(!Ht.length)return;const rn=Ht.map(gn=>ln(gn.file));let zt=(0,Te.Z)(en);rn.forEach(gn=>{zt=Jt(gn,zt)}),rn.forEach((gn,bn)=>{let ga=gn;if(Ht[bn].parsedFile)gn.status="uploading";else{const{originFileObj:mn}=gn;let ma;try{ma=new File([mn],mn.name,{type:mn.type})}catch(ba){ma=new Blob([mn],{type:mn.type}),ma.name=mn.name,ma.lastModifiedDate=new Date,ma.lastModified=new Date().getTime()}ma.uid=gn.uid,ga=ma}_n(ga,zt)})},Vt=(ct,Ht,rn)=>{try{typeof ct=="string"&&(ct=JSON.parse(ct))}catch(bn){}if(!Nn(Ht,en))return;const zt=ln(Ht);zt.status="done",zt.percent=100,zt.response=ct,zt.xhr=rn;const gn=Jt(zt,en);_n(zt,gn)},Zn=(ct,Ht)=>{if(!Nn(Ht,en))return;const rn=ln(Ht);rn.status="uploading",rn.percent=ct.percent;const zt=Jt(rn,en);_n(rn,zt,ct)},Sn=(ct,Ht,rn)=>{if(!Nn(rn,en))return;const zt=ln(rn);zt.error=ct,zt.response=Ht,zt.status="error";const gn=Jt(zt,en);_n(zt,gn)},oa=ct=>{let Ht;Promise.resolve(typeof ke=="function"?ke(ct):ke).then(rn=>{var zt;if(rn===!1)return;const gn=ca(ct,en);gn&&(Ht=Object.assign(Object.assign({},ct),{status:"removed"}),en==null||en.forEach(bn=>{const ga=Ht.uid!==void 0?"uid":"name";bn[ga]===Ht[ga]&&!Object.isFrozen(bn)&&(bn.status="removed")}),(zt=aa.current)===null||zt===void 0||zt.abort(Ht),_n(Ht,gn))})},Yn=ct=>{ta(ct.type),ct.type==="drop"&&(ut==null||ut(ct))};ae.useImperativeHandle(ye,()=>({onBatchStart:vt,onSuccess:Vt,onProgress:Zn,onError:Sn,fileList:en,upload:aa.current}));const{getPrefixCls:va,direction:Pa,upload:Pn}=ae.useContext(Nt.E_),fn=va("upload",qe),ra=Object.assign(Object.assign({onBatchStart:vt,onError:Sn,onProgress:Zn,onSuccess:Vt},me),{data:Hn,multiple:Kn,action:Wn,accept:da,supportServerRender:la,prefixCls:fn,disabled:Rn,beforeUpload:Sa,onChange:void 0});delete ra.className,delete ra.style,(!At||Rn)&&delete ra.id;const[sa,fa]=Gt(fn),[ya]=(0,Et.Z)("Upload",dn.Z.Upload),{showRemoveIcon:wa,showPreviewIcon:st,showDownloadIcon:Ze,removeIcon:et,previewIcon:gt,downloadIcon:Zt}=typeof Re=="boolean"?{}:Re,sn=(ct,Ht)=>Re?ae.createElement(Rt,{prefixCls:fn,listType:Ae,items:en,previewFile:Mt,onPreview:Me,onDownload:lt,onRemove:oa,showRemoveIcon:!Rn&&wa,showPreviewIcon:st,showDownloadIcon:Ze,removeIcon:et,previewIcon:gt,downloadIcon:Zt,iconRender:Cn,locale:Object.assign(Object.assign({},ya),Xt),isImageUrl:Oe,progress:ot,appendAction:ct,appendActionVisible:Ht,itemRender:Kt,disabled:Rn}):ct,Gn=Ne()(`${fn}-wrapper`,nt,ua,fa,Pn==null?void 0:Pn.className,{[`${fn}-rtl`]:Pa==="rtl",[`${fn}-picture-card-wrapper`]:Ae==="picture-card",[`${fn}-picture-circle-wrapper`]:Ae==="picture-circle"}),En=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),Pt);if(Ot==="drag"){const ct=Ne()(fa,fn,`${fn}-drag`,{[`${fn}-drag-uploading`]:en.some(Ht=>Ht.status==="uploading"),[`${fn}-drag-hover`]:ea==="dragover",[`${fn}-disabled`]:Rn,[`${fn}-rtl`]:Pa==="rtl"});return sa(ae.createElement("span",{className:Gn},ae.createElement("div",{className:ct,style:En,onDrop:Yn,onDragOver:Yn,onDragLeave:Yn},ae.createElement(tn,Object.assign({},ra,{ref:aa,className:`${fn}-btn`}),ae.createElement("div",{className:`${fn}-drag-container`},At))),sn()))}const Dn=Ne()(fn,`${fn}-select`,{[`${fn}-disabled`]:Rn}),Jn=(ct=>ae.createElement("div",{className:Dn,style:ct},ae.createElement(tn,Object.assign({},ra,{ref:aa}))))(At?void 0:{display:"none"});return sa(Ae==="picture-card"||Ae==="picture-circle"?ae.createElement("span",{className:Gn},sn(Jn,!!At)):ae.createElement("span",{className:Gn},Jn,sn()))};var Fn=ae.forwardRef(on),je=function(me,ye){var Le={};for(var Ge in me)Object.prototype.hasOwnProperty.call(me,Ge)&&ye.indexOf(Ge)<0&&(Le[Ge]=me[Ge]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ge=Object.getOwnPropertySymbols(me);ke<Ge.length;ke++)ye.indexOf(Ge[ke])<0&&Object.prototype.propertyIsEnumerable.call(me,Ge[ke])&&(Le[Ge[ke]]=me[Ge[ke]]);return Le},On=ae.forwardRef((me,ye)=>{var{style:Le,height:Ge}=me,ke=je(me,["style","height"]);return ae.createElement(Fn,Object.assign({ref:ye},ke,{type:"drag",style:Object.assign(Object.assign({},Le),{height:Ge})}))});const xn=Fn;xn.Dragger=On,xn.LIST_IGNORE=mt;var cn=xn}}]);
|