You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
350 KiB
121 lines
350 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6904],{26227:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return _e}});var ae=ge(54476),Me=ge(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ne=Ve,pe=ge(7657),ye=function(je,Ze){return Me.createElement(pe.Z,(0,ae.Z)({},je,{ref:Ze,icon:Ne}))},le=Me.forwardRef(ye),_e=le},41464:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return _e}});var ae=ge(54476),Me=ge(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ne=Ve,pe=ge(7657),ye=function(je,Ze){return Me.createElement(pe.Z,(0,ae.Z)({},je,{ref:Ze,icon:Ne}))},le=Me.forwardRef(ye),_e=le},61481:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return _e}});var ae=ge(54476),Me=ge(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ne=Ve,pe=ge(7657),ye=function(je,Ze){return Me.createElement(pe.Z,(0,ae.Z)({},je,{ref:Ze,icon:Ne}))},le=Me.forwardRef(ye),_e=le},69453:function(Fe,et){"use strict";et.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},126:function(){"use strict"},72179:function(){"use strict";function Fe(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Fe.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Fe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Fe.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Fe.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Fe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var et=[];function ge(ne,a){var y=et.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=et.pop();return ne===void 0?new go.Point:ne}function Me(ne){et.push(ne)}function Ve(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,Pe=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,Pe=a);else{var se=(x-ee)/re,ze=x-se*b;ie=ne,Pe=se*ie+ze}else if(re===0){var Ge=(a-E)/oe,ut=a-Ge*ne;ie=b,Pe=Ge*ie+ut}else{var Ge=(a-E)/oe,se=(x-ee)/re,ut=a-Ge*ne,ze=x-se*b;ie=(ze-ut)/(Ge-se),Pe=Ge*ie+ut}return te.x=ie,te.y=Pe,te}function Ne(ne,a,y,E,b,x,z,ee,te,oe,re,ie,Pe,se){var ze=1-te,Ge=te,ut=ne*ze+y*Ge,zt=a*ze+E*Ge,Yt=y*ze+b*Ge,Tt=E*ze+x*Ge,Bt=b*ze+z*Ge,Et=x*ze+ee*Ge,sn=ut*ze+Yt*Ge,tn=zt*ze+Tt*Ge,xt=Yt*ze+Bt*Ge,on=Tt*ze+Et*Ge,$n=sn*ze+xt*Ge,pn=tn*ze+on*Ge;oe.x=ut,oe.y=zt,re.x=sn,re.y=tn,ie.x=$n,ie.y=pn,Pe.x=xt,Pe.y=on,se.x=Bt,se.y=Et}var pe=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=pe,b.spot2=ye,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Fe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Fe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Fe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var _e=[];function $e(){var ne=_e.pop();return ne===void 0?[]:ne}function je(ne){ne.length=0,_e.push(ne)}function Ze(ne){for(var a=$e(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Qe(ne){var a=Ke(ne),y=$e();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return je(a),y}function Ke(ne){for(var a=Ze(ne),y=$e(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ve(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],je(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=Ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=Ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=Ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=Ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=Ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=Ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=Ze(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Qe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Qe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Qe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Qe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Qe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Qe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Fe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Fe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=pe,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Fe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Fe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Fe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var oe=ae(),re=ae(),ie=ae(),Pe=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ie,Pe,Pe);var se=ae(),ze=ae(),Ge=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Pe,Pe,Ge,se,ze);var ut=ae(),zt=ae(),Yt=ae();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ut,zt,Yt,Pe,Pe);var Tt=ae(),Bt=ae(),Et=ae();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Pe,Pe,Et,Tt,Bt),te.add(new go.PathSegment(go.PathSegment.Move,Et.x*a,Et.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Tt.x*a,Tt.y*y,Bt.x*a,Bt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Et.x*a,Et.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Yt.x*a,Yt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Yt.x*a,Yt.y*y,ut.x*a,ut.y*y,zt.x*a,zt.y*y).close()),Me(oe),Me(re),Me(ie),Me(Pe),Me(se),Me(ze),Me(Ge),Me(ut),Me(zt),Me(Yt),Me(Tt),Me(Bt),Me(Et),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),Pe=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ie,oe,te,te),Pe.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var se=ge(oe.x,oe.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,re,ie);var ze=ge(oe.x,oe.y);Pe.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ut=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ut),Me(te),Me(oe),Me(re),Me(ie),Me(se),Me(ze),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Fe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Me(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Fe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),Me(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Fe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ve(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ve(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ve(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Me(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Fe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Me(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Fe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ve(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Me(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Fe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ve(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Me(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Me(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Fe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,Pe=le*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+Pe)*a,(oe-ie)*y,(te+ie)*a,(oe-Pe)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,Pe=le*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-Pe)*y,(te+Pe)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-Pe)*a,(oe-ie)*y,(te-ie)*a,(oe-Pe)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,Pe=le*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-Pe)*y,(te+Pe)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-Pe)*a,(oe-ie)*y,(te-ie)*a,(oe-Pe)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,Pe=le*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-Pe)*y,(te+Pe)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-Pe)*a,(oe-ie)*y,(te-ie)*a,(oe-Pe)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,Pe=le*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-Pe)*y,(te-Pe)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Fe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(x-y)/2,Pe=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,oe=.5;var ze=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=le*.4,ee=.4,te=.8,oe=.5;var Ge=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,oe=.5;var ut=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ie);var Pe=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=le*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Me(te),Me(oe),Me(re),Me(ie),Me(Pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,Pe=.5,se=0,ze=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,Pe=z,se=z,ze=re*Pe,Ge=re*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Pe)*a,te*y,(ee-(ze+Pe)/2)*a,(te+(se+Ge)/2)*y,(ee-Pe)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-Pe)*a,(te-Ge)*y,(ee-ze)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Pe)*a,te*y,(ee+ze)*a,(te-se)*y,(ee+Pe)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Pe)*a,(te+Ge)*y,(ee+(ze+Pe)/2)*a,(te+(se+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return E.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=le*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=le*.1,re=.1,ie=.9,Pe=new go.PathFigure((re-te)*a,ie*y,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=le*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=le*.05,Pe=.175,se=.95,ee=new go.PathFigure((Pe-re)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se-re)*y,(Pe-re)*a,(se-ie)*y,(Pe-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+re)*a,se*y,(Pe+ie)*a,(se-re)*y,(Pe+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se+re)*y,(Pe+re)*a,(se+ie)*y,(Pe+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-re)*a,se*y,(Pe-ie)*a,(se+re)*y,(Pe-re)*a,(se+ie)*y));var re=.05,ie=le*.05,Pe=.375,se=.95,te=new go.PathFigure((Pe-re)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se-re)*y,(Pe-re)*a,(se-ie)*y,(Pe-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+re)*a,se*y,(Pe+ie)*a,(se-re)*y,(Pe+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se+re)*y,(Pe+re)*a,(se+ie)*y,(Pe+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-re)*a,se*y,(Pe-ie)*a,(se+re)*y,(Pe-re)*a,(se+ie)*y));var re=.05,ie=le*.05,Pe=.625,se=.95,oe=new go.PathFigure((Pe-re)*a,se*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se-re)*y,(Pe-re)*a,(se-ie)*y,(Pe-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+re)*a,se*y,(Pe+ie)*a,(se-re)*y,(Pe+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se+re)*y,(Pe+re)*a,(se+ie)*y,(Pe+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-re)*a,se*y,(Pe-ie)*a,(se+re)*y,(Pe-re)*a,(se+ie)*y));var re=.05,ie=le*.05,Pe=.825,se=.95,ze=new go.PathFigure((Pe-re)*a,se*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se-re)*y,(Pe-re)*a,(se-ie)*y,(Pe-ie)*a,(se-re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+re)*a,se*y,(Pe+ie)*a,(se-re)*y,(Pe+re)*a,(se-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Pe*a,(se+re)*y,(Pe+re)*a,(se+ie)*y,(Pe+ie)*a,(se+re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-re)*a,se*y,(Pe-ie)*a,(se+re)*y,(Pe-re)*a,(se+ie)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Fe={},et="5.0",ge={},ae=null,Me=!1,Ve=!1,Ne=null,pe=!1,ye=null,le=null,_e=0;_e<arguments.length;_e++){var $e=arguments[_e];if($e!==null)switch(typeof $e){case"number":et=$e.toFixed(1);break;case"string":$e.match(new RegExp("^[0-9]\\.[0-9]+$"))?et=$e:Ne=$e;break;case"object":typeof $e.is3D!="undefined"?ae=$e:ge=$e;break;case"boolean":Me=$e,Ve=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Ve&&(Me=!0)),Ne!==null&&ge.id===void 0&&(ge.id=Ne);var je="",Ze="",Qe=!1,Ke=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};Fe.setHTML5Codebase=function(fe,De){le=fe,on(fe,De)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(fe,De){var we=parseFloat(fe);if(we!==NaN&&we<5){console.log("The GeoGebra HTML5 codebase version "+we+" is deprecated. Using version latest instead.");return}ye=fe,xt(fe,De)},Fe.getHTML5CodebaseVersion=function(){return ne},Fe.getParameters=function(){return ge},Fe.setFontsCSSURL=function(fe){z=fe},Fe.setGiacJSURL=function(fe){},Fe.setJNLPFile=function(fe){je=fe},Fe.setJNLPBaseDir=function(fe){},Fe.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",we=ge.id,We,be=!1,Je=0;Je<arguments.length;Je++){var de=arguments[Je];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?De=de:we=arguments[Je]):typeof de=="boolean"?be=de:de instanceof HTMLElement&&(We=de)}Ue();function Ue(){if(!pe){setTimeout(Ue,200);return}De=sn(De);var ht=We||document.getElementById(we);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(ht,!1),ge.width===void 0&&ht.clientWidth&&(ge.width=ht.clientWidth),ge.height===void 0&&ht.clientHeight&&(ge.height=ht.clientHeight),!(ge.width&&ge.height)&&De==="html5"&&(delete ge.width,delete ge.height),Ke=De,De==="screenshot")zt(ht,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||fe())&&re()),_t?(Ke="screenshot",Tt(ht,ge,be,De)):ut(ht,ge,be)}}};function oe(){try{return window.self!==window.top}catch(fe){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Fe.getViews=function(){return ae},Fe.isJavaInstalled=function(){return!1};var ie=function(fe){var De=function(Je){var de=JSON.parse(Je),Ue=function(Pt){return Pt.type=="G"||Pt.type=="E"},ht=de.elements?de.elements.filter(Ue)[0]:de;if(!ht||!ht.url){we();return}ge.fileName=ht.url,Pe(ht.settings||{}),ae.is3D=!0;var _t="https://www.geogebra.org/images/";Fe.setPreviewImage(E||ht.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),fe()},we=function(){ge.onError&&ge.onError(),$n("Error: Fetching material (id "+ge.material_id+") failed.",ge)},We=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",be="/materials/"+ge.material_id+"?scope=basic";se("https://"+We+"/api/proxy.php?path="+encodeURIComponent(be),De,we)};function Pe(fe){var De=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(we){fe[we]=!!fe[we]}),De.forEach(function(we){ge[we]===void 0&&fe[we]!==void 0&&(ge[we]=fe[we])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(fe,De,we){var We=new XMLHttpRequest;We.open("GET",fe),We.onload=function(){De(We.responseText)},We.onerror=we,We.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return Ke},Fe.setPreviewImage=function(fe,De,we){E=fe,b=De,x=we},Fe.removeExistingApplet=function(fe,De){var we;typeof fe=="string"&&(fe=document.getElementById(fe)),Ke=null;var We=null;for(we=0;we<fe.childNodes.length;we++){var be=fe.childNodes[we],Je=be.className;Je==="applet_screenshot"?De?(be.style.display="block",Ke="screenshot"):be.style.display="none":Je!=="applet_scaler prerender"&&(fe.removeChild(be),We=Je&&Je.indexOf("appletParameters")!=-1?be.id:null,we--)}var de=ge.id!==void 0?ge.id:We,Ue=window[de];Ue&&typeof Ue.getBase64=="function"&&(Ue.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=Fe.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var fe=Fe.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Fe.stopAnimation=function(){var fe=Fe.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var fe=ge.id!==void 0?ge.id:"ggbApplet";return window[fe]},Fe.resize=function(){};var ze=function(fe,De,we){var We=document.createElement("param");We.setAttribute("name",De),We.setAttribute("value",we),fe.appendChild(We)},Ge=function(fe){return fe&&fe!=="false"},ut=function(fe,De,we){te(ne)<=4.2&&(we=!0);var We=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(We=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var be=document.createElement("div");be.classList.add("appletParameters","notranslate");var Je=De.width,de=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(te(ne)<=4.4)Ge(De.showToolBar)&&(De.height-=7),Ge(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Ge(De.showToolBar)&&(De.width=605,Je=605);else{var Ue=100;(Ge(De.showToolBar)||Ge(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),Ue=Ge(De.showMenuBar)?245:155),Je<Ue&&(De.width=Ue,Je=Ue)}be.style.border="none",be.style.display="inline-block";for(var ht in De)De.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&be.setAttribute("data-param-"+ht,De[ht]);z&&be.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(fe,De)},window.addEventListener("resize",function(Kt){Fe.resize()});var _t=typeof De.appletOnLoad=="function"?De.appletOnLoad:function(){};if(!we&&De.width!==void 0){De.hasOwnProperty("showSplash")||be.setAttribute("data-param-showSplash","false");var Pt=fe.querySelector(".applet_scaler.prerender"),Jt=Pt!==null;if(Jt)var Ct=Pt.querySelector(".ggb_preview");else{var Ct=Et(Je,de,De.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=Je+"px",Pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),te(ne)>=5?(De.appletOnLoad=function(Kt){var zn=fe.querySelector(".ggb_preview");zn&&zn.parentNode.removeChild(zn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(Kt)},Jt||Pt.appendChild(Ct)):be.appendChild(Ct),Pt.appendChild(be),Jt||fe.appendChild(Pt),setTimeout(function(){Fe.resize()},1)}else{var Ot=document.createElement("div");Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.appendChild(be),fe.appendChild(Ot),De.appletOnLoad=function(Kt){Fe.resize(),_t(Kt)}}function Dt(Kt,zn){zn&&typeof zn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Kt,zn.appletOnLoad):renderGGBElement(Kt),$n("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zn)}function un(Kt,zn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Kt,params:zn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(sa){Dt(sa.article,sa.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Kt.className+=" geogebraweb")):Dt(Kt,zn)}if(We){scriptLoadStarted=!0;for(var jt=0;jt<be.childNodes.length;jt++){var Gn=be.childNodes[jt].tagName;Gn==="TABLE"&&(be.removeChild(be.childNodes[jt]),jt--)}if(ggbHTML5LoadedScript!==null){var xn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');xn!=null&&xn.parentNode.removeChild(xn)}var dn=document.createElement("script"),In=function(){un(be,De)};dn.src=Ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=dn.src,$n("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",De),!le&&(!ye||ye=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),In()):Ze.requirejs?__webpack_require__.e(3690).then(function(){var Kt=[__webpack_require__(63690)];In.apply(null,Kt)}.bind(this)).catch(__webpack_require__.oe):(dn.onload=In,fe.appendChild(dn))}else un(be,De);De.height=de,De.width=Je},zt=function(fe,De,we){var We=Et(De.width,De.height,De.borderColor,we),be=document.createElement("div");be.style.position="relative",be.style.display="block",be.style.width=De.width+"px",be.style.height=De.height+"px",be.className="applet_screenshot applet_scaler"+(we?" applet_screenshot_play":""),be.appendChild(We);var Je=GGBAppletUtils.getScale(De,fe,we);we?(fe.appendChild(Bt()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(be,"66%"),fe.appendChild(be),Je!==1&&!isNaN(Je)&&(GGBAppletUtils.scaleElement(be,Je),be.style.width=De.width+"px",be.style.height=De.height+"px",be.parentNode.style.width=De.width*Je+"px",be.parentNode.style.height=De.height*Je+"px"),Fe.resize=function(){Yt(fe,We,be,we)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function Yt(fe,De,we,We){if(fe.contains(De)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var be=GGBAppletUtils.getScale(ge,fe,We);we.parentNode!==null&&(!isNaN(be)&&be!==1?(GGBAppletUtils.scaleElement(we,be),we.parentNode.style.width=ge.width*be+"px",we.parentNode.style.height=ge.height*be+"px"):(GGBAppletUtils.scaleElement(we,1),we.parentNode.style.width=ge.width+"px",we.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fe.onExitFullscreen=function(fe,De){De.appendChild(fe)};var Tt=function(fe,De,we,We){zt(fe,De,!0);for(var be=function(){var Ue=[];for(de=0;de<fe.childNodes.length;de++)Ue.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(fe,De.id),_t=document.getElementById("fullscreencontainer"),Pt=jQuery(fe).find(".fullscreencontent");Pt.length>0?(ht.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(_t).append(Pt),window.dispatchEvent(new Event("resize"))):ut(ht,De,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Ke=We,ut(fe,De,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ue.length;de++)fe.removeChild(Ue[de])},Je=fe.getElementsByClassName("ggb_preview_play"),de=0;de<Je.length;de++)Je[de].addEventListener("click",be,!1),Je[de].addEventListener("ontouchstart",be,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Bt=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var De='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',we=document.createElement("style");we.styleSheet?we.styleSheet.cssText=De:we.appendChild(document.createTextNode(De)),document.getElementsByTagName("head")[0].appendChild(we)}return fe},Et=function(fe,De,we,We){var be=document.createElement("div");be.className="ggb_preview",be.style.position="absolute",be.style.zIndex="90",be.style.width=fe-2+"px",be.style.height=De-2+"px",be.style.top="0px",be.style.left="0px",be.style.overflow="hidden",be.style.backgroundColor="white";var Je="lightgrey";we!==void 0&&(we==="none"?Je="transparent":Je=we),be.style.border="1px solid "+Je;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Ue,ht,_t;if(!We){Ue=document.createElement("img"),Ue.style.position="absolute",Ue.style.zIndex="1001",Ue.style.opacity=1,de.style.opacity=.3,ht=360,ht>fe/4*3&&(ht=fe/4*3),_t=ht/5.8,Ue.setAttribute("src",b),Ue.setAttribute("width",ht),Ue.setAttribute("height",_t);var Pt=(fe-ht)/2,Jt=(De-_t)/2;Ue.style.left=Pt+"px",Ue.style.top=Jt+"px",be.appendChild(Ue)}}return be.appendChild(de),be},sn=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},tn=["web","webSimple","web3d","tablet","tablet3d","phone"],xt=function(fe,De){if(ne=fe,De){on(ne,!0);return}var we=!Me;if(we){var We=te(ne);!isNaN(We)&&We<4.4&&(we=!1)}var be,Je;window.location.protocol.substr(0,4)==="http"?be=window.location.protocol:be="http:";var de=ne.indexOf("//");de>0?Je=ne:de===0?Je=be+ne:Je="https://www.geogebra.org/apps/5.2.814.0/";for(var Ue in tn)if(ne.slice(tn[Ue].length*-1)===tn[Ue]||ne.slice((tn[Ue].length+1)*-1)===tn[Ue]+"/"){on(Je,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&we&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ge(ge.showToolBar)&&!Ge(ge.showMenuBar)&&!Ge(ge.showAlgebraInput)&&!Ge(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?Je+="webSimple/":Je+="web3d/",on(Je,!1)},on=function(fe,De){if(fe.requirejs){Ze=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Ze=fe,De===null&&(De=fe.indexOf("http")===-1),Qe=De,a="web.nocache.js",y=!1;var we=Ze.split("/");we.length>1&&(!De&&we[we.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):tn.indexOf(we[we.length-2])>=0&&(a=we[we.length-2]+".nocache.js")),we=fe.split("/"),ne=we[we.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var We=parseFloat(ne);We!==NaN&&We<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+We+" is deprecated. Using version latest instead."),xt("5.0",De))},$n=function(fe,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(fe)};ge.material_id!==void 0?ie(pn):pn();function pn(){var fe=et;ye!==null?fe=ye:parseFloat(fe)<5&&(fe="5.0"),xt(fe,!1),le!==null&&on(le,Qe),pe=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function et(pe,ye){ye!=1?(pe.style.transformOrigin="0% 0% 0px",pe.style.webkitTransformOrigin="0% 0% 0px",pe.style.transform="scale("+ye+","+ye+")",pe.style.webkitTransform="scale("+ye+","+ye+")",pe.style.maxWidth="initial",pe.querySelector(".ggb_preview")!==null&&(pe.querySelector(".ggb_preview").style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(pe.style.transform="none",pe.style.webkitTransform="none")}function ge(pe,ye,le,_e,$e,je){var Ze=null;if(je!=null&&je!="")for(var Qe=pe.parentNode;Qe!=null;)if((" "+Qe.className+" ").indexOf(" "+je+" ")>-1){Ze=Qe;break}else Qe=Qe.parentNode;var Ke=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(Ze)Ke=Ze.offsetWidth,ne=Math.max(_e?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ke):(Ke=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),pe){var z=pe.getBoundingClientRect();z.left>0&&z.left<=Ke&&($e===void 0||!$e)&&(document.dir==="rtl"?(E=Ke-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return pe&&((le===void 0||!le)&&ye>0&&ye+y<Ke?Ke=ye:Ke-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=x)),{width:Ke,height:ne}}function ae(pe,ye,le,_e,$e){if(pe.isScreenshoGenerator)return 1;var je=_e!==void 0&&_e,Ze=pe.noScaleMargin!=null&&pe.noScaleMargin,Qe=function(ee){return ee&&ee!=="false"},Ke=Qe(pe.autoHeight),ne=ge(ye,pe.width,le,Ke,je&&window.GGBT_wsf_view||Ze,$e),a=parseInt(ne.width),y=pe.width,E=pe.height;if(y===void 0){var b=ye.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=je?1:ne.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Me(pe,ye,le){var _e=1,$e,je=!1;if(pe.hasOwnProperty("allowUpscale")&&(je=pe.allowUpscale),pe.hasOwnProperty("scale")&&(_e=parseFloat(pe.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(je=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(pe.hasOwnProperty("disableAutoScale")&&pe.disableAutoScale))$e=ae(pe,ye,je,le,pe.scaleContainerClass);else return _e;return je&&(!pe.hasOwnProperty("scale")||_e===1)?$e:Math.min(_e,$e)}function Ve(pe){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=pe.getBoundingClientRect(),$e=(ye-_e.width)/2,je=(le-_e.height)/2;je<0&&(je=0),pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?($e<40?pe.style.left="40px":pe.style.left=$e+"px",pe.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?pe.style.top="40px":pe.style.top=je+"px",pe.style.left=$e+"px")}function Ne(pe,ye){var le=pe.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var _e=Me(ye,pe);Fe()&&le.setAttribute("data-param-scale",_e);for(var $e=null,je=0;je<pe.childNodes.length;je++)if(pe.childNodes[je].className!==void 0&&pe.childNodes[je].className.match(/^applet_scaler/)){$e=pe.childNodes[je];break}if($e!==null&&$e.querySelector(".noscale")!==null)return;var Ze=ye.id!==void 0?ye.id:"ggbApplet",Qe=window[Ze];(Qe==null||!Qe.recalculateEnvironments)&&$e!==null&&!$e.className.match(/fullscreen/)&&($e.parentNode.style.transform="",!isNaN(_e)&&_e!==1?($e.parentNode.style.width=ye.width*_e+"px",$e.parentNode.style.height=ye.height*_e+"px",et($e,_e)):(et($e,1),$e.parentNode.style.width=ye.width+"px",$e.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Fe,positionCenter:Ve,getScale:Me,scaleElement:et}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,et){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Fe){var et=s[L].bindings;s[L].bindings=function(){for(var ge=et?et():{},ae=Fe[webModule.__softPermutationId],Me=O;Me<ae.length;Me++){var Ve=ae[Me];ge[Ve[O]]=Ve[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Fe=o.createElement(Q);if(Fe.id=L,Fe.style.cssText=R+S,Fe.tabIndex=-1,o.body.appendChild(Fe),t=Fe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var et=document.compatMode==U?V:W;t.write(et+X),t.close()}}}function w(Fe){function et(ae){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=Me();if(Ve){ae();return}function Ne(){if(!Ve){if(!Me())return;Ve=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),pe&&clearInterval(pe)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var pe=setInterval(function(){Ne()},$)}function ge(ae){var Me=u(),Ve=Me.body,Ne=Me.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ae,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ve.appendChild(Ne)}et(function(){ge(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var et=u(),ge=et.body,ae=et.createElement(_);ae.language=ab,ae.text=Fe,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Fe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fe){var et=c[Fe];return et==null?null:et},r=d,webModule.__errFn=e}function B(){function Fe(pe){var ye=pe.lastIndexOf(rb);ye==-1&&(ye=pe.length);var le=pe.indexOf(sb);le==-1&&(le=pe.length);var _e=pe.lastIndexOf(tb,Math.min(le,ye));return _e>=O?pe.substring(O,_e+P):W}function et(pe){if(!pe.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=pe+vb,pe=Fe(ye.src)}return pe}function ge(){var pe=__gwt_getMetaProperty(wb);return pe!=null?pe:W}function ae(){for(var pe=o.getElementsByTagName(_),ye=O;ye<pe.length;++ye)if(pe[ye].src.indexOf(xb)!=-1)return Fe(pe[ye].src);return W}function Me(){var pe=o.getElementsByTagName(yb);return pe.length>O?pe[pe.length-P].href:W}function Ve(){var pe=o.location;return pe.href==pe.protocol+zb+pe.host+pe.pathname+pe.search+pe.hash}var Ne=ge();return Ne==W&&(Ne=ae()),Ne==W&&(Ne=Me()),Ne==W&&Ve()&&(Ne=Fe(o.location.href)),Ne=et(Ne),Ne}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],et=O,ge=[],ae=[];function Me(pe){var ye=ae[pe](),le=ge[pe];if(ye in le)return ye;var _e=[];for(var $e in le)_e[le[$e]]=$e;throw r&&r(pe,_e,ye),null}if(__gwt_isKnownPropertyValue=function(pe,ye){return ye in ge[pe]},webModule.__getPropMap=function(){var pe={};for(var ye in ge)ge.hasOwnProperty(ye)&&(pe[ye]=Me(ye));return pe},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var Ne=Ve.indexOf(Db);Ne!=-1&&(et=parseInt(Ve.substring(Ne+P),$),Ve=Ve.substring(O,Ne))}catch(pe){}return webModule.__softPermutationId=et,C(Ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},82977:function(Fe,et,ge){"use strict";ge.d(et,{Ax:function(){return Ne},Ds:function(){return pe},KI:function(){return le},SI:function(){return Ve},f1:function(){return Me}});var ae=ge(49647);function Me(_e){let $e=!0;if(_e.length>0){for(let je=0;je<_e.length;je++)if(_e[je].compile_success==0||!_e[je].compile_success){$e=!1;break}}else $e=!1;return $e}function Ve(_e,$e=""){let je=[];for(let Ze=0;Ze<_e.length;Ze++){let Qe=_e[Ze],Ke=$e?`${$e}/${Qe.name}`:`${Qe.name}`;je.push({title:Qe.name,type:Qe.type,isLeaf:Qe.type!=="tree",key:Ke})}return je}function Ne(_e,$e,je){for(let Ze=0;Ze<_e.length;Ze++){let Qe=_e[Ze];if(Qe.key===$e){Qe.children=je;break}Qe.children&&Ne(Qe.children,$e,je)}return _e}function pe(_e,$e,je){let Ze;return function(){let Qe=this,Ke=arguments,ne=function(){Ze=null,je||_e.apply(Qe,Ke)},a=je&&!Ze;clearTimeout(Ze),Ze=setTimeout(ne,$e),a&&_e.apply(Qe,Ke)}}const ye=!0,le=ae.Z.API_SERVER},5140:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Ze}});var ae=ge(59301),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=ge(92310),Ne=ge.n(Ve),pe=ge(71418),ye=ge(2859),le=ge(98280),_e=ge(19374),$e=(Qe,Ke,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Qe,Ke)).next())}),Ze=({data:Qe,className:Ke,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[Pe,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Qe!=null&&Qe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Qe!=null&&Qe.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Qe==null?void 0:Qe.visible]);const ze=()=>$e(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Tt=yield(0,_e.ZJ)(Qe==null?void 0:Qe.src);z.current.src="",z.current.src=Tt,z.current.onload=function(){Yt()},ie(!1),se("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ut=Tt=>$e(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bt=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qe.title,file:Tt.dataUrl}});Bt!=null&&Bt.id&&!x?(yield(0,le.ZP)(`/api/attachments/${Qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bt==null?void 0:Bt.id,settings:JSON.stringify(Tt.state)}})).status===0&&E():Bt!=null&&Bt.id&&E(Bt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),zt=()=>{const Tt=document.querySelector('a[href="https://markerjs.com/"]');Tt&&Tt.parentNode&&(Tt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Et=>{const sn=document.querySelector(Et.name);sn&&sn.setAttribute("title",Et.title)})},Yt=()=>{ee.current=new ye.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ut),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Qe!=null&&Qe.snapshotData&&ee.current.restoreState(Qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return ae.createElement(ae.Fragment,null,(Qe==null?void 0:Qe.visible)&&ae.createElement(pe.Z,{spinning:re,tip:Pe,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ne()(Me.imageDimensions,Ke,ne?Me.fullWidth:""),style:a},ae.createElement("img",{className:Me.img,ref:z}))))}},88601:function(Fe,et,ge){"use strict";var ae=ge(59301),Me=ge(95237),Ve=ge(43604),Ne=ge(99313),pe=ge(3113),ye=ge(12470),le=ge(69453),_e=ge(48136),$e=ge(59301);const je=(0,ae.forwardRef)(({callback:Ze,showSaveButton:Qe,value:Ke=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:$e.createElement(Me.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>$e.createElement(Ve.Z,{flex:"110px",className:le.Z.item},$e.createElement("div",null,$e.createElement(ye.Z,{value:`$$${ee.value}$$`}),ee.name),$e.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>$e.createElement("div",{key:re},$e.createElement("h1",null,oe.name),$e.createElement(Me.Z,{gutter:[10,10]},oe.data.map((ie,Pe)=>$e.createElement(Ve.Z,{key:Pe,onClick:()=>b(ie),className:le.Z.diamond},$e.createElement(ye.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:$e.createElement(Me.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>$e.createElement(Ve.Z,{flex:"110px",className:le.Z.item},$e.createElement("div",null,$e.createElement(ye.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),$e.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>$e.createElement("div",{key:re},oe.name&&$e.createElement("h1",null,oe.name),$e.createElement(Me.Z,{gutter:[10,10]},oe.data.map((ie,Pe)=>$e.createElement(Ve.Z,{key:Pe,onClick:()=>b(ie),className:le.Z.diamond},$e.createElement(ye.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ze&&Ze(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),$e.createElement("div",{className:le.Z.mathWrap},$e.createElement(Ne.default,{defaultActiveKey:"1",items:x}),$e.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ke||""),Qe&&$e.createElement("div",{className:le.Z.button},$e.createElement(pe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});et.Z=je},45923:function(Fe,et,ge){"use strict";ge.d(et,{h:function(){return ee}});var ae=ge(59301),Me=ge(57809),Ve=ge(78241),Ne=ge(3113),pe=ge(89780),ye=ge.n(pe),le=ge(6303),_e=ge(87671),$e=Object.defineProperty,je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?$e(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ke.call(oe,re)&&a(te,re,oe[re]);if(Qe)for(var re of Qe(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},E=(te,oe)=>je(te,Ze(oe));const b=Me.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};et.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function Pe(ze){ie(z[ze][1])}function se(ze){te(ze)}return ae.createElement(Ve.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Me.default,{getPopupContainer:ze=>ze.parentNode,onChange:Pe},Object.keys(z).map(ze=>ae.createElement(b,{key:ze,value:ze},z[ze][0])))),ae.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ne.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const Pe=(0,ae.useRef)(),[se,ze]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let Ge=function(ut){const zt=ut.getValue();oe&&oe(zt)};return se.on("change",Ge),()=>{se.off("change",Ge)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(Pe.current&&!se){const Ge=ye().fromTextArea(Pe.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ze(Ge)}},[Pe.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Pe}))}},48551:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Un}});var ae=ge(59301),Me=ge(89780),Ve=ge.n(Me),Ne=ge(76374),pe=ge(6303),ye=ge(6313),le=ge(25717),_e=ge(99498),$e=ge(25419),je=ge(67549),Ze=ge(12470),Qe=({value:ce="",className:Se,showTextOnly:ue,showLines:He,style:it={}})=>{const at=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},Ke=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,Se,ue)=>Se in ce?ne(ce,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Se]=ue,ee=(ce,Se)=>{for(var ue in Se||(Se={}))b.call(Se,ue)&&z(ce,ue,Se[ue]);if(E)for(var ue of E(Se))x.call(Se,ue)&&z(ce,ue,Se[ue]);return ce},te=(ce,Se)=>a(ce,y(Se));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ce,title:Se,icon:ue,actionName:He,className:it="",children:at}){function It(){ce(He)}return Ke.createElement("a",{title:Se,className:it,onClick:It},Ke.createElement("i",{className:`${ue}`}),at)}var ie=({watch:ce,showNullButton:Se,showNullProgramButton:ue,onActionCallback:He,fullScreen:it,insertTemp:at,hidetoolBar:It,extraUse:pt})=>{const Nt=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ke.createElement("ul",{className:"markdown-toolbar-container"},!It&&Nt.map((en,An)=>Ke.createElement("li",{key:An},en.actionName?Ke.createElement(re,te(ee({},en),{onActionCallback:He})):Ke.createElement("span",{className:"v-line"}))),Se?Ke.createElement("li",null,Ke.createElement(re,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:He},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ue?Ke.createElement(Ke.Fragment,null,Ke.createElement("li",null,Ke.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:He},Ke.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ke.createElement("li",null,Ke.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:He},Ke.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,at&&Ke.createElement("li",null,Ke.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${at}`,onActionCallback:He},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pt&&Ke.createElement("li",null,pt),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(re,{icon:`${it?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:it?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:He})))},Pe=ge(44991),se=ge(78241),ze=ge(92832),Ge=ge(3113),ut=Object.defineProperty,zt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,sn=(ce,Se,ue)=>Se in ce?ut(ce,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Se]=ue,tn=(ce,Se)=>{for(var ue in Se||(Se={}))Bt.call(Se,ue)&&sn(ce,ue,Se[ue]);if(Tt)for(var ue of Tt(Se))Et.call(Se,ue)&&sn(ce,ue,Se[ue]);return ce},xt=(ce,Se)=>zt(ce,Yt(Se));const on={labelCol:{span:4},wrapperCol:{span:20}};var $n=({callback:ce,onCancel:Se})=>{function ue(He){ce(He)}return ae.createElement(se.default,xt(tn({},on),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ze.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ze.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},pn=ge(45923),fe=ge(76021),De=ge(43418),we=ge(95237),We=ge(5140),be=ge(59301),Je=({callback:ce,onCancel:Se})=>{const ue=document.createElement("canvas"),He=ue.getContext("2d");ue.width=1e3,ue.height=800,He.fillStyle="#ffffff",He.fillRect(0,0,ue.width,ue.height);const it=ue.toDataURL("image/png");return be.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},be.createElement(we.Z,{style:{height:"100vh"}},be.createElement(We.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:it,visible:!0,title:String(Date.now())},onOk:at=>{ce({src:at.url})},onClose:Se})))},de=ge(12378);function Ue(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ue,go.CommandHandler),Ue.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ue.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Se=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.x,Se))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se,ue.position.y))}),ce.commitTransaction("aligning left")},Ue.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Se=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var He=ue.actualBounds.x+ue.actualBounds.width;Se=Math.max(He,Se)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se-ue.actualBounds.width,ue.position.y))}),ce.commitTransaction("aligning right")},Ue.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Se=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.y,Se))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Se))}),ce.commitTransaction("alignTop")},Ue.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Se=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var He=ue.actualBounds.y+ue.actualBounds.height;Se=Math.max(He,Se)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Se-ue.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ue.prototype.alignCenterX=function(){var ce=this.diagram,Se=ce.selection.first();if(Se){ce.startTransaction("aligning Center X");var ue=Se.actualBounds.x+Se.actualBounds.width/2;ce.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(ue-He.actualBounds.width/2,He.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Ue.prototype.alignCenterY=function(){var ce=this.diagram,Se=ce.selection.first();if(Se){ce.startTransaction("aligning Center Y");var ue=Se.actualBounds.y+Se.actualBounds.height/2;ce.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,ue-He.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Ue.prototype.alignColumn=function(ce){var Se=this.diagram;Se.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var ue=new Array;Se.selection.each(function(pt){pt instanceof go.Link||ue.push(pt)});for(var He=0;He<ue.length-1;He++){var it=ue[He],at=it.actualBounds.y+it.actualBounds.height+ce,It=ue[He+1];It.move(new go.Point(it.actualBounds.x,at))}Se.commitTransaction("align Column")},Ue.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Se=this.diagram;Se.startTransaction("align Row");var ue=new Array;Se.selection.each(function(pt){pt instanceof go.Link||ue.push(pt)});for(var He=0;He<ue.length-1;He++){var it=ue[He],at=it.actualBounds.x+it.actualBounds.width+ce,It=ue[He+1];It.move(new go.Point(at,it.actualBounds.y))}Se.commitTransaction("align Row")},Ue.prototype.canRotate=function(ce){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<1)},Ue.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Se=this.diagram;Se.startTransaction("rotate "+ce.toString());var Se=this.diagram;Se.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=ce)}),Se.commitTransaction("rotate "+ce.toString())},Ue.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Se=new go.Map;ce.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var He=0;ue.parts.each(function(it){if(!it.isSelected){var at=it.zOrder;isNaN(at)?it.zOrder=0:He=Math.max(He,at)}}),Se.set(ue,He)}),ce.selection.each(function(ue){Ue._assignZOrder(ue,Se.get(ue.layer)+1)}),ce.commitTransaction("pullToFront")},Ue.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Se=new go.Map;ce.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var He=0;ue.parts.each(function(it){if(!it.isSelected){var at=it.zOrder;isNaN(at)?it.zOrder=0:He=Math.min(He,at)}}),Se.set(ue,He)}),ce.selection.each(function(ue){Ue._assignZOrder(ue,Se.get(ue.layer)-1-Ue._findGroupDepth(ue))}),ce.commitTransaction("pushToBack")},Ue._assignZOrder=function(ce,Se,ue){ue===void 0&&(ue=ce),ce.layer===ue.layer&&(ce.zOrder=Se),ce instanceof go.Group&&ce.memberParts.each(function(He){Ue._assignZOrder(He,Se+1,ue)})},Ue._findGroupDepth=function(ce){if(ce instanceof go.Group){var Se=0;return ce.memberParts.each(function(ue){Se=Math.max(Se,Ue._findGroupDepth(ue))}),Se+1}else return 0},Ue.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Se=ce.lastInput;if(Se.key==="Up"||Se.key==="Down"||Se.key==="Left"||Se.key==="Right"){var ue=this.arrowKeyBehavior;if(ue==="none")return;if(ue==="select"){this._arrowKeySelect();return}else if(ue==="move"){this._arrowKeyMove();return}else if(ue==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ue.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Se){ce.push(Se)}),this.diagram.parts.each(function(Se){ce.push(Se)}),ce},Ue.prototype._arrowKeyMove=function(){var ce=this.diagram,Se=ce.lastInput,ue=0,He=0;if(Se.control||Se.meta)ue=1,He=1;else if(ce.grid!==null){var it=ce.grid.gridCellSize;He=it.width,ue=it.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(at){Se.key==="Up"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y-ue)):Se.key==="Down"?at.move(new go.Point(at.actualBounds.x,at.actualBounds.y+ue)):Se.key==="Left"?at.move(new go.Point(at.actualBounds.x-He,at.actualBounds.y)):Se.key==="Right"&&at.move(new go.Point(at.actualBounds.x+He,at.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Ue.prototype._arrowKeySelect=function(){var ce=this.diagram,Se=ce.lastInput,ue=null;Se.key==="Up"?ue=this._findNearestPartTowards(270):Se.key==="Down"?ue=this._findNearestPartTowards(90):Se.key==="Left"?ue=this._findNearestPartTowards(180):Se.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Se.shift?ue.isSelected=!0:Se.control||Se.meta?ue.isSelected=!ue.isSelected:ce.select(ue))},Ue.prototype._findNearestPartTowards=function(ce){var Se=this.diagram.selection.first();if(Se===null)return null;for(var ue=Se.actualBounds.center,He=this._getAllParts(),it=1/0,at=Se,It=0;It<He.length;It++){var pt=He[It];if(pt!==Se&&pt.canSelect()){var Nt=pt.actualBounds.center,en=ue.directionPoint(Nt),An=this._angleCloseness(en,ce);if(An<=45){var Re=ue.distanceSquaredPoint(Nt);Re*=1+Math.sin(An*Math.PI/180),Re<it&&(it=Re,at=pt)}}}return at},Ue.prototype._angleCloseness=function(ce,Se){return Math.min(Math.abs(Se-ce),Math.min(Math.abs(Se+360-ce),Math.abs(Se-360-ce)))},Ue.prototype._arrowKeyTree=function(){var ce=this.diagram,Se=ce.selection.first();if(Se instanceof go.Node){var ue=ce.lastInput;if(ue.key==="Right"){if(!Se.isTreeLeaf)if(!Se.isTreeExpanded)ce.commandHandler.canExpandTree(Se)&&ce.commandHandler.expandTree(Se);else{var He=this._sortTreeChildrenByY(Se).first();He!==null&&ce.select(He)}}else if(ue.key==="Left")if(!Se.isTreeLeaf&&Se.isTreeExpanded)ce.commandHandler.canCollapseTree(Se)&&ce.commandHandler.collapseTree(Se);else{var it=Se.findTreeParentNode();it!==null&&ce.select(it)}else if(ue.key==="Up"){var it=Se.findTreeParentNode();if(it!==null){var at=this._sortTreeChildrenByY(it),It=at.indexOf(Se);if(It>0){for(var pt=at.elt(It-1);pt!==null&&pt.isTreeExpanded&&!pt.isTreeLeaf;){var Nt=this._sortTreeChildrenByY(pt);pt=Nt.last()}pt!==null&&ce.select(pt)}else ce.select(it)}}else if(ue.key==="Down")if(Se.isTreeExpanded&&!Se.isTreeLeaf){var He=this._sortTreeChildrenByY(Se).first();He!==null&&ce.select(He)}else for(;Se!==null;){var it=Se.findTreeParentNode();if(it===null)break;var at=this._sortTreeChildrenByY(it),It=at.indexOf(Se);if(It<at.length-1){ce.select(at.elt(It+1));break}else Se=it}var en=ce.selection.first();en!==null&&ce.scrollToRect(en.actualBounds)}},Ue.prototype._sortTreeChildrenByY=function(ce){var Se=new go.List().addAll(ce.findTreeChildrenNodes());return Se.sort(function(ue,He){var it=ue.location,at=He.location;return it.y<at.y?-1:it.y>at.y?1:it.x<at.x?-1:it.x>at.x?1:0}),Se},Ue.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ue.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Ue.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Ue.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var ht=Ue,_t=ge(72179),Pt=ge(43604),Jt=ge(98280),Ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ot=ge(59301),Dt=(ce,Se,ue)=>new Promise((He,it)=>{var at=Nt=>{try{pt(ue.next(Nt))}catch(en){it(en)}},It=Nt=>{try{pt(ue.throw(Nt))}catch(en){it(en)}},pt=Nt=>Nt.done?He(Nt.value):Promise.resolve(Nt.value).then(at,It);pt((ue=ue.apply(ce,Se)).next())});function un({onCancel:ce,callback:Se}){let ue=(0,ae.useRef)(),He=(0,ae.useRef)(),it=(0,ae.useRef)(),at=(0,ae.useRef)(!1);const It=(0,ae.useRef)(!1),[pt,Nt]=(0,ae.useState)(0);function en(){const Re=de.bx.make,At={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ue.current=new de.S0(He.current,{padding:20,grid:Re(de.s_,"Grid",Re(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Re(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Oe=>{var tt=Oe.diagram.commandHandler.addTopLevelParts(Oe.diagram.selection,!0);tt||Oe.diagram.currentTool.doCancel()},commandHandler:Re(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Oe=>{var tt=Oe.subject;tt.location=tt.location.copy().snapToGridPoint(Oe.diagram.grid.gridOrigin,Oe.diagram.grid.gridCellSize),setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Oe=>{var tt=Oe.subject;setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Oe=>{var tt=Oe.parameter.part;tt.invalidateConnectedLinks();var rt=Oe.subject;Oe.diagram.toolManager.linkingTool.isForwards?rt.toNode.invalidateConnectedLinks():rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.current.nodeTemplate=Re(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Re(de.bn,{name:"SHAPE",fill:At.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Re(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Re(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.nodeTemplate.toolTip=Re("ToolTip",Re(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Re(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Re(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Fn(Oe,tt){var rt=(dt,vt)=>{dt.handled=!0,dt.diagram.model.commit(Ft=>{var ct=vt.part.adornedPart,Zt=new de.E9().setRectSpot(ct.actualBounds,Oe);Zt.subtract(ct.location),Zt.scale(2,2),Zt.x+=Math.sign(Zt.x)*130,Zt.y+=Math.sign(Zt.y)*130,Zt.add(ct.location),Zt.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var Xt=Ft.copyNodeData(ct.data);Ft.setGroupKeyForNodeData(Xt,Ft.getGroupKeyForNodeData(ct.data)),Ft.addNodeData(Xt);var Xn={from:ct.key,to:Ft.getKeyForNodeData(Xt)};Ft.addLinkData(Xn);var qn=dt.diagram.findNodeForData(Xt);qn.location=Zt,dt.diagram.select(qn),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return Re(de.bn,{figure:tt,alignment:Oe,alignmentFocus:Oe.opposite(),width:Oe.equals(de.z6.Top)||Oe.equals(de.z6.Bottom)?25:18,height:Oe.equals(de.z6.Top)||Oe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:At.white,strokeWidth:4,mouseEnter:(dt,vt)=>vt.fill="dodgerblue",mouseLeave:(dt,vt)=>vt.fill="orange",isActionable:!0,click:rt,contextClick:rt})}function _n(Oe){return Re(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(tt,rt)=>rt.fill="dodgerblue",mouseLeave:(tt,rt)=>rt.fill="orange",click:(tt,rt)=>{tt.diagram.commandHandler.showContextMenu(rt.part.adornedPart)}},Oe||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=Re(de.uz,"Spot",Re(de.Vm,{padding:10}),Fn(de.z6.Top,"TriangleUp"),Fn(de.z6.Left,"TriangleLeft"),Fn(de.z6.Right,"TriangleRight"),Fn(de.z6.Bottom,"TriangleDown"),_n({alignment:new de.z6(.75,0)}));function ln(Oe,tt){return(rt,dt)=>{rt.handled=!0,rt.diagram.model.commit(vt=>{vt.set(dt.part.adornedPart.data,Oe,tt)})}}function me(Oe,tt){return tt||(tt="color"),Re(de.bn,{width:16,height:16,stroke:"lightgray",fill:Oe,margin:1,background:"transparent",mouseEnter:(rt,dt)=>dt.stroke="dodgerblue",mouseLeave:(rt,dt)=>dt.stroke="lightgray",click:ln(tt,Oe),contextClick:ln(tt,Oe)})}function Le(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",me(At.white,"fill"),me(At.beige,"fill"),me(At.extralightblue,"fill"),me(At.extralightred,"fill"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",me(At.lightgray,"fill"),me(At.lightgreen,"fill"),me(At.lightblue,"fill"),me(At.lightred,"fill")))]}function ve(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",me(At.black),me(At.green),me(At.blue),me(At.red))),Re("ContextMenuButton",Re(de.s_,"Horizontal",me(At.white),me(At.magenta),me(At.purple),me(At.orange)))]}function xe(Oe,tt){return tt||(tt="thickness"),Re(de.bn,"LineH",{width:16,height:16,strokeWidth:Oe,margin:1,background:"transparent",mouseEnter:(rt,dt)=>dt.background="dodgerblue",mouseLeave:(rt,dt)=>dt.background="transparent",click:ln(tt,Oe),contextClick:ln(tt,Oe)})}function Te(Oe,tt){return tt||(tt="dash"),Re(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Oe,margin:1,background:"transparent",mouseEnter:(rt,dt)=>dt.background="dodgerblue",mouseLeave:(rt,dt)=>dt.background="transparent",click:ln(tt,Oe),contextClick:ln(tt,Oe)})}function Ie(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",xe(1),xe(2),xe(3),xe(4))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Te(null),Te([2,4]),Te([4,4])))]}function Ae(Oe,tt){return tt||(tt="figure"),Re(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Oe,margin:1,background:"transparent",mouseEnter:(rt,dt)=>dt.fill="dodgerblue",mouseLeave:(rt,dt)=>dt.fill="lightgray",click:ln(tt,Oe),contextClick:ln(tt,Oe)})}ue.current.nodeTemplate.contextMenu=Re("ContextMenu",Re("ContextMenuButton",Re(de.s_,"Horizontal",Ae("Rectangle"),Ae("RoundedRectangle"),Ae("Ellipse"),Ae("Diamond"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Ae("Parallelogram2"),Ae("ManualOperation"),Ae("Procedure"),Ae("Cylinder1"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Ae("Terminator"),Ae("CreateRequest"),Ae("Document"),Ae("TriangleDown"))),Le(),ve(),Ie()),ue.current.groupTemplate=Re(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Oe,tt)=>{var rt=tt.addMembers(tt.diagram.selection,!0);rt||tt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Re(de.s_,"Auto",{name:"BODY"},Re(de.bn,{parameter1:10,fill:At.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Re(de.Vm,{background:"transparent",margin:20})),Re(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ue.current.groupTemplate.selectionAdornmentTemplate=Re(de.uz,"Spot",Re(de.s_,"Auto",Re(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Re(de.Vm,{margin:1.5})),_n({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=Re("ContextMenu",Le(),ve(),Ie()),ue.current.linkTemplate=Re(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Oe=>Oe>=1?10:0),new de.KX("toShortLength","dir",Oe=>Oe>=1?10:0),new de.KX("points").makeTwoWay(),Re(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Re(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe===1)),Re(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe>=1),new de.KX("width","thickness",Oe=>7+3*Oe),new de.KX("height","thickness",Oe=>7+3*Oe),new de.KX("segmentOffset","thickness",Oe=>new de.E9(-15,4+1.5*Oe))),Re(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Oe=>Oe===2),new de.KX("width","thickness",Oe=>7+3*Oe),new de.KX("height","thickness",Oe=>7+3*Oe),new de.KX("segmentOffset","thickness",Oe=>new de.E9(-15,4+1.5*Oe))),Re(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.linkTemplate.selectionAdornmentTemplate=Re(de.uz,Re(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ce(2)},new de.KX("pathPattern","thickness",Ce)),_n({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ce(Oe){return Re(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Oe+4).toString()+" H3"})}function lt(Oe){var tt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Oe===0?tt="M0 0 M16 16 M0 8 L16 8":Oe===2&&(tt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Re(de.bn,{geometryString:tt,margin:2,background:"transparent",mouseEnter:(rt,dt)=>dt.background="dodgerblue",mouseLeave:(rt,dt)=>dt.background="transparent",click:ln("dir",Oe),contextClick:ln("dir",Oe)})}function mt(Oe){var tt=(rt,dt)=>{rt.handled=!0,rt.diagram.model.commit(vt=>{var Ft=dt.part.adornedPart;vt.set(Ft.data,Oe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Oe?Ft.toNode:Ft.fromNode).invalidateConnectedLinks()})};return Re(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(rt,dt)=>dt.background="dodgerblue",mouseLeave:(rt,dt)=>dt.background="transparent",click:tt,contextClick:tt})}function st(Oe,tt){var rt=0,dt=de.z6.RightSide;Oe.equals(de.z6.Top)?(rt=270,dt=de.z6.TopSide):Oe.equals(de.z6.Left)?(rt=180,dt=de.z6.LeftSide):Oe.equals(de.z6.Bottom)&&(rt=90,dt=de.z6.BottomSide),tt||(rt-=180);var vt=(Ft,ct)=>{Ft.handled=!0,Ft.diagram.model.commit(Zt=>{var Xt=ct.part.adornedPart;Zt.set(Xt.data,tt?"toSpot":"fromSpot",de.z6.stringify(dt)),(tt?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return Re(de.bn,{alignment:Oe,alignmentFocus:Oe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:rt,background:"transparent",mouseEnter:(Ft,ct)=>ct.background="dodgerblue",mouseLeave:(Ft,ct)=>ct.background="transparent",click:vt,contextClick:vt})}ue.current.linkTemplate.contextMenu=Re("ContextMenu",ve(),Ie(),Re("ContextMenuButton",Re(de.s_,"Horizontal",lt(0),lt(1),lt(2))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Re(de.s_,"Spot",mt(!1),st(de.z6.Top,!1),st(de.z6.Left,!1),st(de.z6.Right,!1),st(de.z6.Bottom,!1)),Re(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},mt(!0),st(de.z6.Top,!0),st(de.z6.Left,!0),st(de.z6.Right,!0),st(de.z6.Bottom,!0)))));const Be=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var kt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Qt(Oe){return console.log("shapeName:",Oe),kt.indexOf(Oe)>=0}var bn=new de.YI(it.current,{maxSelectionCount:1,linkTemplate:Re(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Re(de.uz,"Link",{locationSpot:de.z6.Center},Re(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Re(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Re(de.bn,{isPanelMain:!0,strokeWidth:2}),Re(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Oe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Oe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Oe){var tt;const rt=Oe.subject.part;var dt=(tt=document.activeElement)==null?void 0:tt.value;typeof dt=="string"&&dt.trim()===""&&ue.current.model.commit(function(vt){vt.set(rt.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=Re(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Re(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Re(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ue.current.grid=Re(de.s_,"Grid",Re(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Re(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ue.current.grid.visible=!0,ue.current.grid.gridCellStroke="darkgray",ue.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ue.current,ue.current}const An=()=>Dt(this,null,function*(){var Re=ue.current.makeImage();const At=yield(0,Jt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Re.src}});Se({src:At.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{en()},500),Nt(pt+1),()=>{ue.current=null}),[]),Ot.createElement("div",{ref:It,className:at.current?`${Ct.maxH60} body-overflow-initial`:"body-overflow-initial"},Ot.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ot.createElement(we.Z,null,Ot.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ot.createElement(Pt.Z,{onClick:()=>{var Re,At,Fn=ue.current.selection.first();if(at.current=!at.current,document.activeElement&&Fn){let _n=(At=(Re=document.activeElement)==null?void 0:Re.value)==null?void 0:At.trim();typeof _n=="string"&&ue.current.model.commit(function(ln){ln.set(Fn.data,"text",_n||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}Nt(pt+1)}},Ot.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Ot.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ct.flowChartWrp},Ot.createElement("div",{style:{display:"flex",height:"100%"}},Ot.createElement("div",{style:{width:"300px",height:"100%"}},Ot.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ot.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ct.myPaletteDiv,ref:it})),Ot.createElement("div",{style:{flex:1,position:"relative"}},Ot.createElement("div",{ref:He,style:{height:"80vh"}}))),Ot.createElement("div",{className:"tr"},Ot.createElement(Ge.ZP,{size:"large",onClick:An,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var jt=un,Gn=ge(5112),xn=ge(5871);const dn=Gn.ZP.Group,In={margin:"0 8px"};var Kt=({callback:ce,onCancel:Se})=>{function ue(He){ce(He)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ue},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:In},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:In},"\u884C\u6570"),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(xn.Z,null)),ae.createElement("span",{style:In},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(xn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:In},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(dn,null,ae.createElement(Gn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Gn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Gn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Gn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},zn=ge(78673),sa=ge(25730),Pa=ge.n(sa),ha=(0,ae.forwardRef)(({use3d:ce,width:Se,height:ue,callback:He,showSaveButton:it},at)=>{const It=(0,ae.useRef)(),pt=(0,ae.useRef)(),[Nt,en]=(0,ae.useState)(!1),An=(0,ae.useRef)({id:It,appName:"graphing",width:Se||1e3,height:ue||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{pt.current=new(Pa())(An.current,!0),window.onload=function(){pt.current.inject("applet_container")}},[]);const Re=()=>{var At=window.ggbApplet.getPNGBase64(1,!0,72);return He&&He(At),At};return(0,ae.useEffect)(()=>{An.current.appName=Nt?"3D":"graphing",pt.current.inject("applet_container")},[Nt]),(0,ae.useEffect)(()=>{en(ce)},[ce]),(0,ae.useImperativeHandle)(at,()=>({getImgData:Re})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:It}),ae.createElement(we.Z,{align:"middle"},ae.createElement(Pt.Z,{flex:1},ae.createElement(zn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nt,onChange:At=>en(At)})),ae.createElement(Pt.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:Re,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qn=ge(88601),he=ge(1012),Ee=ge(8591);const ke="link",Ye="upload-image",nt="add-flowchart",Lt="draw-image",bt="add-flowchart",ft="code-block",wt="add-table",$t="------------",Mt={default:$t,left:`:${$t}`,center:`:${$t}:`,right:`${$t}:`};var Ht=ge(28934),cn=(ce,Se,ue)=>new Promise((He,it)=>{var at=Nt=>{try{pt(ue.next(Nt))}catch(en){it(en)}},It=Nt=>{try{pt(ue.throw(Nt))}catch(en){it(en)}},pt=Nt=>Nt.done?He(Nt.value):Promise.resolve(Nt.value).then(at,It);pt((ue=ue.apply(ce,Se)).next())});function vn(){}let Ln=0;const qt=1e4,Ut="\u2581",Nn="@\u2581\u2581@",yn="@\u2581@",wn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Vt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function kn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const Zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Rn={[Zn+"-B"]:"bold",[Zn+"-I"]:"italic"},Yn={[ke]:"\u6DFB\u52A0\u94FE\u63A5",[ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ye]:"\u6DFB\u52A0\u56FE\u7247",[Lt]:"\u6DFB\u52A0\u753B\u56FE",[nt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Un=({defaultValue:ce="",onChange:Se,width:ue="100%",height:He=400,miniToolbar:it=!1,isFocus:at=!1,watch:It,insertTemp:pt,mode:Nt="markdown",id:en="markdown-editor-id",showResizeBar:An=!1,noStorage:Re=!1,showNullButton:At=!1,showNullProgramButton:Fn=!1,hidetoolBar:_n=!1,fullScreen:ln=!1,onBlur:me,onCMBeforeChange:Le,onFullScreen:ve,className:xe="",disablePaste:Te=!1,disabled:Ie=!1,disabledFill:Ae=!1,placeholder:Ce="",values:lt="",extraUse:mt,onAddBlank:st})=>{const[Be,kt]=(0,ae.useState)(null),[Qt,bn]=(0,ae.useState)(ce),[Oe,tt]=(0,ae.useState)(It),[rt,dt]=(0,ae.useState)(ln),[vt,Ft]=(0,ae.useState)(""),[ct,Zt]=(0,ae.useState)(0),[Xt,Xn]=(0,ae.useState)(He),[qn,jn]=(0,ae.useState)(!1),la=(0,ae.useRef)((0,he.Z)()),ua=(0,ae.useRef)(!1),ma=(0,ae.useRef)(),[aa,Hn]=(0,ae.useState)(0),[Sn,ia]=(0,ae.useState)(0),Kn=(0,ae.useRef)(),ta=(0,ae.useRef)(),Jn=(0,ae.useRef)(),Mn=(0,ae.useRef)(),ca=()=>cn(void 0,null,function*(){var gt;const Xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:la.current}});(gt=Xe==null?void 0:Xe.attachments)!=null&>.length&&(console.log("cm:",Be,Kn),Xe.attachments.map(qe=>{qe.content_type.indexOf("image")>-1?Be.replaceSelection(``):qe.content_type.indexOf("video")>-1?Be.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):qe.content_type.indexOf("pdf")>-1?Be.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type}&disposition=inline" target="_blank">${qe.name}</a>`):Be.replaceSelection(`[${qe.name}](${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type})`)}))});(0,ae.useEffect)(()=>{const gt=window.scrollY||window.pageYOffset;bn(lt),Be==null||Be.setValue(lt),window.scrollTo(0,gt)},[lt]),(0,ae.useEffect)(()=>{ve==null||ve(rt)},[rt]),(0,ae.useEffect)(()=>{if(Kn.current){let gt=function(qe,ot){var Wt;if(Te){ot.preventDefault();return}const rn=ot.clipboardData;if(rn){const Cn=rn.types.toString(),En=rn.items;if(Cn==="Files"||rn.types.indexOf("Files")>-1){if(ot.preventDefault(),Nt=="stex")return;try{let On=En[1];((Wt=En[0])==null?void 0:Wt.kind)==="file"&&(On=En[0]);const Tn=On.getAsFile(),ea=Tn.name.split(".").pop();(0,fe.I)(Tn,St=>{var Rt,nn,Gt;St.id?((Rt=Tn==null?void 0:Tn.type)==null?void 0:Rt.indexOf("image"))>-1?Xe.replaceSelection(`<img width="100%" src="/api/attachments/${St.id}?type=${St.content_type})" alt="" />`):((nn=Tn==null?void 0:Tn.type)==null?void 0:nn.indexOf("video"))>-1?Xe.replaceSelection(`<video width="100%" controls src="/api/attachments/${St.id}"></video>`):((Gt=Tn==null?void 0:Tn.type)==null?void 0:Gt.indexOf("pdf"))>-1?Xe.replaceSelection(`<a href="/api/attachments/${St.id}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):Vt.includes(ea)?Xe.replaceSelection(`<a href="/api/attachments/${St.id}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):Xe.replaceSelection(`[${Tn.name}](/api/attachments/${St.id}?type=${St.content_type})`):(St==null?void 0:St.status)===401&&(Ee.ZP.warning((St==null?void 0:St.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(On){Ee.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xe=Ve().fromTextArea(Kn.current,{mode:Nt,lineNumbers:!it,lineWrapping:!0,value:ce,autoCloseTags:!Fn,autoCloseBrackets:!0});return Xe.on("keyup",function(qe,ot){ot.keyCode===8&&(qe.getValue()==""?Xe.setOption("placeholder",Ce):Xe.setOption("placeholder",null))}),Xe.on("keydown",function(qe,ot){if(ot.keyCode===8){var Wt=hn(qe);Wt&&ot.preventDefault()}}),at&&Xe.focus(),Xe.on("paste",gt),Xe.on("dragleave",function(qe,ot){ta.current.classList.remove("mouse-hover-md")}),Ie&&Xe.on("beforeChange",function(qe,ot){(ot.origin==="paste"||ot.origin==="+input")&&ot.cancel()}),kt(Xe),()=>{Xe.off("paste",gt)}}},[]);const yt=(0,ae.useCallback)(()=>{if(ta.current)try{}catch(gt){console.log(gt,"---- to set md editor body height")}},[Xt,ta,rt]);(0,ae.useEffect)(()=>{function gt(){let Xe=new Ne.Z(qe=>{for(let ot of qe)(ot.target.offsetHeight>0||ot.target.offsetWidth>0)&&(yt(),Be.setSize("100%","100%"),Be.refresh())});return Xe.observe(Kn.current.parentElement),Xe}if(Be){const Xe=gt();return()=>{var qe,ot;(qe=Kn.current)!=null&&qe.parentElement&&Xe.unobserve((ot=Kn.current)==null?void 0:ot.parentElement)}}},[Be,yt]),(0,ae.useEffect)(()=>{if(Be){let gt=[];for(const[Xe,qe]of Object.entries(Rn)){let ot={[Xe]:()=>{Wn(qe)}};gt.push(ot),Be.addKeyMap(ot)}return ma.current=setInterval(()=>{ua.current&&ca()},4e3),()=>{clearInterval(ma.current);for(let Xe of gt)Be.removeKeyMap(Xe)}}},[Be]),(0,ae.useEffect)(()=>{ln!==rt&&dt(ln)},[ln]),(0,Ht.Z)(()=>{if(!Re&&ct>0){let gt=new Date().getTime(),Xe=window.sessionStorage.getItem(en);gt>=ct+qt&&(!Xe||Xe!==Qt)&&(window.sessionStorage.setItem(en,Qt),jn(!0))}},qt),(0,ae.useEffect)(()=>{tt(It)},[Be,It]),(0,ae.useEffect)(()=>{Be&&at&&Be.focus()},[Be,at]),(0,ae.useEffect)(()=>{if(Oe&&Be){let gt=function(qe){let ot=qe.target;if(Mn.current){let Wt=ot.scrollTop/ot.scrollHeight;Mn.current.scrollTop=Mn.current.scrollHeight*Wt}};const Xe=Be.getScrollerElement();return Xe.addEventListener("scroll",gt),()=>{Xe.removeEventListener("scroll",gt)}}},[Be,Oe]),(0,ae.useEffect)(()=>{if(Be&&Le){let gt=function(Xe,qe){Le(Xe,qe)};return Be.on("beforeChange",gt),()=>{Be.off("beforeChange",gt)}}},[Be,Le]),(0,ae.useEffect)(()=>{if(Be&&me){let gt=function(){me(Be.getValue())};return Be.on("blur",gt),()=>{Be.off("blur",gt)}}},[Be,me]);function hn(gt,Xe){var qe=gt.getDoc(),ot=qe.getCursor(),Wt=qe.getLine(ot.line),rn=Wt.charAt(ot.ch-1),Cn=Wt.lastIndexOf("@\u2581@",ot.ch),En=Wt.lastIndexOf("@\u2581\u2581@",ot.ch),On=Cn>En?Cn:En,Tn=Cn>En?3:4;if(Nn.indexOf(rn)===-1)return null;if(console.log("change1:",Xe,gt,Wt,ot,On,Cn,En,rn),On>=0&&ot.ch-On<5){var ea=On+Tn;return qe.replaceRange("",{line:ot.line,ch:On},{line:ot.line,ch:ea}),{line:ot.line,ch:ea}}return null}(0,ae.useEffect)(()=>{if(Be){let gt=function(Xe,qe){const ot=Xe.getValue();bn(ot),Zt(new Date().getTime()),Xe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Se&&(Fn?Se(ot,na(ot)):Se(ot))};return Be.on("change",gt),()=>{Be.off("change",gt)}}},[Be,Se]),(0,ae.useEffect)(()=>{if(Be)if(ce==null)Be.setValue(""),bn("");else{const gt=window.scrollY||window.pageYOffset;ce!==Be.getValue()&&(Be.setValue(ce),bn(ce),Be.setCursor(Ie?1:Be.lineCount(),0),window.scrollTo(0,gt))}},[Be,ce]);const Wn=(0,ae.useCallback)(gt=>{const Xe=Be.getCursor(),qe=Be.getSelection();let ot=qe.split(`
|
|
`);switch(gt){case"bold":return Be.replaceSelection("**"+qe+"**"),qe===""&&Be.setCursor(Xe.line,Xe.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+qe+"*"),qe===""&&Be.setCursor(Xe.line,Xe.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+qe+"`"),qe===""&&Be.setCursor(Xe.line,Xe.ch+1),Be.focus();case"inline-latex":return Ft("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+qe+"\n```"),Be.setCursor(Xe.line+1,qe.length+1),Be.focus();case"line-break":return Be.replaceSelection(`<br/>
|
|
`),Be.focus();case"list-ul":return qe===""?Be.replaceSelection("- "+qe):Be.replaceSelection(ot.map(Wt=>Wt===""?"":`- ${Wt}`).join(`
|
|
`)),Be.focus();case"list-ol":return qe===""?Be.replaceSelection("1. "+qe):Be.replaceSelection(ot.map((Wt,rn)=>Wt===""?"":`${rn+1}. ${Wt}`).join(`
|
|
`)),Be.focus();case"add-null-ch":st==null||st();return;case"add-signal":return qe===""&&Be.setCursor(Xe.line,Xe.ch),Be.replaceSelection(yn),Be.focus();case"add-multiple":return qe===""&&Be.setCursor(Xe.line,Xe.ch),Be.replaceSelection(Nn),Be.focus();case"inster-template-1":return qe===""&&Be.setCursor(Xe.line,Xe.ch),Be.replaceSelection(wn),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return tt(!Oe),Be.focus();case"trigger-full-screen":return dt(!rt),Be.focus();case ke:Ft(ke);return;case ft:Ft(ft);return;case Ye:Ft(Ye);return;case Lt:Ft(Lt);return;case"maths-latex":Ft("maths-latex");return;case nt:Ft(nt);return;case wt:Ft(wt);return;default:throw new Error}},[Be,Oe,rt]),mn=(0,ae.useCallback)((gt,Xe)=>{var qe,ot,Wt,rn,Cn,En;switch(Ft(""),vt){case ke:const{title:Rt,link:nn}=gt;return Be.replaceSelection(`[${Rt}](${nn})`),Be.focus();case ft:const{language:Gt,content:an}=gt;return Be.replaceSelection(["```"+Gt,an,"```"].join(`
|
|
`)),Be.focus();case"maths-latex":for(var On=atob(gt),Tn=new Uint8Array(On.length),ea=0;ea<On.length;ea++)Tn[ea]=On.charCodeAt(ea);var St=new Blob([Tn],{type:"image/png"});(0,fe.I)(St,ga=>{ga.id?Be.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Be.replaceSelection("`$$"+gt+"$$`");break;case Ye:case Lt:case bt:const{src:Bn,alt:ra}=gt,gn=Xe,da=(Wt=(ot=(qe=gn==null?void 0:gn.name)==null?void 0:qe.split("."))==null?void 0:ot.pop)==null?void 0:Wt.call(ot);return((rn=gn==null?void 0:gn.type)==null?void 0:rn.indexOf("image"))>-1||!(gn!=null&&gn.type)?gn.align||gn.width?Be.replaceSelection(`<p style="text-align:${gn.align||"initial"}"><img width="${gn.width?gn.width+"%":"initial"}" src="${Bn}" alt="${ra||""}" /></p>`):Be.replaceSelection(`<img width="100%" src="${Bn}" alt="${ra||""}" />`):((Cn=gn==null?void 0:gn.type)==null?void 0:Cn.indexOf("video"))>-1?Be.replaceSelection(`<video width="100%" controls src="${Bn}"></video>`):((En=gn==null?void 0:gn.type)==null?void 0:En.indexOf("pdf"))>-1?Be.replaceSelection(`<a href="${Bn}?type=${gn.type}&disposition=inline" target="_blank">${gn.name}</a>`):Vt.includes(da)?Be.replaceSelection(`<a href="${Bn}?type=office&disposition=inline" target="_blank">${gn.name}</a>`):Be.replaceSelection(`[${gn.name}](${Bn})`),Be.focus();case wt:const{row:ba,col:Ba,align:Ga}=gt;let Fa=`
|
|
`;for(let ga=0;ga<ba;ga++){let Ea=[],xa=[];for(let Ca=0;Ca<Ba;Ca++)ga===1&&xa.push(Mt[Ga]),Ea.push(" ");ga===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ea.join(Ba===1?"":" | ")} |
|
|
`}return Be.replaceSelection(Fa+`
|
|
`),Be.focus();default:throw new Error}},[Be,vt]),oa=(0,ae.useMemo)(()=>{switch(vt){case ke:return ae.createElement($n,{callback:mn,onCancel:Dn});case ft:return ae.createElement(pn.Z,{callback:mn,onCancel:Dn});case Ye:return ae.createElement(fe.Z,{callback:mn,onCancel:Dn});case nt:return ae.createElement(jt,{callback:mn,onCancel:Dn});case wt:return ae.createElement(Kt,{callback:mn,onCancel:Dn});case"maths-latex":return ae.createElement(ha,{showSaveButton:!0,callback:mn});case"inline-latex":return ae.createElement(Qn.Z,{showSaveButton:!0,callback:mn});default:return null}},[vt]);function Dn(){Ft("")}(0,ae.useEffect)(()=>{if(Jn.current){let gt=function(Cn){Wt=!0,rn=Cn.pageY},Xe=function(){Wt=!1},qe=function(Cn){if(Wt){let En=Cn.pageY-rn;En<0&&(En=0),En>300&&(En=300);let On=He+En+"px";Xn(On)}},ot=Jn.current,Wt=!1,rn=0;return ot.addEventListener("mousedown",gt),document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Xe),()=>{ot.removeEventListener("mousedown",gt),document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Xe)}}},[Be,Jn]),(0,ae.useEffect)(()=>{Xn(He)},[He]);const fa=kn(ue),Sa=kn(Xt),Pn={width:fa,height:Sa},fn=(0,ae.useMemo)(()=>{if(ct){let gt=new Date(ct),Xe=gt.getHours(),qe=gt.getMinutes(),ot=gt.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,qe=qe<10?"0"+qe:qe,ot=ot<10?"0"+ot:ot,`${Xe}:${qe}:${ot}`}return 0},[ct]),na=gt=>{const Xe=[];if(Fn){let qe=-1;gt=gt.replace(/(@▁▁@|@▁@)/g,function(ot,Wt,rn){Xe.push({multiLine:ot!==yn})})}return Xe};function va(){window.sessionStorage.removeItem(en),jn(!1),Zt(0)}function La(){jn(!1),Zt(0),Be.setValue(window.sessionStorage.getItem(en))}(0,ae.useEffect)(()=>{Yn[vt]&&vt!==Lt&&vt!==nt&&setTimeout(()=>{const gt=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-gt.offsetWidth/2,qe=window.innerHeight/2-gt.offsetHeight/2;Hn(Xe),ia(qe)},0)},[vt]);const ya=gt=>{gt.preventDefault();const Xe=gt.clientX-aa,qe=gt.clientY-Sn;document.body.onmousemove=ot=>{let Wt=ot.clientX-Xe,rn=ot.clientY-qe;const Cn=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth-Cn.offsetWidth,On=window.innerHeight-Cn.offsetHeight;Wt=Math.max(0,Math.min(Wt,En)),rn=Math.max(0,Math.min(rn,On)),wa(ot.clientX,ot.clientY,Xe,qe)&&(Hn(Wt),ia(rn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(gt,Xe,qe,ot)=>{const Wt=document.body.clientHeight,rn=document.body.clientWidth;return gt<20&&qe>gt||gt>rn-20&&qe<gt||Xe<20&&ot>Xe||Xe>Wt-20&&ot<Xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ta},ae.createElement("div",{className:`markdown-editor-container ${xe} ${Oe?"on-preview":""} ${it?"mini":""} ${rt?"full-screen":""}`,style:Pn},ae.createElement(ie,{insertTemp:pt,watch:Oe,fullScreen:rt,showNullButton:At,showNullProgramButton:Fn,onActionCallback:Wn,hidetoolBar:_n,extraUse:mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Kn,placeholder:Ce})),Oe?ae.createElement("div",{ref:Mn,className:"preview-container"},Nt==="stex"&&ae.createElement(Qe,{value:Qt}),Nt!=="stex"&&ae.createElement(Ze.Z,{disabledFill:Ae,showProgramFill:Fn,value:Qt})):null))),An?ae.createElement("a",{ref:Jn,className:"editor-resize"}):null,vt===Lt&&ae.createElement(Je,{callback:mn,onCancel:Dn}),vt===nt&&ae.createElement(jt,{callback:mn,onCancel:Dn}),ae.createElement(Pe.Z,null,Yn[vt]&&vt!==Lt&&vt!==nt?ae.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:aa,top:Sn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},Yn[vt]),open:!0,onCancel:Dn,footer:null,destroyOnClose:!0,width:vt===nt?"1200px":null,height:vt===nt?"80vh":null,className:"markdown-popup-form"},oa):null))}},76021:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return re},I:function(){return Pe}});var ae=ge(78241),Me=ge(8591),Ve=ge(92832),Ne=ge(81327),pe=ge(5871),ye=ge(5112),le=ge(3113),_e=ge(82977),$e=ge(59301),je=ge(53229),Ze=ge(59301),Qe=Object.defineProperty,Ke=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,ze,Ge)=>ze in se?Qe(se,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):se[ze]=Ge,x=(se,ze)=>{for(var Ge in ze||(ze={}))y.call(ze,Ge)&&b(se,Ge,ze[Ge]);if(a)for(var Ge of a(ze))E.call(ze,Ge)&&b(se,Ge,ze[Ge]);return se},z=(se,ze)=>Ke(se,ne(ze));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:se,onCancel:ze})=>{const[Ge]=ee();let ut=(0,$e.useRef)();function zt(Bt){ut.current.width=Ge.getFieldValue("width"),ut.current.align=Ge.getFieldValue("align"),se(Bt,ut.current)}function Yt(Bt,Et){if(Bt.status===-1){Me.ZP.error(Bt.message);return}Ge.setFieldsValue({src:`/api/attachments/${Bt.id}`,type:Et.type})}function Tt(Bt){let Et=Bt.target.files[0];ut.current=Et,Pe(Et,Yt)}return Ze.createElement(ae.default,z(x({form:Ge},oe),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),Ze.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ze.createElement("div",{className:"flex-container"},Ze.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ze.createElement(Ve.default,{style:te})),Ze.createElement(ie,{onFileChange:Tt}))),Ze.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ze.createElement(Ve.default,{style:{width:264}})),Ze.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ze.createElement(Ne.Z,null,Ze.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ze.createElement(pe.Z,{style:{width:264}})),Ze.createElement("span",{className:"ml8"},"%"))),Ze.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ze.createElement(ye.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ze.createElement("aside",null,Ze.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ze.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(le.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return Ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ze.createElement("input",{type:"file",onChange:se}))}function Pe(se,ze){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,je.bg)())throw Me.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",se),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(zt){ze(JSON.parse(zt.target.responseText),se)},!1),ut.addEventListener("error",function(zt){console.error(zt)},!1),ut.open("POST",`${_e.KI}/api/attachments.json`),ut.send(Ge)}},44991:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Ve}});var ae=ge(59301),Me=ge(4676);class Ve extends ae.Component{constructor(pe){super(pe);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:pe}=this.props;return(0,Me.createPortal)(pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Me}});var ae=ge(59301);function Me(Ve,Ne){const pe=(0,ae.useRef)();(0,ae.useEffect)(()=>{pe.current=Ve}),(0,ae.useEffect)(()=>{function ye(){pe.current()}if(Ne!==null){let le=setInterval(ye,Ne);return()=>clearInterval(le)}},[Ne])}},97525:function(Fe,et,ge){"use strict";ge.r(et),ge.d(et,{default:function(){return De}});var ae=ge(59301),Me=ge(71418),Ve=ge(126),Ne=ge(75790),pe=ge(24905),ye=ge(54580),le=ge(78241),_e=ge(8591),$e=ge(43418),je=ge(92832),Ze=ge(3113),Qe=ge(61481),Ke=ge(49647),ne=ge(48551),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(we,We,be)=>We in we?a(we,We,{enumerable:!0,configurable:!0,writable:!0,value:be}):we[We]=be,te=(we,We)=>{for(var be in We||(We={}))x.call(We,be)&&ee(we,be,We[be]);if(b)for(var be of b(We))z.call(We,be)&&ee(we,be,We[be]);return we},oe=(we,We)=>y(we,E(We)),re=(we,We)=>{var be={};for(var Je in we)x.call(we,Je)&&We.indexOf(Je)<0&&(be[Je]=we[Je]);if(we!=null&&b)for(var Je of b(we))We.indexOf(Je)<0&&z.call(we,Je)&&(be[Je]=we[Je]);return be};const ie=pe.default.Group,{Dragger:Pe}=ye.default;function se(we,We){const be=new FileReader;be.addEventListener("load",()=>We(be.result)),be.readAsDataURL(we)}var ze=({callback:we,tags:We=[],initialValues:be={},removeAttachment:Je})=>{const[de,Ue]=(0,ae.useState)(""),[ht]=le.default.useForm();function _t(Dt){const un=Dt,{cover_id:jt,attachment_ids:Gn}=un,xn=re(un,["cover_id","attachment_ids"]);we(oe(te({},xn),{cover_id:jt==null?void 0:jt.map(dn=>dn.response?dn.response.id:dn.uid)[(jt==null?void 0:jt.length)-1],attachment_ids:Gn?Gn==null?void 0:Gn.map(dn=>dn.response?dn.response.id:dn.uid):[]}))}function Pt(Dt){return Array.isArray(Dt)?Dt:Dt&&Dt.fileList}const Jt={multiple:!0,beforeUpload:Dt=>{const un=Dt.size/1024/1024<100;if(!un)return _e.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(100MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),un},action:`${Ke.Z.API_SERVER}/api/attachments.json`,onRemove:Dt=>{$e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Je(Dt.response?Dt.response.id:Dt.uid),onCancel:()=>!1})}};function Ct(Dt){Dt.file.status==="done"&&se(Dt.file.originFileObj,un=>Ue(un))}const Ot={showUploadList:!1,withCredentials:!0,action:`${Ke.Z.API_SERVER}/api/attachments.json`,onChange:Ct};return(0,ae.useEffect)(()=>{be.title&&(ht.setFieldsValue(be),be.cover_id.length>0&&Ue(Ke.Z.IMG_SERVER+be.cover_id[0].url))},[be]),ae.createElement(le.default,{form:ht,initialValues:be,className:"moop-panel",style:{marginBottom:20},onFinish:_t},ae.createElement(le.default.Item,{label:"\u6807\u9898",name:"title",extra:ae.createElement("div",{className:"tip"},"\u7B80\u660E\u627C\u8981\u4ECB\u7ECD\u6587\u6863/\u89C6\u9891\u6240\u5305\u542B\u7684\u4E3B\u8981\u7684\u5185\u5BB9"),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(je.default,{placeholder:"\u4F8B\u5982\uFF1A\u8F6F\u4EF6\u5DE5\u7A0B\u6559\u5B66\u6848\u4F8B"})),ae.createElement("div",{className:"flex-container"},ae.createElement(le.default.Item,{label:"\u4F5C\u8005",name:"author_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u540D\u79F0"}]},ae.createElement(je.default,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",style:{marginRight:20,width:200}})),ae.createElement(le.default.Item,{name:"author_school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0"}]},ae.createElement(je.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0",style:{width:200}}))),ae.createElement(le.default.Item,{name:"tag_ids",label:"\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u6807\u7B7E"}]},ae.createElement(ie,null,We.map(Dt=>ae.createElement(pe.default,{key:Dt.id,value:Dt.id}," ",Dt.name," ")))),ae.createElement(le.default.Item,{name:"publish",valuePropName:"checked"},ae.createElement(pe.default,null,"\u662F\u5426\u7533\u8BF7\u53D1\u5E03")),ae.createElement(le.default.Item,{name:"content",label:"\u63CF\u8FF0",valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ae.createElement(ne.Z,{id:"moop_cases_content",height:400})),ae.createElement(le.default.Item,{name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Pt},ae.createElement(Pe,te({},Jt),ae.createElement("p",{className:"c-blue",style:{marginBottom:10,fontSize:18}},"\u4E0A\u4F20\u9644\u4EF6"),ae.createElement("p",{className:"c-grey-c"},"\u4ECE\u6211\u7684\u7535\u8111\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u6863\uFF1A\u6309\u4F4FCTRL\u53EF\u4EE5\u4E0A\u4F20\u591A\u4EFD\u6587\u6863\u3002\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\uFF1A100MB"))),ae.createElement(le.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE",extra:"\u4E0A\u4F20\u5C3A\u5BF8\uFF1A120*90 px",getValueFromEvent:Pt,valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE"}]},ae.createElement(ye.default,te({},Ot),de?ae.createElement("img",{src:de,width:120}):ae.createElement("a",{title:"\u4E0A\u4F20\u5C01\u9762\u56FE",className:"upload-cover"}," ",ae.createElement(Qe.Z,null)," "))),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u5BA1\u6838\u8BF4\u660E"),ae.createElement("p",null," \u5E73\u53F0\u7BA1\u7406\u5458\u5C06\u5BF9\u6BCF\u5929\u65B0\u4E0A\u4F20\u7684\u6587\u6863\u8FDB\u884C\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u7684\u6587\u6863\u5C06\u516C\u5F00\u663E\u793A\uFF0C\u5426\u5219\u5C06\u79C1\u6709\u5316\u6216\u79FB\u9664 ")),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u6E29\u99A8\u63D0\u793A"),ae.createElement("ul",{style:{padding:0}},ae.createElement("li",null,"1.\u8BF7\u52FF\u4E0A\u4F20\u5DF2\u8BBE\u7F6E\u52A0\u5BC6\u53E3\u4EE4\u7684\u6587\u6863\u8D44\u6E90\uFF1B"),ae.createElement("li",null,"2.\u53EF\u4EE5\u4E0A\u4F20\u7B26\u5408\u6559\u5B66\u6848\u4F8B\u6807\u51C6\u7684\u6587\u6863\u8D44\u6599\uFF0C\u5982",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34799",target:"_blank"}," \u6848\u4F8B\u5165\u5E93\u6807\u51C6 ")," \u3001",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34798",target:"_blank"},"\u6848\u4F8B\u4F7F\u7528\u8BF4\u660E\u4E66"),"\u4EE5\u53CA\u5176\u4ED6\u8D44\u6599\u7B49\uFF0C\u4E0A\u4F20\u652F\u6301\u7684\u6587\u4EF6\u6700\u5927\u5BB9\u91CF\uFF1A100MB\uFF1B"),ae.createElement("li",null,"3.\u8BF7\u786E\u4FDD\u4E0A\u4F20\u5185\u5BB9\u65E0\u4FB5\u6743\u6216\u8FDD\u53CD\u56FD\u5BB6\u5173\u4E8E\u4E92\u8054\u7F51\u653F\u7B56\u7684\u4E0D\u826F\u884C\u4E3A\uFF1B"),ae.createElement("li",null,"4.\u8BF7\u4F7F\u7528Chrome\uFF0CFirefox\uFF0CSafari\uFF0CIE11\uFF08\u53CA\u4EE5\u4E0A\u7248\u672C\uFF09\u6D4F\u89C8\u5668\uFF1B"))),ae.createElement(le.default.Item,{style:{marginTop:10}},ae.createElement(Ze.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4")))},Ge=ge(90278),ut=Object.defineProperty,zt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,sn=(we,We,be)=>We in we?ut(we,We,{enumerable:!0,configurable:!0,writable:!0,value:be}):we[We]=be,tn=(we,We)=>{for(var be in We||(We={}))Bt.call(We,be)&&sn(we,be,We[be]);if(Tt)for(var be of Tt(We))Et.call(We,be)&&sn(we,be,We[be]);return we},xt=(we,We)=>zt(we,Yt(We)),on=(we,We,be)=>new Promise((Je,de)=>{var Ue=Pt=>{try{_t(be.next(Pt))}catch(Jt){de(Jt)}},ht=Pt=>{try{_t(be.throw(Pt))}catch(Jt){de(Jt)}},_t=Pt=>Pt.done?Je(Pt.value):Promise.resolve(Pt.value).then(Ue,ht);_t((be=be.apply(we,We)).next())});const $n={loading:!1,data:{},tags:[]};var pn=(we=>(we[we.GET_DATA=0]="GET_DATA",we[we.SET_LOADING=1]="SET_LOADING",we[we.GET_TAGS=2]="GET_TAGS",we))(pn||{});function fe(we,We){switch(We.type){case 0:return tn(tn({},we),We.payload);case 2:return xt(tn({},we),{tags:We.payload});case 1:return xt(tn({},we),{loading:We.payload});default:throw new Error}}var De=()=>{const{caseId:we}=(0,Ne.useParams)(),[We,be]=(0,ae.useReducer)(fe,$n),{loading:Je,tags:de,data:Ue}=We;(0,ae.useEffect)(()=>{function Pt(){return on(this,null,function*(){const Jt=yield(0,Ge.rO)({tab_module_type:"moop_cases"});Jt.un_purchased&&be({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),be({type:2,payload:Jt.library_tags})})}Pt()},[]),(0,ae.useEffect)(()=>{let Pt=!1;function Jt(){return on(this,null,function*(){be({type:1,payload:!1});let Ct=yield(0,Ge.$J)(we);const{author_name:Ot,author_school_name:Dt,content:un,cover:jt,attachments:Gn,status:xn,title:dn,tags:In}=Ct;Pt||(Ct.status===404?Ne.history.push("/moop_cases"):be({type:0,payload:{data:{title:dn,author_name:Ot,author_school_name:Dt,content:un,tag_ids:In.map(Kt=>Kt.id),publish:xn==="published",attachment_ids:Gn.map(Kt=>({uid:Kt.id,id:Kt.id,name:Kt.title,url:Kt.url,filesize:Kt.filesize,status:"done"})),cover_id:jt!=null&&jt.id?[{uid:jt==null?void 0:jt.id,id:jt==null?void 0:jt.id,name:jt==null?void 0:jt.title,url:jt==null?void 0:jt.url,filesize:jt==null?void 0:jt.filesize,status:"done"}]:[]},loading:!1}}))})}return!Pt&&we&&Jt(),()=>{Pt=!0}},[we]);function ht(Pt){return on(this,null,function*(){if(we)yield(0,Ge.bN)(we,Pt),Ne.history.push(`/moop_cases/${we}/publish-success`);else{const{id:Jt}=yield(0,Ge.jP)(Pt);Jt&&Ne.history.push(`/moop_cases/${Jt}/publish-success`)}})}const _t={initialValues:Ue,tags:de,removeAttachment:Ge.JZ,callback:ht};return ae.createElement(Me.Z,{spinning:Je,delay:500},ae.createElement("div",{className:"moop-info"},ae.createElement("div",{className:"crumb"},ae.createElement(Ne.Link,{to:"/moop_cases"},"\u6559\u5B66\u6848\u4F8B > "),ae.createElement("span",null,"\u65B0\u5EFA")),ae.createElement("div",{className:"title"},ae.createElement("h2",null,"\u4E0A\u4F20\u6559\u5B66\u6848\u4F8B"),ae.createElement(Ne.Link,{to:"/moop_cases"},"\u8FD4\u56DE")),ae.createElement(ze,tn({},_t))))}},90278:function(Fe,et,ge){"use strict";ge.d(et,{$J:function(){return Ve},JZ:function(){return pe},bN:function(){return le},jP:function(){return ye},rO:function(){return Ne}});var ae=ge(98280),Me=(_e,$e,je)=>new Promise((Ze,Qe)=>{var Ke=y=>{try{a(je.next(y))}catch(E){Qe(E)}},ne=y=>{try{a(je.throw(y))}catch(E){Qe(E)}},a=y=>y.done?Ze(y.value):Promise.resolve(y.value).then(Ke,ne);a((je=je.apply(_e,$e)).next())});function Ve(_e){return(0,ae.U2)(`libraries/${_e}.json`)}function Ne(_e){return(0,ae.U2)("library_tags.json",_e)}function pe(_e){return Me(this,null,function*(){return(yield(0,ae.IV)(`attachments/${_e}.json`)).status===0})}function ye(_e){return(0,ae.v_)("libraries.json",_e)}function le(_e,$e){return(0,ae.gz)(`libraries/${_e}.json`,$e)}},56762:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Me}});var ae=ge(59301);function Me(){const[,Ve]=ae.useReducer(Ne=>Ne+1,0);return Ve}},24905:function(Fe,et,ge){"use strict";ge.d(et,{default:function(){return re}});var ae=ge(92310),Me=ge.n(ae),Ve=ge(5630),Ne=ge(59301),pe=ge(36355),ye=ge(1684),le=ge(32441),$e=Ne.createContext(null),je=ge(98447),Ze=ge(14088),Qe=ge(4572),Ke=function(ie,Pe){var se={};for(var ze in ie)Object.prototype.hasOwnProperty.call(ie,ze)&&Pe.indexOf(ze)<0&&(se[ze]=ie[ze]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,ze=Object.getOwnPropertySymbols(ie);Ge<ze.length;Ge++)Pe.indexOf(ze[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ie,ze[Ge])&&(se[ze[Ge]]=ie[ze[Ge]]);return se};const ne=(ie,Pe)=>{var se;const{prefixCls:ze,className:Ge,rootClassName:ut,children:zt,indeterminate:Yt=!1,style:Tt,onMouseEnter:Bt,onMouseLeave:Et,skipGroup:sn=!1,disabled:tn}=ie,xt=Ke(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:on,direction:$n,checkbox:pn}=Ne.useContext(pe.E_),fe=Ne.useContext($e),{isFormItemInput:De}=Ne.useContext(le.aM),we=Ne.useContext(ye.Z),We=(se=(fe==null?void 0:fe.disabled)||tn)!==null&&se!==void 0?se:we,be=Ne.useRef(xt.value);Ne.useEffect(()=>{fe==null||fe.registerValue(xt.value)},[]),Ne.useEffect(()=>{if(!sn)return xt.value!==be.current&&(fe==null||fe.cancelValue(be.current),fe==null||fe.registerValue(xt.value),be.current=xt.value),()=>fe==null?void 0:fe.cancelValue(xt.value)},[xt.value]);const Je=on("checkbox",ze),[de,Ue]=(0,je.ZP)(Je),ht=Object.assign({},xt);fe&&!sn&&(ht.onChange=function(){xt.onChange&&xt.onChange.apply(xt,arguments),fe.toggleOption&&fe.toggleOption({label:zt,value:xt.value})},ht.name=fe.name,ht.checked=fe.value.includes(xt.value));const _t=Me()(`${Je}-wrapper`,{[`${Je}-rtl`]:$n==="rtl",[`${Je}-wrapper-checked`]:ht.checked,[`${Je}-wrapper-disabled`]:We,[`${Je}-wrapper-in-form-item`]:De},pn==null?void 0:pn.className,Ge,ut,Ue),Pt=Me()({[`${Je}-indeterminate`]:Yt},Qe.A,Ue),Jt=Yt?"mixed":void 0;return de(Ne.createElement(Ze.Z,{component:"Checkbox",disabled:We},Ne.createElement("label",{className:_t,style:Object.assign(Object.assign({},pn==null?void 0:pn.style),Tt),onMouseEnter:Bt,onMouseLeave:Et},Ne.createElement(Ve.Z,Object.assign({"aria-checked":Jt},ht,{prefixCls:Je,className:Pt,disabled:We,ref:Pe})),zt!==void 0&&Ne.createElement("span",null,zt))))};var y=Ne.forwardRef(ne),E=ge(94480),b=ge(2738),x=function(ie,Pe){var se={};for(var ze in ie)Object.prototype.hasOwnProperty.call(ie,ze)&&Pe.indexOf(ze)<0&&(se[ze]=ie[ze]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,ze=Object.getOwnPropertySymbols(ie);Ge<ze.length;Ge++)Pe.indexOf(ze[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ie,ze[Ge])&&(se[ze[Ge]]=ie[ze[Ge]]);return se};const z=(ie,Pe)=>{const{defaultValue:se,children:ze,options:Ge=[],prefixCls:ut,className:zt,rootClassName:Yt,style:Tt,onChange:Bt}=ie,Et=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:sn,direction:tn}=Ne.useContext(pe.E_),[xt,on]=Ne.useState(Et.value||se||[]),[$n,pn]=Ne.useState([]);Ne.useEffect(()=>{"value"in Et&&on(Et.value||[])},[Et.value]);const fe=Ne.useMemo(()=>Ge.map(Ct=>typeof Ct=="string"||typeof Ct=="number"?{label:Ct,value:Ct}:Ct),[Ge]),De=Ct=>{pn(Ot=>Ot.filter(Dt=>Dt!==Ct))},we=Ct=>{pn(Ot=>[].concat((0,E.Z)(Ot),[Ct]))},We=Ct=>{const Ot=xt.indexOf(Ct.value),Dt=(0,E.Z)(xt);Ot===-1?Dt.push(Ct.value):Dt.splice(Ot,1),"value"in Et||on(Dt),Bt==null||Bt(Dt.filter(un=>$n.includes(un)).sort((un,jt)=>{const Gn=fe.findIndex(dn=>dn.value===un),xn=fe.findIndex(dn=>dn.value===jt);return Gn-xn}))},be=sn("checkbox",ut),Je=`${be}-group`,[de,Ue]=(0,je.ZP)(be),ht=(0,b.Z)(Et,["value","disabled"]),_t=Ge.length?fe.map(Ct=>Ne.createElement(y,{prefixCls:be,key:Ct.value.toString(),disabled:"disabled"in Ct?Ct.disabled:Et.disabled,value:Ct.value,checked:xt.includes(Ct.value),onChange:Ct.onChange,className:`${Je}-item`,style:Ct.style,title:Ct.title},Ct.label)):ze,Pt={toggleOption:We,value:xt,disabled:Et.disabled,name:Et.name,registerValue:we,cancelValue:De},Jt=Me()(Je,{[`${Je}-rtl`]:tn==="rtl"},zt,Yt,Ue);return de(Ne.createElement("div",Object.assign({className:Jt,style:Tt},ht,{ref:Pe}),Ne.createElement($e.Provider,{value:Pt},_t)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var re=oe},98447:function(Fe,et,ge){"use strict";ge.d(et,{C2:function(){return pe}});var ae=ge(17313),Me=ge(37613),Ve=ge(83116);const Ne=ye=>{const{checkboxCls:le}=ye,_e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ae.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ae.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ae.oN)(ye))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
|
|
${_e}:not(${_e}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:ye.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
|
|
${_e}-checked:not(${_e}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:ye.colorTextDisabled}}}]};function pe(ye,le){const _e=(0,Me.TS)(le,{checkboxCls:`.${ye}`,checkboxSize:le.controlInteractiveSize});return[Ne(_e)]}et.ZP=(0,Ve.Z)("Checkbox",(ye,le)=>{let{prefixCls:_e}=le;return[pe(_e,ye)]})},93948:function(Fe,et,ge){"use strict";ge.d(et,{Z:function(){return Qn}});var ae=ge(59301),Me=ge(29679),Ve=ge(40001),Ne=ge(19248),pe=ge(99267),ye=ge(92310),le=ge.n(ye),_e=ge(2738),$e=ge(36355),je=ge(54476),Ze=ge(33885),Qe=ge(75931),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ee=(0,ae.useRef)([]),ke=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ye=Date.now(),nt=!1;Ee.current.forEach(function(Lt){if(Lt){nt=!0;var bt=Lt.style;bt.transitionDuration=".3s, .3s, .3s, .06s",ke.current&&Ye-ke.current<100&&(bt.transitionDuration="0s, 0s")}}),nt&&(ke.current=Date.now())}),Ee.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ee){var ke=(0,Ze.Z)((0,Ze.Z)({},Ke),Ee),Ye=ke.className,nt=ke.percent,Lt=ke.prefixCls,bt=ke.strokeColor,ft=ke.strokeLinecap,wt=ke.strokeWidth,$t=ke.style,Mt=ke.trailColor,Ht=ke.trailWidth,cn=ke.transition,vn=(0,Qe.Z)(ke,a);delete vn.gapPosition;var Ln=Array.isArray(nt)?nt:[nt],qt=Array.isArray(bt)?bt:[bt],Ut=ne(),Nn=wt/2,yn=100-wt/2,wn="M ".concat(ft==="round"?Nn:0,",").concat(Nn,`
|
|
L `).concat(ft==="round"?yn:100,",").concat(Nn),Vt="0 0 100 ".concat(wt),kn=0;return ae.createElement("svg",(0,je.Z)({className:le()("".concat(Lt,"-line"),Ye),viewBox:Vt,preserveAspectRatio:"none",style:$t},vn),ae.createElement("path",{className:"".concat(Lt,"-line-trail"),d:wn,strokeLinecap:ft,stroke:Mt,strokeWidth:Ht||wt,fillOpacity:"0"}),Ln.map(function(Vn,Zn){var Rn=1;switch(ft){case"round":Rn=1-wt/100;break;case"square":Rn=1-wt/2/100;break;default:Rn=1;break}var Yn={strokeDasharray:"".concat(Vn*Rn,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Un=qt[Zn]||qt[qt.length-1];return kn+=Vn,ae.createElement("path",{key:Zn,className:"".concat(Lt,"-line-path"),d:wn,strokeLinecap:ft,stroke:Un,strokeWidth:wt,fillOpacity:"0",ref:function(Se){Ut[Zn]=Se},style:Yn})}))},E=y,b=ge(76190),x=ge(42978),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var re=function(he){var Ee=ae.useState(),ke=(0,x.Z)(Ee,2),Ye=ke[0],nt=ke[1];return ae.useEffect(function(){nt("rc_progress_".concat(oe()))},[]),he||Ye},ie=function(Ee){var ke=Ee.bg,Ye=Ee.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:ke}},Ye)};function Pe(he,Ee){return Object.keys(he).map(function(ke){var Ye=parseFloat(ke),nt="".concat(Math.floor(Ye*Ee),"%");return"".concat(he[ke]," ").concat(nt)})}var se=ae.forwardRef(function(he,Ee){var ke=he.prefixCls,Ye=he.color,nt=he.gradientId,Lt=he.radius,bt=he.style,ft=he.ptg,wt=he.strokeLinecap,$t=he.strokeWidth,Mt=he.size,Ht=he.gapDegree,cn=Ye&&(0,b.Z)(Ye)==="object",vn=cn?"#FFF":void 0,Ln=Mt/2,qt=ae.createElement("circle",{className:"".concat(ke,"-circle-path"),r:Lt,cx:Ln,cy:Ln,stroke:vn,strokeLinecap:wt,strokeWidth:$t,opacity:ft===0?0:1,style:bt,ref:Ee});if(!cn)return qt;var Ut="".concat(nt,"-conic"),Nn=Ht?"".concat(180+Ht/2,"deg"):"0deg",yn=Pe(Ye,(360-Ht)/360),wn=Pe(Ye,1),Vt="conic-gradient(from ".concat(Nn,", ").concat(yn.join(", "),")"),kn="linear-gradient(to ".concat(Ht?"bottom":"top",", ").concat(wn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ut},qt),ae.createElement("foreignObject",{x:0,y:0,width:Mt,height:Mt,mask:"url(#".concat(Ut,")")},ae.createElement(ie,{bg:kn},ae.createElement(ie,{bg:Vt}))))}),ze=se,Ge=100,ut=function(Ee,ke,Ye,nt,Lt,bt,ft,wt,$t,Mt){var Ht=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=Ye/100*360*((360-bt)/360),vn=bt===0?0:{bottom:0,top:180,left:90,right:-90}[ft],Ln=(100-nt)/100*ke;$t==="round"&&nt!==100&&(Ln+=Mt/2,Ln>=ke&&(Ln=ke-.01));var qt=Ge/2;return{stroke:typeof wt=="string"?wt:void 0,strokeDasharray:"".concat(ke,"px ").concat(Ee),strokeDashoffset:Ln+Ht,transform:"rotate(".concat(Lt+cn+vn,"deg)"),transformOrigin:"".concat(qt,"px ").concat(qt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Yt(he){var Ee=he!=null?he:[];return Array.isArray(Ee)?Ee:[Ee]}var Tt=function(Ee){var ke=(0,Ze.Z)((0,Ze.Z)({},Ke),Ee),Ye=ke.id,nt=ke.prefixCls,Lt=ke.steps,bt=ke.strokeWidth,ft=ke.trailWidth,wt=ke.gapDegree,$t=wt===void 0?0:wt,Mt=ke.gapPosition,Ht=ke.trailColor,cn=ke.strokeLinecap,vn=ke.style,Ln=ke.className,qt=ke.strokeColor,Ut=ke.percent,Nn=(0,Qe.Z)(ke,zt),yn=Ge/2,wn=re(Ye),Vt="".concat(wn,"-gradient"),kn=yn-bt/2,Vn=Math.PI*2*kn,Zn=$t>0?90+$t/2:-90,Rn=Vn*((360-$t)/360),Yn=(0,b.Z)(Lt)==="object"?Lt:{count:Lt,space:2},Un=Yn.count,ce=Yn.space,Se=Yt(Ut),ue=Yt(qt),He=ue.find(function(An){return An&&(0,b.Z)(An)==="object"}),it=He&&(0,b.Z)(He)==="object",at=it?"butt":cn,It=ut(Vn,Rn,0,100,Zn,$t,Mt,Ht,at,bt),pt=ne(),Nt=function(){var Re=0;return Se.map(function(At,Fn){var _n=ue[Fn]||ue[ue.length-1],ln=ut(Vn,Rn,Re,At,Zn,$t,Mt,_n,at,bt);return Re+=At,ae.createElement(ze,{key:Fn,color:_n,ptg:At,radius:kn,prefixCls:nt,gradientId:Vt,style:ln,strokeLinecap:at,strokeWidth:bt,gapDegree:$t,ref:function(Le){pt[Fn]=Le},size:Ge})}).reverse()},en=function(){var Re=Math.round(Un*(Se[0]/100)),At=100/Un,Fn=0;return new Array(Un).fill(null).map(function(_n,ln){var me=ln<=Re-1?ue[0]:Ht,Le=me&&(0,b.Z)(me)==="object"?"url(#".concat(Vt,")"):void 0,ve=ut(Vn,Rn,Fn,At,Zn,$t,Mt,me,"butt",bt,ce);return Fn+=(Rn-ve.strokeDashoffset+ce)*100/Rn,ae.createElement("circle",{key:ln,className:"".concat(nt,"-circle-path"),r:kn,cx:yn,cy:yn,stroke:Le,strokeWidth:bt,opacity:1,style:ve,ref:function(Te){pt[ln]=Te}})})};return ae.createElement("svg",(0,je.Z)({className:le()("".concat(nt,"-circle"),Ln),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:vn,id:Ye,role:"presentation"},Nn),!Un&&ae.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:kn,cx:yn,cy:yn,stroke:Ht,strokeLinecap:at,strokeWidth:ft||bt,style:It}),Un?en():Nt())},Bt=Tt,Et={Line:E,Circle:Bt},sn=ge(6848),tn=ge(30071);function xt(he){return!he||he<0?0:he>100?100:he}function on(he){let{success:Ee,successPercent:ke}=he,Ye=ke;return Ee&&"progress"in Ee&&(Ye=Ee.progress),Ee&&"percent"in Ee&&(Ye=Ee.percent),Ye}const $n=he=>{let{percent:Ee,success:ke,successPercent:Ye}=he;const nt=xt(on({success:ke,successPercent:Ye}));return[nt,xt(xt(Ee)-nt)]},pn=he=>{let{success:Ee={},strokeColor:ke}=he;const{strokeColor:Ye}=Ee;return[Ye||tn.presetPrimaryColors.green,ke||null]},fe=(he,Ee,ke)=>{var Ye,nt,Lt,bt;let ft=-1,wt=-1;if(Ee==="step"){const $t=ke.steps,Mt=ke.strokeWidth;typeof he=="string"||typeof he=="undefined"?(ft=he==="small"?2:14,wt=Mt!=null?Mt:8):typeof he=="number"?[ft,wt]=[he,he]:[ft=14,wt=8]=he,ft*=$t}else if(Ee==="line"){const $t=ke==null?void 0:ke.strokeWidth;typeof he=="string"||typeof he=="undefined"?wt=$t||(he==="small"?6:8):typeof he=="number"?[ft,wt]=[he,he]:[ft=-1,wt=8]=he}else(Ee==="circle"||Ee==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[ft,wt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[ft,wt]=[he,he]:(ft=(nt=(Ye=he[0])!==null&&Ye!==void 0?Ye:he[1])!==null&&nt!==void 0?nt:120,wt=(bt=(Lt=he[0])!==null&&Lt!==void 0?Lt:he[1])!==null&&bt!==void 0?bt:120));return[ft,wt]},De=3,we=he=>De/he*100;var be=he=>{const{prefixCls:Ee,trailColor:ke=null,strokeLinecap:Ye="round",gapPosition:nt,gapDegree:Lt,width:bt=120,type:ft,children:wt,success:$t,size:Mt=bt}=he,[Ht,cn]=fe(Mt,"circle");let{strokeWidth:vn}=he;vn===void 0&&(vn=Math.max(we(Ht),6));const Ln={width:Ht,height:cn,fontSize:Ht*.15+6},qt=ae.useMemo(()=>{if(Lt||Lt===0)return Lt;if(ft==="dashboard")return 75},[Lt,ft]),Ut=nt||ft==="dashboard"&&"bottom"||void 0,Nn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",yn=pn({success:$t,strokeColor:he.strokeColor}),wn=le()(`${Ee}-inner`,{[`${Ee}-circle-gradient`]:Nn}),Vt=ae.createElement(Bt,{percent:$n(he),strokeWidth:vn,trailWidth:vn,strokeColor:yn,strokeLinecap:Ye,trailColor:ke,prefixCls:Ee,gapDegree:qt,gapPosition:Ut});return ae.createElement("div",{className:wn,style:Ln},Ht<=20?ae.createElement(sn.Z,{title:wt},ae.createElement("span",null,Vt)):ae.createElement(ae.Fragment,null,Vt,wt))},Je=function(he,Ee){var ke={};for(var Ye in he)Object.prototype.hasOwnProperty.call(he,Ye)&&Ee.indexOf(Ye)<0&&(ke[Ye]=he[Ye]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ye=Object.getOwnPropertySymbols(he);nt<Ye.length;nt++)Ee.indexOf(Ye[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ye[nt])&&(ke[Ye[nt]]=he[Ye[nt]]);return ke};const de=he=>{let Ee=[];return Object.keys(he).forEach(ke=>{const Ye=parseFloat(ke.replace(/%/g,""));isNaN(Ye)||Ee.push({key:Ye,value:he[ke]})}),Ee=Ee.sort((ke,Ye)=>ke.key-Ye.key),Ee.map(ke=>{let{key:Ye,value:nt}=ke;return`${nt} ${Ye}%`}).join(", ")},Ue=(he,Ee)=>{const{from:ke=tn.presetPrimaryColors.blue,to:Ye=tn.presetPrimaryColors.blue,direction:nt=Ee==="rtl"?"to left":"to right"}=he,Lt=Je(he,["from","to","direction"]);if(Object.keys(Lt).length!==0){const bt=de(Lt);return{backgroundImage:`linear-gradient(${nt}, ${bt})`}}return{backgroundImage:`linear-gradient(${nt}, ${ke}, ${Ye})`}};var _t=he=>{const{prefixCls:Ee,direction:ke,percent:Ye,size:nt,strokeWidth:Lt,strokeColor:bt,strokeLinecap:ft="round",children:wt,trailColor:$t=null,success:Mt}=he,Ht=bt&&typeof bt!="string"?Ue(bt,ke):{backgroundColor:bt},cn=ft==="square"||ft==="butt"?0:void 0,vn={backgroundColor:$t||void 0,borderRadius:cn},Ln=nt!=null?nt:[-1,Lt||(nt==="small"?6:8)],[qt,Ut]=fe(Ln,"line",{strokeWidth:Lt}),Nn=Object.assign({width:`${xt(Ye)}%`,height:Ut,borderRadius:cn},Ht),yn=on(he),wn={width:`${xt(yn)}%`,height:Ut,borderRadius:cn,backgroundColor:Mt==null?void 0:Mt.strokeColor},Vt={width:qt<0?"100%":qt,height:Ut};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ee}-outer`,style:Vt},ae.createElement("div",{className:`${Ee}-inner`,style:vn},ae.createElement("div",{className:`${Ee}-bg`,style:Nn}),yn!==void 0?ae.createElement("div",{className:`${Ee}-success-bg`,style:wn}):null)),wt)},Jt=he=>{const{size:Ee,steps:ke,percent:Ye=0,strokeWidth:nt=8,strokeColor:Lt,trailColor:bt=null,prefixCls:ft,children:wt}=he,$t=Math.round(ke*(Ye/100)),Mt=Ee==="small"?2:14,Ht=Ee!=null?Ee:[Mt,nt],[cn,vn]=fe(Ht,"step",{steps:ke,strokeWidth:nt}),Ln=cn/ke,qt=new Array(ke);for(let Ut=0;Ut<ke;Ut++){const Nn=Array.isArray(Lt)?Lt[Ut]:Lt;qt[Ut]=ae.createElement("div",{key:Ut,className:le()(`${ft}-steps-item`,{[`${ft}-steps-item-active`]:Ut<=$t-1}),style:{backgroundColor:Ut<=$t-1?Nn:bt,width:Ln,height:vn}})}return ae.createElement("div",{className:`${ft}-steps-outer`},qt,wt)},Ct=ge(36237),Ot=ge(17313),Dt=ge(83116),un=ge(37613);const jt=he=>{const Ee=he?"100%":"-100%";return new Ct.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ee}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Gn=he=>{const{componentCls:Ee,iconCls:ke}=he;return{[Ee]:Object.assign(Object.assign({},(0,Ot.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Ee}-outer`]:{display:"inline-block",width:"100%"},[`&${Ee}-show-info`]:{[`${Ee}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Ee}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.defaultColor}},[`${Ee}-success-bg, ${Ee}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Ee}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Ee}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ke]:{fontSize:he.fontSize}},[`&${Ee}-status-active`]:{[`${Ee}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:jt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ee}-rtl${Ee}-status-active`]:{[`${Ee}-bg::before`]:{animationName:jt(!0)}},[`&${Ee}-status-exception`]:{[`${Ee}-bg`]:{backgroundColor:he.colorError},[`${Ee}-text`]:{color:he.colorError}},[`&${Ee}-status-exception ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorError}},[`&${Ee}-status-success`]:{[`${Ee}-bg`]:{backgroundColor:he.colorSuccess},[`${Ee}-text`]:{color:he.colorSuccess}},[`&${Ee}-status-success ${Ee}-inner:not(${Ee}-circle-gradient)`]:{[`${Ee}-circle-path`]:{stroke:he.colorSuccess}}})}},xn=he=>{const{componentCls:Ee,iconCls:ke}=he;return{[Ee]:{[`${Ee}-circle-trail`]:{stroke:he.remainingColor},[`&${Ee}-circle ${Ee}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ee}-circle ${Ee}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ke]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Ee}-circle&-status-exception`]:{[`${Ee}-text`]:{color:he.colorError}},[`${Ee}-circle&-status-success`]:{[`${Ee}-text`]:{color:he.colorSuccess}}},[`${Ee}-inline-circle`]:{lineHeight:1,[`${Ee}-inner`]:{verticalAlign:"bottom"}}}},dn=he=>{const{componentCls:Ee}=he;return{[Ee]:{[`${Ee}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},In=he=>{const{componentCls:Ee,iconCls:ke}=he;return{[Ee]:{[`${Ee}-small&-line, ${Ee}-small&-line ${Ee}-text ${ke}`]:{fontSize:he.fontSizeSM}}}};var Kt=(0,Dt.Z)("Progress",he=>{const Ee=he.marginXXS/2,ke=(0,un.TS)(he,{progressStepMarginInlineEnd:Ee,progressStepMinWidth:Ee,progressActiveMotionDuration:"2.4s"});return[Gn(ke),xn(ke),dn(ke),In(ke)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),zn=function(he,Ee){var ke={};for(var Ye in he)Object.prototype.hasOwnProperty.call(he,Ye)&&Ee.indexOf(Ye)<0&&(ke[Ye]=he[Ye]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ye=Object.getOwnPropertySymbols(he);nt<Ye.length;nt++)Ee.indexOf(Ye[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ye[nt])&&(ke[Ye[nt]]=he[Ye[nt]]);return ke};const sa=null,Pa=["normal","exception","active","success"];var ha=ae.forwardRef((he,Ee)=>{const{prefixCls:ke,className:Ye,rootClassName:nt,steps:Lt,strokeColor:bt,percent:ft=0,size:wt="default",showInfo:$t=!0,type:Mt="line",status:Ht,format:cn,style:vn}=he,Ln=zn(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),qt=ae.useMemo(()=>{var Se,ue;const He=on(he);return parseInt(He!==void 0?(Se=He!=null?He:0)===null||Se===void 0?void 0:Se.toString():(ue=ft!=null?ft:0)===null||ue===void 0?void 0:ue.toString(),10)},[ft,he.success,he.successPercent]),Ut=ae.useMemo(()=>!Pa.includes(Ht)&&qt>=100?"success":Ht||"normal",[Ht,qt]),{getPrefixCls:Nn,direction:yn,progress:wn}=ae.useContext($e.E_),Vt=Nn("progress",ke),[kn,Vn]=Kt(Vt),Zn=ae.useMemo(()=>{if(!$t)return null;const Se=on(he);let ue;const He=cn||(at=>`${at}%`),it=Mt==="line";return cn||Ut!=="exception"&&Ut!=="success"?ue=He(xt(ft),xt(Se)):Ut==="exception"?ue=it?ae.createElement(Ne.Z,null):ae.createElement(pe.Z,null):Ut==="success"&&(ue=it?ae.createElement(Me.Z,null):ae.createElement(Ve.Z,null)),ae.createElement("span",{className:`${Vt}-text`,title:typeof ue=="string"?ue:void 0},ue)},[$t,ft,qt,Ut,Mt,Vt,cn]),Rn=Array.isArray(bt)?bt[0]:bt,Yn=typeof bt=="string"||Array.isArray(bt)?bt:void 0;let Un;Mt==="line"?Un=Lt?ae.createElement(Jt,Object.assign({},he,{strokeColor:Yn,prefixCls:Vt,steps:Lt}),Zn):ae.createElement(_t,Object.assign({},he,{strokeColor:Rn,prefixCls:Vt,direction:yn}),Zn):(Mt==="circle"||Mt==="dashboard")&&(Un=ae.createElement(be,Object.assign({},he,{strokeColor:Rn,prefixCls:Vt,progressStatus:Ut}),Zn));const ce=le()(Vt,`${Vt}-status-${Ut}`,`${Vt}-${Mt==="dashboard"&&"circle"||Lt&&"steps"||Mt}`,{[`${Vt}-inline-circle`]:Mt==="circle"&&fe(wt,"circle")[0]<=20,[`${Vt}-show-info`]:$t,[`${Vt}-${wt}`]:typeof wt=="string",[`${Vt}-rtl`]:yn==="rtl"},wn==null?void 0:wn.className,Ye,nt,Vn);return kn(ae.createElement("div",Object.assign({ref:Ee,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),vn),className:ce,role:"progressbar","aria-valuenow":qt},(0,_e.Z)(Ln,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Un))}),Qn=ha},54580:function(Fe,et,ge){"use strict";ge.d(et,{default:function(){return ln}});var ae=ge(59301),Me=ge(94480),Ve=ge(92310),Ne=ge.n(Ve),pe=ge(54476),ye=ge(67732),le=ge(83652),_e=ge(42403),$e=ge(158),je=ge(20068),Ze=ge(75931),Qe=ge(75044),Ke=ge(76190),ne=ge(3202),a=ge(26112);function y(me,Le){var ve="cannot ".concat(me.method," ").concat(me.action," ").concat(Le.status,"'"),xe=new Error(ve);return xe.status=Le.status,xe.method=me.method,xe.url=me.action,xe}function E(me){var Le=me.responseText||me.response;if(!Le)return Le;try{return JSON.parse(Le)}catch(ve){return Le}}function b(me){var Le=new XMLHttpRequest;me.onProgress&&Le.upload&&(Le.upload.onprogress=function(Ie){Ie.total>0&&(Ie.percent=Ie.loaded/Ie.total*100),me.onProgress(Ie)});var ve=new FormData;me.data&&Object.keys(me.data).forEach(function(Te){var Ie=me.data[Te];if(Array.isArray(Ie)){Ie.forEach(function(Ae){ve.append("".concat(Te,"[]"),Ae)});return}ve.append(Te,Ie)}),me.file instanceof Blob?ve.append(me.filename,me.file,me.file.name):ve.append(me.filename,me.file),Le.onerror=function(Ie){me.onError(Ie)},Le.onload=function(){return Le.status<200||Le.status>=300?me.onError(y(me,Le),E(Le)):me.onSuccess(E(Le),Le)},Le.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Le&&(Le.withCredentials=!0);var xe=me.headers||{};return xe["X-Requested-With"]!==null&&Le.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(Te){xe[Te]!==null&&Le.setRequestHeader(Te,xe[Te])}),Le.send(ve),{abort:function(){Le.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=ge(48736),oe=function(me,Le){if(me&&Le){var ve=Array.isArray(Le)?Le:Le.split(","),xe=me.name||"",Te=me.type||"",Ie=Te.replace(/\/.*$/,"");return ve.some(function(Ae){var Ce=Ae.trim();if(/^\*(\/\*)?$/.test(Ae))return!0;if(Ce.charAt(0)==="."){var lt=xe.toLowerCase(),mt=Ce.toLowerCase(),st=[mt];return(mt===".jpg"||mt===".jpeg")&&(st=[".jpg",".jpeg"]),st.some(function(Be){return lt.endsWith(Be)})}return/\/\*$/.test(Ce)?Ie===Ce.replace(/\/.*$/,""):Te===Ce?!0:/^\w+$/.test(Ce)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ce,"'.Skip for check.")),!0):!1})}return!0};function re(me,Le){var ve=me.createReader(),xe=[];function Te(){ve.readEntries(function(Ie){var Ae=Array.prototype.slice.apply(Ie);xe=xe.concat(Ae);var Ce=!Ae.length;Ce?Le(xe):Te()})}Te()}var ie=function(Le,ve,xe){var Te=function Ie(Ae,Ce){Ae&&(Ae.path=Ce||"",Ae.isFile?Ae.file(function(lt){xe(lt)&&(Ae.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=Ae.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),ve([lt]))}):Ae.isDirectory&&re(Ae,function(lt){lt.forEach(function(mt){Ie(mt,"".concat(Ce).concat(Ae.name,"/"))})}))};Le.forEach(function(Ie){Te(Ie.webkitGetAsEntry())})},Pe=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(me){(0,_e.Z)(ve,me);var Le=(0,$e.Z)(ve);function ve(){var xe;(0,ye.Z)(this,ve);for(var Te=arguments.length,Ie=new Array(Te),Ae=0;Ae<Te;Ae++)Ie[Ae]=arguments[Ae];return xe=Le.call.apply(Le,[this].concat(Ie)),xe.state={uid:ee()},xe.reqs={},xe.fileInput=void 0,xe._isMounted=void 0,xe.onChange=function(Ce){var lt=xe.props,mt=lt.accept,st=lt.directory,Be=Ce.target.files,kt=(0,Me.Z)(Be).filter(function(Qt){return!st||oe(Qt,mt)});xe.uploadFiles(kt),xe.reset()},xe.onClick=function(Ce){var lt=xe.fileInput;if(lt){var mt=Ce.target,st=xe.props.onClick;if(mt&&mt.tagName==="BUTTON"){var Be=lt.parentNode;Be.focus(),mt.blur()}lt.click(),st&&st(Ce)}},xe.onKeyDown=function(Ce){Ce.key==="Enter"&&xe.onClick(Ce)},xe.onFileDrop=function(Ce){var lt=xe.props.multiple;if(Ce.preventDefault(),Ce.type!=="dragover")if(xe.props.directory)Pe(Array.prototype.slice.call(Ce.dataTransfer.items),xe.uploadFiles,function(st){return oe(st,xe.props.accept)});else{var mt=(0,Me.Z)(Ce.dataTransfer.files).filter(function(st){return oe(st,xe.props.accept)});lt===!1&&(mt=mt.slice(0,1)),xe.uploadFiles(mt)}},xe.uploadFiles=function(Ce){var lt=(0,Me.Z)(Ce),mt=lt.map(function(st){return st.uid=ee(),xe.processFile(st,lt)});Promise.all(mt).then(function(st){var Be=xe.props.onBatchStart;Be==null||Be(st.map(function(kt){var Qt=kt.origin,bn=kt.parsedFile;return{file:Qt,parsedFile:bn}})),st.filter(function(kt){return kt.parsedFile!==null}).forEach(function(kt){xe.post(kt)})})},xe.processFile=function(){var Ce=(0,ne.Z)((0,Qe.Z)().mark(function lt(mt,st){var Be,kt,Qt,bn,Oe,tt,rt,dt,vt;return(0,Qe.Z)().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(Be=xe.props.beforeUpload,kt=mt,!Be){ct.next=14;break}return ct.prev=3,ct.next=6,Be(mt,st);case 6:kt=ct.sent,ct.next=12;break;case 9:ct.prev=9,ct.t0=ct.catch(3),kt=!1;case 12:if(kt!==!1){ct.next=14;break}return ct.abrupt("return",{origin:mt,parsedFile:null,action:null,data:null});case 14:if(Qt=xe.props.action,typeof Qt!="function"){ct.next=21;break}return ct.next=18,Qt(mt);case 18:bn=ct.sent,ct.next=22;break;case 21:bn=Qt;case 22:if(Oe=xe.props.data,typeof Oe!="function"){ct.next=29;break}return ct.next=26,Oe(mt);case 26:tt=ct.sent,ct.next=30;break;case 29:tt=Oe;case 30:return rt=((0,Ke.Z)(kt)==="object"||typeof kt=="string")&&kt?kt:mt,rt instanceof File?dt=rt:dt=new File([rt],mt.name,{type:mt.type}),vt=dt,vt.uid=mt.uid,ct.abrupt("return",{origin:mt,data:tt,parsedFile:vt,action:bn});case 35:case"end":return ct.stop()}},lt,null,[[3,9]])}));return function(lt,mt){return Ce.apply(this,arguments)}}(),xe.saveFileInput=function(Ce){xe.fileInput=Ce},xe}return(0,le.Z)(ve,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Te){var Ie=this,Ae=Te.data,Ce=Te.origin,lt=Te.action,mt=Te.parsedFile;if(this._isMounted){var st=this.props,Be=st.onStart,kt=st.customRequest,Qt=st.name,bn=st.headers,Oe=st.withCredentials,tt=st.method,rt=Ce.uid,dt=kt||b,vt={action:lt,filename:Qt,data:Ae,file:mt,headers:bn,withCredentials:Oe,method:tt||"post",onProgress:function(ct){var Zt=Ie.props.onProgress;Zt==null||Zt(ct,mt)},onSuccess:function(ct,Zt){var Xt=Ie.props.onSuccess;Xt==null||Xt(ct,mt,Zt),delete Ie.reqs[rt]},onError:function(ct,Zt){var Xt=Ie.props.onError;Xt==null||Xt(ct,Zt,mt),delete Ie.reqs[rt]}};Be(Ce),this.reqs[rt]=dt(vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Te){var Ie=this.reqs;if(Te){var Ae=Te.uid?Te.uid:Te;Ie[Ae]&&Ie[Ae].abort&&Ie[Ae].abort(),delete Ie[Ae]}else Object.keys(Ie).forEach(function(Ce){Ie[Ce]&&Ie[Ce].abort&&Ie[Ce].abort(),delete Ie[Ce]})}},{key:"render",value:function(){var Te=this.props,Ie=Te.component,Ae=Te.prefixCls,Ce=Te.className,lt=Te.disabled,mt=Te.id,st=Te.style,Be=Te.multiple,kt=Te.accept,Qt=Te.capture,bn=Te.children,Oe=Te.directory,tt=Te.openFileDialogOnClick,rt=Te.onMouseEnter,dt=Te.onMouseLeave,vt=(0,Ze.Z)(Te,se),Ft=Ne()((0,je.Z)((0,je.Z)((0,je.Z)({},Ae,!0),"".concat(Ae,"-disabled"),lt),Ce,Ce)),ct=Oe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Zt=lt?{}:{onClick:tt?this.onClick:function(){},onKeyDown:tt?this.onKeyDown:function(){},onMouseEnter:rt,onMouseLeave:dt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ie,(0,pe.Z)({},Zt,{className:Ft,role:"button",style:st}),ae.createElement("input",(0,pe.Z)({},(0,a.Z)(vt,{aria:!0,data:!0}),{id:mt,disabled:lt,type:"file",ref:this.saveFileInput,onClick:function(Xn){return Xn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:kt},ct,{multiple:Be,onChange:this.onChange},Qt!=null?{capture:Qt}:{})),bn)}}]),ve}(ae.Component),Ge=ze;function ut(){}var zt=function(me){(0,_e.Z)(ve,me);var Le=(0,$e.Z)(ve);function ve(){var xe;(0,ye.Z)(this,ve);for(var Te=arguments.length,Ie=new Array(Te),Ae=0;Ae<Te;Ae++)Ie[Ae]=arguments[Ae];return xe=Le.call.apply(Le,[this].concat(Ie)),xe.uploader=void 0,xe.saveUploader=function(Ce){xe.uploader=Ce},xe}return(0,le.Z)(ve,[{key:"abort",value:function(Te){this.uploader.abort(Te)}},{key:"render",value:function(){return ae.createElement(Ge,(0,pe.Z)({},this.props,{ref:this.saveUploader}))}}]),ve}(ae.Component);zt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ut,onError:ut,onSuccess:ut,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Yt=zt,Tt=Yt,Bt=ge(18929),Et=ge(4676),sn=ge(36355),tn=ge(1684),xt=ge(9763),on=ge(31724),$n={icon:function(Le,ve){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ve}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Le}}]}},name:"file",theme:"twotone"},pn=$n,fe=ge(7657),De=function(Le,ve){return ae.createElement(fe.Z,(0,pe.Z)({},Le,{ref:ve,icon:pn}))},we=ae.forwardRef(De),We=we,be=ge(58617),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=Je,Ue=function(Le,ve){return ae.createElement(fe.Z,(0,pe.Z)({},Le,{ref:ve,icon:de}))},ht=ae.forwardRef(Ue),_t=ht,Pt={icon:function(Le,ve){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Le}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ve}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:ve}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ve}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Le}}]}},name:"picture",theme:"twotone"},Jt=Pt,Ct=function(Le,ve){return ae.createElement(fe.Z,(0,pe.Z)({},Le,{ref:ve,icon:Jt}))},Ot=ae.forwardRef(Ct),Dt=Ot,un=ge(77900),jt=ge(56762),Gn=ge(62892),xn=ge(92343),dn=ge(3113);function In(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function Kt(me,Le){const ve=(0,Me.Z)(Le),xe=ve.findIndex(Te=>{let{uid:Ie}=Te;return Ie===me.uid});return xe===-1?ve.push(me):ve[xe]=me,ve}function zn(me,Le){const ve=me.uid!==void 0?"uid":"name";return Le.filter(xe=>xe[ve]===me[ve])[0]}function sa(me,Le){const ve=me.uid!==void 0?"uid":"name",xe=Le.filter(Te=>Te[ve]!==me[ve]);return xe.length===Le.length?null:xe}const Pa=function(){const Le=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xe=Le[Le.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xe)||[""])[0]},pa=me=>me.indexOf("image/")===0,ha=me=>{if(me.type&&!me.thumbUrl)return pa(me.type);const Le=me.thumbUrl||me.url||"",ve=Pa(Le);return/^data:image\//.test(Le)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ve)?!0:!(/^data:/.test(Le)||ve)},Qn=200;function he(me){return new Promise(Le=>{if(!me.type||!pa(me.type)){Le("");return}const ve=document.createElement("canvas");ve.width=Qn,ve.height=Qn,ve.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qn}px; height: ${Qn}px; z-index: 9999; display: none;`,document.body.appendChild(ve);const xe=ve.getContext("2d"),Te=new Image;if(Te.onload=()=>{const{width:Ie,height:Ae}=Te;let Ce=Qn,lt=Qn,mt=0,st=0;Ie>Ae?(lt=Ae*(Qn/Ie),st=-(lt-Ce)/2):(Ce=Ie*(Qn/Ae),mt=-(Ce-lt)/2),xe.drawImage(Te,mt,st,Ce,lt);const Be=ve.toDataURL();document.body.removeChild(ve),window.URL.revokeObjectURL(Te.src),Le(Be)},Te.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&(Te.src=Ie.result)},Ie.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&Le(Ie.result)},Ie.readAsDataURL(me)}else Te.src=window.URL.createObjectURL(me)})}var Ee=ge(26227),ke=ge(41464),Ye=ge(15277),nt=ge(93948),Lt=ge(6848),ft=ae.forwardRef((me,Le)=>{let{prefixCls:ve,className:xe,style:Te,locale:Ie,listType:Ae,file:Ce,items:lt,progress:mt,iconRender:st,actionIconRender:Be,itemRender:kt,isImgUrl:Qt,showPreviewIcon:bn,showRemoveIcon:Oe,showDownloadIcon:tt,previewIcon:rt,removeIcon:dt,downloadIcon:vt,onPreview:Ft,onDownload:ct,onClose:Zt}=me;var Xt,Xn;const{status:qn}=Ce,[jn,la]=ae.useState(qn);ae.useEffect(()=>{qn!=="removed"&&la(qn)},[qn]);const[ua,ma]=ae.useState(!1);ae.useEffect(()=>{const Pn=setTimeout(()=>{ma(!0)},300);return()=>{clearTimeout(Pn)}},[]);const aa=st(Ce);let Hn=ae.createElement("div",{className:`${ve}-icon`},aa);if(Ae==="picture"||Ae==="picture-card"||Ae==="picture-circle")if(jn==="uploading"||!Ce.thumbUrl&&!Ce.url){const Pn=Ne()(`${ve}-list-item-thumbnail`,{[`${ve}-list-item-file`]:jn!=="uploading"});Hn=ae.createElement("div",{className:Pn},aa)}else{const Pn=Qt!=null&&Qt(Ce)?ae.createElement("img",{src:Ce.thumbUrl||Ce.url,alt:Ce.name,className:`${ve}-list-item-image`,crossOrigin:Ce.crossOrigin}):aa,fn=Ne()(`${ve}-list-item-thumbnail`,{[`${ve}-list-item-file`]:Qt&&!Qt(Ce)});Hn=ae.createElement("a",{className:fn,onClick:na=>Ft(Ce,na),href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pn)}const Sn=Ne()(`${ve}-list-item`,`${ve}-list-item-${jn}`),ia=typeof Ce.linkProps=="string"?JSON.parse(Ce.linkProps):Ce.linkProps,Kn=Oe?Be((typeof dt=="function"?dt(Ce):dt)||ae.createElement(Ee.Z,null),()=>Zt(Ce),ve,Ie.removeFile):null,ta=tt&&jn==="done"?Be((typeof vt=="function"?vt(Ce):vt)||ae.createElement(ke.Z,null),()=>ct(Ce),ve,Ie.downloadFile):null,Jn=Ae!=="picture-card"&&Ae!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ne()(`${ve}-list-item-actions`,{picture:Ae==="picture"})},ta,Kn),Mn=Ne()(`${ve}-list-item-name`),ca=Ce.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Mn,title:Ce.name},ia,{href:Ce.url,onClick:Pn=>Ft(Ce,Pn)}),Ce.name),Jn]:[ae.createElement("span",{key:"view",className:Mn,onClick:Pn=>Ft(Ce,Pn),title:Ce.name},Ce.name),Jn],yt={pointerEvents:"none",opacity:.5},hn=bn?ae.createElement("a",{href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ce.url||Ce.thumbUrl?void 0:yt,onClick:Pn=>Ft(Ce,Pn),title:Ie.previewFile},typeof rt=="function"?rt(Ce):rt||ae.createElement(Ye.Z,null)):null,Wn=(Ae==="picture-card"||Ae==="picture-circle")&&jn!=="uploading"&&ae.createElement("span",{className:`${ve}-list-item-actions`},hn,jn==="done"&&ta,Kn),{getPrefixCls:mn}=ae.useContext(sn.E_),oa=mn(),Dn=ae.createElement("div",{className:Sn},Hn,ca,Wn,ua&&ae.createElement(un.default,{motionName:`${oa}-fade`,visible:jn==="uploading",motionDeadline:2e3},Pn=>{let{className:fn}=Pn;const na="percent"in Ce?ae.createElement(nt.Z,Object.assign({},mt,{type:"line",percent:Ce.percent,"aria-label":Ce["aria-label"],"aria-labelledby":Ce["aria-labelledby"]})):null;return ae.createElement("div",{className:Ne()(`${ve}-list-item-progress`,fn)},na)})),fa=Ce.response&&typeof Ce.response=="string"?Ce.response:((Xt=Ce.error)===null||Xt===void 0?void 0:Xt.statusText)||((Xn=Ce.error)===null||Xn===void 0?void 0:Xn.message)||Ie.uploadError,Sa=jn==="error"?ae.createElement(Lt.Z,{title:fa,getPopupContainer:Pn=>Pn.parentNode},Dn):Dn;return ae.createElement("div",{className:Ne()(`${ve}-list-item-container`,xe),style:Te,ref:Le},kt?kt(Sa,Ce,lt,{download:ct.bind(null,Ce),preview:Ft.bind(null,Ce),remove:Zt.bind(null,Ce)}):Sa)});const wt=(me,Le)=>{const{listType:ve="text",previewFile:xe=he,onPreview:Te,onDownload:Ie,onRemove:Ae,locale:Ce,iconRender:lt,isImageUrl:mt=ha,prefixCls:st,items:Be=[],showPreviewIcon:kt=!0,showRemoveIcon:Qt=!0,showDownloadIcon:bn=!1,removeIcon:Oe,previewIcon:tt,downloadIcon:rt,progress:dt={size:[-1,2],showInfo:!1},appendAction:vt,appendActionVisible:Ft=!0,itemRender:ct,disabled:Zt}=me,Xt=(0,jt.Z)(),[Xn,qn]=ae.useState(!1);ae.useEffect(()=>{ve!=="picture"&&ve!=="picture-card"&&ve!=="picture-circle"||(Be||[]).forEach(yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(yt.originFileObj instanceof File||yt.originFileObj instanceof Blob)||yt.thumbUrl!==void 0||(yt.thumbUrl="",xe&&xe(yt.originFileObj).then(hn=>{yt.thumbUrl=hn||"",Xt()}))})},[ve,Be,xe]),ae.useEffect(()=>{qn(!0)},[]);const jn=(yt,hn)=>{if(Te)return hn==null||hn.preventDefault(),Te(yt)},la=yt=>{typeof Ie=="function"?Ie(yt):yt.url&&window.open(yt.url)},ua=yt=>{Ae==null||Ae(yt)},ma=yt=>{if(lt)return lt(yt,ve);const hn=yt.status==="uploading",Wn=mt&&mt(yt)?ae.createElement(Dt,null):ae.createElement(We,null);let mn=hn?ae.createElement(be.Z,null):ae.createElement(_t,null);return ve==="picture"?mn=hn?ae.createElement(be.Z,null):Wn:(ve==="picture-card"||ve==="picture-circle")&&(mn=hn?Ce.uploading:Wn),mn},aa=(yt,hn,Wn,mn)=>{const oa={type:"text",size:"small",title:mn,onClick:Dn=>{hn(),(0,xn.l$)(yt)&&yt.props.onClick&&yt.props.onClick(Dn)},className:`${Wn}-list-item-action`,disabled:Zt};if((0,xn.l$)(yt)){const Dn=(0,xn.Tm)(yt,Object.assign(Object.assign({},yt.props),{onClick:()=>{}}));return ae.createElement(dn.ZP,Object.assign({},oa,{icon:Dn}))}return ae.createElement(dn.ZP,Object.assign({},oa),ae.createElement("span",null,yt))};ae.useImperativeHandle(Le,()=>({handlePreview:jn,handleDownload:la}));const{getPrefixCls:Hn}=ae.useContext(sn.E_),Sn=Hn("upload",st),ia=Hn(),Kn=Ne()(`${Sn}-list`,`${Sn}-list-${ve}`),ta=(0,Me.Z)(Be.map(yt=>({key:yt.uid,file:yt})));let Mn={motionDeadline:2e3,motionName:`${Sn}-${ve==="picture-card"||ve==="picture-circle"?"animate-inline":"animate"}`,keys:ta,motionAppear:Xn};const ca=ae.useMemo(()=>{const yt=Object.assign({},(0,Gn.Z)(ia));return delete yt.onAppearEnd,delete yt.onEnterEnd,delete yt.onLeaveEnd,yt},[ia]);return ve!=="picture-card"&&ve!=="picture-circle"&&(Mn=Object.assign(Object.assign({},ca),Mn)),ae.createElement("div",{className:Kn},ae.createElement(un.CSSMotionList,Object.assign({},Mn,{component:!1}),yt=>{let{key:hn,file:Wn,className:mn,style:oa}=yt;return ae.createElement(ft,{key:hn,locale:Ce,prefixCls:Sn,className:mn,style:oa,file:Wn,items:Be,progress:dt,listType:ve,isImgUrl:mt,showPreviewIcon:kt,showRemoveIcon:Qt,showDownloadIcon:bn,removeIcon:Oe,previewIcon:tt,downloadIcon:rt,iconRender:ma,actionIconRender:aa,itemRender:ct,onPreview:jn,onDownload:la,onClose:ua})}),vt&&ae.createElement(un.default,Object.assign({},Mn,{visible:Ft,forceRender:!0}),yt=>{let{className:hn,style:Wn}=yt;return(0,xn.Tm)(vt,mn=>({className:Ne()(mn.className,hn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:hn?"none":void 0}),mn.style)}))}))};var Mt=ae.forwardRef(wt),Ht=ge(17313),cn=ge(8378),vn=ge(83116),Ln=ge(37613),Ut=me=>{const{componentCls:Le,iconCls:ve}=me;return{[`${Le}-wrapper`]:{[`${Le}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Le]:{padding:`${me.padding}px 0`},[`${Le}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Le}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Le}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Le}-drag-icon`]:{marginBottom:me.margin,[ve]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Le}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Le}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Le}-disabled`]:{cursor:"not-allowed",[`p${Le}-drag-icon ${ve},
|
|
p${Le}-text,
|
|
p${Le}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},yn=me=>{const{componentCls:Le,antCls:ve,iconCls:xe,fontSize:Te,lineHeight:Ie}=me,Ae=`${Le}-list-item`,Ce=`${Ae}-actions`,lt=`${Ae}-action`,mt=Math.round(Te*Ie);return{[`${Le}-wrapper`]:{[`${Le}-list`]:Object.assign(Object.assign({},(0,Ht.dF)()),{lineHeight:me.lineHeight,[Ae]:{position:"relative",height:me.lineHeight*Te,marginTop:me.marginXS,fontSize:Te,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ae}-name`]:Object.assign(Object.assign({},Ht.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Ie,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Ce]:{[lt]:{opacity:0},[`${lt}${ve}-btn-sm`]:{height:mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${lt}:focus-visible,
|
|
&.picture ${lt}
|
|
`]:{opacity:1},[xe]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${xe}`]:{color:me.colorText}},[`${Le}-icon ${xe}`]:{color:me.colorTextDescription,fontSize:Te},[`${Ae}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Te+me.paddingXS,fontSize:Te,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ae}:hover ${lt}`]:{opacity:1,color:me.colorText},[`${Ae}-error`]:{color:me.colorError,[`${Ae}-name, ${Le}-icon ${xe}`]:{color:me.colorError},[Ce]:{[`${xe}, ${xe}:hover`]:{color:me.colorError},[lt]:{opacity:1}}},[`${Le}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},wn=ge(36237),Vt=ge(1950);const kn=new wn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vn=new wn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Rn=me=>{const{componentCls:Le}=me,ve=`${Le}-animate-inline`;return[{[`${Le}-wrapper`]:{[`${ve}-appear, ${ve}-enter, ${ve}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ve}-appear, ${ve}-enter`]:{animationName:kn},[`${ve}-leave`]:{animationName:Vn}}},{[`${Le}-wrapper`]:(0,Vt.J$)(me)},kn,Vn]},Yn=ge(30071),Un=ge(64993);const ce=me=>{const{componentCls:Le,iconCls:ve,uploadThumbnailSize:xe,uploadProgressOffset:Te}=me,Ie=`${Le}-list`,Ae=`${Ie}-item`;return{[`${Le}-wrapper`]:{[`
|
|
${Ie}${Ie}-picture,
|
|
${Ie}${Ie}-picture-card,
|
|
${Ie}${Ie}-picture-circle
|
|
`]:{[Ae]:{position:"relative",height:xe+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ae}-thumbnail`]:Object.assign(Object.assign({},Ht.vS),{width:xe,height:xe,lineHeight:`${xe+me.paddingSM}px`,textAlign:"center",flex:"none",[ve]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ae}-progress`]:{bottom:Te,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xe+me.paddingXS}},[`${Ae}-error`]:{borderColor:me.colorError,[`${Ae}-thumbnail ${ve}`]:{[`svg path[fill='${Yn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Yn.blue.primary}']`]:{fill:me.colorError}}},[`${Ae}-uploading`]:{borderStyle:"dashed",[`${Ae}-name`]:{marginBottom:Te}}},[`${Ie}${Ie}-picture-circle ${Ae}`]:{[`&, &::before, ${Ae}-thumbnail`]:{borderRadius:"50%"}}}}},Se=me=>{const{componentCls:Le,iconCls:ve,fontSizeLG:xe,colorTextLightSolid:Te}=me,Ie=`${Le}-list`,Ae=`${Ie}-item`,Ce=me.uploadPicCardSize;return{[`
|
|
${Le}-wrapper${Le}-picture-card-wrapper,
|
|
${Le}-wrapper${Le}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ht.dF)()),{display:"inline-block",width:"100%",[`${Le}${Le}-select`]:{width:Ce,height:Ce,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Le}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Le}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Ie}${Ie}-picture-card, ${Ie}${Ie}-picture-circle`]:{[`${Ie}-item-container`]:{display:"inline-block",width:Ce,height:Ce,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ae]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ae}:hover`]:{[`&::before, ${Ae}-actions`]:{opacity:1}},[`${Ae}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${ve}-eye, ${ve}-download, ${ve}-delete`]:{zIndex:10,width:xe,margin:`0 ${me.marginXXS}px`,fontSize:xe,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ae}-actions, ${Ae}-actions:hover`]:{[`${ve}-eye, ${ve}-download, ${ve}-delete`]:{color:new Un.C(Te).setAlpha(.65).toRgbString(),"&:hover":{color:Te}}},[`${Ae}-thumbnail, ${Ae}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ae}-name`]:{display:"none",textAlign:"center"},[`${Ae}-file + ${Ae}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ae}-uploading`]:{[`&${Ae}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${ve}-eye, ${ve}-download, ${ve}-delete`]:{display:"none"}},[`${Ae}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Le}-wrapper${Le}-picture-circle-wrapper`]:{[`${Le}${Le}-select`]:{borderRadius:"50%"}}}};var He=me=>{const{componentCls:Le}=me;return{[`${Le}-rtl`]:{direction:"rtl"}}};const it=me=>{const{componentCls:Le,colorTextDisabled:ve}=me;return{[`${Le}-wrapper`]:Object.assign(Object.assign({},(0,Ht.Wf)(me)),{[Le]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Le}-select`]:{display:"inline-block"},[`${Le}-disabled`]:{color:ve,cursor:"not-allowed"}})}};var at=(0,vn.Z)("Upload",me=>{const{fontSizeHeading3:Le,fontSize:ve,lineHeight:xe,lineWidth:Te,controlHeightLG:Ie}=me,Ae=Math.round(ve*xe),Ce=(0,Ln.TS)(me,{uploadThumbnailSize:Le*2,uploadProgressOffset:Ae/2+Te,uploadPicCardSize:Ie*2.55});return[it(Ce),Ut(Ce),ce(Ce),Se(Ce),yn(Ce),Rn(Ce),He(Ce),(0,cn.Z)(Ce)]},me=>({actionsColor:me.colorTextDescription})),It=function(me,Le,ve,xe){function Te(Ie){return Ie instanceof ve?Ie:new ve(function(Ae){Ae(Ie)})}return new(ve||(ve=Promise))(function(Ie,Ae){function Ce(st){try{mt(xe.next(st))}catch(Be){Ae(Be)}}function lt(st){try{mt(xe.throw(st))}catch(Be){Ae(Be)}}function mt(st){st.done?Ie(st.value):Te(st.value).then(Ce,lt)}mt((xe=xe.apply(me,Le||[])).next())})};const pt=`__LIST_IGNORE_${Date.now()}__`,Nt=(me,Le)=>{const{fileList:ve,defaultFileList:xe,onRemove:Te,showUploadList:Ie=!0,listType:Ae="text",onPreview:Ce,onDownload:lt,onChange:mt,onDrop:st,previewFile:Be,disabled:kt,locale:Qt,iconRender:bn,isImageUrl:Oe,progress:tt,prefixCls:rt,className:dt,type:vt="select",children:Ft,style:ct,itemRender:Zt,maxCount:Xt,data:Xn={},multiple:qn=!1,action:jn="",accept:la="",supportServerRender:ua=!0,rootClassName:ma}=me,aa=ae.useContext(tn.Z),Hn=kt!=null?kt:aa,[Sn,ia]=(0,Bt.Z)(xe||[],{value:ve,postState:St=>St!=null?St:[]}),[Kn,ta]=ae.useState("drop"),Jn=ae.useRef(null);ae.useMemo(()=>{const St=Date.now();(ve||[]).forEach((Rt,nn)=>{!Rt.uid&&!Object.isFrozen(Rt)&&(Rt.uid=`__AUTO__${St}_${nn}__`)})},[ve]);const Mn=(St,Rt,nn)=>{let Gt=(0,Me.Z)(Rt),an=!1;Xt===1?Gt=Gt.slice(-1):Xt&&(an=Gt.length>Xt,Gt=Gt.slice(0,Xt)),(0,Et.flushSync)(()=>{ia(Gt)});const Bn={file:St,fileList:Gt};nn&&(Bn.event=nn),(!an||Gt.some(ra=>ra.uid===St.uid))&&(0,Et.flushSync)(()=>{mt==null||mt(Bn)})},ca=(St,Rt)=>It(void 0,void 0,void 0,function*(){const{beforeUpload:nn,transformFile:Gt}=me;let an=St;if(nn){const Bn=yield nn(St,Rt);if(Bn===!1)return!1;if(delete St[pt],Bn===pt)return Object.defineProperty(St,pt,{value:!0,configurable:!0}),!1;typeof Bn=="object"&&Bn&&(an=Bn)}return Gt&&(an=yield Gt(an)),an}),yt=St=>{const Rt=St.filter(an=>!an.file[pt]);if(!Rt.length)return;const nn=Rt.map(an=>In(an.file));let Gt=(0,Me.Z)(Sn);nn.forEach(an=>{Gt=Kt(an,Gt)}),nn.forEach((an,Bn)=>{let ra=an;if(Rt[Bn].parsedFile)an.status="uploading";else{const{originFileObj:gn}=an;let da;try{da=new File([gn],gn.name,{type:gn.type})}catch(ba){da=new Blob([gn],{type:gn.type}),da.name=gn.name,da.lastModifiedDate=new Date,da.lastModified=new Date().getTime()}da.uid=an.uid,ra=da}Mn(ra,Gt)})},hn=(St,Rt,nn)=>{try{typeof St=="string"&&(St=JSON.parse(St))}catch(Bn){}if(!zn(Rt,Sn))return;const Gt=In(Rt);Gt.status="done",Gt.percent=100,Gt.response=St,Gt.xhr=nn;const an=Kt(Gt,Sn);Mn(Gt,an)},Wn=(St,Rt)=>{if(!zn(Rt,Sn))return;const nn=In(Rt);nn.status="uploading",nn.percent=St.percent;const Gt=Kt(nn,Sn);Mn(nn,Gt,St)},mn=(St,Rt,nn)=>{if(!zn(nn,Sn))return;const Gt=In(nn);Gt.error=St,Gt.response=Rt,Gt.status="error";const an=Kt(Gt,Sn);Mn(Gt,an)},oa=St=>{let Rt;Promise.resolve(typeof Te=="function"?Te(St):Te).then(nn=>{var Gt;if(nn===!1)return;const an=sa(St,Sn);an&&(Rt=Object.assign(Object.assign({},St),{status:"removed"}),Sn==null||Sn.forEach(Bn=>{const ra=Rt.uid!==void 0?"uid":"name";Bn[ra]===Rt[ra]&&!Object.isFrozen(Bn)&&(Bn.status="removed")}),(Gt=Jn.current)===null||Gt===void 0||Gt.abort(Rt),Mn(Rt,an))})},Dn=St=>{ta(St.type),St.type==="drop"&&(st==null||st(St))};ae.useImperativeHandle(Le,()=>({onBatchStart:yt,onSuccess:hn,onProgress:Wn,onError:mn,fileList:Sn,upload:Jn.current}));const{getPrefixCls:fa,direction:Sa,upload:Pn}=ae.useContext(sn.E_),fn=fa("upload",rt),na=Object.assign(Object.assign({onBatchStart:yt,onError:mn,onProgress:Wn,onSuccess:hn},me),{data:Xn,multiple:qn,action:jn,accept:la,supportServerRender:ua,prefixCls:fn,disabled:Hn,beforeUpload:ca,onChange:void 0});delete na.className,delete na.style,(!Ft||Hn)&&delete na.id;const[va,La]=at(fn),[ya]=(0,xt.Z)("Upload",on.Z.Upload),{showRemoveIcon:wa,showPreviewIcon:gt,showDownloadIcon:Xe,removeIcon:qe,previewIcon:ot,downloadIcon:Wt}=typeof Ie=="boolean"?{}:Ie,rn=(St,Rt)=>Ie?ae.createElement(Mt,{prefixCls:fn,listType:Ae,items:Sn,previewFile:Be,onPreview:Ce,onDownload:lt,onRemove:oa,showRemoveIcon:!Hn&&wa,showPreviewIcon:gt,showDownloadIcon:Xe,removeIcon:qe,previewIcon:ot,downloadIcon:Wt,iconRender:bn,locale:Object.assign(Object.assign({},ya),Qt),isImageUrl:Oe,progress:tt,appendAction:St,appendActionVisible:Rt,itemRender:Zt,disabled:Hn}):St,Cn=Ne()(`${fn}-wrapper`,dt,ma,La,Pn==null?void 0:Pn.className,{[`${fn}-rtl`]:Sa==="rtl",[`${fn}-picture-card-wrapper`]:Ae==="picture-card",[`${fn}-picture-circle-wrapper`]:Ae==="picture-circle"}),En=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),ct);if(vt==="drag"){const St=Ne()(La,fn,`${fn}-drag`,{[`${fn}-drag-uploading`]:Sn.some(Rt=>Rt.status==="uploading"),[`${fn}-drag-hover`]:Kn==="dragover",[`${fn}-disabled`]:Hn,[`${fn}-rtl`]:Sa==="rtl"});return va(ae.createElement("span",{className:Cn},ae.createElement("div",{className:St,style:En,onDrop:Dn,onDragOver:Dn,onDragLeave:Dn},ae.createElement(Tt,Object.assign({},na,{ref:Jn,className:`${fn}-btn`}),ae.createElement("div",{className:`${fn}-drag-container`},Ft))),rn()))}const On=Ne()(fn,`${fn}-select`,{[`${fn}-disabled`]:Hn}),ea=(St=>ae.createElement("div",{className:On,style:St},ae.createElement(Tt,Object.assign({},na,{ref:Jn}))))(Ft?void 0:{display:"none"});return va(Ae==="picture-card"||Ae==="picture-circle"?ae.createElement("span",{className:Cn},rn(ea,!!Ft)):ae.createElement("span",{className:Cn},ea,rn()))};var An=ae.forwardRef(Nt),Re=function(me,Le){var ve={};for(var xe in me)Object.prototype.hasOwnProperty.call(me,xe)&&Le.indexOf(xe)<0&&(ve[xe]=me[xe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,xe=Object.getOwnPropertySymbols(me);Te<xe.length;Te++)Le.indexOf(xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(me,xe[Te])&&(ve[xe[Te]]=me[xe[Te]]);return ve},Fn=ae.forwardRef((me,Le)=>{var{style:ve,height:xe}=me,Te=Re(me,["style","height"]);return ae.createElement(An,Object.assign({ref:Le},Te,{type:"drag",style:Object.assign(Object.assign({},ve),{height:xe})}))});const _n=An;_n.Dragger=Fn,_n.LIST_IGNORE=pt;var ln=_n}}]);
|