(self.webpackChunk=self.webpackChunk||[]).push([[3897,6270],{99587:function(ye,qe){"use strict";qe.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},91136:function(ye,qe){"use strict";qe.Z={footer:"footer___bruwa",whiteFooter:"whiteFooter___mR7kn",error:"error___KO0Jg",case:"case___L0pNc","resize-y-bar":"resize-y-bar___NK0gI",unfoldBtn:"unfoldBtn___aMmZw",caseHead:"caseHead___EuMPr",dot:"dot___Iky9k",text:"text___lMSx6",pass:"pass___XjijC",noPass:"noPass___JxpWk",btns:"btns___FPIaK",result:"result___oRj1h",title:"title___IhMSa",left:"left___XlC98",leftNode:"leftNode___NGHgx",right:"right____fIu_",node:"node___MwdH7",elseNode:"elseNode___WjFIg",nameWrap:"nameWrap___bEdbD",scroll:"scroll___ylWYt",scrollBox:"scrollBox___hWkc9",action:"action___xBwDi",whiteCase:"whiteCase___AZiDR",disabled:"disabled___lWQU2",codeHead:"codeHead___l8q5R",navWrap:"navWrap___xdWQe",nav:"nav___JKPVX",active:"active___DTAtT",whiteCodeHead:"whiteCodeHead___wDOny",header:"header___VjNh9",timepiece:"timepiece___yuqJC",btn_edit:"btn_edit___ozzux",whiteHeader:"whiteHeader___REV3m",djs:"djs___v0Ru7",myProblems:"myProblems___DKSbs",whiteMyProblems:"whiteMyProblems___k0QS3",fullMask:"fullMask___QZH1M"}},39744:function(){"use strict"},3932:function(ye,qe,ne){"use strict";var ee=ne(59301),Pe=Object.defineProperty,Ce=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,he=(se,Ae,Ie)=>Ae in se?Pe(se,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):se[Ae]=Ie,ce=(se,Ae)=>{for(var Ie in Ae||(Ae={}))fe.call(Ae,Ie)&&he(se,Ie,Ae[Ie]);if(Ce)for(var Ie of Ce(Ae))pe.call(Ae,Ie)&&he(se,Ie,Ae[Ie]);return se};const Le=se=>React.createElement("svg",ce({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));qe.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},64126:function(ye,qe,ne){"use strict";var ee=ne(59301),Pe=Object.defineProperty,Ce=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,he=(se,Ae,Ie)=>Ae in se?Pe(se,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):se[Ae]=Ie,ce=(se,Ae)=>{for(var Ie in Ae||(Ae={}))fe.call(Ae,Ie)&&he(se,Ie,Ae[Ie]);if(Ce)for(var Ie of Ce(Ae))pe.call(Ae,Ie)&&he(se,Ie,Ae[Ie]);return se};const Le=se=>React.createElement("svg",ce({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));qe.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},63720:function(){"use strict";function ye(oe,a,E,b){E===void 0&&(E=0),b===void 0&&(b=1/0),this._name=oe,this._defaultValue=a,this._minimum=E,this._maximum=b}Object.defineProperty(ye.prototype,"name",{get:function(){return this._name},set:function(oe){if(typeof oe!="string"||oe==="")throw new Error("Shape name must be a valid string.");this._name=oe}}),Object.defineProperty(ye.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("The default value must be a real number, not: "+oe);this._defaultValue=oe}}),Object.defineProperty(ye.prototype,"minimum",{get:function(){return this._minimum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Minimum must be a real number, not: "+oe);this._minimum=oe}}),Object.defineProperty(ye.prototype,"maximum",{get:function(){return this._maximum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Maximum must be a real number, not: "+oe);this._maximum=oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(oe,a){var E=go.Shape._FigureParameters[oe];return E?E[a]:null},go.Shape.setFigureParameter=function(oe,a,E){if(!(E instanceof ye))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+E);if(E.defaultValueE.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+E.defaultValue);var b=go.Shape._FigureParameters[oe];b||(b=[],go.Shape._FigureParameters[oe]=b),b[a]=E};var qe=[];function ne(oe,a){var E=qe.pop();return E===void 0?new go.Point(oe,a):(E.x=oe,E.y=a,E)}function ee(){var oe=qe.pop();return oe===void 0?new go.Point:oe}function Pe(oe){qe.push(oe)}function Ce(oe,a,E,b,y,x,z,te,ae){ae||(ae=new go.Point);var re=oe-E,ie=y-z,le=NaN,de=NaN;if(re===0)if(ie===0)oe===E&&(le=oe,de=a);else{var ue=(x-te)/ie,be=x-ue*y;le=oe,de=ue*le+be}else if(ie===0){var Fe=(a-b)/re,He=a-Fe*oe;le=y,de=Fe*le+He}else{var Fe=(a-b)/re,ue=(x-te)/ie,He=a-Fe*oe,be=x-ue*y;le=(be-He)/(Fe-ue),de=Fe*le+He}return ae.x=le,ae.y=de,ae}function fe(oe,a,E,b,y,x,z,te,ae,re,ie,le,de,ue){var be=1-ae,Fe=ae,He=oe*be+E*Fe,Pt=a*be+b*Fe,Ve=E*be+y*Fe,tt=b*be+x*Fe,nt=y*be+z*Fe,ot=x*be+te*Fe,it=He*be+Ve*Fe,ze=Pt*be+tt*Fe,Ke=Ve*be+nt*Fe,rt=tt*be+ot*Fe,ht=it*be+Ke*Fe,yt=ze*be+rt*Fe;re.x=He,re.y=Pt,ie.x=it,ie.y=ze,le.x=ht,le.y=yt,de.x=Ke,de.y=rt,ue.x=nt,ue.y=ot}var pe=new go.Spot(.156,.156),he=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ye("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=5),b=Math.min(b,a/3),b=Math.min(b,E/3);var y=b*ce,x=new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,E-b)).add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,E-y,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,b,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,y,E,0,E-y)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,y,y,0).close()));return y>1&&(x.spot1=new go.Spot(0,0,y,y),x.spot2=new go.Spot(1,1,-y,-y)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,a,E){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,E).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,E)).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(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=E/2,b.endX=a,b.endY=E/2,b}),go.Shape.defineFigureGenerator("LineV",function(oe,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=a/2,b.startY=0,b.endX=a/2,b.endY=E,b}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("XLine",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!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,E)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.25*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Line,a,.25*E)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,E)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.75*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,a,.75*E)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,a,E){var b=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(b*a,(1-b)*E,!1).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*E)).add(new go.PathSegment(go.PathSegment.Move,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Move,0,E/2)).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,a,E){var b=a/2,y=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close()));return y.spot1=pe,y.spot2=he,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(oe,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=0,b.endX=a,b.endY=E,b}),go.Shape.defineFigureGenerator("Line2",function(oe,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=a,b.startY=0,b.endX=0,b.endY=E,b}),go.Shape.defineFigureGenerator("Curve1",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,ce*a,0,a,(1-ce)*E)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,0,ce*E,(1-ce)*a,E)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,ce*E,ce*a,E)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,(1-ce)*a,0,0,(1-ce)*E)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,a,E){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,E).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,a,E){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,E).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ye("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)?b=.1:b<-1?b=-1:b>1&&(b=1);var y=Math.abs(b)*a;if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),y.5&&(b=.5);var y=Math.abs(b)*a;if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).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-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a/2);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).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-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a/2);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>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-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())):x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())),y0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+te,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,te,te).close())),x.spot1=pe,x.spot2=he,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*E,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*E,-.09239631*a,.07836421*E,.1406031*a,-.0542823*E)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*E,.2450511*a,-.00697547*E,.3776197*a,-.01112067*E)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*E,.4539471*a,0,.6066018*a,-.02526587*E)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*E,.6914277*a,-.01904177*E,.8921095*a,-.01220843*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*E,1.036446*a,.04105738*E,1.020377*a,.3022052*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*E,1.04448*a,.360238*E,.992256*a,.5219009*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*E,1.032337*a,.5771781*E,1.018411*a,.8120651*E)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*E,1.028411*a,.9571472*E,.8556702*a,1.052487*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*E,.7431877*a,1.009325*E,.5624123*a,1.021761*E)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*E,.4820677*a,1.031761*E,.3030112*a,1.002796*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*E,.2329994*a,1.01518*E,.03213784*a,1.01518*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*E,-.02812061*a,.9032597*E,-.01205169*a,.6835638*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*E,-.01812061*a,.6089503*E,-.00606892*a,.4555777*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*E,-.01606892*a,.3892545*E,-.01205169*a,.1944299*E))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,a,E){var b=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(b*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b*E)).add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Line,b*a,E)).add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Line,0,b*E).close())).setSpots(b/2,b/2,1-b/2,1-b/2)}),go.Shape.setFigureParameter("Pie",0,new ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ye("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,a,E){var b=oe?oe.parameter1:NaN,y=oe?oe.parameter2:NaN;isNaN(b)&&(b=0),isNaN(y)&&(y=315);var x=b%360;x<0&&(x+=360);var z=y%360,te=Math.min(a,E)/2;return new go.Geometry().add(new go.PathFigure(te,te).add(new go.PathSegment(go.PathSegment.Arc,x,z,te,te,te,te).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(oe,a,E){var b=ce/Math.SQRT2*.5,y=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*a,x*E,a,(1-b)*E,(y+b)*a,(x+b)*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=30);var y=Math.min(b,a)/2,x=a/2,z=E/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var y=Math.min(b,a)/2,x=a/2,z=E/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,a,E){var b=oe?oe.parameter1:NaN;if((isNaN(b)||b<0)&&(b=30),a===0||E===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=E,y}else{var x=a/2,z=E/2,te=Math.atan2(E,a),ae=b-Math.min(Math.cos(te)*b/2,x),re=b-Math.min(Math.sin(te)*b/2,z),y=new go.Geometry,ie=new go.PathFigure(ae,0,!0);return y.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*E)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,E-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ae,E)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*E)),ie.add(new go.PathSegment(go.PathSegment.Line,ae,E)),ie.add(new go.PathSegment(go.PathSegment.Line,0,E-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var y=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*E).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new ye("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.2);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,b*E).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new ye("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.5);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,E,Math.abs(1-b)*a,.25*E,Math.abs(1-b)*a,.75*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*E,b*a,.25*E).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,ce*a,0,a,(.5-ce/2)*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,(.5+ce/2)*E,ce*a,E).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,0,a,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*E,.5*a,.25*E).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,.1*a,.8*E,0,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.5*E,.9*a,.8*E).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*E)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.6*a,.2*E,a,.25*E)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*E,a,.8*E,.6*a,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,.5*a,.75*E,.55*a,.95*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*E,.45*a,.95*E,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.4*a,.8*E,0,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*E,0,.25*E,.4*a,.2*E).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.4*a,.6*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,E,.5*a,.75*E,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*E,.55*a,.95*E,.5*a,.75*E));var x=.2,z=.3,te=0,ae=x*ce;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z)*a,(.5-ae+te)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z+.05)*a,(.5-ae+te-.02)*E)),x=.2,z=0,te=-.3,ae=x*ce,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z)*a,(.5-ae+te)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z)*a,(.5-ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),x=.2,z=-.3,te=0,ae=x*ce,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z-.05)*a,(.5-ae+te-.02)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z)*a,(.5-ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E).close()),b.setSpots(.06,.33,.93,.68),b}),go.Shape.defineFigureGenerator("YinYang",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,te=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,te*E)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,E*te,x*a,x*a).close()),y=new go.PathFigure(a*.5,0,!1),b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),te=.75,y=new go.PathFigure((z+x)*a,te*E,!0),b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,E*te,x*a,x*a).close()),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Peace",function(oe,a,E){var b=.8535533905932737,y=.5*a,x=.5*E;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,x,y,x)).add(new go.PathSegment(go.PathSegment.Line,y,E)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*E)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,b*a,b*E)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=.5,z=.5,te=.5,ae=new go.PathFigure(z*a,(te-x)*E);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),x=.4,y=ce*.4;var re=ee(),ie=ee(),le=ee(),de=ee();fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.42,re,ie,le,de,de);var ue=ee(),be=ee(),Fe=ee();fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.58,de,de,Fe,ue,be);var He=ee(),Pt=ee(),Ve=ee();fe(z,te+x,z-y,te+x,z-x,te+y,z-x,te,.42,He,Pt,Ve,de,de);var tt=ee(),nt=ee(),ot=ee();return fe(z,te+x,z-y,te+x,z-x,te+y,z-x,te,.58,de,de,ot,tt,nt),ae.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,tt.x*a,tt.y*E,nt.x*a,nt.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,le.x*a,le.y*E,re.x*a,re.y*E,ie.x*a,ie.y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,ot.x*a,ot.y*E).close()),ae.add(new go.PathSegment(go.PathSegment.Move,Ve.x*a,Ve.y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,ue.x*a,ue.y*E,be.x*a,be.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Ve.x*a,Ve.y*E,He.x*a,He.y*E,Pt.x*a,Pt.y*E).close()),Pe(re),Pe(ie),Pe(le),Pe(de),Pe(ue),Pe(be),Pe(Fe),Pe(He),Pe(Pt),Pe(Ve),Pe(tt),Pe(nt),Pe(ot),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Fragile",function(oe,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*E)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*E)).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*E,a,.25*E,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*E,0,.25*E).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=30),b>a&&(b=a);var y=(a-b)/2,x=y+b;return new go.Geometry().add(new go.PathFigure(x,.5*E).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Line,y,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.55*E).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*E).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,a,E){var b=new go.Geometry,y=ce*.4,x=.4,z=.5,te=.5,ae=ee(),re=ee(),ie=ee(),le=ee(),de=new go.PathFigure((z-x)*a,te*E,!1);b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.44,ie,le,re,ae,ae),de.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*E,ie.x*a,ie.y*E,le.x*a,le.y*E));var ue=ne(re.x,re.y);fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.56,ae,ae,re,ie,le);var be=ne(re.x,re.y);de.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*E)),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*E)),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),de.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,.15*E)),de.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*E)),de.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.y*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,ie.x*a,ie.y*E,le.x*a,le.y*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),x=.35,y=ce*.35;var Fe=new go.PathFigure(z*a,(te-x)*E,!1);b.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E));var He=new go.PathFigure((z-x)*a,te*E,!1);return b.add(He),Pe(ae),Pe(re),Pe(ie),Pe(le),Pe(ue),Pe(be),b.spot1=new go.Spot(.202,.257),b.spot2=new go.Spot(.792,.739),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("GenderFemale",function(oe,a,E){var b=new go.Geometry,y=.375,x=0,z=-.125,te=y*ce,ae=new go.PathFigure((.525+x)*a,(.5+y+z)*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*E,(.5+te+x)*a,(.5+y+z)*E,(.5+y+x)*a,(.5+te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*E,(1-.5+y+x)*a,(.5-te+z)*E,(.5+te+x)*a,(.5-y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+y+z)*E,(.5-y+x)*a,(.5+te+z)*E,(.5-te+x)*a,(.5+y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E).close()),y=.325,x=0,z=-.125,te=y*ce;var ae=new go.PathFigure((1-.5+y+x)*a,(.5+z)*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+y+z)*E,(.5+y+x)*a,(.5+te+z)*E,(.5+te+x)*a,(.5+y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5+y+z)*E,(.5-y+x)*a,(.5+te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E,(.5-te+x)*a,(.5-y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*E,(.5+te+x)*a,(.5-y+z)*E,(1-.5+y+x)*a,(.5-te+z)*E));var ae=new go.PathFigure((.525+x)*a,(.5+y+z)*E,!1);return b.add(ae),b.spot1=new go.Spot(.232,.136),b.spot2=new go.Spot(.682,.611),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,a,E){var b=oe?oe.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,a,E){var b=oe?oe.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,b*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,b*a,E))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,a,E){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,E)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,a,E){var b=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*E,.5*a,.5*E)));return b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,a,E){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,E)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Move,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Move,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,0,E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,a,E){var b=.5;return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,0,b*E)).add(new go.PathSegment(go.PathSegment.Arc,180,180,b*a,b*E,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,a,E){var b=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,b*E)).add(new go.PathSegment(go.PathSegment.Arc,0,180,b*a,b*E,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ye("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=.3);var x=(1-b)*a,z=(.5-y/2)*E,te=(.5+y/2)*E,ae=new go.Geometry,re=new go.PathFigure(0,z,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),re.add(new go.PathSegment(go.PathSegment.Line,x,E)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ae.spot1=new go.Spot(0,z/E);var ie=Ce(0,te/E,1,te/E,x/a,1,1,.5,ee());return ae.spot2=new go.Spot(ie.x,ie.y),Pe(ie),ae}),go.Shape.setFigureParameter("Arrow2",0,new ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ye("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=30),b>a&&(b=a);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,E/2);var x=a-b,z=(E-y)/2,te=z+y,ae=new go.Geometry,re=new go.PathFigure(0,z,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),re.add(new go.PathSegment(go.PathSegment.Line,x,E)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ae.spot1=new go.Spot(0,z/E);var ie=Ce(0,te/E,1,te/E,x/a,1,1,.5,ee());return ae.spot2=new go.Spot(ie.x,ie.y),Pe(ie),ae}),go.Shape.defineFigureGenerator("Chevron",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*E).close()),b}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ye("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=Ce(0,.5,.3,0,0,y/E,.1,y/E,ee());return z.spot1=new go.Spot(ae.x,ae.y),ae=Ce(.7,1,1,.5,0,x/E,1,x/E,ae),z.spot2=new go.Spot(ae.x,ae.y),Pe(ae),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ye("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var x=(E-b)/2,z=x+b,te=(E-y)/2,ae=te+y;(b>E||y>E)&&(y>b?(b=b*E/y,x=(E-b)/2,z=x+b,te=0,ae=E):(x=0,z=E,te=0,ae=E));var re=new go.Geometry,ie=new go.PathFigure(a,.5*E,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close());var le=Ce(0,.5,.3,te/E,0,x/E,1,x/E,ee());return re.spot1=new go.Spot(le.x,le.y),le=Ce(.7,ae/E,1,.5,0,z/E,1,z/E,le),re.spot2=new go.Spot(le.x,le.y),Pe(le),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ye("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,y/E);var ae=Ce(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),Pe(ae),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ye("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var x=(E-b)/2,z=x+b,te=(E-y)/2,ae=te+y;(b>E||y>E)&&(y>b?(b=b*E/y,x=(E-b)/2,z=x+b,te=0,ae=E):(x=0,z=E,te=0,ae=E));var re=new go.Geometry,ie=new go.PathFigure(a,.5*E,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close()),re.spot1=new go.Spot(0,x/E);var le=Ce(.7,ae/E,1,.5,0,z/E,1,z/E,ee());return re.spot2=new go.Spot(le.x,le.y),Pe(le),re}),go.Shape.setFigureParameter("Pointer",0,new ye("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(b,.35);var z=Ce(.2,.65,1,.65,0,1,1,.5,ee());return y.spot2=new go.Spot(z.x,z.y),Pe(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ye("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*E,b*a,.25*E).close()),y.spot1=new go.Spot(b,.35);var z=Ce(0,.65,1,.65,0,1,1,.5,ee());return y.spot2=new go.Spot(z.x,z.y),Pe(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ye("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.4);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ae=Ce(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),Pe(ae),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ye("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=50);var y=(E-b)/2,x=y+b;b>E&&(y=0,x=E);var z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,y/E);var ae=Ce(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),Pe(ae),z}),go.Shape.setFigureParameter("SquareArrow",0,new ye("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.7);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(b,1),y}),go.Shape.defineFigureGenerator("Cone1",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=ce*.1,z=new go.PathFigure(0,.9*E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E).close()),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.97),b}),go.Shape.defineFigureGenerator("Cone2",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.9*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,E,.85/.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*E).close());var x=new go.PathFigure(0,.9*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,.8*E,.85/.9*a,.8*E)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.82),b}),go.Shape.defineFigureGenerator("Cube1",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var x=new go.PathFigure(.5*a,E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.5,.85),b}),go.Shape.defineFigureGenerator("Cube2",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.3*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.7,1),b}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var y=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*b,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,b,(.5+x)*a,0,1*a,ce*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*E,1*a,E-ce*b,(.5+x)*a,1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,(.5-x)*a,1*E,0,E-ce*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b));var te=new go.PathFigure(a,b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*b,1*a,2*b-ce*b,(.5+x)*a,2*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,(.5-x)*a,2*b,0,2*b-ce*b)),y.spot1=new go.Spot(0,0,0,2*b),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var y=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,E-b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*b,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b,(.5+x)*a,0,a,ce*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,E-ce*b,(.5+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,(.5-x)*a,E,0,E-ce*b));var te=new go.PathFigure(0,E-b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E-2*b,0,E-b-ce*b,(.5-x)*a,E-2*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E-b,(.5+x)*a,E-2*b,a,E-b-ce*b)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*b),y}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var y=new go.Geometry,x=ce*.5,z=new go.PathFigure(b,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-ce*b,0,a,(.5-x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,(.5+x)*E,a-ce*b,E)),z.add(new go.PathSegment(go.PathSegment.Line,b,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,ce*b,E,0,(.5+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-x)*E,ce*b,0));var te=new go.PathFigure(b,0,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,2*b,.5*E,b+ce*b,0,2*b,(.5-x)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,E,2*b,(.5+x)*E,b+ce*b,E)),y.spot1=new go.Spot(0,0,2*b,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var y=new go.Geometry,x=ce*.5,z=new go.PathFigure(a-b,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-ce*b,0,a,(.5-x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,(.5+x)*E,a-ce*b,E)),z.add(new go.PathSegment(go.PathSegment.Line,b,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,ce*b,E,0,(.5+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-x)*E,ce*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-b,0));var te=new go.PathFigure(a-b,0,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a-2*b,.5*E,a-b-ce*b,0,a-2*b,(.5-x)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a-2*b,(.5+x)*E,a-b-ce*b,E)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*b,0),y}),go.Shape.defineFigureGenerator("Prism1",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,.25*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(.25*a,.25*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.408,.172),b.spot2=new go.Spot(.833,.662),b}),go.Shape.defineFigureGenerator("Prism2",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.25*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(0,E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E).close());var x=new go.PathFigure(.5*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var x=new go.PathFigure(.5*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*E)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Actor",function(oe,a,E){var b=new go.Geometry,y=.2,x=.1,z=ce*y,te=ce*x,ae=.5,re=.1,ie=new go.PathFigure(ae*a,(re+x)*E,!0);b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-y)*a,re*E,(ae-z)*a,(re+x)*E,(ae-y)*a,(re+te)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-x)*E,(ae-y)*a,(re-te)*E,(ae-z)*a,(re-x)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+y)*a,re*E,(ae+z)*a,(re-x)*E,(ae+y)*a,(re-te)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+x)*E,(ae+y)*a,(re+te)*E,(ae+z)*a,(re+x)*E));var le=.05,de=ce*le;ae=.05,re=.25;var ue=new go.PathFigure(.5*a,.2*E,!0);return b.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*E)),ae=.95,re=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae+le)*a,re*E,(ae+de)*a,(re-le)*E,(ae+le)*a,(re-de)*E)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*E)),le=.025,de=ce*le,ae=.825,re=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-le)*E,(ae+le)*a,(re-de)*E,(ae+de)*a,(re-le)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-le)*a,re*E,(ae-de)*a,(re-le)*E,(ae-le)*a,(re-de)*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,E)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E)),le=.05,de=ce*le,ae=.5,re=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-le)*E,(ae+le)*a,(re-de)*E,(ae+de)*a,(re-le)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-le)*a,re*E,(ae-de)*a,(re-le)*E,(ae-le)*a,(re-de)*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,E)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*E)),le=.025,de=ce*le,ae=.175,re=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-le)*E,(ae+le)*a,(re-de)*E,(ae+de)*a,(re-le)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-le)*a,re*E,(ae-de)*a,(re-le)*E,(ae-le)*a,(re-de)*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),le=.05,de=ce*le,ae=.05,re=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-le)*E,(ae-le)*a,(re-de)*E,(ae-de)*a,(re-le)*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),b.spot1=new go.Spot(.2,.2),b.spot2=new go.Spot(.8,.65),b}),go.Shape.setFigureParameter("Card",0,new ye("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,a,E){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.2);var y=new go.Geometry,x=new go.PathFigure(a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),y.spot1=new go.Spot(0,b),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E));var x=new go.PathFigure(.5*a,.5*E,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,.25),b}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(0,y*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),b}),go.Shape.defineFigureGenerator("Database",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*E,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-x)*E));var te=new go.PathFigure(a,.1*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+x)*E,(.5+y)*a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+x)*E,(.5+y)*a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*E,a,(.3+x)*E,(.5+y)*a,.4*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,(.5-y)*a,.4*E,0,(.3+x)*E)),b.spot1=new go.Spot(0,.4),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("DataStorage",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*E,.25*a,.1*E).close()),b.spot1=new go.Spot(.226,0),b.spot2=new go.Spot(.81,1),b}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*E,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-x)*E));var te=new go.PathFigure(a,.1*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+x)*E,(.5+y)*a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+x)*E,(.5+y)*a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+x)*E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("Display",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close()),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var x=ce*.2,z=new go.PathFigure(0,.2*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*E,(.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*E,(.8+x)*a,0,a,(.2-x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,E,a,(.8+x)*E,(.8+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*E,(.2-x)*a,E,0,(.8+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*E));var te=new go.PathFigure(0,y*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),b}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(0,y*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),b}),go.Shape.defineFigureGenerator("Document",function(oe,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*E)),z.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),b}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var x=new go.PathFigure(.1*a,.4*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*E)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("File",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(.75*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Interrupt",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E));var x=new go.PathFigure(a,.5*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E));var z=new go.PathFigure(a,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var te=new go.PathFigure(y*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,x*E)),b}),go.Shape.defineFigureGenerator("Junction",function(oe,a,E){var b=new go.Geometry,y=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ce*.5,te=.5,ae=new go.PathFigure(a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,E,a,(te+z)*E,(te+z)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te*E,(te-z)*a,E,0,(te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,0,0,(te-z)*E,(te-z)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,te*E,(te+z)*a,0,a,(te-z)*E));var re=new go.PathFigure((x+y)*a,(x+y)*E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*E)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+y)*E)),re.add(new go.PathSegment(go.PathSegment.Line,(x+y)*a,x*E)),b}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close());var x=new go.PathFigure(.1*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*E)),b.spot1=new go.Spot(.1,0),b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=.5,z=new go.PathFigure(.5*a,E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*E,a,(x+y)*E,(x+y)*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.8),b}),go.Shape.defineFigureGenerator("ManualInput",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.7);var 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,y*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-y)*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*E,.96*a,.47*E,.93*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*E,.86*a,.57*E,.83*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.4*a,.4*E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.8,.77),b}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,.1*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close());var x=new go.PathFigure(.2*a,.1*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),b.spot1=new go.Spot(0,.2),b.spot2=new go.Spot(.8,1),b}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var x=1-y,z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close());var te=new go.PathFigure(.5*y*a,y*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*E)),b}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("Or",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=.5,z=new go.PathFigure(a,x*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,E,a,(x+y)*E,(x+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E));var te=new go.PathFigure(a,.5*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b}),go.Shape.defineFigureGenerator("PaperTape",function(oe,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.5*a,.6*E,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),b.spot1=new go.Spot(0,.49),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("Procedure",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure((1-y)*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),b}),go.Shape.defineFigureGenerator("Process",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Sort",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var x=new go.PathFigure(0,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.5),b}),go.Shape.defineFigureGenerator("Start",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(y*a,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E));var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),b.spot1=new go.Spot(y,0),b.spot2=new go.Spot(1-y,1),b}),go.Shape.defineFigureGenerator("Terminator",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E)),b.spot1=new go.Spot(.23,0),b.spot2=new go.Spot(.77,1),b}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,a,E){var b=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var 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)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*E).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("AndGate",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(.5+y)*a,0,a,(.5-y)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.5+y)*E,(.5+y)*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.55,1),b}),go.Shape.defineFigureGenerator("Buffer",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Clock",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=.5,z=new go.PathFigure(a,x*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,E,a,(x+y)*E,(x+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E));var te=new go.PathFigure(a,x*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,x*E));var ae=new go.PathFigure(.8*a,.75*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*E)),b}),go.Shape.defineFigureGenerator("Ground",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),b}),go.Shape.defineFigureGenerator("Inverter",function(oe,a,E){var b=new go.Geometry,y=ce*.1,x=.1,z=.9,te=.5,ae=new go.PathFigure(.8*a,.5*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E));var re=new go.PathFigure((z+x)*a,te*E,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te-x)*E,(z+x)*a,(te-y)*E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.4,.75),b}),go.Shape.defineFigureGenerator("NandGate",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=ce*.4,z=ce*.1,te=.1,ae=.9,re=.5,ie=new go.PathFigure(.8*a,.5*E,!0);b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,.8*a,(.5+x)*E,(.4+y)*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,0,E)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(.4+y)*a,0,.8*a,(.5-x)*E));var le=new go.PathFigure((ae+te)*a,re*E,!0);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+te)*E,(ae+te)*a,(re+z)*E,(ae+z)*a,(re+te)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,re*E,(ae-z)*a,(re+te)*E,(ae-te)*a,(re+z)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-te)*E,(ae-te)*a,(re-z)*E,(ae-z)*a,(re-te)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,re*E,(ae+z)*a,(re-te)*E,(ae+te)*a,(re-z)*E)),b.spot1=new go.Spot(0,.05),b.spot2=new go.Spot(.55,.95),b}),go.Shape.defineFigureGenerator("NorGate",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*y,z=0,te=.5,ae=new go.PathFigure(.8*a,.5*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.7*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(z+x)*a,(te-y)*E,.7*a,(te-x)*E)),y=.1,x=ce*.1,z=.9,te=.5;var re=new go.PathFigure((z-y)*a,te*E,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.6,.75),b}),go.Shape.defineFigureGenerator("OrGate",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*y,z=0,te=.5,ae=new go.PathFigure(0,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(z+x+x)*a,(te-y)*E,.8*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.8*a,(te+x)*E,(z+x+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E).close()),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("XnorGate",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*y,z=.2,te=.5,ae=new go.PathFigure(.1*a,0,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var re=new go.PathFigure(.8*a,.5*E,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.7*a,(te+x)*E,(z+x)*a,(te+y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(z+x)*a,(te-y)*E,.7*a,(te-x)*E)),y=.1,x=ce*.1,z=.9,te=.5;var ie=new go.PathFigure((z-y)*a,te*E,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.65,.75),b}),go.Shape.defineFigureGenerator("XorGate",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*y,z=.2,te=.5,ae=new go.PathFigure(.1*a,0,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var re=new go.PathFigure(.2*a,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(z+x)*a,(te-y)*E,.9*a,(te-x)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.9*a,(te+x)*E,(z+x)*a,(te+y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E).close()),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.8,.75),b}),go.Shape.defineFigureGenerator("Capacitor",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("Resistor",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),b}),go.Shape.defineFigureGenerator("Inductor",function(oe,a,E){var b=new go.Geometry,y=ce*.1,x=.1,z=.1,te=.5,ae=new go.PathFigure((z-y*.5)*a,E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*a,E,(z+x)*a,0,(z+y)*a,E)),b}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,a,E){var b=new go.Geometry,y=ce*.5,x=.5,z=.5,te=.5,ae=new go.PathFigure((z-x)*a,te*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te-x)*E,(z+x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,te*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,te*E,z*a,(te-x)*E,z*a,(te+x)*E)),b}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("Diode",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Wifi",function(oe,a,E){var b=new go.Geometry,y=a,x=E;a=a*.38,E=E*.6;var z=ce*.8,te=.8,ae=0,re=.5,ie=(y-a)/2,le=(x-E)/2,de=new go.PathFigure(ae*a+ie,(re+te)*E+le,!0);b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+ie,re*E+le,(ae-z)*a+ie,(re+te)*E+le,(ae-te)*a+ie,(re+z)*E+le)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re-te)*E+le,(ae-te)*a+ie,(re-z)*E+le,(ae-z)*a+ie,(re-te)*E+le)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te+z*.5)*a+ie,re*E+le,ae*a+ie,(re-te)*E+le,(ae-te+z*.5)*a+ie,(re-z)*E+le)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re+te)*E+le,(ae-te+z*.5)*a+ie,(re+z)*E+le,ae*a+ie,(re+te)*E+le).close()),z=ce*.4,te=.4,ae=.2,re=.5;var ue=new go.PathFigure(ae*a+ie,(re+te)*E+le,!0);b.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+ie,re*E+le,(ae-z)*a+ie,(re+te)*E+le,(ae-te)*a+ie,(re+z)*E+le)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re-te)*E+le,(ae-te)*a+ie,(re-z)*E+le,(ae-z)*a+ie,(re-te)*E+le)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te+z*.5)*a+ie,re*E+le,ae*a+ie,(re-te)*E+le,(ae-te+z*.5)*a+ie,(re-z)*E+le)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re+te)*E+le,(ae-te+z*.5)*a+ie,(re+z)*E+le,ae*a+ie,(re+te)*E+le).close()),z=ce*.2,te=.2,ae=.5,re=.5;var be=new go.PathFigure((ae-te)*a+ie,re*E+le,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re-te)*E+le,(ae-te)*a+ie,(re-z)*E+le,(ae-z)*a+ie,(re-te)*E+le)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+ie,re*E+le,(ae+z)*a+ie,(re-te)*E+le,(ae+te)*a+ie,(re-z)*E+le)),be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re+te)*E+le,(ae+te)*a+ie,(re+z)*E+le,(ae+z)*a+ie,(re+te)*E+le)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+ie,re*E+le,(ae-z)*a+ie,(re+te)*E+le,(ae-te)*a+ie,(re+z)*E+le)),z=ce*.4,te=.4,ae=.8,re=.5;var Fe=new go.PathFigure(ae*a+ie,(re-te)*E+le,!0);b.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+ie,re*E+le,(ae+z)*a+ie,(re-te)*E+le,(ae+te)*a+ie,(re-z)*E+le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re+te)*E+le,(ae+te)*a+ie,(re+z)*E+le,(ae+z)*a+ie,(re+te)*E+le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te-z*.5)*a+ie,re*E+le,ae*a+ie,(re+te)*E+le,(ae+te-z*.5)*a+ie,(re+z)*E+le)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re-te)*E+le,(ae+te-z*.5)*a+ie,(re-z)*E+le,ae*a+ie,(re-te)*E+le).close()),z=ce*.8,te=.8,ae=1,re=.5;var He=new go.PathFigure(ae*a+ie,(re-te)*E+le,!0);return b.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+ie,re*E+le,(ae+z)*a+ie,(re-te)*E+le,(ae+te)*a+ie,(re-z)*E+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re+te)*E+le,(ae+te)*a+ie,(re+z)*E+le,(ae+z)*a+ie,(re+te)*E+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te-z*.5)*a+ie,re*E+le,ae*a+ie,(re+te)*E+le,(ae+te-z*.5)*a+ie,(re+z)*E+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ie,(re-te)*E+le,(ae+te-z*.5)*a+ie,(re-z)*E+le,ae*a+ie,(re-te)*E+le).close()),b}),go.Shape.defineFigureGenerator("Email",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Move,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*E)),b}),go.Shape.defineFigureGenerator("Ethernet",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,E,!0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var z=new go.PathFigure(.6*a,E,!0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,E).close());var te=new go.PathFigure(0,.5*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),te.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*E)),te.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*E)),b}),go.Shape.defineFigureGenerator("Power",function(oe,a,E){var b=new go.Geometry,y=ce*.4,x=.4,z=.5,te=.5,ae=ee(),re=ee(),ie=ee(),le=ee();fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.5,ae,ae,re,ie,le);var de=ne(re.x,re.y),ue=new go.PathFigure(re.x*a,re.y*E,!0);b.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,ie.x*a,ie.y*E,le.x*a,le.y*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),fe(z-x,te,z-x,te-y,z-y,te-x,z,te-x,.5,ie,le,re,ae,ae),ue.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*E,ie.x*a,ie.y*E,le.x*a,le.y*E)),y=ce*.3,x=.3,fe(z-x,te,z-x,te-y,z-y,te-x,z,te-x,.5,ie,le,re,ae,ae),ue.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,le.x*a,le.y*E,ie.x*a,ie.y*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),fe(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.5,ae,ae,re,ie,le),ue.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*E,le.x*a,le.y*E,ie.x*a,ie.y*E).close());var ue=new go.PathFigure(.45*a,0,!0);return b.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*E)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(ae),Pe(re),Pe(ie),Pe(le),Pe(de),b.spot1=new go.Spot(.25,.45),b.spot2=new go.Spot(.75,.8),b}),go.Shape.defineFigureGenerator("Fallout",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E/2,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,E/2,a/2,E/2));function x(z,te,ae){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*a,(.8+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*a,(.5+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*a,(.5+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*a,(.8+ae)*E).close())}return x(y,0,0),x(y,.4,0),x(y,.2,-.3),b}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close()),b.spot1=new go.Spot(.3,.3),b.spot2=new go.Spot(.7,.7),b}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*E)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*E)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*E).close()),b}),go.Shape.defineFigureGenerator("FireHazard",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*E,.45*a,.44*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*E,.48*a,.17*E,.54*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*E,.59*a,.29*E,.58*a,.28*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*E,.8*a,.34*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*E,.87*a,.48*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,1.17*a,.76*E,.82*a,.8*E).close()),b.spot1=new go.Spot(.07,.445),b.spot2=new go.Spot(.884,.958),b}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,a,E){var b=new go.Geometry,y=.5,x=0,z=0,te=y*ce,ae=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,le=.5,de=.5,ue=0,be=new go.PathFigure(ae*a,(1-re)*E,!1);return b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,le*E,ie*a,.7*E,ie*a,le*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de+x)*a,(ue+x)*E,(.5+y+x)*a,(.5-te+x)*E,(.5+te+x)*a,(.5-y+x)*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*E,(.5-y+x)*a,(.5+te+z)*E,(.5-te+x)*a,.9*E)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*E)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*E)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*E)),b}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(a,E,!1);b.add(x);var z=new go.PathFigure(0,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.2*a,.35*E,.3*a,.35*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.7*a,.65*E,.8*a,.65*E)),b}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close()),b}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E).close());var y=new go.PathFigure(0,.2*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),b}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.7*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,E,.4*a,.5*E,a,.5*E).close());var x=new go.PathFigure(.45*a,.73*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*E)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*E)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*E)),b}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(.335*a,(1-.555)*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*E,(1-.12)*a,.46*E,(1-.02)*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*E,.02*a,.54*E,.12*a,.46*E)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*E));var z=.5-.285,te=.5,ae=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),le=ie*.5,de=z,ue=z,be=ie*de,Fe=ie*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-de)*a,ae*E,(te-(be+de)/2)*a,(ae+(ue+Fe)/2)*E,(te-de)*a,(ae+Fe)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ue)*E,(te-de)*a,(ae-Fe)*E,(te-be)*a,(ae-ue)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+de)*a,ae*E,(te+be)*a,(ae-ue)*E,(te+de)*a,(ae-Fe)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*E,(te+de)*a,(ae+Fe)*E,(te+(be+de)/2)*a,(ae+(ue+Fe)/2)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E));var He=new go.PathFigure(.2*a,E,!1);b.add(He),He.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*E));var Pt=new go.PathFigure(.8*a,E,!1);return b.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),b}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var x=new go.PathFigure(.2*a,.2*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),b}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(a,E,!1);b.add(x);var z=new go.PathFigure(.1*a,E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("Caution",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.05*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*E,0,E,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*E,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,a,E,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,E));var x=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*E)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*E,x*a,x*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*E,.575*a,.725*E,.625*a,.375*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*E,.375*a,.375*E,.425*a,.725*E)),b}),go.Shape.defineFigureGenerator("Recycle",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.45*a,.95*E,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*E,.17*a,.95*E,.15*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*E,0,.675*E,0,.7*E)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*E)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*E));var x=new go.PathFigure(.475*a,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*E)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*E,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*E)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*E)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*E)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*E,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*E));var z=new go.PathFigure(.675*a,.575*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*E,a,.8*E,a,.85*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*E)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*E)),b}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*.5,z=new go.PathFigure(a,y*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,E,a,(y+x)*E,(y+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*E,(y-x)*a,E,0,(y+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-x)*E,(y-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y*E,(y+x)*a,0,a,(y-x)*E));var te=new go.PathFigure(y*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*E)),te.add(new go.PathSegment(go.PathSegment.Move,0,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*E)),b}),go.Shape.defineFigureGenerator("Package",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.15*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(0,.15*E,!0);return b.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*E).close()),b.spot1=new go.Spot(0,.1),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Class",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var z=new go.PathFigure(0,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close()),b}),go.Shape.defineFigureGenerator("Component",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close());var x=new go.PathFigure(0,.2*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close());var z=new go.PathFigure(0,.6*E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*E).close()),b}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.15*a,.6*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E));var x=new go.PathFigure(.15*a,.6*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),b}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b}),go.Shape.defineFigureGenerator("Workcell",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("Supermarket",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),b}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*E).close());var z=.1,te=ce*.1,ae=.2,re=.9,ie=new go.PathFigure((ae-z)*a,re*E,!0);b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-z)*E,(ae-z)*a,(re-te)*E,(ae-te)*a,(re-z)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,re*E,(ae+te)*a,(re-z)*E,(ae+z)*a,(re-te)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+z)*E,(ae+z)*a,(re+te)*E,(ae+te)*a,(re+z)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,re*E,(ae-te)*a,(re+z)*E,(ae-z)*a,(re+te)*E).close()),z=.1,te=ce*.1,ae=.8,re=.9;var le=new go.PathFigure((ae-z)*a,re*E,!0);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-z)*E,(ae-z)*a,(re-te)*E,(ae-te)*a,(re-z)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,re*E,(ae+te)*a,(re-z)*E,(ae+z)*a,(re-te)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+z)*E,(ae+z)*a,(re+te)*E,(ae+te)*a,(re+z)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,re*E,(ae-te)*a,(re+z)*E,(ae-z)*a,(re+te)*E).close()),b}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),b}),go.Shape.defineFigureGenerator("Forklift",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var z=new go.PathFigure(.5*a,.8*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E));var te=new go.PathFigure(.5*a,.7*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.7*E));var ae=.1,re=ce*.1,ie=.1,le=.9,de=new go.PathFigure((ie-ae)*a,le*E,!0);b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ae)*E,(ie-ae)*a,(le-re)*E,(ie-re)*a,(le-ae)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a,le*E,(ie+re)*a,(le-ae)*E,(ie+ae)*a,(le-re)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ae)*E,(ie+ae)*a,(le+re)*E,(ie+re)*a,(le+ae)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a,le*E,(ie-re)*a,(le+ae)*E,(ie-ae)*a,(le+re)*E)),ae=.1,re=ce*.1,ie=.4,le=.9;var ue=new go.PathFigure((ie-ae)*a,le*E,!0);return b.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ae)*E,(ie-ae)*a,(le-re)*E,(ie-re)*a,(le-ae)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a,le*E,(ie+re)*a,(le-ae)*E,(ie+ae)*a,(le-re)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ae)*E,(ie+ae)*a,(le+re)*E,(ie+re)*a,(le+ae)*E)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a,le*E,(ie-re)*a,(le+ae)*E,(ie-ae)*a,(le+re)*E)),b}),go.Shape.defineFigureGenerator("RailShipment",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,.4*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*E).close());var x=new go.PathFigure(.45*a,.7*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E));var z=new go.PathFigure(.55*a,.4*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*E).close());var ie=.05,le=ce*.05,de=.175,ue=.95,te=new go.PathFigure((de-ie)*a,ue*E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue-ie)*E,(de-ie)*a,(ue-le)*E,(de-le)*a,(ue-ie)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,(de+ie)*a,ue*E,(de+le)*a,(ue-ie)*E,(de+ie)*a,(ue-le)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue+ie)*E,(de+ie)*a,(ue+le)*E,(de+le)*a,(ue+ie)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,(de-ie)*a,ue*E,(de-le)*a,(ue+ie)*E,(de-ie)*a,(ue+le)*E));var ie=.05,le=ce*.05,de=.375,ue=.95,ae=new go.PathFigure((de-ie)*a,ue*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue-ie)*E,(de-ie)*a,(ue-le)*E,(de-le)*a,(ue-ie)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(de+ie)*a,ue*E,(de+le)*a,(ue-ie)*E,(de+ie)*a,(ue-le)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue+ie)*E,(de+ie)*a,(ue+le)*E,(de+le)*a,(ue+ie)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(de-ie)*a,ue*E,(de-le)*a,(ue+ie)*E,(de-ie)*a,(ue+le)*E));var ie=.05,le=ce*.05,de=.625,ue=.95,re=new go.PathFigure((de-ie)*a,ue*E,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue-ie)*E,(de-ie)*a,(ue-le)*E,(de-le)*a,(ue-ie)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(de+ie)*a,ue*E,(de+le)*a,(ue-ie)*E,(de+ie)*a,(ue-le)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue+ie)*E,(de+ie)*a,(ue+le)*E,(de+le)*a,(ue+ie)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(de-ie)*a,ue*E,(de-le)*a,(ue+ie)*E,(de-ie)*a,(ue+le)*E));var ie=.05,le=ce*.05,de=.825,ue=.95,be=new go.PathFigure((de-ie)*a,ue*E,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue-ie)*E,(de-ie)*a,(ue-le)*E,(de-le)*a,(ue-ie)*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de+ie)*a,ue*E,(de+le)*a,(ue-ie)*E,(de+ie)*a,(ue-le)*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(ue+ie)*E,(de+ie)*a,(ue+le)*E,(de+le)*a,(ue+ie)*E)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de-ie)*a,ue*E,(de-le)*a,(ue+ie)*E,(de-ie)*a,(ue+le)*E).close());var Fe=new go.PathFigure(0,E,!1);return b.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b}),go.Shape.defineFigureGenerator("Warehouse",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var z=new go.PathFigure(.15*a,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,E).close());var te=.05,ae=ce*.05,re=.35,ie=.775,le=new go.PathFigure((re-te)*a,ie*E,!0);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*E,(re-te)*a,(ie-ae)*E,(re-ae)*a,(ie-te)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*E,(re+ae)*a,(ie-te)*E,(re+te)*a,(ie-ae)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*E,(re+te)*a,(ie+ae)*E,(re+ae)*a,(ie+te)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*E,(re-ae)*a,(ie+te)*E,(re-te)*a,(ie+ae)*E).close()),b}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E).close()),b}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),b}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),b}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),b}),go.Shape.defineFigureGenerator("Globe",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.75*a,0,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.75*E,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.25*a,E,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*E,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,.15*a,.25*E,.15*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*E,.85*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*E,.35*a,.3*E,.65*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*E,.35*a,.7*E,.65*a,.7*E)),b}),go.Shape.defineFigureGenerator("Wave",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.25*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*E,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*E,.425*a,.5*E,.575*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*E,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*E,.1*a,.5*E,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*E,.425*a,E,.575*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*E,.8*a,.5*E,.9*a,.5*E)),b}),go.Shape.defineFigureGenerator("Operator",function(oe,a,E){var b=new go.Geometry,y=.3,x=ce*.3,z=.5,te=.7,ae=new go.PathFigure((z-y)*a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E));var re=new go.PathFigure(0,.7*E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*E,0,0,a,0)),b}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.65*a,.3*E,.65*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*E,.35*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.3*a,.6*E,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.2*a,E,.35*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,E,.7*a,.6*E,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.8*a,E,.65*a,.95*E)),b}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,0,.075*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,0,E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*E,.8*a,E,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),b}),go.Shape.defineFigureGenerator("Battery",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*E));var x=new go.PathFigure(0,.6*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),b}),go.Shape.defineFigureGenerator("Delete",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*.5,z=.5,te=.5,ae=new go.PathFigure((z-y)*a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E));var re=new go.PathFigure(.15*a,.5*E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*E)),b}),go.Shape.defineFigureGenerator("Flag",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.1*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*E,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,.65*a,.2*E,.85*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.85*a,.6*E,.65*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.35*a,.4*E,.15*a,.4*E).close()),b}),go.Shape.defineFigureGenerator("Help",function(oe,a,E){var b=new go.Geometry,y=.5,x=ce*.5,z=.5,te=.5,ae=new go.PathFigure((z-y)*a,te*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E).close()),y=.05,x=ce*.05,z=.5,te=.8;var re=new go.PathFigure((z-y)*a,te*E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,.75*a,.475*E,.75*a,.225*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*E,.4*a,.2*E,.3*a,.25*E)),b}),go.Shape.defineFigureGenerator("Location",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*E,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*E,.5*a,0,.025*a,.025*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var x=new go.PathFigure(.2*a,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*E)),b}),go.Shape.defineFigureGenerator("Unlocked",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var x=new go.PathFigure(.2*a,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*E)),b}),go.Shape.defineFigureGenerator("Gear",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*E,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*E,.79840625*a,.39915625*E,.7834375*a,.3635*E)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*E)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*E,.64228125*a,.2188125*E,.603875*a,.2021875*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*E,.39759375*a,.20190625*E,.36053125*a,.2176875*E)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*E)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*E,.21765625*a,.36059375*E,.201875*a,.397625*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*E,.20221875*a,.603875*E,.21884375*a,.64228125*E)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*E,.36353125*a,.78340625*E,.3991875*a,.79840625*E)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*E,.602375*a,.79809375*E,.63946875*a,.78234375*E)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*E,.78234375*a,.63940625*E,.798125*a,.602375*E)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*E)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*E,0,.375*E,.05*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*E,.3*a,.225*E,.4*a,.175*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*E,.46*a,.05*E,.525*a,.05*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*E,.525*a,.275*E,.475*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*E,a,.4*E,a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*E,.675*a,.55*E,.675*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*E,.65*a,.7*E,.65*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,E,.61*a,.85*E,.61*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,.435*a,E,0,E).close()),b}),go.Shape.defineFigureGenerator("Map",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),b}),go.Shape.defineFigureGenerator("Eject",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.7).close());var x=new go.PathFigure(0,E*.6,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),b}),go.Shape.defineFigureGenerator("Pencil",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*1,E*1,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.85).close());var x=new go.PathFigure(.126*a,.85*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*E)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*E)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*E).close());var z=new go.PathFigure(.402*a,.85*E,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*E)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*E)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*E).close());var te=new go.PathFigure(.678*a,.85*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*E)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*E)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*E).close());var ae=new go.PathFigure(.5*a,.1*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*E)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*E).close()),b}),go.Shape.defineFigureGenerator("Staircase",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E*1,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.95).close()),b}),go.Shape.defineFigureGenerator("5Bars",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E*1,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*(1-.184)).close());var x=new go.PathFigure(a*.204,E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,E*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*1).close());var z=new go.PathFigure(a*.408,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,E*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*1).close());var te=new go.PathFigure(a*.612,E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.612,E*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*1).close());var ae=new go.PathFigure(a*.816,E,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,E*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-.184*5))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1).close()),b}),go.Shape.defineFigureGenerator("PC",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.1).close());var z=new go.PathFigure(a*.055,.13*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.16).close());var te=new go.PathFigure(a*.055,.18*E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.18)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.21)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.21).close());var ae=new go.PathFigure(a*1,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.65).close()),b}),go.Shape.defineFigureGenerator("Plane",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(.55*a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*E,0,.4*E,.225*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*E,.975*a,0,a,.08*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,E).close()),b}),go.Shape.defineFigureGenerator("Key",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*1,E*.5,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*E)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*E,.075*a,.075*E).close()),b}),go.Shape.defineFigureGenerator("FilmTape",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1));var x=new go.PathFigure(0,0,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,E*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,E*1));var z=new go.PathFigure(a*.11,E*.1,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,E*.8).close());var te=new go.PathFigure(a*(.11+.24133333*1+.028*1),E*.1,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),E*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),E*.1,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),E*.8).close()),b}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,a,E){var b=new go.Geometry,y=8,x=y*ce,z=new go.PathFigure(y,0,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-x,a-x,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,x,E,0,E-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,x,x,0).close());var te=new go.PathFigure(a*.83,0,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*0).close());var ae=new go.PathFigure(a*.83,E*1,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*1).close());var re=new go.PathFigure(a*.78,E*.05,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,E*.25).close()),b}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,a,E){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=15),b=Math.min(b,a/3),b=Math.min(b,E/3);var y=b*ce,x=E*.8,z=new go.Geometry,te=new go.PathFigure(b,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-y,0,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,a,x-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,x,a,x-y,a-y,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),te.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),te.add(new go.PathSegment(go.PathSegment.Line,b,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x-b,y,x,0,x-y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,y,y,0).close()),y>1?(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,.8,-y,-y)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*.45,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.45).close());var x=new go.PathFigure(a*1,E*.55,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.55).close()),b}),go.Shape.defineFigureGenerator("Windows",function(oe,a,E){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,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*E).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*.1,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.9).close());var x=new go.PathFigure(a*.1,E*.2,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,E*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.25).close());var z=new go.PathFigure(a*.28,E*.37,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,E*.41).close()),b}),go.Shape.defineFigureGenerator("Beaker",function(oe,a,E){var b=new go.Geometry,y=15,x=y*ce,z=new go.PathFigure(a*.62,E*.475,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-x,a-x,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,x,E,0,E-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,E*.03).close()),x>1?(b.spot1=new go.Spot(0,0,x,x),b.spot2=new go.Spot(1,1,-x,-x)):(b.spot1=go.Spot.TopLeft,b.spot2=go.Spot.BottomRight),b}),go.Shape.defineFigureGenerator("Download",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close());var z=new go.PathFigure(a*.4,E*0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*0).close()),b}),go.Shape.defineFigureGenerator("Bin",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close()),b}),go.Shape.defineFigureGenerator("Upload",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close());var z=new go.PathFigure(a*.5,E*0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,E*.25).close()),b}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close()),b}),go.Shape.defineFigureGenerator("Drink",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close());var x=new go.PathFigure(a*.235,E*.28,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,E*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,E*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,E*.97).close()),b}),go.Shape.defineFigureGenerator("4Arrows",function(oe,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.5,E*0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.25).close()),b}),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")},43001: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 ye={},qe="5.0",ne={},ee=null,Pe=!1,Ce=!1,fe=null,pe=!1,he=null,ce=null,Le=0;Le4?parseFloat(Te):5};ye.setHTML5Codebase=function(Te,ke){ce=Te,rt(Te,ke)},ye.setJavaCodebase=ye.setJavaCodebaseVersion=ye.isCompiledInstalled=ye.setPreCompiledScriptPath=ye.setPreCompiledResourcePath=function(){},ye.setHTML5CodebaseVersion=function(Te,ke){var Qe=parseFloat(Te);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}he=Te,Ke(Te,ke)},ye.getHTML5CodebaseVersion=function(){return oe},ye.getParameters=function(){return ne},ye.setFontsCSSURL=function(Te){z=Te},ye.setGiacJSURL=function(Te){},ye.setJNLPFile=function(Te){Ae=Te},ye.setJNLPBaseDir=function(Te){},ye.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ke="auto",Qe=ne.id,Je,_e=!1,ge=0;ge=5)return!0;var Te=ye.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},ye.startAnimation=function(){var Te=ye.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},ye.stopAnimation=function(){var Te=ye.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},ye.getAppletObject=function(){var Te=ne.id!==void 0?ne.id:"ggbApplet";return window[Te]},ye.resize=function(){};var be=function(Te,ke,Qe){var Je=document.createElement("param");Je.setAttribute("name",ke),Je.setAttribute("value",Qe),Te.appendChild(Je)},Fe=function(Te){return Te&&Te!=="false"},He=function(Te,ke,Qe){ae(oe)<=4.2&&(Qe=!0);var Je=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!E)&&(Je=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var _e=document.createElement("div");_e.classList.add("appletParameters","notranslate");var ge=ke.width,$e=ke.height;if(ke.disableAutoScale=ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ke.disableAutoScale,ke.width!==void 0)if(ae(oe)<=4.4)Fe(ke.showToolBar)&&(ke.height-=7),Fe(ke.showAlgebraInput)&&(ke.height-=37),ke.width<605&&Fe(ke.showToolBar)&&(ke.width=605,ge=605);else{var Ot=100;(Fe(ke.showToolBar)||Fe(ke.showMenuBar))&&(ke.hasOwnProperty("customToolBar")&&(ke.customToolbar=ke.customToolBar),Ot=Fe(ke.showMenuBar)?245:155),ge=5?(ke.appletOnLoad=function(Ge){var we=Te.querySelector(".ggb_preview");we&&we.parentNode.removeChild(we),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bt),window.GGBT_wsf_view&&$(window).trigger("resize"),zt(Ge)},mn||bt.appendChild(_t)):_e.appendChild(_t),bt.appendChild(_e),mn||Te.appendChild(bt),setTimeout(function(){ye.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(_e),Te.appendChild(Se),ke.appletOnLoad=function(Ge){ye.resize(),zt(Ge)}}function Re(Ge,we){we&&typeof we.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ge,we.appletOnLoad):renderGGBElement(Ge),ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",we)}function Oe(Ge,we){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ge,params:we}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(je){Re(je.article,je.params)}),html5AppletsToProcess=null)},ae(oe)<5&&(Ge.className+=" geogebraweb")):Re(Ge,we)}if(Je){scriptLoadStarted=!0;for(var Ze=0;Ze<_e.childNodes.length;Ze++){var me=_e.childNodes[Ze].tagName;me==="TABLE"&&(_e.removeChild(_e.childNodes[Ze]),Ze--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var We=document.createElement("script"),Ee=function(){Oe(_e,ke)};We.src=Ie+a,ggbHTML5LoadedCodebaseIsWebSimple=E,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=We.src,ht("GeoGebra HTML5 codebase loaded: '"+Ie+"'.",ke),!ce&&(!he||he=="5.0")?(E?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ee()):Ie.requirejs?__webpack_require__.e(7963).then(function(){var Ge=[__webpack_require__(87963)];Ee.apply(null,Ge)}.bind(this)).catch(__webpack_require__.oe):(We.onload=Ee,Te.appendChild(We))}else Oe(_e,ke);ke.height=$e,ke.width=ge},Pt=function(Te,ke,Qe){var Je=ot(ke.width,ke.height,ke.borderColor,Qe),_e=document.createElement("div");_e.style.position="relative",_e.style.display="block",_e.style.width=ke.width+"px",_e.style.height=ke.height+"px",_e.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),_e.appendChild(Je);var ge=GGBAppletUtils.getScale(ke,Te,Qe);Qe?(Te.appendChild(nt()),window.GGBT_wsf_view||(Te.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Te.appendChild(_e),ge!==1&&!isNaN(ge)&&(GGBAppletUtils.scaleElement(_e,ge),_e.style.width=ke.width+"px",_e.style.height=ke.height+"px",_e.parentNode.style.width=ke.width*ge+"px",_e.parentNode.style.height=ke.height*ge+"px"),ye.resize=function(){Ve(Te,Je,_e,Qe)},window.addEventListener("resize",function($e){ye.resize()}),ye.resize()};function Ve(Te,ke,Qe,Je){if(Te.contains(ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Te)}var _e=GGBAppletUtils.getScale(ne,Te,Je);Qe.parentNode!==null&&(!isNaN(_e)&&_e!==1?(GGBAppletUtils.scaleElement(Qe,_e),Qe.parentNode.style.width=ne.width*_e+"px",Qe.parentNode.style.height=ne.height*_e+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=ne.width+"px",Qe.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Te),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ye.onExitFullscreen=function(Te,ke){ke.appendChild(Te)};var tt=function(Te,ke,Qe,Je){Pt(Te,ke,!0);for(var _e=function(){var Ot=[];for($e=0;$e0?(Mt.remove(),bt.attr("id","fullscreencontent").show(),jQuery(zt).append(bt),window.dispatchEvent(new Event("resize"))):He(Mt,ke,!1),window.GGBT_wsf_view.launchFullScreen(zt)}else Xe=Je,He(Te,ke,!1);if(!window.GGBT_wsf_view)for($e=0;$eTe/4*3&&(Mt=Te/4*3),zt=Mt/5.8,Ot.setAttribute("src",y),Ot.setAttribute("width",Mt),Ot.setAttribute("height",zt);var bt=(Te-Mt)/2,mn=(ke-zt)/2;Ot.style.left=bt+"px",Ot.style.top=mn+"px",_e.appendChild(Ot)}}return _e.appendChild($e),_e},it=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},ze=["web","webSimple","web3d","tablet","tablet3d","phone"],Ke=function(Te,ke){if(oe=Te,ke){rt(oe,!0);return}var Qe=!Pe;if(Qe){var Je=ae(oe);!isNaN(Je)&&Je<4.4&&(Qe=!1)}var _e,ge;window.location.protocol.substr(0,4)==="http"?_e=window.location.protocol:_e="http:";var $e=oe.indexOf("//");$e>0?ge=oe:$e===0?ge=_e+oe:ge="https://www.geogebra.org/apps/5.2.814.0/";for(var Ot in ze)if(oe.slice(ze[Ot].length*-1)===ze[Ot]||oe.slice((ze[Ot].length+1)*-1)===ze[Ot]+"/"){rt(ge,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Fe(ne.showToolBar)&&!Fe(ne.showMenuBar)&&!Fe(ne.showAlgebraInput)&&!Fe(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?ge+="webSimple/":ge+="web3d/",rt(ge,!1)},rt=function(Te,ke){if(Te.requirejs){Ie=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),Ie=Te,ke===null&&(ke=Te.indexOf("http")===-1),De=ke,a="web.nocache.js",E=!1;var Qe=Ie.split("/");Qe.length>1&&(!ke&&Qe[Qe.length-2]==="webSimple"?(a="webSimple.nocache.js",E=!0):ze.indexOf(Qe[Qe.length-2])>=0&&(a=Qe[Qe.length-2]+".nocache.js")),Qe=Te.split("/"),oe=Qe[Qe.length-3],oe.substr(0,4)==="test"?oe=oe.substr(4,1)+"."+oe.substr(5,1):(oe.substr(0,3)==="war"||oe.substr(0,4)==="beta")&&(oe="5.0");var Je=parseFloat(oe);Je!==NaN&&Je<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead."),Ke("5.0",ke))},ht=function(Te,ke){window.console&&window.console.log&&(!ke||typeof ke.showLogging=="undefined"||ke.showLogging&&ke.showLogging!=="false")&&console.log(Te)};ne.material_id!==void 0?le(yt):yt();function yt(){var Te=qe;he!==null?Te=he:parseFloat(Te)<5&&(Te="5.0"),Ke(Te,!1),ce!==null&&rt(ce,De),pe=!0}return ye},GGBAppletUtils=function(){"use strict";function ye(){return window.GGBT_wsf_edit!==void 0}function qe(pe,he){he!=1?(pe.style.transformOrigin="0% 0% 0px",pe.style.webkitTransformOrigin="0% 0% 0px",pe.style.transform="scale("+he+","+he+")",pe.style.webkitTransform="scale("+he+","+he+")",pe.style.maxWidth="initial",pe.querySelector(".ggb_preview")!==null&&(pe.querySelector(".ggb_preview").style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(pe.style.transform="none",pe.style.webkitTransform="none")}function ne(pe,he,ce,Le,se,Ae){var Ie=null;if(Ae!=null&&Ae!="")for(var De=pe.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+Ae+" ")>-1){Ie=De;break}else De=De.parentNode;var Xe=0,oe=0,a=0,E=0,b=0,y=0,x=0;if(Ie)Xe=Ie.offsetWidth,oe=Math.max(Le?Ie.offsetWidth:0,Ie.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Xe=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Xe):(Xe=window.innerWidth,oe=window.innerHeight,a=window.innerWidth),pe){var z=pe.getBoundingClientRect();z.left>0&&z.left<=Xe&&(se===void 0||!se)&&(document.dir==="rtl"?(b=Xe-z.width-z.left,y=a<=480?10:30):(y=z.left,b=a<=480?10:30),E=y+b)}if(pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(E=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(E=0,x=40)}}return pe&&((ce===void 0||!ce)&&he>0&&he+E1&&(Ae=!0)),he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(pe.hasOwnProperty("disableAutoScale")&&pe.disableAutoScale))se=ee(pe,he,Ae,ce,pe.scaleContainerClass);else return Le;return Ae&&(!pe.hasOwnProperty("scale")||Le===1)?se:Math.min(Le,se)}function Ce(pe){var he=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Le=pe.getBoundingClientRect(),se=(he-Le.width)/2,Ae=(ce-Le.height)/2;Ae<0&&(Ae=0),pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se<40?pe.style.left="40px":pe.style.left=se+"px",pe.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?pe.style.top="40px":pe.style.top=Ae+"px",pe.style.left=se+"px")}function fe(pe,he){var ce=pe.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Le=Pe(he,pe);ye()&&ce.setAttribute("data-param-scale",Le);for(var se=null,Ae=0;Ae=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(ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ye){var qe=c[ye];return qe==null?null:qe},r=d,webModule.__errFn=e}function B(){function ye(pe){var he=pe.lastIndexOf(rb);he==-1&&(he=pe.length);var ce=pe.indexOf(sb);ce==-1&&(ce=pe.length);var Le=pe.lastIndexOf(tb,Math.min(ce,he));return Le>=O?pe.substring(O,Le+P):W}function qe(pe){if(!pe.match(/^\w+:\/\//)){var he=o.createElement(ub);he.src=pe+vb,pe=ye(he.src)}return pe}function ne(){var pe=__gwt_getMetaProperty(wb);return pe!=null?pe:W}function ee(){for(var pe=o.getElementsByTagName(_),he=O;heO?pe[pe.length-P].href:W}function Ce(){var pe=o.location;return pe.href==pe.protocol+zb+pe.host+pe.pathname+pe.search+pe.hash}var fe=ne();return fe==W&&(fe=ee()),fe==W&&(fe=Pe()),fe==W&&Ce()&&(fe=ye(o.location.href)),fe=qe(fe),fe}function C(ye){return ye.match(/^\//)||ye.match(/^[a-zA-Z]+:\/\//)?ye:webModule.__moduleBase+ye}function D(){var ye=[],qe=O,ne=[],ee=[];function Pe(pe){var he=ee[pe](),ce=ne[pe];if(he in ce)return he;var Le=[];for(var se in ce)Le[ce[se]]=se;throw r&&r(pe,Le,he),null}if(__gwt_isKnownPropertyValue=function(pe,he){return he in ne[pe]},webModule.__getPropMap=function(){var pe={};for(var he in ne)ne.hasOwnProperty(he)&&(pe[he]=Pe(he));return pe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ce;try{Ce=Cb;var fe=Ce.indexOf(Db);fe!=-1&&(qe=parseInt(Ce.substring(fe+P),$),Ce=Ce.substring(O,fe))}catch(pe){}return webModule.__softPermutationId=qe,C(Ce+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},52358:function(ye,qe){(function(ne,ee){ee(qe)})(this,function(ne){"use strict";var ee=function(){return(ee=Object.assign||function(Se){for(var Re,Oe=1,Ze=arguments.length;Oe0&&me[me.length-1])&&(je[0]===6||je[0]===2)){We=0;continue}if(je[0]===3&&(!me||je[1]>me[0]&&je[1]=0&&Se.HANDLE_LIST.splice(Oe,1),window.removeEventListener("message",Re,!1)},Se.empty=function(){for(;Se.HANDLE_LIST.length;)window.removeEventListener("message",Se.HANDLE_LIST.shift(),!1)},Se.parse=function(Re){try{return typeof Re=="object"?Re:Re&&JSON.parse(Re)}catch(Oe){return console.log("Message.parse Error:",Oe),Re}},Se.HANDLE_LIST=[],Se}();function pe(Se){return{}.toString.call(Se)==="[object Function]"}var he,ce,Le,se,Ae={origin:""};function Ie(Se,Re){Ae[Se]=Re}function De(Se){return Ae[Se]}function Xe(Se){var Re=De("origin");return!!function(Oe,Ze){return Oe!==Ze&&(Oe.replace(/www\./i,"").toLowerCase()!==Ze.replace(/www\./i,"").toLowerCase()||(Oe.match("www.")?void 0:(Ie("origin",Ze),!1)))}(Re,Se.origin)&&(console.warn("postMessage \u57DF\u540D\u68C0\u67E5\u4E0D\u901A\u8FC7",{safeOrigin:Re,eventOrigin:Se.origin}),!0)}(function(Se){Se.unknown="unknown",Se.spreadsheet="s",Se.writer="w",Se.presentation="p",Se.pdf="f"})(he||(he={})),function(Se){Se.wps="w",Se.et="s",Se.presentation="p",Se.pdf="f"}(ce||(ce={})),function(Se){Se.nomal="nomal",Se.simple="simple"}(Le||(Le={})),function(Se){Se[Se.requestFullscreen=1]="requestFullscreen",Se[Se.exitFullscreen=0]="exitFullscreen"}(se||(se={}));var oe,a,E,b=(oe=0,function(){return oe+=1}),y=function(Se,Re,Oe){Oe===void 0&&(Oe=!0);var Ze=Re;if(!a){var me=function Ee(Ge){var we=Ge.clientHeight,je=Ge.clientWidth;we!==0||je!==0||E?we===0&&je===0||!E||(E.disconnect(),E=null):window.ResizeObserver&&(E=new ResizeObserver(function(Et){Ee(Ge)})).observe(Ge),a.style.cssText+="height: "+we+"px; width: "+je+"px"}.bind(null,Ze);(a=document.createElement("iframe")).classList.add("web-office-iframe");var Be={id:"office-iframe",src:Se,scrolling:"no",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"true",mozallowfullscreen:"true",allow:"clipboard-read; clipboard-write"};for(var We in Ze?(Be.style="width: "+Ze.clientWidth+"px; height: "+Ze.clientHeight+"px;",Oe&&window.addEventListener("resize",me)):((Ze=document.createElement("div")).classList.add("web-office-default-container"),function(Ee){var Ge=document.createElement("style");document.head.appendChild(Ge);var we=Ge.sheet;we.insertRule(Ee,we.cssRules.length)}(".web-office-default-container {position: absolute; padding: 0; margin: 0; width: 100%; height: 100%; left: 0; top: 0;}"),document.body.appendChild(Ze),Be.style="position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;"),Be)a.setAttribute(We,Be[We]);Ze.appendChild(a),a.destroy=function(){a.parentNode.removeChild(a),a=null,window.removeEventListener("resize",me),E&&(E.disconnect(),E=null)}}return a},x=function(Se){y().contentWindow&&y().contentWindow.postMessage(JSON.stringify(Se),De("origin"))};function z(Se,Re,Oe){return new Promise(function(Ze){var me=b(),Be=function(We){if(!Xe(We)){var Ee=fe.parse(We.data);Ee.eventName===Oe&&Ee.msgId===me&&(Ze(Ee.data),fe.remove(Be))}};fe.add(Be),x({data:Se,msgId:me,eventName:Re})})}var te=function(Se){return z(Se,"wps.jssdk.api","wps.api.reply")},ae=function(Se){return z(Se,"api.basic","api.basic.reply")},re={idMap:{}};function ie(Se){return Pe(this,void 0,void 0,function(){var Re,Oe,Ze,me,Be,We,Ee,Ge,we,je;return Ce(this,function(Et){switch(Et.label){case 0:return Xe(Se)?[2]:(Re=fe.parse(Se.data),Oe=Re.eventName,Ze=Re.callbackId,me=Re.data,Ze&&(Be=re.idMap[Ze])?(We=Be.split(":"),Ee=We[0],Ge=We[1],Oe==="api.callback"&&re[Ee]&&re[Ee][Ge]?[4,(je=re[Ee][Ge]).callback.apply(je,me.args)]:[3,2]):[3,2]);case 1:we=Et.sent(),x({result:we,callbackId:Ze,eventName:"api.callback.reply"}),Et.label=2;case 2:return[2]}})})}var le=function(Se){return Pe(void 0,void 0,void 0,function(){function Re(){return Object.keys(re.idMap).find(function(Et){return re.idMap[Et]===Ze+":"+Oe})}var Oe,Ze,me,Be,We,Ee,Ge,we,je;return Ce(this,function(Et){switch(Et.label){case 0:return Oe=Se.prop,Ze=Se.parentObjId,[4,ue([me=Se.value])];case 1:return Be=Et.sent(),We=Be[0],Ee=Be[1],Se.value=We[0],Ge=Object.keys(Ee)[0],we=re[Ze],me===null&&we&&we[Oe]&&((je=Re())&&delete re.idMap[je],delete we[Oe],Object.keys(we).length||delete re[Ze],Object.keys(re.idMap).length||fe.remove(ie)),Ge&&(Object.keys(re.idMap).length||fe.add(ie),re[Ze]||(re[Ze]={}),re[Ze][Oe]={callbackId:Ge,callback:Ee[Ge]},(je=Re())&&delete re.idMap[je],re.idMap[Ge]=Ze+":"+Oe),[2]}})})},de=function(Se,Re,Oe,Ze){return Pe(void 0,void 0,void 0,function(){var me,Be,We,Ee,Ge,we,je,Et;return Ce(this,function(Ft){switch(Ft.label){case 0:return me=b(),Ee=new Promise(function(dt,Nt){Be=dt,We=Nt}),Ge={},Re.args?[4,ue(Re.args)]:[3,2];case 1:we=Ft.sent(),je=we[0],Et=we[1],Re.args=je,Ge=Et,Ft.label=2;case 2:return Se!=="api.setter"?[3,4]:[4,le(Re)];case 3:Ft.sent(),Ft.label=4;case 4:return function(dt){var Nt=dt[0],Qt=dt[1];typeof(Nt=ee({},Nt)).data=="function"&&(Nt.data=Nt.data()),Qt(),x(Nt)}([{eventName:Se,data:Re,msgId:me},function(){var dt=this,Nt=function(Qt){return Pe(dt,void 0,void 0,function(){var on,ft,st;return Ce(this,function(Ye){switch(Ye.label){case 0:return Xe(Qt)?[2]:(on=fe.parse(Qt.data)).eventName==="api.callback"&&on.callbackId&&Ge[on.callbackId]?[4,Ge[on.callbackId].apply(Ge,on.data.args)]:[3,2];case 1:ft=Ye.sent(),x({result:ft,eventName:"api.callback.reply",callbackId:on.callbackId}),Ye.label=2;case 2:return on.eventName===Se+".reply"&&on.msgId===me&&(on.error?((st=new Error("")).stack=on.error+` `+Oe,Ze&&Ze(),We(st)):Be(on.result),fe.remove(Nt)),[2]}})})};return fe.add(Nt),Ee}]),[2,Ee]}})})};function ue(Se){return Pe(this,void 0,void 0,function(){var Re,Oe,Ze,me,Be,We,Ee,Ge,we,je,Et;return Ce(this,function(Ft){switch(Ft.label){case 0:Re={},Oe=[],Ze=Se.slice(0),Ft.label=1;case 1:return Ze.length?(me=void 0,[4,Ze.shift()]):[3,13];case 2:return(Be=Ft.sent())&&Be.done?[4,Be.done()]:[3,4];case 3:Ft.sent(),Ft.label=4;case 4:if(!function(dt){if(!dt)return!1;for(var Nt=dt;Object.getPrototypeOf(Nt)!==null;)Nt=Object.getPrototypeOf(Nt);return Object.getPrototypeOf(dt)===Nt}(me))return[3,11];for(Ee in me={},We=[],Be)We.push(Ee);Ge=0,Ft.label=5;case 5:return Ge=0?"&":"?")+st.join("&")),we&&(we.isParentFullscreen||we.isBrowserViewFullscreen)&&(document.addEventListener("fullscreenchange",nt),document.addEventListener("webkitfullscreenchange",nt),document.addEventListener("mozfullscreenchange",nt)),Oe.wordOptions&&(Oe.wpsOptions=Oe.wordOptions),Oe.excelOptions&&(Oe.etOptions=Oe.excelOptions),Oe.pptOptions&&(Oe.wppOptions=Oe.pptOptions),typeof We.print=="object"){var Ye="wpsconfig_print";typeof We.print.subscribe=="function"&&(We[Ye]=We.print.subscribe,Oe.print={callback:Ye},We.print.custom!==void 0&&(Oe.print.custom=We.print.custom)),delete We.print}return typeof We.exportPdf=="function"&&(We[Ye="wpsconfig_export_pdf"]=We.exportPdf,Oe.exportPdf={callback:Ye},delete We.exportPdf),Oe.commandBars&&He(Oe.commandBars,!1),ee(ee({},Oe),{subscriptions:We})},Fe=function(Se){Se===void 0&&(Se="");var Re="";if(!Re&&Se){var Oe=Se.toLowerCase();Oe.indexOf("/office/s/")!==-1&&(Re=he.spreadsheet),Oe.indexOf("/office/w/")!==-1&&(Re=he.writer),Oe.indexOf("/office/p/")!==-1&&(Re=he.presentation),Oe.indexOf("/office/f/")!==-1&&(Re=he.pdf)}if(!Re){var Ze=Se.match(/[\?&]type=([a-z]+)/)||[];Re=ce[Ze[1]]||""}return Re};function He(Se,Re){Re===void 0&&(Re=!0);var Oe=Se.map(function(Ze){var me=Ze.attributes;if(!Array.isArray(me)){var Be=[];for(var We in me)if(me.hasOwnProperty(We)){var Ee={name:We,value:me[We]};Be.push(Ee)}Ze.attributes=Be}return Ze});return Re&&x({data:Oe,eventName:"setCommandBars"}),Oe}var Pt=window.navigator.userAgent.toLowerCase(),Ve=/Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(Pt),tt=function(){try{return window._parent.location.search.indexOf("from=wxminiprogram")!==-1}catch(Se){return!1}}();function nt(){var Se={status:se.requestFullscreen},Re=document,Oe=Re.fullscreenElement||Re.webkitFullscreenElement||Re.mozFullScreenElement;Se.status=Oe?se.requestFullscreen:se.exitFullscreen,x({data:Se,eventName:"fullscreenchange"})}var ot=function(){re.idMap={}};function it(){console.group("JSSDK \u4E8B\u4EF6\u673A\u5236\u8C03\u6574\u8BF4\u660E"),console.warn("jssdk.on\u3001jssdk.off \u548C jssdk.Application.Sub \u5C06\u5728\u540E\u7EED\u7248\u672C\u4E2D\u88AB\u5F03\u7528\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u6539\u8FDB\u540E\u7684 ApiEvent"),console.warn("\u5177\u4F53\u8BF7\u53C2\u8003\uFF1Ahttps://wwo.wps.cn/docs/front-end/basic-usage/events/intro/"),console.groupEnd()}var ze=0,Ke=new Set;function rt(Se){return ze+=1,!Se&&function(Re){Ke.forEach(function(Oe){return Oe(Re)})}(ze),ze}function ht(){var Se=new Error("");return(Se.stack||Se.message||"").split(` `).slice(2).join(` `)}function yt(Se,Re){var Oe,Ze=this,me=Re.Events,Be=Re.Enum,We=Re.Props,Ee=We[0],Ge=We[1],we={objId:ze};switch(function dt(Nt,Qt,on){for(var ft=Qt.slice(0),st=function(){var Ye=ft.shift();!Ye.alias&&~Te.indexOf(Ye.prop)&&ft.push(ee(ee({},Ye),{alias:Ye.prop+"Async"})),Object.defineProperty(Nt,Ye.alias||Ye.prop,{get:function(){var jt=this,vt=Ye.cache===1,Ct=vt&&this["__"+Ye.prop+"CacheValue"];if(!Ct){var vn=ht(),Zt=rt(vt),wt=function(){for(var Ht,en=[],pn=0;pn=0?(Re.then=null,Re.catch=null,Ee.then(function(){Ge(Re)}).catch(function(je){return we(je)})):Ee.then(Ge,we)},Re.catch=function(Ge){return Ee.catch(Ge)},Re.Destroy=function(){return de("api.free",{objId:Re.objId},"")}}var Je={},_e=null,ge={fileOpen:"fileOpen",tabSwitch:"tabSwitch",fileSaved:"fileSaved",fileStatus:"fileStatus",fullscreenChange:"fullscreenChange",error:"error",stage:"stage"},$e={getToken:"api.getToken",onToast:"event.toast",onHyperLinkOpen:"event.hyperLinkOpen",getClipboardData:"api.getClipboardData"};function Ot(Se,Re,Oe,Ze,me,Be,We){var Ee=this;Oe===void 0&&(Oe={}),fe.add(function(Ge){return Pe(Ee,void 0,void 0,function(){var we,je,Et,Ft,dt,Nt,Qt,on,ft,st,Ye,jt,vt,Ct,vn,Zt,wt,Ht,en;return Ce(this,function(pn){switch(pn.label){case 0:return Xe(Ge)?[2]:(we=fe.parse(Ge.data),je=we.eventName,Et=je===void 0?"":je,Ft=we.data,dt=Ft===void 0?null:Ft,Nt=we.url,Qt=Nt===void 0?null:Nt,["wps.jssdk.api"].indexOf(Et)!==-1?[2]:Et!=="ready"?[3,1]:(me.apiReadySended&&function(bn){var Cn=[];Object.keys(Je).forEach(function(Dn){Je[Dn].forEach(function(Bn){var xt=Dn;bn.off(xt,Bn),Cn.push({handle:Bn,eventName:xt})}),delete Je[Dn]}),Cn.forEach(function(Dn){var Bn=Dn.eventName,xt=Dn.handle;_e==null||_e.ApiEvent.AddApiEventListener(Bn,xt)})}(Re),x({eventName:"setConfig",data:ee(ee({},Oe),{version:Se.version})}),Se.tokenData&&Se.setToken(ee(ee({},Se.tokenData),{hasRefreshTokenConfig:!!Oe.refreshToken})),Se.iframeReady=!0,[3,15]));case 1:return Et!=="error"?[3,2]:(Re.emit(ge.error,dt),[3,15]);case 2:return Et!=="open.result"?[3,3]:(((wt=dt==null?void 0:dt.fileInfo)===null||wt===void 0?void 0:wt.officeVersion)!==void 0&&(Se.mainVersion=dt.fileInfo.officeVersion,console.log("aliyun Main Version: V"+Se.mainVersion)),Re.emit(ge.fileOpen,dt),[3,15]);case 3:return Et!=="api.scroll"?[3,4]:(window.scrollTo(dt.x,dt.y),[3,15]);case 4:if(Et!==$e.getToken)return[3,9];on={token:!1},pn.label=5;case 5:return pn.trys.push([5,7,,8]),[4,me.refreshToken()];case 6:return on=pn.sent(),[3,8];case 7:return ft=pn.sent(),console.error("refreshToken: "+(ft||"fail to get")),[3,8];case 8:return x({eventName:$e.getToken+".reply",data:on}),[3,15];case 9:if(Et!==$e.getClipboardData)return[3,14];st={text:"",html:""},pn.label=10;case 10:return pn.trys.push([10,12,,13]),[4,me.getClipboardData()];case 11:return st=pn.sent(),[3,13];case 12:return Ye=pn.sent(),console.error("getClipboardData: "+(Ye||"fail to get")),[3,13];case 13:return x({eventName:$e.getClipboardData+".reply",data:st}),[3,15];case 14:Et===$e.onToast?me.onToast(dt):Et===$e.onHyperLinkOpen?me.onHyperLinkOpen(dt):Et==="stage"?Re.emit(ge.stage,dt):Et==="event.callback"?(jt=dt.eventName,vt=dt.data,Ct=jt,jt==="fullScreenChange"&&(Ct=ge.fullscreenChange),jt==="file.saved"&&(Ct=ge.fileStatus),(!((Ht=Oe.commonOptions)===null||Ht===void 0)&&Ht.isBrowserViewFullscreen||!((en=Oe.commonOptions)===null||en===void 0)&&en.isParentFullscreen)&&Ct==="fullscreenchange"&&(vn=vt.status,Zt=vt.isDispatchEvent,Oe.commonOptions.isBrowserViewFullscreen?function(bn,Cn,Dn,Bn){bn===0?Cn.style="position: static; width: "+Dn.width+"; height: "+Dn.height:bn===1&&(Cn.style="position: absolute; width: 100%; height: 100%"),Bn&&function(xt){["fullscreen","fullscreenElement"].forEach(function(at){Object.defineProperty(document,at,{get:function(){return!!xt.status},configurable:!0})});var Vt=new CustomEvent("fullscreenchange");document.dispatchEvent(Vt)}({status:bn})}(vn,Be,We,Zt):Oe.commonOptions.isParentFullscreen&&function(bn,Cn,Dn){var Bn=document.querySelector(Dn),xt=Bn&&Bn.nodeType===1?Bn:Cn;if(bn===0){var Vt=document,at=Vt.exitFullscreen||Vt.mozCancelFullScreen||Vt.msExitFullscreen||Vt.webkitCancelFullScreen||Vt.webkitExitFullscreen;at.call(document)}else if(bn===1){var lt=xt.requestFullscreen||xt.mozRequestFullScreen||xt.msRequestFullscreen||xt.webkitRequestFullscreen;lt.call(xt)}}(vn,Be,Oe.commonOptions.isParentFullscreen)),Re.emit(Ct,vt)):Et==="api.ready"&&yt(Se,dt),pn.label=15;case 15:return typeof Ze[Et]=="function"&&Ze[Et](Se,Qt||dt),[2]}})})})}function Mt(Se){return new Promise(function(Re){var Oe=function(Ze){Xe(Ze)||fe.parse(Ze.data).eventName===Se&&(Re(),fe.remove(Oe))};fe.add(Oe)})}function zt(Se){var Re,Oe=this;Se===void 0&&(Se={}),_e&&_e.destroy();try{var Ze=be(Se),me=Ze.subscriptions,Be=me===void 0?{}:me,We=Ze.mount,Ee=We===void 0?null:We,Ge=Ze.url,we=Ze.refreshToken,je=Ze.onToast,Et=Ze.onHyperLinkOpen,Ft=Ze.getClipboardData;Ie("origin",(Ge.match(/https*:\/\/[^\/]+/g)||[])[0]);var dt=y(Ge,Ee),Nt=Mt("ready"),Qt=Mt("open.result"),on=Mt("api.ready"),ft=Ee?{width:Ee.clientWidth+"px",height:Ee.clientHeight+"px"}:{width:"100vw",height:"100vh"};delete Ze.mount,Ge&&delete Ze.url,delete Ze.subscriptions;var st=(Re=Re||Object.create(null),{on:function(vt,Ct){(Re[vt]||(Re[vt]=[])).push(Ct)},off:function(vt,Ct){Re[vt]&&Re[vt].splice(Re[vt].indexOf(Ct)>>>0,1)},emit:function(vt,Ct){(Re[vt]||[]).slice().map(function(vn){vn(Ct)}),(Re["*"]||[]).slice().map(function(vn){vn(vt,Ct)})}}),Ye={apiReadySended:!1},jt=function(vt,Ct,vn){return Pe(Oe,void 0,void 0,function(){return Ce(this,function(Zt){switch(Zt.label){case 0:return function(wt,Ht,en){if(Je[wt]){var pn=!!Je[wt].find(function(bn){return bn===Ht});return pn&&en==="off"?(st.off(wt,Ht),Je[wt]=Je[wt].filter(function(bn){return bn!==Ht}),!!Je[wt].length||(Je[wt]=void 0,!1)):(pn||en!=="on"||(Je[wt].push(Ht),st.on(wt,Ht)),!0)}return en==="on"?(Je[wt]=[],Je[wt].push(Ht),!1):en==="off"||void 0}(vt,Ct,vn)?[3,2]:[4,Nt];case 1:Zt.sent(),function(wt,Ht){var en=wt.eventName,pn=wt.type,bn=wt.handle;Ht==="on"?st.on(en,bn):st.off(en,bn),pn==="base.event"&&x({eventName:"basic.event",data:{eventName:en,action:Ht}}),it()}(function(wt,Ht){var en=wt,pn="base.event";switch(en){case ge.fileSaved:console.warn("fileSaved\u4E8B\u4EF6\u76D1\u542C\u5373\u5C06\u5F03\u7528\uFF0C \u63A8\u8350\u4F7F\u7528fileStatus\u8FDB\u884C\u6587\u4EF6\u72B6\u6001\u7684\u76D1\u542C"),en="fileStatus";break;case ge.fullscreenChange:en="fullscreenchange";break;case"error":case"fileOpen":pn="callback.event"}return{eventName:en,type:pn,handle:Ht}}(vt,Ct),vn),Zt.label=2;case 2:return[2]}})})};return _e={url:Ge,iframe:dt,version:"1.1.19",iframeReady:!1,tokenData:null,commandBars:null,tabs:{getTabs:function(){return Pe(this,void 0,void 0,function(){return Ce(this,function(vt){switch(vt.label){case 0:return[4,Nt];case 1:return vt.sent(),[2,ae({api:"tab.getTabs"})]}})})},switchTab:function(vt){return Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),[2,ae({api:"tab.switchTab",args:{tabKey:vt}})]}})})}},setCooperUserColor:function(vt){return Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),[2,ae({api:"setCooperUserColor",args:vt})]}})})},setToken:function(vt){return Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),_e.tokenData=vt,x({eventName:"setToken",data:vt}),[2]}})})},ready:function(){return Pe(this,void 0,void 0,function(){return Ce(this,function(vt){switch(vt.label){case 0:return Ye.apiReadySended?[3,2]:[4,Qt];case 1:vt.sent(),Ye.apiReadySended=!0,x({eventName:"api.ready"}),vt.label=2;case 2:return[4,on];case 3:return vt.sent(),[2,new Promise(function(Ct){return setTimeout(function(){return Ct(_e==null?void 0:_e.Application)},0)})]}})})},destroy:function(){Je={},dt.destroy(),fe.empty(),_e=null,Ke=new Set,ze=0,document.removeEventListener("fullscreenchange",nt),ot()},save:function(){return Pe(this,void 0,void 0,function(){return Ce(this,function(vt){switch(vt.label){case 0:return[4,Nt];case 1:return vt.sent(),[2,te({api:"save"})]}})})},setCommandBars:function(vt){return Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),He(vt),[2]}})})},updateConfig:function(vt){return vt===void 0&&(vt={}),Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),vt.commandBars?(console.warn("Deprecated: `updateConfig()` \u65B9\u6CD5\u5373\u5C06\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528`setCommandBars()`\u4EE3\u66FF`updateConfig()`\u66F4\u65B0`commandBars`\u914D\u7F6E\u3002"),[4,He(vt.commandBars)]):[3,3];case 2:Ct.sent(),Ct.label=3;case 3:return[2]}})})},executeCommandBar:function(vt){return Pe(this,void 0,void 0,function(){return Ce(this,function(Ct){switch(Ct.label){case 0:return[4,Nt];case 1:return Ct.sent(),He([{cmbId:vt,attributes:[{name:"click",value:!0}]}]),[2]}})})},on:function(vt,Ct){return Pe(this,void 0,void 0,function(){return Ce(this,function(vn){return[2,this.ApiEvent.AddApiEventListener(vt,Ct)]})})},off:function(vt,Ct){return Pe(this,void 0,void 0,function(){return Ce(this,function(vn){return[2,this.ApiEvent.RemoveApiEventListener(vt,Ct)]})})},ApiEvent:{AddApiEventListener:function(vt,Ct){return Pe(this,void 0,void 0,function(){return Ce(this,function(vn){switch(vn.label){case 0:return[4,jt(vt,Ct,"on")];case 1:return[2,vn.sent()]}})})},RemoveApiEventListener:function(vt,Ct){return Pe(this,void 0,void 0,function(){return Ce(this,function(vn){switch(vn.label){case 0:return[4,jt(vt,Ct,"off")];case 1:return[2,vn.sent()]}})})}}},function(vt,Ct,vn,Zt,wt,Ht){Ct&&pe(Ct)&&(wt.refreshToken=Ct,vt.refreshToken={eventName:$e.getToken}),Ht&&pe(Ht)&&(wt.getClipboardData=Ht,vt.getClipboardData={eventName:$e.getClipboardData}),vn&&pe(vn)&&(wt.onToast=vn,vt.onToast={eventName:$e.onToast}),Zt&&pe(Zt)&&(wt.onHyperLinkOpen=Zt,vt.onHyperLinkOpen={eventName:$e.onHyperLinkOpen})}(Ze,we,je,Et,Ye,Ft),Ot(_e,st,Ze,Be,Ye,dt,ft),_e}catch(vt){console.error(vt)}}console.log("aliyun JS-SDK V1.1.19");var bt=Object.freeze({__proto__:null,listener:Ot,config:zt});window.WPS=bt;var mn=zt,_t={config:mn};ne.config=mn,ne.default=_t,Object.defineProperty(ne,"__esModule",{value:!0})})},46699:function(ye,qe,ne){"use strict";ne.d(qe,{Ax:function(){return fe},Ds:function(){return pe},KI:function(){return ce},SI:function(){return Ce},f1:function(){return Pe}});var ee=ne(346);function Pe(Le){let se=!0;if(Le.length>0){for(let Ae=0;AeE in a?Ce(a,E,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[E]=b,Ae=(a,E)=>{for(var b in E||(E={}))ce.call(E,b)&&se(a,b,E[b]);if(he)for(var b of he(E))Le.call(E,b)&&se(a,b,E[b]);return a},Ie=(a,E)=>fe(a,pe(E)),De=(a,E)=>{var b={};for(var y in a)ce.call(a,y)&&E.indexOf(y)<0&&(b[y]=a[y]);if(a!=null&&he)for(var y of he(a))E.indexOf(y)<0&&Le.call(a,y)&&(b[y]=a[y]);return b},Xe=(a,E,b)=>new Promise((y,x)=>{var z=re=>{try{ae(b.next(re))}catch(ie){x(ie)}},te=re=>{try{ae(b.throw(re))}catch(ie){x(ie)}},ae=re=>re.done?y(re.value):Promise.resolve(re.value).then(z,te);ae((b=b.apply(a,E)).next())});const oe=a=>{var E=a,{children:b}=E,y=De(E,["children"]);const[x,z]=(0,Pe.useState)(!1);return Pe.createElement(ee.ZP,Ie(Ae({},y),{loading:x,onClick:te=>Xe(void 0,null,function*(){try{z(!0),yield y.onClick(te),z(!1)}catch(ae){console.error(ae),z(!1)}})}),b)}},85788:function(ye,qe,ne){"use strict";var ee=ne(86204),Pe=ne.n(ee),Ce=Object.defineProperty,fe=(Le,se,Ae)=>se in Le?Ce(Le,se,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Le[se]=Ae,pe=(Le,se,Ae)=>fe(Le,typeof se!="symbol"?se+"":se,Ae),he=(Le,se,Ae)=>new Promise((Ie,De)=>{var Xe=E=>{try{a(Ae.next(E))}catch(b){De(b)}},oe=E=>{try{a(Ae.throw(E))}catch(b){De(b)}},a=E=>E.done?Ie(E.value):Promise.resolve(E.value).then(Xe,oe);a((Ae=Ae.apply(Le,se)).next())});class ce extends ee.EventEmitter{constructor(se,Ae){super(),pe(this,"url"),pe(this,"body"),pe(this,"fullContent",""),pe(this,"controller",null),pe(this,"buffer",""),this.url=se,this.body=Ae}startStream(){return he(this,null,function*(){this.controller=new AbortController;const{signal:se}=this.controller;try{const Ae=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:se});if(!Ae.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Ae.status}`);const Ie=Ae.headers.get("content-type");if(!Ie)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Ie.includes("application/json")){const oe=yield Ae.json();this.emit("error",oe);return}if(!Ie.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const De=Ae.body.getReader(),Xe=new TextDecoder("utf-8");for(;;){const{done:oe,value:a}=yield De.read();if(oe)break;const E=Xe.decode(a,{stream:!0});this.buffer+=E;const b=this.buffer.split(` `);this.buffer=b.pop()||"";for(const y of b)if(y.startsWith("data:")){const x=y.slice(5).trim();if(x==="[DONE]")break;try{const z=JSON.parse(x);z.data&&this.handleData(z.data)}catch(z){this.buffer=y+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",z)}}}this.emit("done",this.fullContent)}catch(Ae){Ae.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Ae.message)}})}handleData(se){se.content&&(this.fullContent+=se.content,this.emit("data",{chunk:se,full:this.fullContent}))}cancelRequest(){var se;(se=this.controller)==null||se.abort()}}qe.Z=ce},81679:function(ye,qe,ne){"use strict";ne.d(qe,{Z:function(){return Xe}});var ee=ne(59301),Pe=ne(30641),Ce=ne(77019),fe=ne(5269),pe={smartWrp:"smartWrp___NjRcB"},he=ne(75975),ce=ne(9148),Le=ne(84842),se=ne(59301),Ae=(oe,a,E)=>new Promise((b,y)=>{var x=ae=>{try{te(E.next(ae))}catch(re){y(re)}},z=ae=>{try{te(E.throw(ae))}catch(re){y(re)}},te=ae=>ae.done?b(ae.value):Promise.resolve(ae.value).then(x,z);te((E=E.apply(oe,a)).next())});const Ie=` \u5FEB\u901F\u6392\u5E8F\u6F14\u793A

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A