(self.webpackChunk=self.webpackChunk||[]).push([[7062],{81953:function(cn,Un,St){"use strict";St.d(Un,{Z:function(){return Oe}});var ot=St(72308),Tt=St(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},en=ie,de=St(7657),fe=function(Ae,xe){return Tt.createElement(de.Z,(0,ot.Z)({},Ae,{ref:xe,icon:en}))},qt=Tt.forwardRef(fe),Oe=qt},87169:function(cn,Un,St){"use strict";St.d(Un,{Z:function(){return Oe}});var ot=St(72308),Tt=St(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},en=ie,de=St(7657),fe=function(Ae,xe){return Tt.createElement(de.Z,(0,ot.Z)({},Ae,{ref:xe,icon:en}))},qt=Tt.forwardRef(fe),Oe=qt},32050:function(cn,Un,St){"use strict";St.d(Un,{Z:function(){return Oe}});var ot=St(72308),Tt=St(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},en=ie,de=St(7657),fe=function(Ae,xe){return Tt.createElement(de.Z,(0,ot.Z)({},Ae,{ref:xe,icon:en}))},qt=Tt.forwardRef(fe),Oe=qt},37036:function(){"use strict"},88010:function(cn,Un){"use strict";Un.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},56615:function(cn,Un){"use strict";Un.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},84287:function(cn,Un,St){"use strict";var ot=St(59301),Tt=Object.defineProperty,ie=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,fe=(he,Ae,xe)=>Ae in he?Tt(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:xe}):he[Ae]=xe,qt=(he,Ae)=>{for(var xe in Ae||(Ae={}))en.call(Ae,xe)&&fe(he,xe,Ae[xe]);if(ie)for(var xe of ie(Ae))de.call(Ae,xe)&&fe(he,xe,Ae[xe]);return he};const Oe=he=>React.createElement("svg",qt({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Un.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},86087:function(cn,Un,St){"use strict";var ot=St(59301),Tt=Object.defineProperty,ie=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,fe=(he,Ae,xe)=>Ae in he?Tt(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:xe}):he[Ae]=xe,qt=(he,Ae)=>{for(var xe in Ae||(Ae={}))en.call(Ae,xe)&&fe(he,xe,Ae[xe]);if(ie)for(var xe of ie(Ae))de.call(Ae,xe)&&fe(he,xe,Ae[xe]);return he};const Oe=he=>React.createElement("svg",qt({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},he),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Un.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},74413:function(){"use strict";function cn(Ft,nt,et,ct){et===void 0&&(et=0),ct===void 0&&(ct=1/0),this._name=Ft,this._defaultValue=nt,this._minimum=et,this._maximum=ct}Object.defineProperty(cn.prototype,"name",{get:function(){return this._name},set:function(Ft){if(typeof Ft!="string"||Ft==="")throw new Error("Shape name must be a valid string.");this._name=Ft}}),Object.defineProperty(cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("The default value must be a real number, not: "+Ft);this._defaultValue=Ft}}),Object.defineProperty(cn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("Minimum must be a real number, not: "+Ft);this._minimum=Ft}}),Object.defineProperty(cn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("Maximum must be a real number, not: "+Ft);this._maximum=Ft}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ft,nt){var et=go.Shape._FigureParameters[Ft];return et?et[nt]:null},go.Shape.setFigureParameter=function(Ft,nt,et){if(!(et instanceof cn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+et);if(et.defaultValueet.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+et.defaultValue);var ct=go.Shape._FigureParameters[Ft];ct||(ct=[],go.Shape._FigureParameters[Ft]=ct),ct[nt]=et};var Un=[];function St(Ft,nt){var et=Un.pop();return et===void 0?new go.Point(Ft,nt):(et.x=Ft,et.y=nt,et)}function ot(){var Ft=Un.pop();return Ft===void 0?new go.Point:Ft}function Tt(Ft){Un.push(Ft)}function ie(Ft,nt,et,ct,ut,pt,yt,Pt,bt){bt||(bt=new go.Point);var Gt=Ft-et,Qt=ut-yt,ae=NaN,re=NaN;if(Gt===0)if(Qt===0)Ft===et&&(ae=Ft,re=nt);else{var ne=(pt-Pt)/Qt,Ie=pt-ne*ut;ae=Ft,re=ne*ae+Ie}else if(Qt===0){var ge=(nt-ct)/Gt,Le=nt-ge*Ft;ae=ut,re=ge*ae+Le}else{var ge=(nt-ct)/Gt,ne=(pt-Pt)/Qt,Le=nt-ge*Ft,Ie=pt-ne*ut;ae=(Ie-Le)/(ge-ne),re=ge*ae+Le}return bt.x=ae,bt.y=re,bt}function en(Ft,nt,et,ct,ut,pt,yt,Pt,bt,Gt,Qt,ae,re,ne){var Ie=1-bt,ge=bt,Le=Ft*Ie+et*ge,ce=nt*Ie+ct*ge,ze=et*Ie+ut*ge,qe=ct*Ie+pt*ge,An=ut*Ie+yt*ge,fn=pt*Ie+Pt*ge,Zn=Le*Ie+ze*ge,Se=ce*Ie+qe*ge,Ut=ze*Ie+An*ge,je=qe*Ie+fn*ge,Ln=Zn*Ie+Ut*ge,Nn=Se*Ie+je*ge;Gt.x=Le,Gt.y=ce,Qt.x=Zn,Qt.y=Se,ae.x=Ln,ae.y=Nn,re.x=Ut,re.y=je,ne.x=An,ne.y=fn}var de=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),qt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=5),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var ut=ct*qt,pt=new go.Geometry().add(new go.PathFigure(ct,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-ut,0,nt,ut)).add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)).add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,et-ut,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,ct,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,ut,et,0,et-ut)).add(new go.PathSegment(go.PathSegment.Line,0,ct)).add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,ut,ut,0).close()));return ut>1&&(pt.spot1=new go.Spot(0,0,ut,ut),pt.spot2=new go.Spot(1,1,-ut,-ut)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(nt,et).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ft,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=et/2,ct.endX=nt,ct.endY=et/2,ct}),go.Shape.defineFigureGenerator("LineV",function(Ft,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt/2,ct.startY=0,ct.endX=nt/2,ct.endY=et,ct}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,et/2,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("XLine",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LineRight",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.25*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)))}),go.Shape.defineFigureGenerator("LineDown",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,.25*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.75*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)))}),go.Shape.defineFigureGenerator("LineUp",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,.75*et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ft,nt,et){var ct=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ct*nt,(1-ct)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Move,0,et/2)).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ft,nt,et){var ct=nt/2,ut=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ct,ct,ct,ct).close()));return ut.spot1=de,ut.spot2=fe,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Line1",function(Ft,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=0,ct.endX=nt,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Line2",function(Ft,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt,ct.startY=0,ct.endX=0,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Curve1",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,qt*nt,0,nt,(1-qt)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,qt*et,(1-qt)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,qt*et,qt*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-qt)*nt,0,0,(1-qt)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)?ct=.1:ct<-1?ct=-1:ct>1&&(ct=1);var ut=Math.abs(ct)*nt;if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(ut,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-ut,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,ut,et).close())),utnt&&(ct=nt);var ut=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(ut,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt-ut,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,ut,et).close())),ut.5&&(ct=.5);var ut=Math.abs(ct)*nt;if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(ut,0).add(new go.PathSegment(go.PathSegment.Line,nt-ut,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,ut,et).close())),utnt&&(ct=nt/2);var ut=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(ut,0).add(new go.PathSegment(go.PathSegment.Line,nt-ut,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,ut,et).close())),utnt&&(ct=nt/2);var ut=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,ut,et).close())):pt.add(new go.PathFigure(ut,0).add(new go.PathSegment(go.PathSegment.Line,nt-ut,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close())),ut0&&(yt.add(new go.PathSegment(go.PathSegment.Move,nt/2+Pt,nt/2)),yt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ut,ut,Pt,Pt).close())),pt.spot1=de,pt.spot2=fe,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.08034461*nt,.1944299*et,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*nt,.05349299*et,-.09239631*nt,.07836421*et,.1406031*nt,-.0542823*et)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*nt,.074219*et,.2450511*nt,-.00697547*et,.3776197*nt,-.01112067*et)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*nt,.07004196*et,.4539471*nt,0,.6066018*nt,-.02526587*et)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*nt,.08370865*et,.6914277*nt,-.01904177*et,.8921095*nt,-.01220843*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*nt,.3194596*et,1.036446*nt,.04105738*et,1.020377*nt,.3022052*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*nt,.562044*et,1.04448*nt,.360238*et,.992256*nt,.5219009*et)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*nt,.8217117*et,1.032337*nt,.5771781*et,1.018411*nt,.8120651*et)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*nt,.9156953*et,1.028411*nt,.9571472*et,.8556702*nt,1.052487*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*nt,.9310455*et,.7431877*nt,1.009325*et,.5624123*nt,1.021761*et)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*nt,.9344623*et,.4820677*nt,1.031761*et,.3030112*nt,1.002796*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.870098*et,.2329994*nt,1.01518*et,.03213784*nt,1.01518*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*nt,.6545475*et,-.02812061*nt,.9032597*et,-.01205169*nt,.6835638*et)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*nt,.4265613*et,-.01812061*nt,.6089503*et,-.00606892*nt,.4555777*et)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*nt,.1944299*et,-.01606892*nt,.3892545*et,-.01205169*nt,.1944299*et))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ft,nt,et){var ct=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ct*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close())).setSpots(ct/2,ct/2,1-ct/2,1-ct/2)}),go.Shape.setFigureParameter("Pie",0,new cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN,ut=Ft?Ft.parameter2:NaN;isNaN(ct)&&(ct=0),isNaN(ut)&&(ut=315);var pt=ct%360;pt<0&&(pt+=360);var yt=ut%360,Pt=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(Pt,Pt).add(new go.PathSegment(go.PathSegment.Arc,pt,yt,Pt,Pt,Pt,Pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ft,nt,et){var ct=qt/Math.SQRT2*.5,ut=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,ut*nt,pt*et,nt,(1-ct)*et,(ut+ct)*nt,(pt+ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30);var ut=Math.min(ct,nt)/2,pt=nt/2,yt=et/2;return new go.Geometry().add(new go.PathFigure(pt-ut,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+ut,0)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,nt,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,nt,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,et)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,0,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,0,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,yt-ut).close()))}),go.Shape.setFigureParameter("ThinCross",0,new cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var ut=Math.min(ct,nt)/2,pt=nt/2,yt=et/2;return new go.Geometry().add(new go.PathFigure(pt-ut,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+ut,0)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,nt,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,nt,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,pt+ut,et)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,et)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,0,yt+ut)).add(new go.PathSegment(go.PathSegment.Line,0,yt-ut)).add(new go.PathSegment(go.PathSegment.Line,pt-ut,yt-ut).close()))}),go.Shape.setFigureParameter("ThickX",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;if((isNaN(ct)||ct<0)&&(ct=30),nt===0||et===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=nt,ut.endY=et,ut}else{var pt=nt/2,yt=et/2,Pt=Math.atan2(et,nt),bt=ct-Math.min(Math.cos(Pt)*ct/2,pt),Gt=ct-Math.min(Math.sin(Pt)*ct/2,yt),ut=new go.Geometry,Qt=new go.PathFigure(bt,0,!0);return ut.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,nt-bt,0)),Qt.add(new go.PathSegment(go.PathSegment.Line,nt,Gt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,nt,et-Gt)),Qt.add(new go.PathSegment(go.PathSegment.Line,nt-bt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,bt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,et-Gt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,Gt).close()),ut}}),go.Shape.setFigureParameter("ThinX",0,new cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var ut=new go.Geometry,pt=new go.PathFigure(.1*nt,0,!0);return ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et).close()),ut}),go.Shape.setFigureParameter("SquareIBeam",0,new cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.2);var ut=new go.Geometry,pt=new go.PathFigure(0,0,!0);return ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close()),ut}),go.Shape.setFigureParameter("RoundedIBeam",0,new cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.5);var ut=new go.Geometry,pt=new go.PathFigure(0,0,!0);return ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-ct)*nt,.25*et,Math.abs(1-ct)*nt,.75*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*nt,.75*et,ct*nt,.25*et).close()),ut}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,qt*nt,0,nt,(.5-qt/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+qt/2)*et,qt*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,0,nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*nt,.75*et,.5*nt,.25*et).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,.1*nt,.8*et,0,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,0,0,.45*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.55*nt,0,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.5*et,.9*nt,.8*et).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*nt,.01*et)).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.6*nt,.2*et,nt,.25*et)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.7*et,nt,.8*et,.6*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,.5*nt,.75*et,.55*nt,.95*et)).add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)).add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.7*et,.45*nt,.95*et,.5*nt,.75*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.4*nt,.8*et,0,.8*et)).add(new go.PathSegment(go.PathSegment.Bezier,.49*nt,.01*et,0,.25*et,.4*nt,.2*et).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.4*nt,.6*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.15*nt,et,.5*nt,.75*et,.45*nt,.95*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.6*et,.55*nt,.95*et,.5*nt,.75*et));var pt=.2,yt=.3,Pt=0,bt=pt*qt;return ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*nt,(.5+pt+Pt)*et,(.5-pt+yt)*nt,(.5+bt+Pt)*et,(.5-bt+yt)*nt,(.5+pt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+yt)*nt,(.5+Pt)*et,(.5+bt+yt)*nt,(.5+pt+Pt)*et,(.5+pt+yt)*nt,(.5+bt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*nt,(.5-pt+Pt)*et,(1-.5+pt+yt)*nt,(.5-bt+Pt)*et,(.5+bt+yt)*nt,(.5-pt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-bt+yt)*nt,(.5-pt+Pt)*et,(.5-pt+yt+.05)*nt,(.5-bt+Pt-.02)*et)),pt=.2,yt=0,Pt=-.3,bt=pt*qt,ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+yt)*nt,(.5+Pt)*et,(.5+bt+yt)*nt,(.5+pt+Pt)*et,(.5+pt+yt)*nt,(.5+bt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*nt,(.5-pt+Pt)*et,(1-.5+pt+yt)*nt,(.5-bt+Pt)*et,(.5+bt+yt)*nt,(.5-pt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+yt)*nt,(.5+Pt)*et,(.5-bt+yt)*nt,(.5-pt+Pt)*et,(.5-pt+yt)*nt,(.5-bt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5-bt+yt)*nt,(.5+pt+Pt)*et,(.5-pt+yt)*nt,(.5+bt+Pt)*et,(.5-bt+yt)*nt,(.5+pt+Pt)*et)),pt=.2,yt=-.3,Pt=0,bt=pt*qt,ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*nt,(.5-pt+Pt)*et,(1-.5+pt+yt-.05)*nt,(.5-bt+Pt-.02)*et,(.5+bt+yt)*nt,(.5-pt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+yt)*nt,(.5+Pt)*et,(.5-bt+yt)*nt,(.5-pt+Pt)*et,(.5-pt+yt)*nt,(.5-bt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*nt,(.5+pt+Pt)*et,(.5-pt+yt)*nt,(.5+bt+Pt)*et,(.5-bt+yt)*nt,(.5+pt+Pt)*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+bt+yt)*nt,(.5+pt+Pt)*et,(.5+pt+yt)*nt,(.5+bt+Pt)*et).close()),ct.setSpots(.06,.33,.93,.68),ct}),go.Shape.defineFigureGenerator("YinYang",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*.5,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*.5,nt*.5,nt*.5,nt*.5)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,-180,nt*.5,nt*.75,nt*.25,nt*.25)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,nt*.5,nt*.25,nt*.25,nt*.25));var pt=.1,yt=.5,Pt=.25;return ut.add(new go.PathSegment(go.PathSegment.Move,(yt+pt)*nt,Pt*et)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*yt,et*Pt,pt*nt,pt*nt).close()),ut=new go.PathFigure(nt*.5,0,!1),ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),Pt=.75,ut=new go.PathFigure((yt+pt)*nt,Pt*et,!0),ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*yt,et*Pt,pt*nt,pt*nt).close()),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Peace",function(Ft,nt,et){var ct=.8535533905932737,ut=.5*nt,pt=.5*et;return new go.Geometry().add(new go.PathFigure(ut,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ut,pt,ut,pt)).add(new go.PathSegment(go.PathSegment.Line,ut,et)).add(new go.PathSegment(go.PathSegment.Move,ut,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,ut,pt)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,ct*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=.5,yt=.5,Pt=.5,bt=new go.PathFigure(yt*nt,(Pt-pt)*et);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),pt=.4,ut=qt*.4;var Gt=ot(),Qt=ot(),ae=ot(),re=ot();en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.42,Gt,Qt,ae,re,re);var ne=ot(),Ie=ot(),ge=ot();en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.58,re,re,ge,ne,Ie);var Le=ot(),ce=ot(),ze=ot();en(yt,Pt+pt,yt-ut,Pt+pt,yt-pt,Pt+ut,yt-pt,Pt,.42,Le,ce,ze,re,re);var qe=ot(),An=ot(),fn=ot();return en(yt,Pt+pt,yt-ut,Pt+pt,yt-pt,Pt+ut,yt-pt,Pt,.58,re,re,fn,qe,An),bt.add(new go.PathSegment(go.PathSegment.Move,fn.x*nt,fn.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,qe.x*nt,qe.y*et,An.x*nt,An.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*nt,ae.y*et,Gt.x*nt,Gt.y*et,Qt.x*nt,Qt.y*et)),bt.add(new go.PathSegment(go.PathSegment.Line,fn.x*nt,fn.y*et).close()),bt.add(new go.PathSegment(go.PathSegment.Move,ze.x*nt,ze.y*et)),bt.add(new go.PathSegment(go.PathSegment.Line,ge.x*nt,ge.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,ne.x*nt,ne.y*et,Ie.x*nt,Ie.y*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*nt,ze.y*et,Le.x*nt,Le.y*et,ce.x*nt,ce.y*et).close()),Tt(Gt),Tt(Qt),Tt(ae),Tt(re),Tt(ne),Tt(Ie),Tt(ge),Tt(Le),Tt(ce),Tt(ze),Tt(qe),Tt(An),Tt(fn),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Fragile",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.29*nt,.33*et)).add(new go.PathSegment(go.PathSegment.Line,.35*nt,.25*et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.15*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.5*et,nt,.25*et,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.5*et,0,.25*et).close()))}),go.Shape.setFigureParameter("HourGlass",0,new cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30),ct>nt&&(ct=nt);var ut=(nt-ct)/2,pt=ut+ct;return new go.Geometry().add(new go.PathFigure(pt,.5*et).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)).add(new go.PathSegment(go.PathSegment.Line,ut,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,nt,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,.55*et).add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.3*nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.45*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.55*et).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.4,pt=.4,yt=.5,Pt=.5,bt=ot(),Gt=ot(),Qt=ot(),ae=ot(),re=new go.PathFigure((yt-pt)*nt,Pt*et,!1);ct.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et)),en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.44,Qt,ae,Gt,bt,bt),re.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*nt,Gt.y*et,Qt.x*nt,Qt.y*et,ae.x*nt,ae.y*et));var ne=St(Gt.x,Gt.y);en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.56,bt,bt,Gt,Qt,ae);var Ie=St(Gt.x,Gt.y);re.add(new go.PathSegment(go.PathSegment.Line,(ne.x*.1+.95*.9)*nt,ne.y*.1*et)),re.add(new go.PathSegment(go.PathSegment.Line,.85*nt,ne.y*.1*et)),re.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),re.add(new go.PathSegment(go.PathSegment.Line,nt,0)),re.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),re.add(new go.PathSegment(go.PathSegment.Line,(Ie.x*.1+.9)*nt,.15*et)),re.add(new go.PathSegment(go.PathSegment.Line,(Ie.x*.1+.9)*nt,(Ie.y*.1+.05*.9)*et)),re.add(new go.PathSegment(go.PathSegment.Line,Ie.x*nt,Ie.y*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,Qt.x*nt,Qt.y*et,ae.x*nt,ae.y*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et)),pt=.35,ut=qt*.35;var ge=new go.PathFigure(yt*nt,(Pt-pt)*et,!1);ct.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et));var Le=new go.PathFigure((yt-pt)*nt,Pt*et,!1);return ct.add(Le),Tt(bt),Tt(Gt),Tt(Qt),Tt(ae),Tt(ne),Tt(Ie),ct.spot1=new go.Spot(.202,.257),ct.spot2=new go.Spot(.792,.739),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("GenderFemale",function(Ft,nt,et){var ct=new go.Geometry,ut=.375,pt=0,yt=-.125,Pt=ut*qt,bt=new go.PathFigure((.525+pt)*nt,(.5+ut+yt)*et,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+pt)*nt,(.5+yt)*et,(.5+Pt+pt)*nt,(.5+ut+yt)*et,(.5+ut+pt)*nt,(.5+Pt+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-ut+yt)*et,(1-.5+ut+pt)*nt,(.5-Pt+yt)*et,(.5+Pt+pt)*nt,(.5-ut+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+pt)*nt,(.5+yt)*et,(.5-Pt+pt)*nt,(.5-ut+yt)*et,(.5-ut+pt)*nt,(.5-Pt+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*nt,(.5+ut+yt)*et,(.5-ut+pt)*nt,(.5+Pt+yt)*et,(.5-Pt+pt)*nt,(.5+ut+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),ut=.325,pt=0,yt=-.125,Pt=ut*qt;var bt=new go.PathFigure((1-.5+ut+pt)*nt,(.5+yt)*et,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5+ut+yt)*et,(.5+ut+pt)*nt,(.5+Pt+yt)*et,(.5+Pt+pt)*nt,(.5+ut+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+pt)*nt,(.5+yt)*et,(.5-Pt+pt)*nt,(.5+ut+yt)*et,(.5-ut+pt)*nt,(.5+Pt+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-ut+yt)*et,(.5-ut+pt)*nt,(.5-Pt+yt)*et,(.5-Pt+pt)*nt,(.5-ut+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+pt)*nt,(.5+yt)*et,(.5+Pt+pt)*nt,(.5-ut+yt)*et,(1-.5+ut+pt)*nt,(.5-Pt+yt)*et));var bt=new go.PathFigure((.525+pt)*nt,(.5+ut+yt)*et,!1);return ct.add(bt),ct.spot1=new go.Spot(.232,.136),ct.spot2=new go.Spot(.682,.611),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicImplies",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,ct*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ft,nt,et){var ct=new go.Geometry().add(new go.PathFigure(.5*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*nt,.5*et,.5*nt,.5*et)));return ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicTruth",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Move,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,0,et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ft,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ft,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.3);var ut=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=.3);var pt=(1-ct)*nt,yt=(.5-ut/2)*et,Pt=(.5+ut/2)*et,bt=new go.Geometry,Gt=new go.PathFigure(0,yt,!0);bt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,yt)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,Pt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),bt.spot1=new go.Spot(0,yt/et);var Qt=ie(0,Pt/et,1,Pt/et,pt/nt,1,1,.5,ot());return bt.spot2=new go.Spot(Qt.x,Qt.y),Tt(Qt),bt}),go.Shape.setFigureParameter("Arrow2",0,new cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=30),ct>nt&&(ct=nt);var ut=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=30),ut=Math.min(ut,et/2);var pt=nt-ct,yt=(et-ut)/2,Pt=yt+ut,bt=new go.Geometry,Gt=new go.PathFigure(0,yt,!0);bt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,yt)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,et)),Gt.add(new go.PathSegment(go.PathSegment.Line,pt,Pt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),bt.spot1=new go.Spot(0,yt/et);var Qt=ie(0,Pt/et,1,Pt/et,pt/nt,1,1,.5,ot());return bt.spot2=new go.Spot(Qt.x,Qt.y),Tt(Qt),bt}),go.Shape.defineFigureGenerator("Chevron",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.214*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,1*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.786*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,1*et).close()),ct}),go.Shape.setFigureParameter("DoubleEndArrow",0,new cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.3);var ut=(.5-ct/2)*et,pt=(.5+ct/2)*et,yt=new go.Geometry,Pt=new go.PathFigure(nt,.5*et,!0);yt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var bt=ie(0,.5,.3,0,0,ut/et,.1,ut/et,ot());return yt.spot1=new go.Spot(bt.x,bt.y),bt=ie(.7,1,1,.5,0,pt/et,1,pt/et,bt),yt.spot2=new go.Spot(bt.x,bt.y),Tt(bt),yt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=40);var ut=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=100);var pt=(et-ct)/2,yt=pt+ct,Pt=(et-ut)/2,bt=Pt+ut;(ct>et||ut>et)&&(ut>ct?(ct=ct*et/ut,pt=(et-ct)/2,yt=pt+ct,Pt=0,bt=et):(pt=0,yt=et,Pt=0,bt=et));var Gt=new go.Geometry,Qt=new go.PathFigure(nt,.5*et,!0);Gt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,bt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,bt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,Pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Pt).close());var ae=ie(0,.5,.3,Pt/et,0,pt/et,1,pt/et,ot());return Gt.spot1=new go.Spot(ae.x,ae.y),ae=ie(.7,bt/et,1,.5,0,yt/et,1,yt/et,ae),Gt.spot2=new go.Spot(ae.x,ae.y),Tt(ae),Gt}),go.Shape.setFigureParameter("IBeamArrow",0,new cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.3);var ut=(.5-ct/2)*et,pt=(.5+ct/2)*et,yt=new go.Geometry,Pt=new go.PathFigure(nt,.5*et,!0);yt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),yt.spot1=new go.Spot(0,ut/et);var bt=ie(.7,1,1,.5,0,pt/et,1,pt/et,ot());return yt.spot2=new go.Spot(bt.x,bt.y),Tt(bt),yt}),go.Shape.setFigureParameter("IBeamArrow2",0,new cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=40);var ut=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=100);var pt=(et-ct)/2,yt=pt+ct,Pt=(et-ut)/2,bt=Pt+ut;(ct>et||ut>et)&&(ut>ct?(ct=ct*et/ut,pt=(et-ct)/2,yt=pt+ct,Pt=0,bt=et):(pt=0,yt=et,Pt=0,bt=et));var Gt=new go.Geometry,Qt=new go.PathFigure(nt,.5*et,!0);Gt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,bt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,bt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,bt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,Pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Pt).close()),Gt.spot1=new go.Spot(0,pt/et);var ae=ie(.7,bt/et,1,.5,0,yt/et,1,yt/et,ot());return Gt.spot2=new go.Spot(ae.x,ae.y),Tt(ae),Gt}),go.Shape.setFigureParameter("Pointer",0,new cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.1);var ut=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ut.spot1=new go.Spot(ct,.35);var yt=ie(.2,.65,1,.65,0,1,1,.5,ot());return ut.spot2=new go.Spot(yt.x,yt.y),Tt(yt),ut}),go.Shape.setFigureParameter("RoundedPointer",0,new cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.3);var ut=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*nt,.75*et,ct*nt,.25*et).close()),ut.spot1=new go.Spot(ct,.35);var yt=ie(0,.65,1,.65,0,1,1,.5,ot());return ut.spot2=new go.Spot(yt.x,yt.y),Tt(yt),ut}),go.Shape.setFigureParameter("SplitEndArrow",0,new cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.4);var ut=(.5-ct/2)*et,pt=(.5+ct/2)*et,yt=new go.Geometry,Pt=new go.PathFigure(nt,.5*et,!0);yt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),yt.spot1=new go.Spot(.2,.3);var bt=ie(.7,1,1,.5,0,pt/et,1,pt/et,ot());return yt.spot2=new go.Spot(bt.x,bt.y),Tt(bt),yt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=50);var ut=(et-ct)/2,pt=ut+ct;ct>et&&(ut=0,pt=et);var yt=new go.Geometry,Pt=new go.PathFigure(nt,.5*et,!0);yt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),yt.spot1=new go.Spot(.2,ut/et);var bt=ie(.7,1,1,.5,0,pt/et,1,pt/et,ot());return yt.spot2=new go.Spot(bt.x,bt.y),Tt(bt),yt}),go.Shape.setFigureParameter("SquareArrow",0,new cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.7);var ut=new go.Geometry,pt=new go.PathFigure(nt,.5*et,!0);return ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,0).close()),ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(ct,1),ut}),go.Shape.defineFigureGenerator("Cone1",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=qt*.1,yt=new go.PathFigure(0,.9*et,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-ut)*nt,et,0,(.9+pt)*et).close()),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.97),ct}),go.Shape.defineFigureGenerator("Cone2",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.9*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,et,.85/.9*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*et).close());var pt=new go.PathFigure(0,.9*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.82),ct}),go.Shape.defineFigureGenerator("Cube1",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var pt=new go.PathFigure(.5*nt,et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.5,.85),ct}),go.Shape.defineFigureGenerator("Cube2",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.3*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0).close());var pt=new go.PathFigure(0,.3*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.7,1),ct}),go.Shape.defineFigureGenerator("Cylinder1",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var ut=new go.Geometry,pt=qt*.5,yt=new go.PathFigure(0,ct,!0);ut.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,qt*ct,(.5-pt)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ct,(.5+pt)*nt,0,1*nt,qt*ct)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-qt*ct,(.5+pt)*nt,1*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-pt)*nt,1*et,0,et-qt*ct)),yt.add(new go.PathSegment(go.PathSegment.Line,0,ct));var Pt=new go.PathFigure(nt,ct,!1);return ut.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ct,1*nt,2*ct-qt*ct,(.5+pt)*nt,2*ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ct,(.5-pt)*nt,2*ct,0,2*ct-qt*ct)),ut.spot1=new go.Spot(0,0,0,2*ct),ut.spot2=new go.Spot(1,1),ut}),go.Shape.defineFigureGenerator("Cylinder2",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var ut=new go.Geometry,pt=qt*.5,yt=new go.PathFigure(0,et-ct,!0);ut.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,qt*ct,(.5-pt)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,(.5+pt)*nt,0,nt,qt*ct)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-qt*ct,(.5+pt)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-pt)*nt,et,0,et-qt*ct));var Pt=new go.PathFigure(0,et-ct,!1);return ut.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ct,0,et-ct-qt*ct,(.5-pt)*nt,et-2*ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ct,(.5+pt)*nt,et-2*ct,nt,et-ct-qt*ct)),ut.spot1=new go.Spot(0,0),ut.spot2=new go.Spot(1,1,0,-2*ct),ut}),go.Shape.defineFigureGenerator("Cylinder3",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var ut=new go.Geometry,pt=qt*.5,yt=new go.PathFigure(ct,0,!0);ut.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-qt*ct,0,nt,(.5-pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+pt)*et,nt-qt*ct,et)),yt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,qt*ct,et,0,(.5+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*et,qt*ct,0));var Pt=new go.PathFigure(ct,0,!1);return ut.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,2*ct,.5*et,ct+qt*ct,0,2*ct,(.5-pt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct,et,2*ct,(.5+pt)*et,ct+qt*ct,et)),ut.spot1=new go.Spot(0,0,2*ct,0),ut.spot2=new go.Spot(1,1),ut}),go.Shape.defineFigureGenerator("Cylinder4",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var ut=new go.Geometry,pt=qt*.5,yt=new go.PathFigure(nt-ct,0,!0);ut.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-qt*ct,0,nt,(.5-pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+pt)*et,nt-qt*ct,et)),yt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,qt*ct,et,0,(.5+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*et,qt*ct,0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0));var Pt=new go.PathFigure(nt-ct,0,!1);return ut.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ct,.5*et,nt-ct-qt*ct,0,nt-2*ct,(.5-pt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt-2*ct,(.5+pt)*et,nt-ct-qt*ct,et)),ut.spot1=new go.Spot(0,0),ut.spot2=new go.Spot(1,1,-2*ct,0),ut}),go.Shape.defineFigureGenerator("Prism1",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.25*nt,.25*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(.25*nt,.25*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.408,.172),ct.spot2=new go.Spot(.833,.662),ct}),go.Shape.defineFigureGenerator("Prism2",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.25*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(0,et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("Pyramid1",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.75*et).close());var pt=new go.PathFigure(.5*nt,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Pyramid2",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var pt=new go.PathFigure(.5*nt,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Actor",function(Ft,nt,et){var ct=new go.Geometry,ut=.2,pt=.1,yt=qt*ut,Pt=qt*pt,bt=.5,Gt=.1,Qt=new go.PathFigure(bt*nt,(Gt+pt)*et,!0);ct.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-ut)*nt,Gt*et,(bt-yt)*nt,(Gt+pt)*et,(bt-ut)*nt,(Gt+Pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-pt)*et,(bt-ut)*nt,(Gt-Pt)*et,(bt-yt)*nt,(Gt-pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(bt+ut)*nt,Gt*et,(bt+yt)*nt,(Gt-pt)*et,(bt+ut)*nt,(Gt-Pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt+pt)*et,(bt+ut)*nt,(Gt+Pt)*et,(bt+yt)*nt,(Gt+pt)*et));var ae=.05,re=qt*ae;bt=.05,Gt=.25;var ne=new go.PathFigure(.5*nt,.2*et,!0);return ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),bt=.95,Gt=.25,ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt+ae)*nt,Gt*et,(bt+re)*nt,(Gt-ae)*et,(bt+ae)*nt,(Gt-re)*et)),ne.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),ae=.025,re=qt*ae,bt=.825,Gt=.35,ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-ae)*et,(bt+ae)*nt,(Gt-re)*et,(bt+re)*nt,(Gt-ae)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt-ae)*nt,Gt*et,(bt-re)*nt,(Gt-ae)*et,(bt-ae)*nt,(Gt-re)*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),ae=.05,re=qt*ae,bt=.5,Gt=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-ae)*et,(bt+ae)*nt,(Gt-re)*et,(bt+re)*nt,(Gt-ae)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt-ae)*nt,Gt*et,(bt-re)*nt,(Gt-ae)*et,(bt-ae)*nt,(Gt-re)*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),ae=.025,re=qt*ae,bt=.175,Gt=.35,ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-ae)*et,(bt+ae)*nt,(Gt-re)*et,(bt+re)*nt,(Gt-ae)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt-ae)*nt,Gt*et,(bt-re)*nt,(Gt-ae)*et,(bt-ae)*nt,(Gt-re)*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ae=.05,re=qt*ae,bt=.05,Gt=.25,ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-ae)*et,(bt-ae)*nt,(Gt-re)*et,(bt-re)*nt,(Gt-ae)*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ct.spot1=new go.Spot(.2,.2),ct.spot2=new go.Spot(.8,.65),ct}),go.Shape.setFigureParameter("Card",0,new cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;isNaN(ct)&&(ct=.2);var ut=new go.Geometry,pt=new go.PathFigure(nt,0,!0);return ut.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,0).close()),ut.spot1=new go.Spot(0,ct),ut.spot2=go.Spot.BottomRight,ut}),go.Shape.defineFigureGenerator("Collate",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,.5*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et));var pt=new go.PathFigure(.5*nt,.5*et,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,.25),ct}),go.Shape.defineFigureGenerator("CreateRequest",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var yt=new go.PathFigure(0,ut*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,ut*et)),yt.add(new go.PathSegment(go.PathSegment.Move,0,(1-ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ut)*et)),ct}),go.Shape.defineFigureGenerator("Database",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=qt*.1,yt=new go.PathFigure(nt,.1*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-ut)*nt,et,0,(.9+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-pt)*et,(.5-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+ut)*nt,0,nt,(.1-pt)*et));var Pt=new go.PathFigure(nt,.1*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+ut)*nt,.2*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-ut)*nt,.2*et,0,(.1+pt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+ut)*nt,.3*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-ut)*nt,.3*et,0,(.2+pt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+pt)*et,(.5+ut)*nt,.4*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-ut)*nt,.4*et,0,(.3+pt)*et)),ct.spot1=new go.Spot(0,.4),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("DataStorage",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.9*et,.25*nt,.1*et).close()),ct.spot1=new go.Spot(.226,0),ct.spot2=new go.Spot(.81,1),ct}),go.Shape.defineFigureGenerator("DiskStorage",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=qt*.1,yt=new go.PathFigure(nt,.1*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+pt)*et,(.5+ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-ut)*nt,et,0,(.9+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-pt)*et,(.5-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+ut)*nt,0,nt,(.1-pt)*et));var Pt=new go.PathFigure(nt,.1*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+ut)*nt,.2*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-ut)*nt,.2*et,0,(.1+pt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+ut)*nt,.3*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-ut)*nt,.3*et,0,(.2+pt)*et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("Display",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.25*nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close()),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("DividedEvent",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)?ut=.2:ut<.15&&(ut=.15);var pt=qt*.2,yt=new go.PathFigure(0,.2*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,0,(.2-pt)*et,(.2-pt)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.2*et,(.8+pt)*nt,0,nt,(.2-pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,et,nt,(.8+pt)*et,(.8+pt)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*et,(.2-pt)*nt,et,0,(.8+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et));var Pt=new go.PathFigure(0,ut*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,ut*et)),ct}),go.Shape.defineFigureGenerator("DividedProcess",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;(isNaN(ut)||ut<.1)&&(ut=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var yt=new go.PathFigure(0,ut*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,ut*et)),ct}),go.Shape.defineFigureGenerator("Document",function(Ft,nt,et){var ct=new go.Geometry;et=et/.8;var ut=new go.PathFigure(0,.7*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;(isNaN(ut)||ut<.2)&&(ut=.2);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var yt=new go.PathFigure(ut*nt,0,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,0,ut*et)),yt.add(new go.PathSegment(go.PathSegment.Move,nt,ut*et)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Move,0,(1-ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Move,(1-ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ut)*et)),ct}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var pt=new go.PathFigure(.1*nt,.4*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.9*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.9*et)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("File",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(.75*nt,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Interrupt",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,.5*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et));var pt=new go.PathFigure(nt,.5*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var yt=new go.PathFigure(nt,.5*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("InternalStorage",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN,pt=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=.1),isNaN(pt)&&(pt=.1);var yt=new go.PathFigure(0,0,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var Pt=new go.PathFigure(ut*nt,0,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,pt*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et)),ct}),go.Shape.defineFigureGenerator("Junction",function(Ft,nt,et){var ct=new go.Geometry,ut=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,yt=qt*.5,Pt=.5,bt=new go.PathFigure(nt,Pt*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*nt,et,nt,(Pt+yt)*et,(Pt+yt)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,Pt*et,(Pt-yt)*nt,et,0,(Pt+yt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*nt,0,0,(Pt-yt)*et,(Pt-yt)*nt,0)),bt.add(new go.PathSegment(go.PathSegment.Bezier,nt,Pt*et,(Pt+yt)*nt,0,nt,(Pt-yt)*et));var Gt=new go.PathFigure((pt+ut)*nt,(pt+ut)*et,!1);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,pt*nt,pt*et)),Gt.add(new go.PathSegment(go.PathSegment.Move,pt*nt,(pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,(pt+ut)*nt,pt*et)),ct}),go.Shape.defineFigureGenerator("LinedDocument",function(Ft,nt,et){var ct=new go.Geometry;et=et/.8;var ut=new go.PathFigure(0,.7*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close());var pt=new go.PathFigure(.1*nt,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),ct.spot1=new go.Spot(.1,0),ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("LoopLimit",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MagneticTape",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=.5,yt=new go.PathFigure(.5*nt,et,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-ut)*nt,et,0,(pt+ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-ut)*et,(pt-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+ut)*nt,0,nt,(pt-ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*nt,.9*et,nt,(pt+ut)*et,(pt+ut)*nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.15,.15),ct.spot2=new go.Spot(.85,.8),ct}),go.Shape.defineFigureGenerator("ManualInput",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.7);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.25);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,ut*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,(1-ut)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("MultiDocument",function(Ft,nt,et){var ct=new go.Geometry;et=et/.8;var ut=new go.PathFigure(nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.44*et,.96*nt,.47*et,.93*nt,.45*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.54*et,.86*nt,.57*et,.83*nt,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.4*nt,.4*et,.4*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0).close());var pt=new go.PathFigure(.1*nt,.2*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.44*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.8,.77),ct}),go.Shape.defineFigureGenerator("MultiProcess",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.1*nt,.1*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close());var pt=new go.PathFigure(.2*nt,.1*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),ct.spot1=new go.Spot(0,.2),ct.spot2=new go.Spot(.8,1),ct}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.1);var pt=1-ut,yt=new go.PathFigure(0,0,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var Pt=new go.PathFigure(.5*ut*nt,ut*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ut)*nt,ut*et)),ct}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("Or",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=.5,yt=new go.PathFigure(nt,pt*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,et,nt,(pt+ut)*et,(pt+ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-ut)*nt,et,0,(pt+ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-ut)*et,(pt-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+ut)*nt,0,nt,(pt-ut)*et));var Pt=new go.PathFigure(nt,.5*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ct}),go.Shape.defineFigureGenerator("PaperTape",function(Ft,nt,et){var ct=new go.Geometry;et=et/.8;var ut=new go.PathFigure(0,.7*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.3*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.5*nt,.6*et,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ct.spot1=new go.Spot(0,.49),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN,pt=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=.1),isNaN(pt)&&(pt=.3);var yt=new go.PathFigure(0,0,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,.5*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN,pt=Ft?Ft.parameter2:NaN;isNaN(ut)&&(ut=.1),isNaN(pt)&&(pt=.3);var yt=new go.PathFigure(0,0,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("Procedure",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var yt=new go.PathFigure((1-ut)*nt,0,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Move,ut*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,et)),ct}),go.Shape.defineFigureGenerator("Process",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var yt=new go.PathFigure(ut*nt,0,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,et)),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Sort",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var pt=new go.PathFigure(0,.5*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.5),ct}),go.Shape.defineFigureGenerator("Start",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.25);var pt=new go.PathFigure(ut*nt,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et));var yt=new go.PathFigure(ut*nt,0,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Move,(1-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*nt,et)),ct.spot1=new go.Spot(ut,0),ct.spot2=new go.Spot(1-ut,1),ct}),go.Shape.defineFigureGenerator("Terminator",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.25*nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et)),ct.spot1=new go.Spot(.23,0),ct.spot2=new go.Spot(.77,1),ct}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ft,nt,et){var ct=new go.Geometry,ut=Ft?Ft.parameter1:NaN;isNaN(ut)&&(ut=.1);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,(1-ut)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ut)*et).close()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("AndGate",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(.5+ut)*nt,0,nt,(.5-ut)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.5+ut)*et,(.5+ut)*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.55,1),ct}),go.Shape.defineFigureGenerator("Buffer",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Clock",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=.5,yt=new go.PathFigure(nt,pt*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,et,nt,(pt+ut)*et,(pt+ut)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*et,(pt-ut)*nt,et,0,(pt+ut)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*nt,0,0,(pt-ut)*et,(pt-ut)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,pt*et,(pt+ut)*nt,0,nt,(pt-ut)*et));var Pt=new go.PathFigure(nt,pt*et,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et));var bt=new go.PathFigure(.8*nt,.75*et,!1);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ct}),go.Shape.defineFigureGenerator("Ground",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.3*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),ct}),go.Shape.defineFigureGenerator("Inverter",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.1,pt=.1,yt=.9,Pt=.5,bt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,0,et)),bt.add(new go.PathSegment(go.PathSegment.Line,0,0)),bt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var Gt=new go.PathFigure((yt+pt)*nt,Pt*et,!0);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,(yt+ut)*nt,(Pt-pt)*et,(yt+pt)*nt,(Pt-ut)*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.4,.75),ct}),go.Shape.defineFigureGenerator("NandGate",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=qt*.4,yt=qt*.1,Pt=.1,bt=.9,Gt=.5,Qt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+pt)*et,(.4+ut)*nt,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Qt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+ut)*nt,0,.8*nt,(.5-pt)*et));var ae=new go.PathFigure((bt+Pt)*nt,Gt*et,!0);return ct.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt+Pt)*et,(bt+Pt)*nt,(Gt+yt)*et,(bt+yt)*nt,(Gt+Pt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt)*nt,Gt*et,(bt-yt)*nt,(Gt+Pt)*et,(bt-Pt)*nt,(Gt+yt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-Pt)*et,(bt-Pt)*nt,(Gt-yt)*et,(bt-yt)*nt,(Gt-Pt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt)*nt,Gt*et,(bt+yt)*nt,(Gt-Pt)*et,(bt+Pt)*nt,(Gt-yt)*et)),ct.spot1=new go.Spot(0,.05),ct.spot2=new go.Spot(.55,.95),ct}),go.Shape.defineFigureGenerator("NorGate",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*ut,yt=0,Pt=.5,bt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(yt+pt)*nt,(Pt-ut)*et,.7*nt,(Pt-pt)*et)),ut=.1,pt=qt*.1,yt=.9,Pt=.5;var Gt=new go.PathFigure((yt-ut)*nt,Pt*et,!0);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et)),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.6,.75),ct}),go.Shape.defineFigureGenerator("OrGate",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*ut,yt=0,Pt=.5,bt=new go.PathFigure(0,0,!0);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(yt+pt+pt)*nt,(Pt-ut)*et,.8*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(Pt+pt)*et,(yt+pt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("XnorGate",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*ut,yt=.2,Pt=.5,bt=new go.PathFigure(.1*nt,0,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var Gt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(yt+pt)*nt,(Pt-ut)*et,.7*nt,(Pt-pt)*et)),ut=.1,pt=qt*.1,yt=.9,Pt=.5;var Qt=new go.PathFigure((yt-ut)*nt,Pt*et,!0);return ct.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et)),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.65,.75),ct}),go.Shape.defineFigureGenerator("XorGate",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*ut,yt=.2,Pt=.5,bt=new go.PathFigure(.1*nt,0,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var Gt=new go.PathFigure(.2*nt,0,!0);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(yt+pt)*nt,(Pt-ut)*et,.9*nt,(Pt-pt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.8,.75),ct}),go.Shape.defineFigureGenerator("Capacitor",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Move,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("Resistor",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.5*et,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Inductor",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.1,pt=.1,yt=.1,Pt=.5,bt=new go.PathFigure((yt-ut*.5)*nt,et,!1);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,0,(yt-ut)*nt,et,(yt-pt)*nt,0)),yt=.3,bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,et,(yt+pt)*nt,0,(yt+ut)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,0,(yt-ut)*nt,et,(yt-pt)*nt,0)),yt=.5,bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,et,(yt+pt)*nt,0,(yt+ut)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,0,(yt-ut)*nt,et,(yt-pt)*nt,0)),yt=.7,bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,et,(yt+pt)*nt,0,(yt+ut)*nt,et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,0,(yt-ut)*nt,et,(yt-pt)*nt,0)),yt=.9,bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut*.5)*nt,et,(yt+pt)*nt,0,(yt+ut)*nt,et)),ct}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.5,pt=.5,yt=.5,Pt=.5,bt=new go.PathFigure((yt-pt)*nt,Pt*et,!1);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,(yt+ut)*nt,(Pt-pt)*et,(yt+pt)*nt,(Pt-ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Move,(yt-pt+.1)*nt,Pt*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt-.1)*nt,Pt*et,yt*nt,(Pt-pt)*et,yt*nt,(Pt+pt)*et)),ct}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.75*et,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Move,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("Diode",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Wifi",function(Ft,nt,et){var ct=new go.Geometry,ut=nt,pt=et;nt=nt*.38,et=et*.6;var yt=qt*.8,Pt=.8,bt=0,Gt=.5,Qt=(ut-nt)/2,ae=(pt-et)/2,re=new go.PathFigure(bt*nt+Qt,(Gt+Pt)*et+ae,!0);ct.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt)*nt+Qt,Gt*et+ae,(bt-yt)*nt+Qt,(Gt+Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt+yt)*et+ae)),re.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt-Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt-yt)*et+ae,(bt-yt)*nt+Qt,(Gt-Pt)*et+ae)),re.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt+yt*.5)*nt+Qt,Gt*et+ae,bt*nt+Qt,(Gt-Pt)*et+ae,(bt-Pt+yt*.5)*nt+Qt,(Gt-yt)*et+ae)),re.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt+Pt)*et+ae,(bt-Pt+yt*.5)*nt+Qt,(Gt+yt)*et+ae,bt*nt+Qt,(Gt+Pt)*et+ae).close()),yt=qt*.4,Pt=.4,bt=.2,Gt=.5;var ne=new go.PathFigure(bt*nt+Qt,(Gt+Pt)*et+ae,!0);ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt)*nt+Qt,Gt*et+ae,(bt-yt)*nt+Qt,(Gt+Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt+yt)*et+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt-Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt-yt)*et+ae,(bt-yt)*nt+Qt,(Gt-Pt)*et+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt+yt*.5)*nt+Qt,Gt*et+ae,bt*nt+Qt,(Gt-Pt)*et+ae,(bt-Pt+yt*.5)*nt+Qt,(Gt-yt)*et+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt+Pt)*et+ae,(bt-Pt+yt*.5)*nt+Qt,(Gt+yt)*et+ae,bt*nt+Qt,(Gt+Pt)*et+ae).close()),yt=qt*.2,Pt=.2,bt=.5,Gt=.5;var Ie=new go.PathFigure((bt-Pt)*nt+Qt,Gt*et+ae,!0);ct.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt-Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt-yt)*et+ae,(bt-yt)*nt+Qt,(Gt-Pt)*et+ae)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt)*nt+Qt,Gt*et+ae,(bt+yt)*nt+Qt,(Gt-Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt-yt)*et+ae)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt+Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt+yt)*et+ae,(bt+yt)*nt+Qt,(Gt+Pt)*et+ae)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(bt-Pt)*nt+Qt,Gt*et+ae,(bt-yt)*nt+Qt,(Gt+Pt)*et+ae,(bt-Pt)*nt+Qt,(Gt+yt)*et+ae)),yt=qt*.4,Pt=.4,bt=.8,Gt=.5;var ge=new go.PathFigure(bt*nt+Qt,(Gt-Pt)*et+ae,!0);ct.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt)*nt+Qt,Gt*et+ae,(bt+yt)*nt+Qt,(Gt-Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt-yt)*et+ae)),ge.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt+Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt+yt)*et+ae,(bt+yt)*nt+Qt,(Gt+Pt)*et+ae)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt-yt*.5)*nt+Qt,Gt*et+ae,bt*nt+Qt,(Gt+Pt)*et+ae,(bt+Pt-yt*.5)*nt+Qt,(Gt+yt)*et+ae)),ge.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt-Pt)*et+ae,(bt+Pt-yt*.5)*nt+Qt,(Gt-yt)*et+ae,bt*nt+Qt,(Gt-Pt)*et+ae).close()),yt=qt*.8,Pt=.8,bt=1,Gt=.5;var Le=new go.PathFigure(bt*nt+Qt,(Gt-Pt)*et+ae,!0);return ct.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt)*nt+Qt,Gt*et+ae,(bt+yt)*nt+Qt,(Gt-Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt-yt)*et+ae)),Le.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt+Pt)*et+ae,(bt+Pt)*nt+Qt,(Gt+yt)*et+ae,(bt+yt)*nt+Qt,(Gt+Pt)*et+ae)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(bt+Pt-yt*.5)*nt+Qt,Gt*et+ae,bt*nt+Qt,(Gt+Pt)*et+ae,(bt+Pt-yt*.5)*nt+Qt,(Gt+yt)*et+ae)),Le.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt+Qt,(Gt-Pt)*et+ae,(bt+Pt-yt*.5)*nt+Qt,(Gt-yt)*et+ae,bt*nt+Qt,(Gt-Pt)*et+ae).close()),ct}),go.Shape.defineFigureGenerator("Email",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Move,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.54*et)),ct}),go.Shape.defineFigureGenerator("Ethernet",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.35*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.65*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.35*nt,0).close());var pt=new go.PathFigure(.1*nt,et,!0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var yt=new go.PathFigure(.6*nt,et,!0,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.6*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et).close());var Pt=new go.PathFigure(0,.5*et,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Power",function(Ft,nt,et){var ct=new go.Geometry,ut=qt*.4,pt=.4,yt=.5,Pt=.5,bt=ot(),Gt=ot(),Qt=ot(),ae=ot();en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.5,bt,bt,Gt,Qt,ae);var re=St(Gt.x,Gt.y),ne=new go.PathFigure(Gt.x*nt,Gt.y*et,!0);ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,Qt.x*nt,Qt.y*et,ae.x*nt,ae.y*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,(yt-ut)*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et)),en(yt-pt,Pt,yt-pt,Pt-ut,yt-ut,Pt-pt,yt,Pt-pt,.5,Qt,ae,Gt,bt,bt),ne.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*nt,Gt.y*et,Qt.x*nt,Qt.y*et,ae.x*nt,ae.y*et)),ut=qt*.3,pt=.3,en(yt-pt,Pt,yt-pt,Pt-ut,yt-ut,Pt-pt,yt,Pt-pt,.5,Qt,ae,Gt,bt,bt),ne.add(new go.PathSegment(go.PathSegment.Line,Gt.x*nt,Gt.y*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*nt,Pt*et,ae.x*nt,ae.y*et,Qt.x*nt,Qt.y*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+pt)*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*nt,Pt*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),en(yt,Pt-pt,yt+ut,Pt-pt,yt+pt,Pt-ut,yt+pt,Pt,.5,bt,bt,Gt,Qt,ae),ne.add(new go.PathSegment(go.PathSegment.Bezier,Gt.x*nt,Gt.y*et,ae.x*nt,ae.y*et,Qt.x*nt,Qt.y*et).close());var ne=new go.PathFigure(.45*nt,0,!0);return ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),Tt(bt),Tt(Gt),Tt(Qt),Tt(ae),Tt(re),ct.spot1=new go.Spot(.25,.45),ct.spot2=new go.Spot(.75,.8),ct}),go.Shape.defineFigureGenerator("Fallout",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et/2,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function pt(yt,Pt,bt){yt.add(new go.PathSegment(go.PathSegment.Move,(.3+Pt)*nt,(.8+bt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,(.5+Pt)*nt,(.5+bt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,(.1+Pt)*nt,(.5+bt)*et)),yt.add(new go.PathSegment(go.PathSegment.Line,(.3+Pt)*nt,(.8+bt)*et).close())}return pt(ut,0,0),pt(ut,.4,0),pt(ut,.2,-.3),ct}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.2*nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close()),ct.spot1=new go.Spot(.3,.3),ct.spot2=new go.Spot(.7,.7),ct}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.37*nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.11*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.04*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.49*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.37*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.86*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.91*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.34*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.34*nt,.78*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.44*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.56*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*et).close()),ct}),go.Shape.defineFigureGenerator("FireHazard",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.1*nt,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.29*nt,0,-.25*nt,.63*et,.45*nt,.44*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.51*nt,.42*et,.48*nt,.17*et,.54*nt,.35*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.59*nt,.18*et,.59*nt,.29*et,.58*nt,.28*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,.6*et,.8*nt,.34*et,.88*nt,.43*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.88*nt,.31*et,.87*nt,.48*et,.88*nt,.43*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,1.17*nt,.76*et,.82*nt,.8*et).close()),ct.spot1=new go.Spot(.07,.445),ct.spot2=new go.Spot(.884,.958),ct}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=0,yt=0,Pt=ut*qt,bt=.4*Math.SQRT2/2+.5,Gt=.5-.5*Math.SQRT2/2,Qt=1,ae=.5,re=.5,ne=0,Ie=new go.PathFigure(bt*nt,(1-Gt)*et,!1);return ct.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Qt*nt,ae*et,Qt*nt,.7*et,Qt*nt,ae*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(re+pt)*nt,(ne+pt)*et,(.5+ut+pt)*nt,(.5-Pt+pt)*et,(.5+Pt+pt)*nt,(.5-ut+pt)*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+pt)*nt,(.5+yt)*et,(.5-Pt+pt)*nt,(.5-ut+yt)*et,(.5-ut+pt)*nt,(.5-Pt+yt)*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*nt,.9*et,(.5-ut+pt)*nt,(.5+Pt+yt)*et,(.5-Pt+pt)*nt,.9*et)),Ie.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*nt,.8*et)),Ie.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*nt,.9*et)),Ie.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*nt,.95*et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Move,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Move,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);ct.add(ut);var pt=new go.PathFigure(nt,et,!1);ct.add(pt);var yt=new go.PathFigure(0,.5*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.2*nt,.35*et,.3*nt,.35*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.7*nt,.65*et,.8*nt,.65*et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.5*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close()),ct}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.2*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*et).close());var ut=new go.PathFigure(0,.2*et,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ct}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.7*nt,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,0,.6*nt,.5*et,0,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,et,.4*nt,.5*et,nt,.5*et).close());var pt=new go.PathFigure(.45*nt,.73*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.73*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*nt,.27*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*nt,.27*et)),ct}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);ct.add(ut);var pt=new go.PathFigure(.335*nt,(1-.555)*et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.68*et,(1-.12)*nt,.46*et,(1-.02)*nt,.54*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*nt,(1-.555)*et,.02*nt,.54*et,.12*nt,.46*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*nt,(1-.595)*et));var yt=.5-.285,Pt=.5,bt=yt,Gt=Math.PI/4,Qt=4*(1-Math.cos(Gt))/(3*Math.sin(Gt)),ae=Qt*.5,re=yt,ne=yt,Ie=Qt*re,ge=Qt*ne;pt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-re)*nt,bt*et,(Pt-(Ie+re)/2)*nt,(bt+(ne+ge)/2)*et,(Pt-re)*nt,(bt+ge)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*nt,(bt-ne)*et,(Pt-re)*nt,(bt-ge)*et,(Pt-Ie)*nt,(bt-ne)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+re)*nt,bt*et,(Pt+Ie)*nt,(bt-ne)*et,(Pt+re)*nt,(bt-ge)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(Pt+re)*nt,(bt+ge)*et,(Pt+(Ie+re)/2)*nt,(bt+(ne+ge)/2)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*nt,(1-.595)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et));var Le=new go.PathFigure(.2*nt,et,!1);ct.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var ce=new go.PathFigure(.8*nt,et,!1);return ct.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.1*nt,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var pt=new go.PathFigure(.2*nt,.2*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.66*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);ct.add(ut);var pt=new go.PathFigure(nt,et,!1);ct.add(pt);var yt=new go.PathFigure(.1*nt,et,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("Caution",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.05*nt,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.8*et,0,et,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.1*et,.5*nt,0,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,nt,et,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.05*nt,et));var pt=.05;return ut.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*nt,.875*et)),ut.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*nt,.875*et,pt*nt,pt*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.325*et,.575*nt,.725*et,.625*nt,.375*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.75*et,.375*nt,.375*et,.425*nt,.725*et)),ct}),go.Shape.defineFigureGenerator("Recycle",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.45*nt,.95*et,!1);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.95*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.185*nt,.85*et,.17*nt,.95*et,.15*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.235*nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.625*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.45*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.45*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.575*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.1875*nt,.95*et,0,.675*et,0,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.45*nt,.95*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.775*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.22*nt,.775*et));var pt=new go.PathFigure(.475*nt,.2*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.175*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*nt,.05*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.05*et,.35*nt,0,.375*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.375*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.475*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.315*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.32*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.05*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,0,.65*nt,.05*et,.625*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*nt,.0105*et));var yt=new go.PathFigure(.675*nt,.575*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.875*nt,.525*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.85*nt,.95*et,nt,.8*et,nt,.85*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.95*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.85*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.725*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.775*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.775*et)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),yt.add(new go.PathSegment(go.PathSegment.Move,.675*nt,.575*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.775*nt,.775*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*.5,yt=new go.PathFigure(nt,ut*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,ut*nt,et,nt,(ut+pt)*et,(ut+pt)*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*et,(ut-pt)*nt,et,0,(ut+pt)*et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ut*nt,0,0,(ut-pt)*et,(ut-pt)*nt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ut*et,(ut+pt)*nt,0,nt,(ut-pt)*et));var Pt=new go.PathFigure(ut*nt,0,!1);return ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,.15*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,ut*nt,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut*nt,.85*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,nt,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,ut*nt,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),Pt.add(new go.PathSegment(go.PathSegment.Move,ut*nt,ut*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),ct}),go.Shape.defineFigureGenerator("Package",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.15*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var pt=new go.PathFigure(0,.15*et,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.15*et).close()),ct.spot1=new go.Spot(0,.1),ct.spot2=new go.Spot(1,1),ct}),go.Shape.defineFigureGenerator("Class",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var yt=new go.PathFigure(0,.5*et,!1);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("Component",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et).close());var pt=new go.PathFigure(0,.2*et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.2*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close());var yt=new go.PathFigure(0,.6*et,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.6*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.8*et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et).close()),ct}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.15*nt,.6*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et));var pt=new go.PathFigure(.15*nt,.6*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.66*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct}),go.Shape.defineFigureGenerator("Workcell",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.35*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct}),go.Shape.defineFigureGenerator("Supermarket",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Move,nt,.33*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.66*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.66*et)),ut.add(new go.PathSegment(go.PathSegment.Move,nt,.66*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ct}),go.Shape.defineFigureGenerator("TruckShipment",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(nt,.8*et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et).close());var yt=.1,Pt=qt*.1,bt=.2,Gt=.9,Qt=new go.PathFigure((bt-yt)*nt,Gt*et,!0);ct.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-yt)*et,(bt-yt)*nt,(Gt-Pt)*et,(bt-Pt)*nt,(Gt-yt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(bt+yt)*nt,Gt*et,(bt+Pt)*nt,(Gt-yt)*et,(bt+yt)*nt,(Gt-Pt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt+yt)*et,(bt+yt)*nt,(Gt+Pt)*et,(bt+Pt)*nt,(Gt+yt)*et)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(bt-yt)*nt,Gt*et,(bt-Pt)*nt,(Gt+yt)*et,(bt-yt)*nt,(Gt+Pt)*et).close()),yt=.1,Pt=qt*.1,bt=.8,Gt=.9;var ae=new go.PathFigure((bt-yt)*nt,Gt*et,!0);return ct.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt-yt)*et,(bt-yt)*nt,(Gt-Pt)*et,(bt-Pt)*nt,(Gt-yt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(bt+yt)*nt,Gt*et,(bt+Pt)*nt,(Gt-yt)*et,(bt+yt)*nt,(Gt-Pt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,bt*nt,(Gt+yt)*et,(bt+yt)*nt,(Gt+Pt)*et,(bt+Pt)*nt,(Gt+yt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(bt-yt)*nt,Gt*et,(bt-Pt)*nt,(Gt+yt)*et,(bt-yt)*nt,(Gt+Pt)*et).close()),ct}),go.Shape.defineFigureGenerator("KanbanPost",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.2*nt,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ct}),go.Shape.defineFigureGenerator("Forklift",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var yt=new go.PathFigure(.5*nt,.8*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.1*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.1*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.8*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et));var Pt=new go.PathFigure(.5*nt,.7*et,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var bt=.1,Gt=qt*.1,Qt=.1,ae=.9,re=new go.PathFigure((Qt-bt)*nt,ae*et,!0);ct.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Qt*nt,(ae-bt)*et,(Qt-bt)*nt,(ae-Gt)*et,(Qt-Gt)*nt,(ae-bt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Qt+bt)*nt,ae*et,(Qt+Gt)*nt,(ae-bt)*et,(Qt+bt)*nt,(ae-Gt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,Qt*nt,(ae+bt)*et,(Qt+bt)*nt,(ae+Gt)*et,(Qt+Gt)*nt,(ae+bt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Qt-bt)*nt,ae*et,(Qt-Gt)*nt,(ae+bt)*et,(Qt-bt)*nt,(ae+Gt)*et)),bt=.1,Gt=qt*.1,Qt=.4,ae=.9;var ne=new go.PathFigure((Qt-bt)*nt,ae*et,!0);return ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Qt*nt,(ae-bt)*et,(Qt-bt)*nt,(ae-Gt)*et,(Qt-Gt)*nt,(ae-bt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Qt+bt)*nt,ae*et,(Qt+Gt)*nt,(ae-bt)*et,(Qt+bt)*nt,(ae-Gt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Qt*nt,(ae+bt)*et,(Qt+bt)*nt,(ae+Gt)*et,(Qt+Gt)*nt,(ae+bt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Qt-bt)*nt,ae*et,(Qt-Gt)*nt,(ae+bt)*et,(Qt-bt)*nt,(ae+Gt)*et)),ct}),go.Shape.defineFigureGenerator("RailShipment",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.1*nt,.4*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.4*et).close());var pt=new go.PathFigure(.45*nt,.7*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var yt=new go.PathFigure(.55*nt,.4*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.4*et).close());var Qt=.05,ae=qt*.05,re=.175,ne=.95,Pt=new go.PathFigure((re-Qt)*nt,ne*et,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne-Qt)*et,(re-Qt)*nt,(ne-ae)*et,(re-ae)*nt,(ne-Qt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(re+Qt)*nt,ne*et,(re+ae)*nt,(ne-Qt)*et,(re+Qt)*nt,(ne-ae)*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne+Qt)*et,(re+Qt)*nt,(ne+ae)*et,(re+ae)*nt,(ne+Qt)*et)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(re-Qt)*nt,ne*et,(re-ae)*nt,(ne+Qt)*et,(re-Qt)*nt,(ne+ae)*et));var Qt=.05,ae=qt*.05,re=.375,ne=.95,bt=new go.PathFigure((re-Qt)*nt,ne*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne-Qt)*et,(re-Qt)*nt,(ne-ae)*et,(re-ae)*nt,(ne-Qt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(re+Qt)*nt,ne*et,(re+ae)*nt,(ne-Qt)*et,(re+Qt)*nt,(ne-ae)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne+Qt)*et,(re+Qt)*nt,(ne+ae)*et,(re+ae)*nt,(ne+Qt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(re-Qt)*nt,ne*et,(re-ae)*nt,(ne+Qt)*et,(re-Qt)*nt,(ne+ae)*et));var Qt=.05,ae=qt*.05,re=.625,ne=.95,Gt=new go.PathFigure((re-Qt)*nt,ne*et,!0);ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne-Qt)*et,(re-Qt)*nt,(ne-ae)*et,(re-ae)*nt,(ne-Qt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(re+Qt)*nt,ne*et,(re+ae)*nt,(ne-Qt)*et,(re+Qt)*nt,(ne-ae)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne+Qt)*et,(re+Qt)*nt,(ne+ae)*et,(re+ae)*nt,(ne+Qt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(re-Qt)*nt,ne*et,(re-ae)*nt,(ne+Qt)*et,(re-Qt)*nt,(ne+ae)*et));var Qt=.05,ae=qt*.05,re=.825,ne=.95,Ie=new go.PathFigure((re-Qt)*nt,ne*et,!0);ct.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne-Qt)*et,(re-Qt)*nt,(ne-ae)*et,(re-ae)*nt,(ne-Qt)*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(re+Qt)*nt,ne*et,(re+ae)*nt,(ne-Qt)*et,(re+Qt)*nt,(ne-ae)*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,re*nt,(ne+Qt)*et,(re+Qt)*nt,(ne+ae)*et,(re+ae)*nt,(ne+Qt)*et)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(re-Qt)*nt,ne*et,(re-ae)*nt,(ne+Qt)*et,(re-Qt)*nt,(ne+ae)*et).close());var ge=new go.PathFigure(0,et,!1);return ct.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct}),go.Shape.defineFigureGenerator("Warehouse",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var yt=new go.PathFigure(.15*nt,et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.5*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et).close());var Pt=.05,bt=qt*.05,Gt=.35,Qt=.775,ae=new go.PathFigure((Gt-Pt)*nt,Qt*et,!0);return ct.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(Qt-Pt)*et,(Gt-Pt)*nt,(Qt-bt)*et,(Gt-bt)*nt,(Qt-Pt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Pt)*nt,Qt*et,(Gt+bt)*nt,(Qt-Pt)*et,(Gt+Pt)*nt,(Qt-bt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*nt,(Qt+Pt)*et,(Gt+Pt)*nt,(Qt+bt)*et,(Gt+bt)*nt,(Qt+Pt)*et)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Pt)*nt,Qt*et,(Gt-bt)*nt,(Qt+Pt)*et,(Gt-Pt)*nt,(Qt+bt)*et).close()),ct}),go.Shape.defineFigureGenerator("ControlCenter",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et).close()),ct}),go.Shape.defineFigureGenerator("Bluetooth",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.75*et,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Globe",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.75*nt,0,nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.75*et,.75*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.25*nt,et,0,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,.25*et,.25*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,.15*nt,.25*et,.15*nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.85*nt,.75*et,.85*nt,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.15*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.15*et,.35*nt,.3*et,.65*nt,.3*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.85*et,.35*nt,.7*et,.65*nt,.7*et)),ct}),go.Shape.defineFigureGenerator("Wave",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.25*et,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.25*et,.1*nt,0,.2*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.25*et,.425*nt,.5*et,.575*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.25*et,.8*nt,0,.9*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.75*et,.1*nt,.5*et,.2*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.75*et,.425*nt,et,.575*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.75*et,.8*nt,.5*et,.9*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Operator",function(Ft,nt,et){var ct=new go.Geometry,ut=.3,pt=qt*.3,yt=.5,Pt=.7,bt=new go.PathFigure((yt-ut)*nt,Pt*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et));var Gt=new go.PathFigure(0,.7*et,!1);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),ct}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.5*nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.65*nt,.3*et,.65*nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.35*nt,.5*et,.35*nt,.3*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.3*nt,.6*et,.1*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.2*nt,et,.35*nt,.95*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,.7*nt,.6*et,.9*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.8*nt,et,.65*nt,.95*et)),ct}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt,0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,0,.075*et,0,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,0,et,.4*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.4*et,.8*nt,et,.85*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ct}),go.Shape.defineFigureGenerator("Battery",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.1*et));var pt=new go.PathFigure(0,.6*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Delete",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*.5,yt=.5,Pt=.5,bt=new go.PathFigure((yt-ut)*nt,Pt*et,!0);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et));var Gt=new go.PathFigure(.15*nt,.5*et,!1);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Flag",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.1*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.1*et,.15*nt,0,.35*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,.65*nt,.2*et,.85*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.85*nt,.6*et,.65*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.35*nt,.4*et,.15*nt,.4*et).close()),ct}),go.Shape.defineFigureGenerator("Help",function(Ft,nt,et){var ct=new go.Geometry,ut=.5,pt=qt*.5,yt=.5,Pt=.5,bt=new go.PathFigure((yt-ut)*nt,Pt*et,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et).close()),ut=.05,pt=qt*.05,yt=.5,Pt=.8;var Gt=new go.PathFigure((yt-ut)*nt,Pt*et,!1);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt-ut)*et,(yt-ut)*nt,(Pt-pt)*et,(yt-pt)*nt,(Pt-ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+ut)*nt,Pt*et,(yt+pt)*nt,(Pt-ut)*et,(yt+ut)*nt,(Pt-pt)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,yt*nt,(Pt+ut)*et,(yt+ut)*nt,(Pt+pt)*et,(yt+pt)*nt,(Pt+ut)*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-ut)*nt,Pt*et,(yt-pt)*nt,(Pt+ut)*et,(yt-ut)*nt,(Pt+pt)*et).close()),Gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),Gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),ct}),go.Shape.defineFigureGenerator("Location",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.5*nt,et,!0).add(new go.PathSegment(go.PathSegment.Line,.75*nt,.5*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.975*nt,.025*et,.5*nt,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*nt,.5*et,.5*nt,0,.025*nt,.025*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*nt,.3*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.5*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var pt=new go.PathFigure(.2*nt,.5*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.3*et)),ct}),go.Shape.defineFigureGenerator("Unlocked",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.5*et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var pt=new go.PathFigure(.2*nt,.5*et,!1);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.35*et)),ct}),go.Shape.defineFigureGenerator("Gear",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(.9375*nt,.56246875*et,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.80621875*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.763*nt,.3316875*et,.79840625*nt,.39915625*et,.7834375*nt,.3635*et)).add(new go.PathSegment(go.PathSegment.Line,.8566875*nt,.23796875*et)).add(new go.PathSegment(go.PathSegment.Line,.76825*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.67596875*nt,.24184375*et)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*nt,.19378125*et,.64228125*nt,.2188125*et,.603875*nt,.2021875*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.0625*et)).add(new go.PathSegment(go.PathSegment.Line,.4375*nt,.19378125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*nt,.239375*et,.39759375*nt,.20190625*et,.36053125*nt,.2176875*et)).add(new go.PathSegment(go.PathSegment.Line,.2379375*nt,.14959375*et)).add(new go.PathSegment(go.PathSegment.Line,.14953125*nt,.2379375*et)).add(new go.PathSegment(go.PathSegment.Line,.23934375*nt,.3278125*et)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*nt,.4375*et,.21765625*nt,.36059375*et,.201875*nt,.397625*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.4375*et)).add(new go.PathSegment(go.PathSegment.Line,.0625*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Line,.1938125*nt,.5625*et)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*nt,.67596875*et,.20221875*nt,.603875*et,.21884375*nt,.64228125*et)).add(new go.PathSegment(go.PathSegment.Line,.1495625*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.238*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.3316875*nt,.76296875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*nt,.80621875*et,.36353125*nt,.78340625*et,.3991875*nt,.79840625*et)).add(new go.PathSegment(go.PathSegment.Line,.43753125*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.9375*et)).add(new go.PathSegment(go.PathSegment.Line,.5625*nt,.80621875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*nt,.760625*et,.602375*nt,.79809375*et,.63946875*nt,.78234375*et)).add(new go.PathSegment(go.PathSegment.Line,.76828125*nt,.8566875*et)).add(new go.PathSegment(go.PathSegment.Line,.85671875*nt,.76825*et)).add(new go.PathSegment(go.PathSegment.Line,.76065625*nt,.67221875*et)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*nt,.56246875*et,.78234375*nt,.63940625*et,.798125*nt,.602375*et)).add(new go.PathSegment(go.PathSegment.Line,.9375*nt,.56246875*et).close()).add(new go.PathSegment(go.PathSegment.Move,.5*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*nt,.5*et,.1*nt,.1*et).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.5*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.3*et,0,.375*et,.05*nt,.325*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.075*et,.3*nt,.225*et,.4*nt,.175*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.525*nt,.075*et,.46*nt,.05*et,.525*nt,.05*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.4*et,.525*nt,.275*et,.475*nt,.325*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.55*et,nt,.4*et,nt,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.7*et,.675*nt,.55*et,.675*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,.85*et,.65*nt,.7*et,.65*nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.535*nt,et,.61*nt,.85*et,.61*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,.435*nt,et,0,et).close()),ct}),go.Shape.defineFigureGenerator("Map",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,.2*et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ut.add(new go.PathSegment(go.PathSegment.Move,.25*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ut.add(new go.PathSegment(go.PathSegment.Move,.75*nt,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("Eject",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et*.7)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*.7).close());var pt=new go.PathFigure(0,et*.6,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close()),ct}),go.Shape.defineFigureGenerator("Pencil",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close()))}),go.Shape.defineFigureGenerator("Building",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*1,et*1,!1);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*.85)),ut.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.85)),ut.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*.3)),ut.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.3)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.3)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et*.3)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.85)),ut.add(new go.PathSegment(go.PathSegment.Line,nt,et*.85).close());var pt=new go.PathFigure(.126*nt,.85*et,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*nt,.45*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.45*et)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.85*et).close());var yt=new go.PathFigure(.402*nt,.85*et,!1);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.402*nt,.45*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.45*et)),yt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.85*et).close());var Pt=new go.PathFigure(.678*nt,.85*et,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var bt=new go.PathFigure(.5*nt,.1*et,!1);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),bt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ct}),go.Shape.defineFigureGenerator("Staircase",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et*1,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.6)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.6)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.4)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.4)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.2)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.2)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.15)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.15)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.35)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*.95).close()),ct}),go.Shape.defineFigureGenerator("5Bars",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,et*1,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*(1-.184)).close());var pt=new go.PathFigure(nt*.204,et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.204,et*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*1).close());var yt=new go.PathFigure(nt*.408,et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.408,et*(1-.184*2))),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*(1-.184*3))),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*1).close());var Pt=new go.PathFigure(nt*.612,et,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var bt=new go.PathFigure(nt*.816,et,!0);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ct}),go.Shape.defineFigureGenerator("PC",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,0).close());var pt=new go.PathFigure(nt*.055,.07*et,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.1).close());var yt=new go.PathFigure(nt*.055,.13*et,!0);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.13)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.16)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.16).close());var Pt=new go.PathFigure(nt*.055,.18*et,!0);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var bt=new go.PathFigure(nt*1,0,!0);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ct}),go.Shape.defineFigureGenerator("Plane",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(.55*nt,et,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.475*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.35*nt,.525*et,0,.4*et,.225*nt,.45*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.475*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.35*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.325*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.325*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.1*et)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.2*et,.975*nt,0,nt,.08*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.45*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.95*et)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et).close()),ct}),go.Shape.defineFigureGenerator("Key",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*1,et*.5,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.4*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.35*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.35*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.2*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.35*et)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.8*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.65*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.6,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.65,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.7,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,.55*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,.6*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.85,.575*et)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.6*et).close()),ut.add(new go.PathSegment(go.PathSegment.Move,.17*nt,.425*et)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*nt,.5*et,.075*nt,.075*et).close()),ct}),go.Shape.defineFigureGenerator("FilmTape",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(0,0,!1);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*0,nt*.3,nt*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*.95)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var pt=new go.PathFigure(0,0,!1);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*1,nt*.3,nt*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var yt=new go.PathFigure(nt*.11,et*.1,!1);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.1)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.8)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.11,et*.8).close());var Pt=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var bt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ct}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ft,nt,et){var ct=new go.Geometry,ut=8,pt=ut*qt,yt=new go.PathFigure(ut,0,!1);ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.86,0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.14)),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ut)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ut,et,nt,et-pt,nt-pt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,ut,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ut,pt,et,0,et-pt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ut,0,0,pt,pt,0).close());var Pt=new go.PathFigure(nt*.83,0,!1);ct.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var bt=new go.PathFigure(nt*.83,et*1,!1);ct.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),bt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var Gt=new go.PathFigure(nt*.78,et*.05,!1);return ct.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),Gt.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),ct}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ft,nt,et){var ct=Ft?Ft.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=15),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var ut=ct*qt,pt=et*.8,yt=new go.Geometry,Pt=new go.PathFigure(ct,0,!0);return yt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-ut,0,nt,ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt,pt-ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,pt,nt,pt-ut,nt-ut,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),Pt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,pt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ct,pt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-ct,ut,pt,0,pt-ut)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,ut,ut,0).close()),ut>1?(yt.spot1=new go.Spot(0,0,ut,ut),yt.spot2=new go.Spot(1,.8,-ut,-ut)):(yt.spot1=go.Spot.TopLeft,yt.spot2=new go.Spot(1,.8)),yt}),go.Shape.defineFigureGenerator("Repeat",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*0,et*.45,!0);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.9)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.9)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.45).close());var pt=new go.PathFigure(nt*1,et*.55,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.55).close()),ct}),go.Shape.defineFigureGenerator("Windows",function(Ft,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()).add(new go.PathSegment(go.PathSegment.Move,.4*nt,.4*et)).add(new go.PathSegment(go.PathSegment.Line,.4*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)).add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et).close()).add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)).add(new go.PathSegment(go.PathSegment.Line,.2*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.7*nt,.1*et).close()).add(new go.PathSegment(go.PathSegment.Move,.1*nt,.6*et)).add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.9*et)).add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*0,et*.1,!1);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.9)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.9).close());var pt=new go.PathFigure(nt*.1,et*.2,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.22,et*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.25).close());var yt=new go.PathFigure(nt*.28,et*.37,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.37)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.41)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.28,et*.41).close()),ct}),go.Shape.defineFigureGenerator("Beaker",function(Ft,nt,et){var ct=new go.Geometry,ut=15,pt=ut*qt,yt=new go.PathFigure(nt*.62,et*.475,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ut)),yt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ut,et,nt,et-pt,nt-pt,et)),yt.add(new go.PathSegment(go.PathSegment.Line,ut,et)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ut,pt,et,0,et-pt)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.475)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.03)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*0)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.62,et*.03).close()),pt>1?(ct.spot1=new go.Spot(0,0,pt,pt),ct.spot2=new go.Spot(1,1,-pt,-pt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=go.Spot.BottomRight),ct}),go.Shape.defineFigureGenerator("Download",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*0,et*1,!0);ct.add(ut);var pt=.1/.3;ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close());var yt=new go.PathFigure(nt*.4,et*0,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.66)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.26),et*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*0).close()),ct}),go.Shape.defineFigureGenerator("Bin",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*0,et*1,!0);ct.add(ut);var pt=.1/.3;return ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close()),ct}),go.Shape.defineFigureGenerator("Upload",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*0,et*1,!0);ct.add(ut);var pt=.1/.3;ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.755,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.93,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.61,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.39,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-pt))),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.755),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.66),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.8),et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*(1-pt)).close());var yt=new go.PathFigure(nt*.5,et*0,!0);return ct.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.63)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.63)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,nt*.74,et*.25).close()),ct}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*.15,et*0,!1);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close()),ct}),go.Shape.defineFigureGenerator("Drink",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*.15,et*0,!1);ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close());var pt=new go.PathFigure(nt*.235,et*.28,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.765,et*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.655,et*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,nt*.345,et*.97).close()),ct}),go.Shape.defineFigureGenerator("4Arrows",function(Ft,nt,et){var ct=new go.Geometry,ut=new go.PathFigure(nt*.5,et*0,!0);return ct.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.5)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.65)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*1)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.75)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.65)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.5)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.35)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.45)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.25).close()),ct}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var cn={},Un="5.0",St={},ot=null,Tt=!1,ie=!1,en=null,de=!1,fe=null,qt=null,Oe=0;Oe4?parseFloat(De):5};cn.setHTML5Codebase=function(De,Be){qt=De,je(De,Be)},cn.setJavaCodebase=cn.setJavaCodebaseVersion=cn.isCompiledInstalled=cn.setPreCompiledScriptPath=cn.setPreCompiledResourcePath=function(){},cn.setHTML5CodebaseVersion=function(De,Be){var Qe=parseFloat(De);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}fe=De,Ut(De,Be)},cn.getHTML5CodebaseVersion=function(){return Ft},cn.getParameters=function(){return St},cn.setFontsCSSURL=function(De){yt=De},cn.setGiacJSURL=function(De){},cn.setJNLPFile=function(De){Ae=De},cn.setJNLPBaseDir=function(De){},cn.inject=function(){function De(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",Qe=St.id,kn,Tn=!1,pn=0;pn=5)return!0;var De=cn.getAppletObject();return De&&typeof De.recalculateEnvironments=="function"?(De.recalculateEnvironments(),!0):!1},cn.startAnimation=function(){var De=cn.getAppletObject();return De&&typeof De.startAnimation=="function"?(De.startAnimation(),!0):!1},cn.stopAnimation=function(){var De=cn.getAppletObject();return De&&typeof De.stopAnimation=="function"?(De.stopAnimation(),!0):!1},cn.getAppletObject=function(){var De=St.id!==void 0?St.id:"ggbApplet";return window[De]},cn.resize=function(){};var Ie=function(De,Be,Qe){var kn=document.createElement("param");kn.setAttribute("name",Be),kn.setAttribute("value",Qe),De.appendChild(kn)},ge=function(De){return De&&De!=="false"},Le=function(De,Be,Qe){bt(Ft)<=4.2&&(Qe=!0);var kn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ft||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(kn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Tn=document.createElement("div");Tn.classList.add("appletParameters","notranslate");var pn=Be.width,te=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(bt(Ft)<=4.4)ge(Be.showToolBar)&&(Be.height-=7),ge(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&ge(Be.showToolBar)&&(Be.width=605,pn=605);else{var dn=100;(ge(Be.showToolBar)||ge(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),dn=ge(Be.showMenuBar)?245:155),pn=5?(Be.appletOnLoad=function(Ct){var Bt=De.querySelector(".ggb_preview");Bt&&Bt.parentNode.removeChild(Bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(mn),window.GGBT_wsf_view&&$(window).trigger("resize"),Pn(Ct)},En||mn.appendChild(on)):Tn.appendChild(on),mn.appendChild(Tn),En||De.appendChild(mn),setTimeout(function(){cn.resize()},1)}else{var le=document.createElement("div");le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.appendChild(Tn),De.appendChild(le),Be.appletOnLoad=function(Ct){cn.resize(),Pn(Ct)}}function Xt(Ct,Bt){Bt&&typeof Bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ct,Bt.appletOnLoad):renderGGBElement(Ct),Ln("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Bt)}function Ee(Ct,Bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ct,params:Bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(jt){Xt(jt.article,jt.params)}),html5AppletsToProcess=null)},bt(Ft)<5&&(Ct.className+=" geogebraweb")):Xt(Ct,Bt)}if(kn){scriptLoadStarted=!0;for(var Pe=0;Pe0?(wn.remove(),mn.attr("id","fullscreencontent").show(),jQuery(Pn).append(mn),window.dispatchEvent(new Event("resize"))):Le(wn,Be,!1),window.GGBT_wsf_view.launchFullScreen(Pn)}else Ge=kn,Le(De,Be,!1);if(!window.GGBT_wsf_view)for(te=0;teDe/4*3&&(wn=De/4*3),Pn=wn/5.8,dn.setAttribute("src",ut),dn.setAttribute("width",wn),dn.setAttribute("height",Pn);var mn=(De-wn)/2,En=(Be-Pn)/2;dn.style.left=mn+"px",dn.style.top=En+"px",Tn.appendChild(dn)}}return Tn.appendChild(te),Tn},Zn=function(De){return De=De.toLowerCase(),De==="html5"||De==="screenshot"?De:"html5"},Se=["web","webSimple","web3d","tablet","tablet3d","phone"],Ut=function(De,Be){if(Ft=De,Be){je(Ft,!0);return}var Qe=!Tt;if(Qe){var kn=bt(Ft);!isNaN(kn)&&kn<4.4&&(Qe=!1)}var Tn,pn;window.location.protocol.substr(0,4)==="http"?Tn=window.location.protocol:Tn="http:";var te=Ft.indexOf("//");te>0?pn=Ft:te===0?pn=Tn+Ft:pn="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in Se)if(Ft.slice(Se[dn].length*-1)===Se[dn]||Ft.slice((Se[dn].length+1)*-1)===Se[dn]+"/"){je(pn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ot.is3D&&!ot.AV&&!ot.SV&&!ot.CV&&!ot.EV2&&!ot.CP&&!ot.PC&&!ot.DA&&!ot.FI&&!ot.PV&&!ge(St.showToolBar)&&!ge(St.showMenuBar)&&!ge(St.showAlgebraInput)&&!ge(St.enableRightClick)&&(!St.appName||St.appName=="classic")?pn+="webSimple/":pn+="web3d/",je(pn,!1)},je=function(De,Be){if(De.requirejs){xe=De;return}De.slice(-1)!=="/"&&(De+="/"),xe=De,Be===null&&(Be=De.indexOf("http")===-1),He=Be,nt="web.nocache.js",et=!1;var Qe=xe.split("/");Qe.length>1&&(!Be&&Qe[Qe.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):Se.indexOf(Qe[Qe.length-2])>=0&&(nt=Qe[Qe.length-2]+".nocache.js")),Qe=De.split("/"),Ft=Qe[Qe.length-3],Ft.substr(0,4)==="test"?Ft=Ft.substr(4,1)+"."+Ft.substr(5,1):(Ft.substr(0,3)==="war"||Ft.substr(0,4)==="beta")&&(Ft="5.0");var kn=parseFloat(Ft);kn!==NaN&&kn<5&&De.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kn+" is deprecated. Using version latest instead."),Ut("5.0",Be))},Ln=function(De,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(De)};St.material_id!==void 0?ae(Nn):Nn();function Nn(){var De=Un;fe!==null?De=fe:parseFloat(De)<5&&(De="5.0"),Ut(De,!1),qt!==null&&je(qt,He),de=!0}return cn},GGBAppletUtils=function(){"use strict";function cn(){return window.GGBT_wsf_edit!==void 0}function Un(de,fe){fe!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+fe+","+fe+")",de.style.webkitTransform="scale("+fe+","+fe+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function St(de,fe,qt,Oe,he,Ae){var xe=null;if(Ae!=null&&Ae!="")for(var He=de.parentNode;He!=null;)if((" "+He.className+" ").indexOf(" "+Ae+" ")>-1){xe=He;break}else He=He.parentNode;var Ge=0,Ft=0,nt=0,et=0,ct=0,ut=0,pt=0;if(xe)Ge=xe.offsetWidth,Ft=Math.max(Oe?xe.offsetWidth:0,xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Ft=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Ge):(Ge=window.innerWidth,Ft=window.innerHeight,nt=window.innerWidth),de){var yt=de.getBoundingClientRect();yt.left>0&&yt.left<=Ge&&(he===void 0||!he)&&(document.dir==="rtl"?(ct=Ge-yt.width-yt.left,ut=nt<=480?10:30):(ut=yt.left,ct=nt<=480?10:30),et=ut+ct)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,pt=40)}}return de&&((qt===void 0||!qt)&&fe>0&&fe+et1&&(Ae=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))he=ot(de,fe,Ae,qt,de.scaleContainerClass);else return Oe;return Ae&&(!de.hasOwnProperty("scale")||Oe===1)?he:Math.min(Oe,he)}function ie(de){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),qt=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=de.getBoundingClientRect(),he=(fe-Oe.width)/2,Ae=(qt-Oe.height)/2;Ae<0&&(Ae=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he<40?de.style.left="40px":de.style.left=he+"px",de.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?de.style.top="40px":de.style.top=Ae+"px",de.style.left=he+"px")}function en(de,fe){var qt=de.querySelector(".appletParameters");if(qt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==qt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(qt.parentElement&&/fullscreen/.test(qt.parentElement.className))return;var Oe=Tt(fe,de);cn()&&qt.setAttribute("data-param-scale",Oe);for(var he=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(cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(cn){var Un=c[cn];return Un==null?null:Un},r=d,webModule.__errFn=e}function B(){function cn(de){var fe=de.lastIndexOf(rb);fe==-1&&(fe=de.length);var qt=de.indexOf(sb);qt==-1&&(qt=de.length);var Oe=de.lastIndexOf(tb,Math.min(qt,fe));return Oe>=O?de.substring(O,Oe+P):W}function Un(de){if(!de.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=de+vb,de=cn(fe.src)}return de}function St(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function ot(){for(var de=o.getElementsByTagName(_),fe=O;feO?de[de.length-P].href:W}function ie(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var en=St();return en==W&&(en=ot()),en==W&&(en=Tt()),en==W&&ie()&&(en=cn(o.location.href)),en=Un(en),en}function C(cn){return cn.match(/^\//)||cn.match(/^[a-zA-Z]+:\/\//)?cn:webModule.__moduleBase+cn}function D(){var cn=[],Un=O,St=[],ot=[];function Tt(de){var fe=ot[de](),qt=St[de];if(fe in qt)return fe;var Oe=[];for(var he in qt)Oe[qt[he]]=he;throw r&&r(de,Oe,fe),null}if(__gwt_isKnownPropertyValue=function(de,fe){return fe in St[de]},webModule.__getPropMap=function(){var de={};for(var fe in St)St.hasOwnProperty(fe)&&(de[fe]=Tt(fe));return de},webModule.__computePropValue=Tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var en=ie.indexOf(Db);en!=-1&&(Un=parseInt(ie.substring(en+P),$),ie=ie.substring(O,en))}catch(de){}return webModule.__softPermutationId=Un,C(ie+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})()},77903:function(cn,Un,St){"use strict";St.d(Un,{Ax:function(){return en},Ds:function(){return de},KI:function(){return qt},SI:function(){return ie},f1:function(){return Tt}});var ot=St(3294);function Tt(Oe){let he=!0;if(Oe.length>0){for(let Ae=0;Ae{var ut={};for(var pt in et)Ae.call(et,pt)&&ct.indexOf(pt)<0&&(ut[pt]=et[pt]);if(et!=null&&he)for(var pt of he(et))ct.indexOf(pt)<0&&xe.call(et,pt)&&(ut[pt]=et[pt]);return ut},Ge=(et,ct,ut)=>new Promise((pt,yt)=>{var Pt=Qt=>{try{Gt(ut.next(Qt))}catch(ae){yt(ae)}},bt=Qt=>{try{Gt(ut.throw(Qt))}catch(ae){yt(ae)}},Gt=Qt=>Qt.done?pt(Qt.value):Promise.resolve(Qt.value).then(Pt,bt);Gt((ut=ut.apply(et,ct)).next())});const Ft=ie.default.TextArea,nt=et=>{var ct=et,{account:ut,globalSetting:pt,loading:yt,dispatch:Pt,schoolName:bt,departmentName:Gt,visible:Qt,onClose:ae=()=>{},onSuccess:re=()=>{}}=ct,ne=He(ct,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[Ie]=en.default.useForm(),ge=(0,ot.useRef)(),[Le,ce]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>{ge.current=ne.schoolId},[ne.schoolId]),(0,ot.useEffect)(()=>{Ie.setFieldsValue({department:Gt})},[Gt]);const ze=qe=>Ge(void 0,null,function*(){var An,fn,Zn;const{department:Se,remarks:Ut}=qe||{};ce(!0);const je=yield(0,Oe.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:Se,school_id:ge.current}});ce(!1);const Ln=()=>Ge(void 0,null,function*(){const Nn=yield Pt({type:"account/appplyDepartment",payload:{school_id:ge.current,name:Se,remarks:Ut}});(Nn==null?void 0:Nn.status)===0&&(de.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),re(Se),ae())});if((je==null?void 0:je.status)===0){if((An=je==null?void 0:je.data)!=null&&An.name){fe.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ot.createElement("div",null,ot.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),ot.createElement(qt.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(fn=je==null?void 0:je.data)==null?void 0:fn.name,size:(Zn=je==null?void 0:je.data)==null?void 0:Zn.size}],pagination:!1})),onOk:()=>{re(Se),ae()}});return}Ln()}});return ot.createElement(fe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Qt,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:ae,onOk:()=>Ie.submit(),confirmLoading:Le},ot.createElement(en.default,{form:Ie,labelCol:{span:4},wrapperCol:{span:20},onFinish:ze},ot.createElement(en.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},bt),ot.createElement(en.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},ot.createElement(ie.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),ot.createElement(en.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},ot.createElement(Ft,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};Un.Z=(0,Tt.connect)(({account:et,loading:ct,globalSetting:ut})=>({account:et,globalSetting:ut,loading:ct.effects}))(nt)},927:function(cn,Un,St){"use strict";St.d(Un,{Z:function(){return Oe}});var ot=St(59301),Tt=St(89070),ie=St(43418),en="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC",de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC",fe={tilte:"tilte___IfiMG",flexRow:"flexRow___pQP78",flexColumn:"flexColumn___xrBZQ",footerWrap:"footerWrap___C5kCC",img:"img___GoWZu",content:"content___pumTK",modalContent:"modalContent___XvHiZ"};const qt=({visible:he,occupationValue:Ae,onCancel:xe=()=>{}})=>{const He=()=>ot.createElement("div",{className:fe.flexColumn},ot.createElement("img",{className:fe.img,src:de}),ot.createElement("span",{className:fe.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1")),Ge=()=>ot.createElement("div",{className:fe.flexColumn},ot.createElement("img",{className:fe.img,src:en}),ot.createElement("span",{className:fe.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1")),Ft=()=>Ae===3?ot.createElement(ot.Fragment,null,Ge(),He()):Ae===2?He():Ge();return ot.createElement(ie.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:he,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:()=>{xe(),Tt.history.push("/account/certification")},onCancel:()=>{xe()}},ot.createElement("div",{className:fe.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),ot.createElement("div",{className:fe.flexRow},Ft()))};var Oe=(0,Tt.connect)(({paperlibrary:he,loading:Ae,globalSetting:xe})=>({paperlibrary:he,globalSetting:xe,loading:Ae.effects}))(qt)},24544:function(cn,Un,St){"use strict";var ot=St(86204),Tt=St.n(ot),ie=Object.defineProperty,en=(Oe,he,Ae)=>he in Oe?ie(Oe,he,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Oe[he]=Ae,de=(Oe,he,Ae)=>en(Oe,typeof he!="symbol"?he+"":he,Ae),fe=(Oe,he,Ae)=>new Promise((xe,He)=>{var Ge=et=>{try{nt(Ae.next(et))}catch(ct){He(ct)}},Ft=et=>{try{nt(Ae.throw(et))}catch(ct){He(ct)}},nt=et=>et.done?xe(et.value):Promise.resolve(et.value).then(Ge,Ft);nt((Ae=Ae.apply(Oe,he)).next())});class qt extends ot.EventEmitter{constructor(he,Ae){super(),de(this,"url"),de(this,"body"),de(this,"fullContent",""),de(this,"controller",null),this.url=he,this.body=Ae}startStream(){return fe(this,null,function*(){this.controller=new AbortController;const{signal:he}=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:he});if(!Ae.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Ae.status}`);const xe=Ae.headers.get("content-type");if(!xe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(xe.includes("application/json")){const Ft=yield Ae.json();this.emit("error",Ft);return}if(!xe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const He=Ae.body.getReader(),Ge=new TextDecoder("utf-8");for(;;){const{done:Ft,value:nt}=yield He.read();if(Ft)break;const ct=Ge.decode(nt,{stream:!0}).split(` `);for(const ut of ct)if(ut.startsWith("data:")){const pt=ut.slice(5).trim();if(pt==="[DONE]")break;try{const yt=JSON.parse(pt);yt.data&&this.handleData(yt.data)}catch(yt){console.error("\u89E3\u6790 JSON \u5931\u8D25:",yt)}}}this.emit("done",this.fullContent)}catch(Ae){Ae.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Ae.message)}})}handleData(he){he.content&&(this.fullContent+=he.content,this.emit("data",{chunk:he,full:this.fullContent}))}cancelRequest(){var he;(he=this.controller)==null||he.abort()}}Un.Z=qt},6584:function(cn,Un,St){"use strict";St.d(Un,{Z:function(){return Zn}});var ot=St(59301),Tt=St(72719),ie=St(77596),en=St(93772),de=St(14179),fe=St(56102),qt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Oe=St(8591),he=St(11611),Ae=St(81327),xe=St(3113),He=St(35328),Ge=St(30084),Ft=St(10787),nt=St(50304),et=St(43428),ct=St(95237),ut=St(43604),pt={smartWrp:"smartWrp___NjRcB"},yt=St(23954),Pt=St(59301);const bt=` \u5FEB\u901F\u6392\u5E8F\u6F14\u793A

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