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.
NewEduCoderBuild/p__Question__AddOrEdit__ind...

1 line
308 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[86913,4977,38541],{15378:function(){"use strict";function e(e,t,n,a){void 0===n&&(n=0),void 0===a&&(a=1/0),this._name=e,this._defaultValue=t,this._minimum=n,this._maximum=a}Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){if("string"!=typeof e||""===e)throw new Error("Shape name must be a valid string.");this._name=e}}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("The default value must be a real number, not: "+e);this._defaultValue=e}}),Object.defineProperty(e.prototype,"minimum",{get:function(){return this._minimum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Minimum must be a real number, not: "+e);this._minimum=e}}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Maximum must be a real number, not: "+e);this._maximum=e}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(e,t){var n=go.Shape._FigureParameters[e];return n?n[t]:null},go.Shape.setFigureParameter=function(t,n,a){if(!(a instanceof e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var o=go.Shape._FigureParameters[t];o||(o=[],go.Shape._FigureParameters[t]=o),o[n]=a};var t=[];function n(e,n){var a=t.pop();return void 0===a?new go.Point(e,n):(a.x=e,a.y=n,a)}function a(){var e=t.pop();return void 0===e?new go.Point:e}function o(e){t.push(e)}function g(e,t,n,a,o,g,r,i,d){d||(d=new go.Point);var h,m,S,P=e-n,s=o-r,l=NaN,c=NaN;0===P?0===s?e===n&&(l=e,c=t):c=(m=(g-i)/s)*(l=e)+(g-m*o):c=0===s?(h=(t-a)/P)*(l=o)+(S=t-h*e):(h=(t-a)/P)*(l=(g-(m=(g-i)/s)*o-(S=t-h*e))/(h-m))+S;return d.x=l,d.y=c,d}function r(e,t,n,a,o,g,r,i,d,h,m,S,P,s){var l=1-d,c=e*l+n*d,u=t*l+a*d,w=n*l+o*d,p=a*l+g*d,f=o*l+r*d,L=g*l+i*d,v=c*l+w*d,y=u*l+p*d,x=w*l+f*d,F=p*l+L*d,b=v*l+x*d,B=y*l+F*d;h.x=c,h.y=u,m.x=v,m.y=y,S.x=b,S.y=B,P.x=x,P.y=F,s.x=f,s.y=L}var i=new go.Spot(.156,.156),d=new go.Spot(.844,.844),h=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=5),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=(new go.Geometry).add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,t-a,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)).add(new go.PathSegment(go.PathSegment.Line,t,n-a)).add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,n-o,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,a,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,o,n,0,n-o)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()));return o>1&&(g.spot1=new go.Spot(0,0,o,o),g.spot2=new go.Spot(1,1,-o,-o)),g})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=n/2,a.endX=t,a.endY=n/2,a})),go.Shape.defineFigureGenerator("LineV",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t/2,a.startY=0,a.endX=t/2,a.endY=n,a})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.25*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Line,t,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.75*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,t,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(e,t,n){var a=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(a*t,(1-a)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(e,t,n){var a=t/2,o=(new go.Geometry).add(new go.PathFigure(t,t/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,a,a,a,a).close()));return o.spot1=i,o.spot2=d,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Line1",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=0,a.endX=t,a.endY=n,a})),go.Shape.defineFigureGenerator("Line2",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t,a.startY=0,a.endX=0,a.endY=n,a})),go.Shape.defineFigureGenerator("Curve1",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,h*t,0,t,(1-h)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,0,h*n,(1-h)*t,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,h*n,h*t,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-h)*t,0,0,(1-h)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=.1:a<-1?a=-1:a>1&&(a=1);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=10:a<-t?a=-t:a>t&&(a=t);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.setFigureParameter("Trapezoid1",0,new e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=.2:a<.5?a=-.5:a>.5&&(a=.5);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=20:a<-t?a=-t/2:a>t&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.setFigureParameter("ManualOperation",0,new e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=10:a<-t?a=-t/2:a>t&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())):g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g}));var m=[];function S(){var e=m.pop();return void 0===e?[]:e}function P(e){e.length=0,m.push(e)}function s(e){for(var t=S(),n=1.5*Math.PI,a=0,o=0;o<e;o++)a=2*Math.PI/e*o+n,t[o]=new go.Point(.5+.5*Math.cos(a),.5+.5*Math.sin(a));return t.push(t[0]),t}function l(e){var t=c(e),n=S();n[0]=t[0];for(var a=1,o=1;a<t.length;a+=2,o+=3)n[o]=t[a],n[o+1]=t[a],n[o+2]=t[a+1];return P(t),n}function c(e){for(var t=s(e),n=S(),a=Math.floor(t.length/2),o=t.length-1,r=e%2==0?2:1,i=0;i<o;i++){var d=t[i],h=t[i+1],m=t[(a+i-1)%o],l=t[(a+i+r)%o];n[2*i]=d,n[2*i+1]=g(d.x,d.y,m.x,m.y,h.x,h.y,l.x,l.y,new go.Point)}return n[n.length]=n[0],P(t),n}go.Shape.defineFigureGenerator("Pentagon",(function(e,t,n){var a=s(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<5;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.2,.22),o.spot2=new go.Spot(.8,.9),o})),go.Shape.defineFigureGenerator("Hexagon",(function(e,t,n){var a=s(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<6;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.07,.25),o.spot2=new go.Spot(.93,.75),o})),go.Shape.defineFigureGenerator("Heptagon",(function(e,t,n){var a=s(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<7;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.2,.15),o.spot2=new go.Spot(.8,.85),o})),go.Shape.defineFigureGenerator("Octagon",(function(e,t,n){var a=s(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<8;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.15,.15),o.spot2=new go.Spot(.85,.85),o})),go.Shape.defineFigureGenerator("Nonagon",(function(e,t,n){var a=s(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<9;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.17,.13),o.spot2=new go.Spot(.82,.82),o})),go.Shape.defineFigureGenerator("Decagon",(function(e,t,n){var a=s(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<10;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.16,.16),o.spot2=new go.Spot(.84,.84),o})),go.Shape.defineFigureGenerator("Dodecagon",(function(e,t,n){var a=s(12),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<12;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.16,.16),o.spot2=new go.Spot(.84,.84),o})),go.Shape.defineFigureGenerator("FivePointedStar",(function(e,t,n){var a=c(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<10;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.266,.333),o.spot2=new go.Spot(.733,.733),o})),go.Shape.defineFigureGenerator("SixPointedStar",(function(e,t,n){var a=c(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<12;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.17,.25),o.spot2=new go.Spot(.83,.75),o})),go.Shape.defineFigureGenerator("SevenPointedStar",(function(e,t,n){var a=c(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<14;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.666),o})),go.Shape.defineFigureGenerator("EightPointedStar",(function(e,t,n){var a=c(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<16;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.25,.25),o.spot2=new go.Spot(.75,.75),o})),go.Shape.defineFigureGenerator("NinePointedStar",(function(e,t,n){var a=c(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<18;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.666),o})),go.Shape.defineFigureGenerator("TenPointedStar",(function(e,t,n){var a=c(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<20;r++)g.add(new go.PathSegment(go.PathSegment.Line,a[r].x*t,a[r].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),P(a),o.spot1=new go.Spot(.281,.261),o.spot2=new go.Spot(.723,.748),o})),go.Shape.defineFigureGenerator("FivePointedBurst",(function(e,t,n){var a=l(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("SixPointedBurst",(function(e,t,n){var a=l(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.17,.222),o.spot2=new go.Spot(.833,.777),o})),go.Shape.defineFigureGenerator("SevenPointedBurst",(function(e,t,n){var a=l(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("EightPointedBurst",(function(e,t,n){var a=l(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("NinePointedBurst",(function(e,t,n){var a=l(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("TenPointedBurst",(function(e,t,n){var a=l(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var r=1;r<a.length;r+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[r+2].x*t,a[r+2].y*n,a[r].x*t,a[r].y*n,a[r+1].x*t,a[r+1].y*n));return g.segments.last().close(),P(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.setFigureParameter("FramedRectangle",0,new e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",(function(e,t,n){var a=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(a)&&(a=8),isNaN(o)&&(o=8);var g=new go.Geometry,r=new go.PathFigure(0,0,!0);return g.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a<t/2&&o<n/2&&(r.add(new go.PathSegment(go.PathSegment.Move,a,o)),r.add(new go.PathSegment(go.PathSegment.Line,a,n-o)),r.add(new go.PathSegment(go.PathSegment.Line,t-a,n-o)),r.add(new go.PathSegment(go.PathSegment.Line,t-a,o).close())),g.setSpots(0,0,1,1,a,o,-a,-o),g})),go.Shape.setFigureParameter("Ring",0,new e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=8);var o=t/2,g=new go.Geometry,r=new go.PathFigure(t,t/2,!0);g.add(r),r.add(new go.PathSegment(go.PathSegment.Arc,0,360,o,o,o,o).close());var h=Math.max(o-a,0);return h>0&&(r.add(new go.PathSegment(go.PathSegment.Move,t/2+h,t/2)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,o,o,h,h).close())),g.spot1=i,g.spot2=d,g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Cloud",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.08034461*t,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*t,.05349299*n,-.09239631*t,.07836421*n,.1406031*t,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*t,.074219*n,.2450511*t,-.00697547*n,.3776197*t,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*t,.07004196*n,.4539471*t,0,.6066018*t,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*t,.08370865*n,.6914277*t,-.01904177*n,.8921095*t,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*t,.3194596*n,1.036446*t,.04105738*n,1.020377*t,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*t,.562044*n,1.04448*t,.360238*n,.992256*t,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*t,.8217117*n,1.032337*t,.5771781*n,1.018411*t,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*t,.9156953*n,1.028411*t,.9571472*n,.8556702*t,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*t,.9310455*n,.7431877*t,1.009325*n,.5624123*t,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*t,.9344623*n,.4820677*t,1.031761*n,.3030112*t,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.870098*n,.2329994*t,1.01518*n,.03213784*t,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*t,.6545475*n,-.02812061*t,.9032597*n,-.01205169*t,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*t,.4265613*n,-.01812061*t,.6089503*n,-.00606892*t,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.1944299*n,-.01606892*t,.3892545*n,-.01205169*t,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(e,t,n){var a=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(a*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,a*n).close())).setSpots(a/2,a/2,1-a/2,1-a/2)})),go.Shape.setFigureParameter("Pie",0,new e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(e,t,n){var a=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(a)&&(a=0),isNaN(o)&&(o=315);var g=a%360;g<0&&(g+=360);var r=o%360,i=Math.min(t,n)/2;return(new go.Geometry).add(new go.PathFigure(i,i).add(new go.PathSegment(go.PathSegment.Arc,g,r,i,i,i,i).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(e,t,n){var a=h/Math.SQRT2*.5,o=Math.SQRT2/2,g=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,o*t,g*n,t,(1-a)*n,(o+a)*t,(g+a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30);var o=Math.min(a,t)/2,g=t/2,r=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,r-o)).add(new go.PathSegment(go.PathSegment.Line,t,r-o)).add(new go.PathSegment(go.PathSegment.Line,t,r+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,r+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,r+o)).add(new go.PathSegment(go.PathSegment.Line,0,r+o)).add(new go.PathSegment(go.PathSegment.Line,0,r-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,r-o).close()))})),go.Shape.setFigureParameter("ThinCross",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=Math.min(a,t)/2,g=t/2,r=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,r-o)).add(new go.PathSegment(go.PathSegment.Line,t,r-o)).add(new go.PathSegment(go.PathSegment.Line,t,r+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,r+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,r+o)).add(new go.PathSegment(go.PathSegment.Line,0,r+o)).add(new go.PathSegment(go.PathSegment.Line,0,r-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,r-o).close()))})),go.Shape.setFigureParameter("ThickX",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(e,t,n){var a=e?e.parameter1:NaN;if((isNaN(a)||a<0)&&(a=30),0===t||0===n)return(h=new go.Geometry(go.Geometry.Rectangle)).startX=0,h.startY=0,h.endX=t,h.endY=n,h;var o=t/2,g=n/2,r=Math.atan2(n,t),i=a-Math.min(Math.cos(r)*a/2,o),d=a-Math.min(Math.sin(r)*a/2,g),h=new go.Geometry,m=new go.PathFigure(i,0,!0);return h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,o,.2*n)),m.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),m.add(new go.PathSegment(go.PathSegment.Line,t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.8*t,g)),m.add(new go.PathSegment(go.PathSegment.Line,t,n-d)),m.add(new go.PathSegment(go.PathSegment.Line,t-i,n)),m.add(new go.PathSegment(go.PathSegment.Line,o,.8*n)),m.add(new go.PathSegment(go.PathSegment.Line,i,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n-d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,g)),m.add(new go.PathSegment(go.PathSegment.Line,0,d).close()),h})),go.Shape.setFigureParameter("ThinX",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=new go.Geometry,g=new go.PathFigure(.1*t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),o})),go.Shape.setFigureParameter("SquareIBeam",0,new e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n).close()),o})),go.Shape.setFigureParameter("RoundedIBeam",0,new e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.5);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,n,Math.abs(1-a)*t,.25*n,Math.abs(1-a)*t,.75*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*t,.75*n,a*t,.25*n).close()),o})),go.Shape.defineFigureGenerator("HalfEllipse",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,h*t,0,t,(.5-h/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+h/2)*n,h*t,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,0,t,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*t,.75*n,.5*t,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*t,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,0,0,.45*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.55*t,0,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.5*n,.9*t,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*t,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.6*t,.2*n,t,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.7*n,t,.8*n,.6*t,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,.5*t,.75*n,.55*t,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.7*n,.45*t,.95*n,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*t,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*t,.01*n,0,.25*n,.4*t,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.4*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.15*t,n,.5*t,.75*n,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.6*n,.55*t,.95*n,.5*t,.75*n));var g=.2,r=.3,i=0,d=g*h;return o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r)*t,(.5+g+i)*n,(.5-g+r)*t,(.5+d+i)*n,(.5-d+r)*t,(.5+g+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+r)*t,(.5+i)*n,(.5+d+r)*t,(.5+g+i)*n,(.5+g+r)*t,(.5+d+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r)*t,(.5-g+i)*n,(.5+g+r)*t,(.5-d+i)*n,(.5+d+r)*t,(.5-g+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.65*t,.36771243*n,(.5-d+r)*t,(.5-g+i)*n,(.5-g+r+.05)*t,(.5-d+i-.02)*n)),r=0,i=-.3,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+r)*t,(.5+i)*n,(.5+d+r)*t,(.5+g+i)*n,(.5+g+r)*t,(.5+d+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r)*t,(.5-g+i)*n,(.5+g+r)*t,(.5-d+i)*n,(.5+d+r)*t,(.5-g+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+r)*t,(.5+i)*n,(.5-d+r)*t,(.5-g+i)*n,(.5-g+r)*t,(.5-d+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-d+r)*t,(.5+g+i)*n,(.5-g+r)*t,(.5+d+i)*n,(.5-d+r)*t,(.5+g+i)*n)),r=-.3,i=0,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r)*t,(.5-g+i)*n,(.5+g+r-.05)*t,(.5-d+i-.02)*n,(.5+d+r)*t,(.5-g+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+r)*t,(.5+i)*n,(.5-d+r)*t,(.5-g+i)*n,(.5-g+r)*t,(.5-d+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+r)*t,(.5+g+i)*n,(.5-g+r)*t,(.5+d+i)*n,(.5-d+r)*t,(.5+g+i)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.6*n,(.5+d+r)*t,(.5+g+i)*n,(.5+g+r)*t,(.5+d+i)*n).close()),a.setSpots(.06,.33,.93,.68),a})),go.Shape.defineFigureGenerator("YinYang",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*t,.5*t,.5*t,.5*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*t,.75*t,.25*t,.25*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*t,.25*t,.25*t,.25*t));var g=.1,r=.5,i=.25;return o.add(new go.PathSegment(go.PathSegment.Move,.6*t,i*n)),o.add(new go.PathSegment(go.PathSegment.Arc,0,-360,t*r,n*i,g*t,g*t).close()),o=new go.PathFigure(.5*t,0,!1),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*t,.5*t,.5*t,.5*t)),i=.75,o=new go.PathFigure(.6*t,i*n,!0),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,0,360,t*r,n*i,g*t,g*t).close()),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("Peace",(function(e,t,n){var a=.8535533905932737,o=.5*t,g=.5*n;return(new go.Geometry).add(new go.PathFigure(o,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,o,g,o,g)).add(new go.PathSegment(go.PathSegment.Line,o,n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,a*t,a*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(e,t,n){var g=new go.Geometry,i=.5*h,d=.5,m=.5,S=.5,P=new go.PathFigure(m*t,(S-d)*n);g.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,S*n,(m-i)*t,(S-d)*n,(m-d)*t,(S-i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+d)*n,(m-d)*t,(S+i)*n,(m-i)*t,(S+d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,S*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-d)*n,(m+d)*t,(S-i)*n,(m+i)*t,(S-d)*n)),d=.4,i=.4*h;var s=a(),l=a(),c=a(),u=a();r(m,S-d,m+i,S-d,m+d,S-i,m+d,S,.42,s,l,c,u,u);var w=a(),p=a(),f=a();r(m,S-d,m+i,S-d,m+d,S-i,m+d,S,.58,u,u,f,w,p);var L=a(),v=a(),y=a();r(m,S+d,m-i,S+d,m-d,S+i,m-d,S,.42,L,v,y,u,u);var x=a(),F=a(),b=a();return r(m,S+d,m-i,S+d,m-d,S+i,m-d,S,.58,u,u,b,x,F),P.add(new go.PathSegment(go.PathSegment.Move,b.x*t,b.y*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,S*n,x.x*t,x.y*n,F.x*t,F.y*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-d)*n,(m-d)*t,(S-i)*n,(m-i)*t,(S-d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,c.x*t,c.y*n,s.x*t,s.y*n,l.x*t,l.y*n)),P.add(new go.PathSegment(go.PathSegment.Line,b.x*t,b.y*n).close()),P.add(new go.PathSegment(go.PathSegment.Move,y.x*t,y.y*n)),P.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,S*n,w.x*t,w.y*n,p.x*t,p.y*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+d)*n,(m+d)*t,(S+i)*n,(m+i)*t,(S+d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,y.x*t,y.y*n,L.x*t,L.y*n,v.x*t,v.y*n).close()),o(s),o(l),o(c),o(u),o(w),o(p),o(f),o(L),o(v),o(y),o(x),o(F),o(b),g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Fragile",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*t,0)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*t,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.5*n,t,.25*n,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30),a>t&&(a=t);var o=(t-a)/2,g=o+a;return(new go.Geometry).add(new go.PathFigure(g,.5*n).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,o,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*t,0)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(e,t,g){var i=new go.Geometry,d=.4*h,m=.4,S=.5,P=.5,s=a(),l=a(),c=a(),u=a(),w=new go.PathFigure((S-m)*t,P*g,!1);i.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P-m)*g,(S-m)*t,(P-d)*g,(S-d)*t,(P-m)*g)),r(S,P-m,S+d,P-m,S+m,P-d,S+m,P,.44,c,u,l,s,s),w.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,c.x*t,c.y*g,u.x*t,u.y*g));var p=n(l.x,l.y);r(S,P-m,S+d,P-m,S+m,P-d,S+m,P,.56,s,s,l,c,u);var f=n(l.x,l.y);w.add(new go.PathSegment(go.PathSegment.Line,(.1*p.x+.855)*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,(.1*f.y+.05*.9)*g)),w.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,P*g,c.x*t,c.y*g,u.x*t,u.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+m)*g,(S+m)*t,(P+d)*g,(S+d)*t,(P+m)*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,P*g,(S-d)*t,(P+m)*g,(S-m)*t,(P+d)*g)),m=.35,d=.35*h;var L=new go.PathFigure(S*t,(P-m)*g,!1);i.add(L),L.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,P*g,(S-d)*t,(P-m)*g,(S-m)*t,(P-d)*g)),L.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+m)*g,(S-m)*t,(P+d)*g,(S-d)*t,(P+m)*g)),L.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,P*g,(S+d)*t,(P+m)*g,(S+m)*t,(P+d)*g)),L.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P-m)*g,(S+m)*t,(P-d)*g,(S+d)*t,(P-m)*g));var v=new go.PathFigure((S-m)*t,P*g,!1);return i.add(v),o(s),o(l),o(c),o(u),o(p),o(f),i.spot1=new go.Spot(.202,.257),i.spot2=new go.Spot(.792,.739),i.defaultStretch=go.GraphObject.Uniform,i})),go.Shape.defineFigureGenerator("GenderFemale",(function(e,t,n){var a=new go.Geometry,o=.375,g=0,r=-.125,i=o*h,d=new go.PathFigure((.525+g)*t,(.5+o+r)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+r)*n,(.5+i+g)*t,(.5+o+r)*n,(.5+o+g)*t,(.5+i+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+r)*n,(.5+o+g)*t,(.5-i+r)*n,(.5+i+g)*t,(.5-o+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+r)*n,(.5-i+g)*t,(.5-o+r)*n,(.5-o+g)*t,(.5-i+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.475+g)*t,(.5+o+r)*n,(.5-o+g)*t,(.5+i+r)*n,(.5-i+g)*t,(.5+o+r)*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n).close()),g=0,r=-.125,i=(o=.325)*h;d=new go.PathFigure((.5+o+g)*t,(.5+r)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5+o+r)*n,(.5+o+g)*t,(.5+i+r)*n,(.5+i+g)*t,(.5+o+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+r)*n,(.5-i+g)*t,(.5+o+r)*n,(.5-o+g)*t,(.5+i+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+r)*n,(.5-o+g)*t,(.5-i+r)*n,(.5-i+g)*t,(.5-o+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+r)*n,(.5+i+g)*t,(.5-o+r)*n,(.5+o+g)*t,(.5-i+r)*n));d=new go.PathFigure((.525+g)*t,(.5+o+r)*n,!1);return a.add(d),a.spot1=new go.Spot(.232,.136),a.spot2=new go.Spot(.682,.611),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicImplies",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(e,t,n){var a=(new go.Geometry).add(new go.PathFigure(.5*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*t,.5*n,.5*t,.5*n)));return a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicTruth",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Move,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,a*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.3);var i=e?e.parameter2:NaN;isNaN(i)&&(i=.3);var d=(1-r)*t,h=(.5-i/2)*n,m=(.5+i/2)*n,S=new go.Geometry,P=new go.PathFigure(0,h,!0);S.add(P),P.add(new go.PathSegment(go.PathSegment.Line,d,h)),P.add(new go.PathSegment(go.PathSegment.Line,d,0)),P.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),P.add(new go.PathSegment(go.PathSegment.Line,d,n)),P.add(new go.PathSegment(go.PathSegment.Line,d,m)),P.add(new go.PathSegment(go.PathSegment.Line,0,m).close()),S.spot1=new go.Spot(0,h/n);var s=g(0,m/n,1,m/n,d/t,1,1,.5,a());return S.spot2=new go.Spot(s.x,s.y),o(s),S})),go.Shape.setFigureParameter("Arrow2",0,new e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=30),r>t&&(r=t);var i=e?e.parameter2:NaN;isNaN(i)&&(i=30);var d=t-r,h=(n-(i=Math.min(i,n/2)))/2,m=h+i,S=new go.Geometry,P=new go.PathFigure(0,h,!0);S.add(P),P.add(new go.PathSegment(go.PathSegment.Line,d,h)),P.add(new go.PathSegment(go.PathSegment.Line,d,0)),P.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),P.add(new go.PathSegment(go.PathSegment.Line,d,n)),P.add(new go.PathSegment(go.PathSegment.Line,d,m)),P.add(new go.PathSegment(go.PathSegment.Line,0,m).close()),S.spot1=new go.Spot(0,h/n);var s=g(0,m/n,1,m/n,d/t,1,1,.5,a());return S.spot2=new go.Spot(s.x,s.y),o(s),S})),go.Shape.defineFigureGenerator("Chevron",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("DoubleArrow",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.214*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.786*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),a})),go.Shape.setFigureParameter("DoubleEndArrow",0,new e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.3);var i=(.5-r/2)*n,d=(.5+r/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var S=g(0,.5,.3,0,0,i/n,.1,i/n,a());return h.spot1=new go.Spot(S.x,S.y),S=g(.7,1,1,.5,0,d/n,1,d/n,S),h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=40);var i=e?e.parameter2:NaN;isNaN(i)&&(i=100);var d=(n-r)/2,h=d+r,m=(n-i)/2,S=m+i;(r>n||i>n)&&(i>r?(h=(d=(n-(r=r*n/i))/2)+r,m=0,S=n):(d=0,h=n,m=0,S=n));var P=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);P.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,S)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,S)),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,m)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,m).close());var l=g(0,.5,.3,m/n,0,d/n,1,d/n,a());return P.spot1=new go.Spot(l.x,l.y),l=g(.7,S/n,1,.5,0,h/n,1,h/n,l),P.spot2=new go.Spot(l.x,l.y),o(l),P})),go.Shape.setFigureParameter("IBeamArrow",0,new e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.3);var i=(.5-r/2)*n,d=(.5+r/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,0)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(0,i/n);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("IBeamArrow2",0,new e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=40);var i=e?e.parameter2:NaN;isNaN(i)&&(i=100);var d=(n-r)/2,h=d+r,m=(n-i)/2,S=m+i;(r>n||i>n)&&(i>r?(h=(d=(n-(r=r*n/i))/2)+r,m=0,S=n):(d=0,h=n,m=0,S=n));var P=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);P.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,S)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,S)),s.add(new go.PathSegment(go.PathSegment.Line,0,S)),s.add(new go.PathSegment(go.PathSegment.Line,0,m)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,m)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,m).close()),P.spot1=new go.Spot(0,d/n);var l=g(.7,S/n,1,.5,0,h/n,1,h/n,a());return P.spot2=new go.Spot(l.x,l.y),o(l),P})),go.Shape.setFigureParameter("Pointer",0,new e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.1);var i=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Line,r*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),i.spot1=new go.Spot(r,.35);var h=g(.2,.65,1,.65,0,1,1,.5,a());return i.spot2=new go.Spot(h.x,h.y),o(h),i})),go.Shape.setFigureParameter("RoundedPointer",0,new e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.3);var i=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);i.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,r*t,.75*n,r*t,.25*n).close()),i.spot1=new go.Spot(r,.35);var h=g(0,.65,1,.65,0,1,1,.5,a());return i.spot2=new go.Spot(h.x,h.y),o(h),i})),go.Shape.setFigureParameter("SplitEndArrow",0,new e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=.4);var i=(.5-r/2)*n,d=(.5+r/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,0,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,0,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,.3);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("SplitEndArrow2",0,new e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(e,t,n){var r=e?e.parameter1:NaN;isNaN(r)&&(r=50);var i=(n-r)/2,d=i+r;r>n&&(i=0,d=n);var h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,0,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,0,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,i/n);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("SquareArrow",0,new e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.7);var o=new go.Geometry,g=new go.PathFigure(t,.5*n,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,a*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=go.Spot.TopLeft,o.spot2=new go.Spot(a,1),o})),go.Shape.defineFigureGenerator("Cone1",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,r=new go.PathFigure(0,.9*n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n).close()),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.97),a})),go.Shape.defineFigureGenerator("Cone2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.9*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,n,.85/.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var g=new go.PathFigure(0,.9*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,.8*n,.85/.9*t,.8*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.82),a})),go.Shape.defineFigureGenerator("Cube1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.5,.85),a})),go.Shape.defineFigureGenerator("Cube2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.3*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(0,.3*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.7,1),a})),go.Shape.defineFigureGenerator("Cylinder1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,r=new go.PathFigure(0,a,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a,(.5+g)*t,0,1*t,h*a)),r.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,1*n,1*t,n-h*a,(.5+g)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,1*n,0,n-h*a)),r.add(new go.PathSegment(go.PathSegment.Line,0,a));var i=new go.PathFigure(t,a,!1);return o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,2*a,1*t,2*a-h*a,(.5+g)*t,2*a)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,a,(.5-g)*t,2*a,0,2*a-h*a)),o.spot1=new go.Spot(0,0,0,2*a),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,r=new go.PathFigure(0,n-a,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,a)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,a,(.5+g)*t,0,t,h*a)),r.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,n-h*a,(.5+g)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,n,0,n-h*a));var i=new go.PathFigure(0,n-a,!1);return o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n-2*a,0,n-a-h*a,(.5-g)*t,n-2*a)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,n-a,(.5+g)*t,n-2*a,t,n-a-h*a)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,0,-2*a),o})),go.Shape.defineFigureGenerator("Cylinder3",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,r=new go.PathFigure(a,0,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),r.add(new go.PathSegment(go.PathSegment.Line,a,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0));var i=new go.PathFigure(a,0,!1);return o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,2*a,.5*n,a+h*a,0,2*a,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,n,2*a,(.5+g)*n,a+h*a,n)),o.spot1=new go.Spot(0,0,2*a,0),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder4",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,r=new go.PathFigure(t-a,0,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),r.add(new go.PathSegment(go.PathSegment.Line,a,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0)),r.add(new go.PathSegment(go.PathSegment.Line,t-a,0));var i=new go.PathFigure(t-a,0,!1);return o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t-2*a,.5*n,t-a-h*a,0,t-2*a,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t-2*a,(.5+g)*n,t-a-h*a,n)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,-2*a,0),o})),go.Shape.defineFigureGenerator("Prism1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.25*t,.25*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.408,.172),a.spot2=new go.Spot(.833,.662),a})),go.Shape.defineFigureGenerator("Prism2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("Pyramid1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Pyramid2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Actor",(function(e,t,n){var a=new go.Geometry,o=.2,g=.1,r=h*o,i=h*g,d=.5,m=.1,S=new go.PathFigure(d*t,(m+g)*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(d-o)*t,m*n,(d-r)*t,(m+g)*n,(d-o)*t,(m+i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-g)*n,(d-o)*t,(m-i)*n,(d-r)*t,(m-g)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d+o)*t,m*n,(d+r)*t,(m-g)*n,(d+o)*t,(m-i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+g)*n,(d+o)*t,(m+i)*n,(d+r)*t,(m+g)*n));var P=.05,s=h*P;d=.05,m=.25;var l=new go.PathFigure(.5*t,.2*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),d=.95,m=.25,l.add(new go.PathSegment(go.PathSegment.Bezier,(d+P)*t,m*n,(d+s)*t,(m-P)*n,(d+P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),s=h*(P=.025),d=.825,m=.35,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-P)*n,(d+P)*t,(m-s)*n,(d+s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-P)*t,m*n,(d-s)*t,(m-P)*n,(d-P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),s=h*(P=.05),d=.5,m=.7,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-P)*n,(d+P)*t,(m-s)*n,(d+s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-P)*t,m*n,(d-s)*t,(m-P)*n,(d-P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),s=h*(P=.025),d=.175,m=.35,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-P)*n,(d+P)*t,(m-s)*n,(d+s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-P)*t,m*n,(d-s)*t,(m-P)*n,(d-P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),s=h*(P=.05),d=.05,m=.25,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-P)*n,(d-P)*t,(m-s)*n,(d-s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),a.spot1=new go.Spot(.2,.2),a.spot2=new go.Spot(.8,.65),a})),go.Shape.setFigureParameter("Card",0,new e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=new go.Spot(0,a),o.spot2=go.Spot.BottomRight,o})),go.Shape.defineFigureGenerator("Collate",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n));var g=new go.PathFigure(.5*t,.5*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,.25),a})),go.Shape.defineFigureGenerator("CreateRequest",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(0,o*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("Database",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,r=new go.PathFigure(t,.1*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var i=new go.PathFigure(t,.1*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.4*n,t,(.3+g)*n,(.5+o)*t,.4*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-o)*t,.4*n,0,(.3+g)*n)),a.spot1=new go.Spot(0,.4),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("DataStorage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.9*n,.25*t,.1*n).close()),a.spot1=new go.Spot(.226,0),a.spot2=new go.Spot(.81,1),a})),go.Shape.defineFigureGenerator("DiskStorage",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,r=new go.PathFigure(t,.1*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var i=new go.PathFigure(t,.1*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("Display",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("DividedEvent",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)?o=.2:o<.15&&(o=.15);var g=.2*h,r=new go.PathFigure(0,.2*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,0,(.2-g)*n,(.2-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.2*n,(.8+g)*t,0,t,(.2-g)*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,n,t,(.8+g)*n,(.8+g)*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-g)*t,n,0,(.8+g)*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var i=new go.PathFigure(0,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("DividedProcess",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.1)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(0,o*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("Document",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.2)&&(o=.2);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("ExternalProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(.1*t,.4*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.9*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.6*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Move,.4*t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("File",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.75*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Interrupt",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n));var g=new go.PathFigure(t,.5*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n));var r=new go.PathFigure(t,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("InternalStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.1);var r=new go.PathFigure(0,0,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,0,g*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,g*n)),a})),go.Shape.defineFigureGenerator("Junction",(function(e,t,n){var a=new go.Geometry,o=1/Math.SQRT2,g=(1-1/Math.SQRT2)/2,r=.5*h,i=.5,d=new go.PathFigure(t,i*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,t,(i+r)*n,(i+r)*t,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,i*n,(i-r)*t,n,0,(i+r)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,0,0,(i-r)*n,(i-r)*t,0)),d.add(new go.PathSegment(go.PathSegment.Bezier,t,i*n,(i+r)*t,0,t,(i-r)*n));var m=new go.PathFigure((g+o)*t,(g+o)*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Line,g*t,g*n)),m.add(new go.PathSegment(go.PathSegment.Move,g*t,(g+o)*n)),m.add(new go.PathSegment(go.PathSegment.Line,(g+o)*t,g*n)),a})),go.Shape.defineFigureGenerator("LinedDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close());var g=new go.PathFigure(.1*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.75*n)),a.spot1=new go.Spot(.1,0),a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("LoopLimit",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MagneticTape",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=new go.PathFigure(.5*t,n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.9*n,t,(g+o)*n,(g+o)*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.15,.15),a.spot2=new go.Spot(.85,.8),a})),go.Shape.defineFigureGenerator("ManualInput",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MessageFromUser",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.7);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,o*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,o*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("MicroformRecording",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("MultiDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.44*n,.96*t,.47*n,.93*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.54*n,.86*t,.57*n,.83*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*t,.4*n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0).close());var g=new go.PathFigure(.1*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.44*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.8,.77),a})),go.Shape.defineFigureGenerator("MultiProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close());var g=new go.PathFigure(.2*t,.1*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Move,.1*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),a.spot1=new go.Spot(0,.2),a.spot2=new go.Spot(.8,1),a})),go.Shape.defineFigureGenerator("OfflineStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close());var r=new go.PathFigure(.5*o*t,o*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,(1-.5*o)*t,o*n)),a})),go.Shape.defineFigureGenerator("OffPageConnector",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("Or",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=new go.PathFigure(t,g*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var i=new go.PathFigure(t,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),i.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a})),go.Shape.defineFigureGenerator("PaperTape",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.5*t,.6*n,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=new go.Spot(0,.49),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var r=new go.PathFigure(0,0,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,0)),r.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var r=new go.PathFigure(0,0,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Procedure",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure((1-o)*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a})),go.Shape.defineFigureGenerator("Process",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Sort",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(0,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.5),a})),go.Shape.defineFigureGenerator("Start",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(o*t,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n));var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),a.spot1=new go.Spot(o,0),a.spot2=new go.Spot(1-o,1),a})),go.Shape.defineFigureGenerator("Terminator",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n)),a.spot1=new go.Spot(.23,0),a.spot2=new go.Spot(.77,1),a})),go.Shape.defineFigureGenerator("TransmittalTape",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-o)*n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("AndGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.5+o)*t,0,t,(.5-o)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.5+o)*n,(.5+o)*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.55,1),a})),go.Shape.defineFigureGenerator("Buffer",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Clock",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=new go.PathFigure(t,g*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var i=new go.PathFigure(t,g*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,g*n));var d=new go.PathFigure(.8*t,.75*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.8*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.75*n)),a})),go.Shape.defineFigureGenerator("Ground",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),a})),go.Shape.defineFigureGenerator("Inverter",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.9,r=.5,i=new go.PathFigure(.8*t,.5*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,0)),i.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n));var d=new go.PathFigure(1*t,r*n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.6*n,1*t,(r+o)*n,(g+o)*t,.6*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,r*n,(g-o)*t,.6*n,.8*t,(r+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.4*n,.8*t,(r-o)*n,(g-o)*t,.4*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,r*n,(g+o)*t,.4*n,1*t,(r-o)*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.4,.75),a})),go.Shape.defineFigureGenerator("NandGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.4*h,r=.1*h,i=.9,d=.5,m=new go.PathFigure(.8*t,.5*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+g)*n,(.4+o)*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,0)),m.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+o)*t,0,.8*t,(.5-g)*n));var S=new go.PathFigure(1*t,d*n,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t,.6*n,1*t,(d+r)*n,(i+r)*t,.6*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,d*n,(i-r)*t,.6*n,.8*t,(d+r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t,.4*n,.8*t,(d-r)*n,(i-r)*t,.4*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,1*t,d*n,(i+r)*t,.4*n,1*t,(d-r)*n)),a.spot1=new go.Spot(0,.05),a.spot2=new go.Spot(.55,.95),a})),go.Shape.defineFigureGenerator("NorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,r=0,i=.5,d=new go.PathFigure(.8*t,.5*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*t,(i+g)*n,(r+g)*t,(i+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(r+g)*t,(i-o)*n,.7*t,(i-g)*n)),o=.1,g=.1*h,r=.9,i=.5;var m=new go.PathFigure((r-o)*t,i*n,!0);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(r-o)*t,i*n,(r-g)*t,(i+o)*n,(r-o)*t,(i+g)*n)),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.6,.75),a})),go.Shape.defineFigureGenerator("OrGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=new go.PathFigure(0,0,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(0+o+o)*t,0*n,.8*t,(g-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*t,(g+o)*n,(0+o+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n).close()),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("XnorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,r=.2,i=.5,d=new go.PathFigure(.1*t,0,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var m=new go.PathFigure(.8*t,.5*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(i+g)*n,(r+g)*t,(i+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(r+g)*t,(i-o)*n,.7*t,(i-g)*n)),o=.1,g=.1*h,r=.9,i=.5;var S=new go.PathFigure((r-o)*t,i*n,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(r-o)*t,i*n,(r-g)*t,(i+o)*n,(r-o)*t,(i+g)*n)),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.65,.75),a})),go.Shape.defineFigureGenerator("XorGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=new go.PathFigure(.1*t,0,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var i=new go.PathFigure(.2*t,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.2+o)*t,0*n,.9*t,(g-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.9*t,(g+o)*n,(.2+o)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n).close()),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.8,.75),a})),go.Shape.defineFigureGenerator("Capacitor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Resistor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),a})),go.Shape.defineFigureGenerator("Inductor",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.1,r=.1,i=new go.PathFigure((r-.5*o)*t,n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t,0,(r-o)*t,n,(r-g)*t,0)),r=.3,i.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,(r+g)*t,0,(r+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t,0,(r-o)*t,n,(r-g)*t,0)),r=.5,i.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,(r+g)*t,0,(r+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t,0,(r-o)*t,n,(r-g)*t,0)),r=.7,i.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,(r+g)*t,0,(r+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t,0,(r-o)*t,n,(r-g)*t,0)),r=.9,i.add(new go.PathSegment(go.PathSegment.Bezier,(r+.5*o)*t,n,(r+g)*t,0,(r+o)*t,n)),a})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=.5,i=new go.PathFigure(0*t,r*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(r-o)*n,(g-o)*t,0*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,1*t,r*n,(g+o)*t,0*n,1*t,(r-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(r+o)*n,(g+o)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0*t,r*n,(g-o)*t,1*n,0*t,(r+o)*n)),i.add(new go.PathSegment(go.PathSegment.Move,.1*t,r*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,r*n,g*t,0*n,g*t,1*n)),a})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Diode",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Wifi",(function(e,t,n){var a=new go.Geometry,o=.8*h,g=.8,r=0,i=.5,d=(t-(t*=.38))/2,m=(n-(n*=.6))/2,S=new go.PathFigure(r*t+d,(i+g)*n+m,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+m,(r-o)*t+d,(i+g)*n+m,(r-g)*t+d,(i+o)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+m,(r-g)*t+d,(i-o)*n+m,(r-o)*t+d,(i-g)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,(r-g+.5*o)*t+d,i*n+m,r*t+d,(i-g)*n+m,(r-g+.5*o)*t+d,(i-o)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+m,(r-g+.5*o)*t+d,(i+o)*n+m,r*t+d,(i+g)*n+m).close()),o=.4*h,g=.4,r=.2,i=.5;var P=new go.PathFigure(r*t+d,(i+g)*n+m,!0);a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+m,(r-o)*t+d,(i+g)*n+m,(r-g)*t+d,(i+o)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+m,(r-g)*t+d,(i-o)*n+m,(r-o)*t+d,(i-g)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,(r-g+.5*o)*t+d,i*n+m,r*t+d,(i-g)*n+m,(r-g+.5*o)*t+d,(i-o)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+m,(r-g+.5*o)*t+d,(i+o)*n+m,r*t+d,(i+g)*n+m).close()),o=.2*h,g=.2,r=.5,i=.5;var s=new go.PathFigure((r-g)*t+d,i*n+m,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+m,(r-g)*t+d,(i-o)*n+m,(r-o)*t+d,(i-g)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+m,(r+o)*t+d,(i-g)*n+m,(r+g)*t+d,(i-o)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+m,(r+g)*t+d,(i+o)*n+m,(r+o)*t+d,(i+g)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+m,(r-o)*t+d,(i+g)*n+m,(r-g)*t+d,(i+o)*n+m)),o=.4*h,g=.4,r=.8,i=.5;var l=new go.PathFigure(r*t+d,(i-g)*n+m,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+m,(r+o)*t+d,(i-g)*n+m,(r+g)*t+d,(i-o)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+m,(r+g)*t+d,(i+o)*n+m,(r+o)*t+d,(i+g)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,(r+g-.5*o)*t+d,i*n+m,r*t+d,(i+g)*n+m,(r+g-.5*o)*t+d,(i+o)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+m,(r+g-.5*o)*t+d,(i-o)*n+m,r*t+d,(i-g)*n+m).close()),o=.8*h,g=.8,r=1,i=.5;var c=new go.PathFigure(r*t+d,(i-g)*n+m,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+m,(r+o)*t+d,(i-g)*n+m,(r+g)*t+d,(i-o)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+m,(r+g)*t+d,(i+o)*n+m,(r+o)*t+d,(i+g)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,(r+g-.5*o)*t+d,i*n+m,r*t+d,(i+g)*n+m,(r+g-.5*o)*t+d,(i+o)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+m,(r+g-.5*o)*t+d,(i-o)*n+m,r*t+d,(i-g)*n+m).close()),a})),go.Shape.defineFigureGenerator("Email",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.54*n)),a})),go.Shape.defineFigureGenerator("Ethernet",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.35*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,0).close());var g=new go.PathFigure(.1*t,n,!0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var r=new go.PathFigure(.6*t,n,!0,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,n).close());var i=new go.PathFigure(0,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),i.add(new go.PathSegment(go.PathSegment.Move,.75*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.75*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.25*t,.6*n)),a})),go.Shape.defineFigureGenerator("Power",(function(e,t,g){var i=new go.Geometry,d=.4*h,m=.4,S=.5,P=.5,s=a(),l=a(),c=a(),u=a();r(S,P-m,S+d,P-m,S+m,P-d,S+m,P,.5,s,s,l,c,u);var w=n(l.x,l.y),p=new go.PathFigure(l.x*t,l.y*g,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,P*g,c.x*t,c.y*g,u.x*t,u.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+m)*g,(S+m)*t,(P+d)*g,(S+d)*t,(P+m)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,P*g,(S-d)*t,(P+m)*g,(S-m)*t,(P+d)*g)),r(S-m,P,S-m,P-d,S-d,P-m,S,P-m,.5,c,u,l,s,s),p.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,c.x*t,c.y*g,u.x*t,u.y*g)),r(S-(m=.3),P,S-m,P-(d=.3*h),S-d,P-m,S,P-m,.5,c,u,l,s,s),p.add(new go.PathSegment(go.PathSegment.Line,l.x*t,l.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,P*g,u.x*t,u.y*g,c.x*t,c.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+m)*g,(S-m)*t,(P+d)*g,(S-d)*t,(P+m)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,P*g,(S+d)*t,(P+m)*g,(S+m)*t,(P+d)*g)),r(S,P-m,S+d,P-m,S+m,P-d,S+m,P,.5,s,s,l,c,u),p.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,u.x*t,u.y*g,c.x*t,c.y*g).close());p=new go.PathFigure(.45*t,0,!0);return i.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,0).close()),o(s),o(l),o(c),o(u),o(w),i.spot1=new go.Spot(.25,.45),i.spot2=new go.Spot(.75,.8),i})),go.Shape.defineFigureGenerator("Fallout",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n/2,!0);function g(e,a,o){e.add(new go.PathSegment(go.PathSegment.Move,(.3+a)*t,(.8+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.5+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.1+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.3+a)*t,(.8+o)*n).close())}return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,180,360,t/2,n/2,t/2,n/2)),g(o,0,0),g(o,.4,0),g(o,.2,-.3),a})),go.Shape.defineFigureGenerator("IrritationHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),a.spot1=new go.Spot(.3,.3),a.spot2=new go.Spot(.7,.7),a})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.37*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.11*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.04*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.49*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*t,.86*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.91*n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,.78*n)),o.add(new go.PathSegment(go.PathSegment.Line,.44*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.56*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),a})),go.Shape.defineFigureGenerator("FireHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.29*t,0,-.25*t,.63*n,.45*t,.44*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.51*t,.42*n,.48*t,.17*n,.54*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.59*t,.18*n,.59*t,.29*n,.58*t,.28*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,.6*n,.8*t,.34*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.88*t,.31*n,.87*t,.48*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,1.17*t,.76*n,.82*t,.8*n).close()),a.spot1=new go.Spot(.07,.445),a.spot2=new go.Spot(.884,.958),a})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(e,t,n){var a=new go.Geometry,o=.5,g=o*h,r=.4*Math.SQRT2/2+.5,i=.5-.5*Math.SQRT2/2,d=new go.PathFigure(r*t,(1-i)*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,.5*n,1*t,.7*n,1*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0*n,1*t,(.5-g+0)*n,(.5+g+0)*t,0*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0*t,.5*n,(.5-g+0)*t,0*n,0*t,(.5-g+0)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.9*n,0*t,(.5+g+0)*n,(.5-g+0)*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Move,.25*t,.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,.35*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var r=new go.PathFigure(0,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.2*t,.35*n,.3*t,.35*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.7*t,.65*n,.8*t,.65*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close()),a})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());o=new go.PathFigure(0,.2*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.7*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,0,.6*t,.5*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,n,.4*t,.5*n,t,.5*n).close());var g=new go.PathFigure(.45*t,.73*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.73*n)),g.add(new go.PathSegment(go.PathSegment.Move,.38*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.63*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Move,.31*t,.27*n)),g.add(new go.PathSegment(go.PathSegment.Line,.56*t,.27*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(.335*t,(1-.555)*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.68*n,.88*t,.46*n,.98*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.335*t,(1-.555)*n,.02*t,.54*n,.12*t,.46*n)),g.add(new go.PathSegment(go.PathSegment.Line,.365*t,.405*n));var r=.5-.285,i=.5,d=r,h=Math.PI/4,m=4*(1-Math.cos(h))/(3*Math.sin(h)),S=r,P=r,s=m*S,l=m*P;g.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,d*n,(i-(s+S)/2)*t,(d+(P+l)/2)*n,.285*t,(d+l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,i*t,0*n,.285*t,(d-l)*n,(i-s)*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(i+S)*t,d*n,(i+s)*t,0*n,(i+S)*t,(d-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(i+S)*t,(d+l)*n,(i+(s+S)/2)*t,(d+(P+l)/2)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.635*t,.405*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n));var c=new go.PathFigure(.2*t,n,!1);a.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var u=new go.PathFigure(.8*t,n,!1);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var g=new go.PathFigure(.2*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventError",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var r=new go.PathFigure(.1*t,n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Caution",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.05*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.8*n,0,n,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.1*n,.5*t,0,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.95*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,t,n,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,n));var g=.05;return o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.875*n)),o.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*t,.875*n,g*t,g*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.325*n,.575*t,.725*n,.625*t,.375*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.75*n,.375*t,.375*n,.425*t,.725*n)),a})),go.Shape.defineFigureGenerator("Recycle",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.45*t,.95*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.185*t,.85*n,.17*t,.95*n,.15*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.235*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.625*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.1875*t,.95*n,0,.675*n,0,.7*n)),o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.775*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*t,.775*n));var g=new go.PathFigure(.475*t,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.225*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.175*n)),g.add(new go.PathSegment(go.PathSegment.Line,.325*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.05*n,.35*t,0,.375*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.575*t,.375*n)),g.add(new go.PathSegment(go.PathSegment.Line,.525*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.315*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,0,.65*t,.05*n,.625*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.0105*n));var r=new go.PathFigure(.675*t,.575*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.875*t,.525*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.85*t,.95*n,t,.8*n,t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.95*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.725*n)),r.add(new go.PathSegment(go.PathSegment.Line,.65*t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),r.add(new go.PathSegment(go.PathSegment.Move,.675*t,.575*n)),r.add(new go.PathSegment(go.PathSegment.Line,.775*t,.775*n)),a})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,r=new go.PathFigure(t,o*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+g)*n,(o+g)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-g)*t,n,0,(o+g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-g)*n,(o-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+g)*t,0,t,(o-g)*n));var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,.15*n)),i.add(new go.PathSegment(go.PathSegment.Move,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,o*t,.85*n)),i.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,.15*t,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,.85*t,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,.58*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,.78*t,.54*n)),a})),go.Shape.defineFigureGenerator("Package",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.15*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,.15*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.15*n).close()),a.spot1=new go.Spot(0,.1),a.spot2=new go.Spot(1,1),a})),go.Shape.defineFigureGenerator("Class",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var r=new go.PathFigure(0,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Component",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close());var g=new go.PathFigure(0,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var r=new go.PathFigure(0,.6*n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),a})),go.Shape.defineFigureGenerator("Boat Shipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n));var g=new go.PathFigure(.15*t,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),a})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Workcell",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Supermarket",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),a})),go.Shape.defineFigureGenerator("TruckShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(t,.8*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.8*n).close());var r=.1,i=.1*h,d=.2,m=.9,S=new go.PathFigure((d-r)*t,m*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-r)*n,(d-r)*t,(m-i)*n,(d-i)*t,(m-r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d+r)*t,m*n,(d+i)*t,(m-r)*n,(d+r)*t,(m-i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+r)*n,(d+r)*t,(m+i)*n,(d+i)*t,(m+r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d-r)*t,m*n,(d-i)*t,(m+r)*n,(d-r)*t,(m+i)*n).close()),r=.1,i=.1*h,d=.8,m=.9;var P=new go.PathFigure((d-r)*t,m*n,!0);return a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-r)*n,(d-r)*t,(m-i)*n,(d-i)*t,(m-r)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(d+r)*t,m*n,(d+i)*t,(m-r)*n,(d+r)*t,(m-i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+r)*n,(d+r)*t,(m+i)*n,(d+i)*t,(m+r)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(d-r)*t,m*n,(d-i)*t,(m+r)*n,(d-r)*t,(m+i)*n).close()),a})),go.Shape.defineFigureGenerator("KanbanPost",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),a})),go.Shape.defineFigureGenerator("Forklift",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0));var g=new go.PathFigure(0,.5*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var r=new go.PathFigure(.5*t,.8*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n));var i=new go.PathFigure(.5*t,.7*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.7*n));var d=.1,m=.1*h,S=.1,P=.9,s=new go.PathFigure((S-d)*t,P*n,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P-d)*n,(S-d)*t,(P-m)*n,(S-m)*t,(P-d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(S+d)*t,P*n,(S+m)*t,(P-d)*n,(S+d)*t,(P-m)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+d)*n,(S+d)*t,(P+m)*n,(S+m)*t,(P+d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(S-d)*t,P*n,(S-m)*t,(P+d)*n,(S-d)*t,(P+m)*n)),d=.1,m=.1*h,S=.4,P=.9;var l=new go.PathFigure((S-d)*t,P*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P-d)*n,(S-d)*t,(P-m)*n,(S-m)*t,(P-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(S+d)*t,P*n,(S+m)*t,(P-d)*n,(S+d)*t,(P-m)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(P+d)*n,(S+d)*t,(P+m)*n,(S+m)*t,(P+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(S-d)*t,P*n,(S-m)*t,(P+d)*n,(S-d)*t,(P+m)*n)),a})),go.Shape.defineFigureGenerator("RailShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.4*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.4*n).close());var g=new go.PathFigure(.45*t,.7*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n));var r=new go.PathFigure(.55*t,.4*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,.4*n).close());var i=.05,d=.05*h,m=.175,S=.95,P=new go.PathFigure((m-i)*t,S*n,!0);a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-i)*n,(m-i)*t,(S-d)*n,(m-d)*t,(S-i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m+i)*t,S*n,(m+d)*t,(S-i)*n,(m+i)*t,(S-d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+i)*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m-i)*t,S*n,(m-d)*t,(S+i)*n,(m-i)*t,(S+d)*n));i=.05,d=.05*h,m=.375,S=.95;var s=new go.PathFigure((m-i)*t,S*n,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-i)*n,(m-i)*t,(S-d)*n,(m-d)*t,(S-i)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m+i)*t,S*n,(m+d)*t,(S-i)*n,(m+i)*t,(S-d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+i)*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m-i)*t,S*n,(m-d)*t,(S+i)*n,(m-i)*t,(S+d)*n));i=.05,d=.05*h,m=.625,S=.95;var l=new go.PathFigure((m-i)*t,S*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-i)*n,(m-i)*t,(S-d)*n,(m-d)*t,(S-i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m+i)*t,S*n,(m+d)*t,(S-i)*n,(m+i)*t,(S-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+i)*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m-i)*t,S*n,(m-d)*t,(S+i)*n,(m-i)*t,(S+d)*n));i=.05,d=.05*h,m=.825,S=.95;var c=new go.PathFigure((m-i)*t,S*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-i)*n,(m-i)*t,(S-d)*n,(m-d)*t,(S-i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m+i)*t,S*n,(m+d)*t,(S-i)*n,(m+i)*t,(S-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+i)*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m-i)*t,S*n,(m-d)*t,(S+i)*n,(m-i)*t,(S+d)*n).close());var u=new go.PathFigure(0,n,!1);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Warehouse",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var r=new go.PathFigure(.15*t,n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,n).close());var i=.05,d=.05*h,m=.35,S=.775,P=new go.PathFigure(.3*t,S*n,!0);return a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,.725*n,.3*t,(S-d)*n,(m-d)*t,.725*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m+i)*t,S*n,(m+d)*t,.725*n,(m+i)*t,(S-d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+i)*n,(m+i)*t,(S+d)*n,(m+d)*t,(S+i)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,S*n,(m-d)*t,(S+i)*n,.3*t,(S+d)*n).close()),a})),go.Shape.defineFigureGenerator("ControlCenter",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n).close()),a})),go.Shape.defineFigureGenerator("Bluetooth",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Globe",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.75*t,0,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.75*n,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*t,n,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,.25*n,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,.15*t,.25*n,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.85*t,.75*n,.85*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.15*n,.35*t,.3*n,.65*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.85*n,.35*t,.7*n,.65*t,.7*n)),a})),go.Shape.defineFigureGenerator("Wave",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.25*n,.1*t,0,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.25*n,.425*t,.5*n,.575*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.25*n,.8*t,0,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.75*n,.1*t,.5*n,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.75*n,.425*t,n,.575*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.75*n,.8*t,.5*n,.9*t,.5*n)),a})),go.Shape.defineFigureGenerator("Operator",(function(e,t,n){var a=new go.Geometry,o=.3,g=.3*h,r=.5,i=.7,d=new go.PathFigure(.2*t,i*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,.2*t,(i-g)*n,(r-g)*t,(i-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,i*n,(r+g)*t,(i-o)*n,.8*t,(i-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,1*n,.8*t,(i+g)*n,(r+g)*t,1*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,i*n,(r-g)*t,1*n,.2*t,(i+g)*n));var m=new go.PathFigure(0,.7*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,t,.7*n,0,0,t,0)),a})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.65*t,.3*n,.65*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.35*t,.5*n,.35*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*t,.6*n,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.2*t,n,.35*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,n,.7*t,.6*n,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.8*t,n,.65*t,.95*n)),a})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,0,n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.4*n,.8*t,n,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),a})),go.Shape.defineFigureGenerator("Battery",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.1*n));var g=new go.PathFigure(0,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),a})),go.Shape.defineFigureGenerator("Delete",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,r=.5,i=new go.PathFigure(0*t,r*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(r-o)*n,(g-o)*t,0*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,1*t,r*n,(g+o)*t,0*n,1*t,(r-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(r+o)*n,(g+o)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0*t,r*n,(g-o)*t,1*n,0*t,(r+o)*n));var d=new go.PathFigure(.15*t,.5*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.85*t,.5*n)),a})),go.Shape.defineFigureGenerator("Flag",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.1*n,.15*t,0,.35*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,.65*t,.2*n,.85*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.85*t,.6*n,.65*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*t,.4*n,.15*t,.4*n).close()),a})),go.Shape.defineFigureGenerator("Help",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,r=.5,i=.5,d=new go.PathFigure((r-o)*t,i*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(r-o)*t,i*n,(r-g)*t,(i+o)*n,(r-o)*t,(i+g)*n).close()),o=.05,g=.05*h,r=.5,i=.8;var m=new go.PathFigure((r-o)*t,i*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(r-o)*t,i*n,(r-g)*t,(i+o)*n,(r-o)*t,(i+g)*n).close()),m.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),m.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.35*n,.4*t,.2*n,.3*t,.25*n)),a})),go.Shape.defineFigureGenerator("Location",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.975*t,.025*n,.5*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*t,.5*n,.5*t,0,.025*t,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*t,.3*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.3*n)),a})),go.Shape.defineFigureGenerator("Unlocked",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.35*n)),a})),go.Shape.defineFigureGenerator("Gear",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.9375*t,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*t,.3316875*n,.79840625*t,.39915625*n,.7834375*t,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*t,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*t,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*t,.19378125*n,.64228125*t,.2188125*n,.603875*t,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*t,.239375*n,.39759375*t,.20190625*n,.36053125*t,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*t,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*t,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*t,.4375*n,.21765625*t,.36059375*n,.201875*t,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*t,.67596875*n,.20221875*t,.603875*n,.21884375*t,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*t,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*t,.80621875*n,.36353125*t,.78340625*n,.3991875*t,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*t,.760625*n,.602375*t,.79809375*n,.63946875*t,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*t,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*t,.56246875*n,.78234375*t,.63940625*n,.798125*t,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*t,.5*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.3*n,0,.375*n,.05*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.075*n,.3*t,.225*n,.4*t,.175*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.525*t,.075*n,.46*t,.05*n,.525*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.4*n,.525*t,.275*n,.475*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.55*n,t,.4*n,t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.425*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.7*n,.675*t,.55*n,.675*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.575*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,.85*n,.65*t,.7*n,.65*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.535*t,n,.61*t,.85*n,.61*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*t,n,0,n).close()),a})),go.Shape.defineFigureGenerator("Map",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),a})),go.Shape.defineFigureGenerator("Eject",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var g=new go.PathFigure(0,.6*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close()),a})),go.Shape.defineFigureGenerator("Pencil",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n).close());var g=new go.PathFigure(.126*t,.85*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.126*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.85*n).close());var r=new go.PathFigure(.402*t,.85*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.402*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.598*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.598*t,.85*n).close());var i=new go.PathFigure(.678*t,.85*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.678*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.874*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.874*t,.85*n).close());var d=new go.PathFigure(.5*t,.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.196*t,.3*n)),d.add(new go.PathSegment(go.PathSegment.Line,.804*t,.3*n).close()),a})),go.Shape.defineFigureGenerator("Staircase",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),a})),go.Shape.defineFigureGenerator("5Bars",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,n*(1-.184)).close());var g=new go.PathFigure(.204*t,n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.204*t,n*(1-.184))),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,.632*n)),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,1*n).close());var r=new go.PathFigure(.408*t,n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.408*t,.632*n)),r.add(new go.PathSegment(go.PathSegment.Line,.592*t,n*(1-.552))),r.add(new go.PathSegment(go.PathSegment.Line,.592*t,1*n).close());var i=new go.PathFigure(.612*t,n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.612*t,n*(1-.552))),i.add(new go.PathSegment(go.PathSegment.Line,.796*t,.264*n)),i.add(new go.PathSegment(go.PathSegment.Line,.796*t,1*n).close());var d=new go.PathFigure(.816*t,n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.816*t,.264*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-.184*5))),d.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n).close()),a})),go.Shape.defineFigureGenerator("PC",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(.055*t,.07*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.07*n)),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.055*t,.1*n).close());var r=new go.PathFigure(.055*t,.13*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.13*n)),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.16*n)),r.add(new go.PathSegment(go.PathSegment.Line,.055*t,.16*n).close());var i=new go.PathFigure(.055*t,.18*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.18*n)),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.21*n)),i.add(new go.PathSegment(go.PathSegment.Line,.055*t,.21*n).close());var d=new go.PathFigure(1*t,0,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.65*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,.65*n).close()),a})),go.Shape.defineFigureGenerator("Plane",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.55*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.525*n,0,.4*n,.225*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.2*n,.975*t,0,t,.08*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,n).close()),a})),go.Shape.defineFigureGenerator("Key",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.17*t,.425*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*t,.5*n,.075*t,.075*n).close()),a})),go.Shape.defineFigureGenerator("FilmTape",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*t,.3*t,.055*t)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var g=new go.PathFigure(0,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,1*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*t,.3*t,.055*t)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var r=new go.PathFigure(.11*t,.1*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.11*t,.8*n).close());var i=new go.PathFigure(.37933333*t,.1*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,.37933333*t,.8*n).close());var d=new go.PathFigure(t*(.59266666+.056),.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.1*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.59266666+.056),.8*n).close()),a})),go.Shape.defineFigureGenerator("FloppyDisk",(function(e,t,n){var a=new go.Geometry,o=8*h,g=new go.PathFigure(8,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.86*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,.14*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n-8)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-8,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,8,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,0,8)),g.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,o,o,0).close());var r=new go.PathFigure(.83*t,0,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.83*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,0*n).close());var i=new go.PathFigure(.83*t,1*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.83*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,1*n).close());var d=new go.PathFigure(.78*t,.05*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.05*n)),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.78*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("SpeechBubble",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=15),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=.8*n,r=new go.Geometry,i=new go.PathFigure(a,0,!0);return r.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)),i.add(new go.PathSegment(go.PathSegment.Line,t,g-a)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,g,t,g-o,t-o,g)),i.add(new go.PathSegment(go.PathSegment.Line,.7*t,g)),i.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,g)),i.add(new go.PathSegment(go.PathSegment.Line,a,g)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g-a,o,g,0,g-o)),i.add(new go.PathSegment(go.PathSegment.Line,0,a)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()),o>1?(r.spot1=new go.Spot(0,0,o,o),r.spot2=new go.Spot(1,.8,-o,-o)):(r.spot1=go.Spot.TopLeft,r.spot2=new go.Spot(1,.8)),r})),go.Shape.defineFigureGenerator("Repeat",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.45*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.45*n).close());var g=new go.PathFigure(1*t,.55*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.35*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.55*n).close()),a})),go.Shape.defineFigureGenerator("Windows",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*t,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.9*n).close());var g=new go.PathFigure(.1*t,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.22*t,.285*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.37*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.25*n).close());var r=new go.PathFigure(.28*t,.37*n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.37*n)),r.add(new go.PathSegment(go.PathSegment.Line,.45*t,.41*n)),r.add(new go.PathSegment(go.PathSegment.Line,.28*t,.41*n).close()),a})),go.Shape.defineFigureGenerator("Beaker",(function(e,t,n){var a=new go.Geometry,o=15*h,g=new go.PathFigure(.62*t,.475*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n-15)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-15,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,15,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.03*n)),g.add(new go.PathSegment(go.PathSegment.Line,.36*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.64*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.62*t,.03*n).close()),o>1?(a.spot1=new go.Spot(0,0,o,o),a.spot2=new go.Spot(1,1,-o,-o)):(a.spot1=go.Spot.TopLeft,a.spot2=go.Spot.BottomRight),a})),go.Shape.defineFigureGenerator("Download",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var r=new go.PathFigure(.4*t,0*n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Line,.26*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.66*n)),r.add(new go.PathSegment(go.PathSegment.Line,.74*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.44*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,0*n).close()),a})),go.Shape.defineFigureGenerator("Bin",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;return o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close()),a})),go.Shape.defineFigureGenerator("Upload",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var r=new go.PathFigure(.5*t,0*n,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.26*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.4*t,.63*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.63*n)),r.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),r.add(new go.PathSegment(go.PathSegment.Line,.74*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("EmptyDrink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close()),a})),go.Shape.defineFigureGenerator("Drink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close());var g=new go.PathFigure(.235*t,.28*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.765*t,.28*n)),g.add(new go.PathSegment(go.PathSegment.Line,.655*t,.97*n)),g.add(new go.PathSegment(go.PathSegment.Line,.345*t,.97*n).close()),a})),go.Shape.defineFigureGenerator("4Arrows",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n).close()),a})),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")},47503:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},a=null,o=!1,g=!1,r=null,i=!1,d=null,h=null,m=0;m<arguments.length;m++){var S=arguments[m];if(null!==S)switch(_typeof(S)){case"number":t=S.toFixed(1);break;case"string":S.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=S:r=S;break;case"object":void 0!==S.is3D?a=S:n=S;break;case"boolean":o=S,g=!0}}null===a&&(a={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||g||(o=!0)),null!==r&&void 0===n.id&&(n.id=r);var P="",s=!1,l=null,c=null,u=null,w=!1,p=null,f=null,L=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var v=function(e){return parseFloat(e)>4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function x(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){h=e,E(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(d=e,_(e,t))},e.getHTML5CodebaseVersion=function(){return c},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){L=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var a,o="auto",g=n.id,r=!1,d=0;d<arguments.length;d++){var h=arguments[d];"string"==typeof h?(h=h.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=h:g=arguments[d]:"boolean"==typeof h?r=h:h instanceof HTMLElement&&(a=h)}function m(){if(i){o=A(o);var d=a||document.getElementById(g);if(d)if(e.removeExistingApplet(d,!1),void 0===n.width&&d.clientWidth&&(n.width=d.clientWidth),void 0===n.height&&d.clientHeight&&(n.height=d.clientHeight),n.width&&n.height||"html5"!==o||(delete n.width,delete n.height),l=o,"screenshot"===o)N(d,n);else{var h=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?h=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(h=(!y()||t())&&x()),h?(l="screenshot",k(d,n,r,o)):z(d,n,r)}else console.log("possibly bug on ajax loading? ")}else setTimeout(m,200)}m()},e.getViews=function(){return a},e.isJavaInstalled=function(){return!1};var F=function(t){var o=function(){n.onError&&n.onError(),D("Error: Fetching material (id "+n.material_id+") failed.",n)},g=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",r="/materials/"+n.material_id+"?scope=basic";B("https://"+g+"/api/proxy.php?path="+encodeURIComponent(r),(function(g){var r=JSON.parse(g),i=r.elements?r.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:r;if(i&&i.url){n.fileName=i.url,b(i.settings||{}),a.is3D=!0;var d="https://www.geogebra.org/images/";e.setPreviewImage(p||i.previewUrl,d+"GeoGebra_loading.png",d+"applet_play.png"),t()}else o()}),o)};function b(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function B(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.onload=function(){t(a.responseText)},a.onerror=n,a.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return l},e.setPreviewImage=function(e,t,n){p=e,f=t,n},e.removeExistingApplet=function(e,t){var a;"string"==typeof e&&(e=document.getElementById(e)),l=null;var o=null;for(a=0;a<e.childNodes.length;a++){var g=e.childNodes[a],r=g.className;"applet_screenshot"===r?t?(g.style.display="block",l="screenshot"):g.style.display="none":"applet_scaler prerender"!==r&&(e.removeChild(g),o=r&&-1!=r.indexOf("appletParameters")?g.id:null,a--)}var i=void 0!==n.id?n.id:o,d=window[i];d&&"function"==typeof d.getBase64&&(d.remove(),window[i]=null)},e.refreshHitPoints=function(){if(v(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var G=function(e){return e&&"false"!==e},z=function(t,n,a){v(c)<=4.2&&(a=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==c||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var g=document.createElement("div");g.classList.add("appletParameters","notranslate");var r=n.width,i=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(v(c)<=4.4)G(n.showToolBar)&&(n.height-=7),G(n.showAlgebraInput)&&(n.height-=37),n.width<605&&G(n.showToolBar)&&(n.width=605,r=605);else{var m=100;(G(n.showToolBar)||G(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),m=G(n.showMenuBar)?245:155),r<m&&(n.width=m,r=m)}for(var S in g.style.border="none",g.style.display="inline-block",n)n.hasOwnProperty(S)&&"appletOnLoad"!==S&&g.setAttribute("data-param-"+S,n[S]);L&&g.setAttribute("data-param-fontscssurl",L),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var s="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(a||void 0===n.width){var l=document.createElement("div");l.className="applet_scaler",l.style.position="relative",l.style.display="block",l.appendChild(g),t.appendChild(l),n.appletOnLoad=function(t){e.resize(),s(t)}}else{n.hasOwnProperty("showSplash")||g.setAttribute("data-param-showSplash","false");var p=t.querySelector(".applet_scaler.prerender"),f=null!==p;if(f)y=p.querySelector(".ggb_preview");else{var y=T(r,i,n.borderColor,!1);(p=document.createElement("div")).className="applet_scaler",p.style.position="relative",p.style.display="block",p.style.width=r+"px",p.style.height=i+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(p,"66%"),v(c)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(p),window.GGBT_wsf_view&&$(window).trigger("resize"),s(e)},f||p.appendChild(y)):g.appendChild(y),p.appendChild(g),f||t.appendChild(p),setTimeout((function(){e.resize()}),1)}function x(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),D("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function F(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){x(e.article,e.params)})),html5AppletsToProcess=null)},v(c)<5&&(e.className+=" geogebraweb")):x(e,t)}if(o){scriptLoadStarted=!0;for(var b=0;b<g.childNodes.length;b++){"TABLE"===g.childNodes[b].tagName&&(g.removeChild(g.childNodes[b]),b--)}if(null!==ggbHTML5LoadedScript){var B=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=B&&B.parentNode.removeChild(B)}var z=document.createElement("script"),N=function(){F(g,n)};z.src=P+u,ggbHTML5LoadedCodebaseIsWebSimple=w,ggbHTML5LoadedCodebaseVersion=c,ggbHTML5LoadedScript=z.src,D("GeoGebra HTML5 codebase loaded: '"+P+"'.",n),h||d&&"5.0"!=d?P.requirejs?__webpack_require__.e(32721).then(function(){var e=[__webpack_require__(32721)];N.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(z.onload=N,t.appendChild(z)):(w?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),N())}else F(g,n);n.height=i,n.width=r},N=function(t,n,a){var o=T(n.width,n.height,n.borderColor,a),g=document.createElement("div");g.style.position="relative",g.style.display="block",g.style.width=n.width+"px",g.style.height=n.height+"px",g.className="applet_screenshot applet_scaler"+(a?" applet_screenshot_play":""),g.appendChild(o);var r=GGBAppletUtils.getScale(n,t,a);a?(t.appendChild(j()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(g,"66%"),t.appendChild(g),1===r||isNaN(r)||(GGBAppletUtils.scaleElement(g,r),g.style.width=n.width+"px",g.style.height=n.height+"px",g.parentNode.style.width=n.width*r+"px",g.parentNode.style.height=n.height*r+"px"),e.resize=function(){C(t,o,g,a)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function C(e,t,a,o){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var g=GGBAppletUtils.getScale(n,e,o);null!==a.parentNode&&(isNaN(g)||1===g?(GGBAppletUtils.scaleElement(a,1),a.parentNode.style.width=n.width+"px",a.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(a,g),a.parentNode.style.width=n.width*g+"px",a.parentNode.style.height=n.height*g+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var k=function(e,t,n,a){N(e,t,!0);for(var o=function(){var n=[];for(r=0;r<e.childNodes.length;r++)n.push(e.childNodes[r]);if(window.GGBT_wsf_view){var o=window.GGBT_wsf_view.renderFullScreen(e,t.id),g=document.getElementById("fullscreencontainer"),i=jQuery(e).find(".fullscreencontent");i.length>0?(o.remove(),i.attr("id","fullscreencontent").show(),jQuery(g).append(i),window.dispatchEvent(new Event("resize"))):z(o,t,!1),window.GGBT_wsf_view.launchFullScreen(g)}else l=a,z(e,t,!1);if(!window.GGBT_wsf_view)for(r=0;r<n.length;r++)e.removeChild(n[r])},g=e.getElementsByClassName("ggb_preview_play"),r=0;r<g.length;r++)g[r].addEventListener("click",o,!1),g[r].addEventListener("ontouchstart",o,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),x()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},j=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.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");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},T=function(e,t,n,a){var o=document.createElement("div");o.className="ggb_preview",o.style.position="absolute",o.style.zIndex="90",o.style.width=e-2+"px",o.style.height=t-2+"px",o.style.top="0px",o.style.left="0px",o.style.overflow="hidden",o.style.backgroundColor="white";var g="lightgrey";void 0!==n&&(g="none"===n?"transparent":n),o.style.border="1px solid "+g;var r,i,d,h=document.createElement("img");if((h.style.position="relative",h.style.zIndex="1000",h.style.top="-1px",h.style.left="-1px",null!==p&&h.setAttribute("src",p),h.style.opacity=.7,null!==f)&&!a){(r=document.createElement("img")).style.position="absolute",r.style.zIndex="1001",r.style.opacity=1,h.style.opacity=.3,(i=360)>e/4*3&&(i=e/4*3),d=i/5.8,r.setAttribute("src",f),r.setAttribute("width",i),r.setAttribute("height",d);var m=(e-i)/2,S=(t-d)/2;r.style.left=m+"px",r.style.top=S+"px",o.appendChild(r)}return o.appendChild(h),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],_=function(e,t){if(c=e,t)E(c,!0);else{var g,r,i=!o;if(i){var d=v(c);!isNaN(d)&&d<4.4&&(i=!1)}g="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var h=c.indexOf("//");for(var m in r=h>0?c:0===h?g+c:"https://www.geogebra.org/apps/5.2.814.0/",M)if(c.slice(-1*M[m].length)===M[m]||c.slice(-1*(M[m].length+1))===M[m]+"/")return void E(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!i||a.is3D||a.AV||a.SV||a.CV||a.EV2||a.CP||a.PC||a.DA||a.FI||a.PV||G(n.showToolBar)||G(n.showMenuBar)||G(n.showAlgebraInput)||G(n.enableRightClick)||n.appName&&"classic"!=n.appName?r+="web3d/":r+="webSimple/",E(r,!1)}},E=function(e,t){if(e.requirejs)P=e;else{"/"!==e.slice(-1)&&(e+="/"),P=e,null===t&&(t=-1===e.indexOf("http")),s=t,u="web.nocache.js",w=!1;var n=P.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(u=n[n.length-2]+".nocache.js"):(u="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(c=n[n.length-3]).substr(0,4)?c=c.substr(4,1)+"."+c.substr(5,1):"war"!==c.substr(0,3)&&"beta"!==c.substr(0,4)||(c="5.0");var a=parseFloat(c);NaN!==a&&a<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+a+" is deprecated. Using version latest instead."),_("5.0",t))}},D=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function Z(){var e=t;null!==d?e=d:parseFloat(e)<5&&(e="5.0"),_(e,!1),null!==h&&E(h,s),i=!0}return void 0!==n.material_id?F(Z):Z(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,a,o){if(e.isScreenshoGenerator)return 1;var g,r=void 0!==a&&a,i=null!=e.noScaleMargin&&e.noScaleMargin,d=(g=e.autoHeight)&&"false"!==g,h=function(e,t,n,a,o,g){var r=null;if(null!=g&&""!=g)for(var i=e.parentNode;null!=i;){if((" "+i.className+" ").indexOf(" "+g+" ")>-1){r=i;break}i=i.parentNode}var d=0,h=0,m=0,S=0,P=0,s=0,l=0;if(r)d=r.offsetWidth,h=Math.max(a?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(d=Math.min(window.innerWidth,document.documentElement.clientWidth),h=Math.min(window.innerHeight,document.documentElement.clientHeight),m=d):(d=window.innerWidth,h=window.innerHeight,m=window.innerWidth),e){var c=e.getBoundingClientRect();c.left>0&&c.left<=d&&(void 0===o||!o)&&("rtl"===document.dir?(P=d-c.width-c.left,s=m<=480?10:30):(s=c.left,P=m<=480?10:30),S=s+P)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(S=40,l=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(S=0,l=40))}return e&&((void 0===n||!n)&&t>0&&t+S<d?d=t:d-=S,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(h-=l)),{width:d,height:h}}(t,e.width,n,d,r&&window.GGBT_wsf_view||i,o),m=parseInt(h.width),S=e.width,P=e.height;if(void 0===S){var s=t.querySelector(".appletParameters");s&&(S=s.offsetWidth,P=s.offsetHeight)}var l=m/S,c=r?1:h.height/P;return void 0===n||n||(l=Math.min(1,l),c=Math.min(1,c)),Math.min(l,c)}function a(e,t,a){var o,g=1,r=!1;return e.hasOwnProperty("allowUpscale")&&(r=e.allowUpscale),e.hasOwnProperty("scale")&&(g=parseFloat(e.scale),(isNaN(g)||null===g||0===g)&&(g=1),g>1&&(r=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?g:(o=n(e,t,r,a,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==g?Math.min(g,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),a=e.getBoundingClientRect(),o=(t-a.width)/2,g=(n-a.height)/2;g<0&&(g=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=g+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=g<40?"40px":g+"px",e.style.left=o+"px")}return{responsiveResize:function(n,g){var r=n.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(g.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var i=a(g,n);e()&&r.setAttribute("data-param-scale",i);for(var d=null,h=0;h<n.childNodes.length;h++)if(void 0!==n.childNodes[h].className&&n.childNodes[h].className.match(/^applet_scaler/)){d=n.childNodes[h];break}if(null!==d&&null!==d.querySelector(".noscale"))return;var m=void 0!==g.id?g.id:"ggbApplet",S=window[m];null!=S&&S.recalculateEnvironments||null===d||d.className.match(/fullscreen/)||(d.parentNode.style.transform="",isNaN(i)||1===i?(t(d,1),d.parentNode.style.width=g.width+"px",d.parentNode.style.height=g.height+"px"):(d.parentNode.style.width=g.width*i+"px",d.parentNode.style.height=g.height*i+"px",t(d,i))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&o(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(r).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:o,getScale:a,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(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 e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),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||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,g,!1);var a=setInterval((function(){g()}),$)}function g(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,g,!1),a&&clearInterval(a)}}}((function(){var t,n,a,o;t=e,n=u(),a=n.body,(o=n.createElement(_)).language=ab,o.crossOrigin=W,o.src=t,webModule.__errFn&&(o.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),a.appendChild(o),q(cb,db)}))}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(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var a=e.lastIndexOf(tb,Math.min(n,t));return a>=O?e.substring(O,a+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,a=[],o=[];function g(e){var t=o[e](),n=a[e];if(t in n)return t;var g=[];for(var i in n)g[n[i]]=i;throw r&&r(e,g,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in a[e]},webModule.__getPropMap=function(){var e={};for(var t in a)a.hasOwnProperty(t)&&(e[t]=g(t));return e},webModule.__computePropValue=g,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var i=(e=Cb).indexOf(Db);-1!=i&&(t=parseInt(e.substring(i+P),$),e=e.substring(O,i))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},a=e[webModule.__softPermutationId],o=O;o<a.length;o++){var g=a[o];n[g[O]]=g[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,a=t.createElement(_);a.language=ab,a.text=e,n.appendChild(a),n.removeChild(a)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},37318:function(e,t,n){"use strict";function a(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],a=0;a<e.length;a++){var o=e[a],g=t?"".concat(t,"/").concat(o.name):"".concat(o.name);n.push({title:o.name,type:o.type,isLeaf:"tree"!==o.type,key:g})}return n}function g(e,t,n){for(var a=0;a<e.length;a++){var o=e[a];if(o.key===t){o.children=n;break}o.children&&g(o.children,t,n)}return e}function r(e,t,n){var a;return function(){var o=this,g=arguments,r=function(){a=null,n||e.apply(o,g)},i=n&&!a;clearTimeout(a),a=setTimeout(r,t),i&&e.apply(o,g)}}n.d(t,{Ax:function(){return g},Ds:function(){return r},KI:function(){return i},SI:function(){return o},f1:function(){return a}});var i=n(69423).Z.API_SERVER},12840:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(79800),d=n.n(i),h=n(59301),m="imageDimensions___a7crR",S="img___Kroat",P="fullWidth___c492T",s=n(92310),l=n.n(s),c=n(71418),u=n(2859),w=n(82710),p=n(95972),f=n(37712),L=function(e){var t=e.data,n=e.className,a=e.fullWidth,g=e.style,i=void 0===g?{}:g,s=e.onClose,L=e.onOk,v=e.showFullTools,y=e.noAssociationId,x=(0,h.useRef)(null),F=(0,h.useRef)(null),b=(0,h.useRef)(null),B=(0,h.useRef)(null),G=(0,h.useState)(!1),z=d()(G,2),N=z[0],C=z[1],k=(0,h.useState)("正在加载中"),j=d()(k,2),T=j[0],A=j[1];(0,h.useEffect)((function(){b.current||(b.current=document.createElement("style"),document.head.appendChild(b.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),b.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),b.current&&(document.head.removeChild(b.current),b.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),A("正在加载中"),e.next=4,(0,p.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,x.current.src="",x.current.src=n,x.current.onload=function(){E()},C(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=r()(o()().mark((function e(n){var a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),A("正在保存中"),e.next=4,(0,w.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(a=e.sent)||!a.id||y){e.next=12;break}return e.next=8,(0,w.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==a?void 0:a.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&L(),e.next=13;break;case 12:null!=a&&a.id&&L(a);case 13:C(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){F.current=new u.hP(x.current),F.current.targetRoot=B.current,F.current.addEventListener("render",_),F.current.addEventListener("beforeclose",s),v&&(F.current.availableMarkerTypes=F.current.ALL_MARKER_TYPES,F.current.uiStyleSettings.redoButtonVisible=!0,F.current.uiStyleSettings.notesButtonVisible=!0,F.current.uiStyleSettings.zoomButtonVisible=!0,F.current.uiStyleSettings.zoomOutButtonVisible=!0,F.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=F.current.uiStyleSettings,F.current.show(),null!=t&&t.snapshotData&&F.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,f.jsx)(h.Fragment,{children:(null==t?void 0:t.visible)&&(0,f.jsx)(c.Z,{spinning:N,tip:T,style:{position:"absolute"},children:(0,f.jsx)("div",{ref:B,className:l()(m,n,a?P:""),style:i,children:(0,f.jsx)("img",{className:S,ref:x})})})})}},9266:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(79800),o=n.n(a),g=n(59301),r=n(34837),i=n(37712),d=function(e){var t=e.defaultX,n=void 0===t?"40%":t,a=e.leftChild,d=e.rightChild,h=e.className,m=e.hideResize,S=void 0!==m&&m,P=(0,g.useState)(n),s=o()(P,2),l=s[0],c=s[1],u=(0,g.useRef)();(0,g.useEffect)((function(){function e(e){u.current&&(r.Z.publish("resize-move-bar",e),c(e.pageX))}function t(){u.current=!1}return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[]);var w="number"==typeof l&&.01!==l?"".concat(l,"px"):n,p="calc(100% - ".concat(S?"0px":"4px"," - ").concat(w,")");return(0,i.jsxs)("div",{className:"split-panel-container ".concat(h),children:[(0,i.jsx)("section",{style:{width:w,display:.01===l?"none":""},children:a}),(0,i.jsx)("section",{className:"resize-x-bar",onMouseDown:function(){u.current=!0},children:(0,i.jsx)("a",{className:"btn-resize",children:(0,i.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",children:(0,i.jsx)("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})})})}),(0,i.jsx)("section",{style:{width:p},children:d})]})}},18890:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var a=n(82242),o=n.n(a),g=n(79800),r=n.n(g),i=n(59301),d=n(57809),h=n(78241),m=n(3113),S=n(89780),P=n.n(S),s=(n(79906),n(44383),n(37712)),l=d.default.Option,c={labelCol:{span:4},wrapperCol:{span:20}},u={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"]};function w(e){var t=e.value,n=e.onChange,a=e.mode,g=e.options,d=void 0===g?{}:g,h=(0,i.useRef)(),m=(0,i.useState)(),S=r()(m,2),l=S[0],c=S[1];return(0,i.useEffect)((function(){if(l){var e=function(e){var t=e.getValue();n&&n(t)};return l.on("change",e),function(){l.off("change",e)}}}),[l,n]),(0,i.useEffect)((function(){l&&l.setOption("mode",a)}),[l,a]),(0,i.useEffect)((function(){l&&(t===l.getValue()&&""!==t||setTimeout((function(){l.setValue(t||"")}),300))}),[l,t]),(0,i.useEffect)((function(){if(h.current&&!l){var e=P().fromTextArea(h.current,o()({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},d));c(e)}}),[h.current,l]),(0,s.jsx)("div",{className:"my-codemirror-container",children:(0,s.jsx)("textarea",{ref:h})})}t.Z=function(e){var t=e.callback,n=e.onCancel,a=(0,i.useState)("python"),g=r()(a,2),S=g[0],P=g[1];return(0,s.jsxs)(h.Z,o()(o()({},c),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,s.jsx)(h.Z.Item,{label:"代码语言",name:"language",children:(0,s.jsx)(d.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){P(u[e][1])},children:Object.keys(u).map((function(e){return(0,s.jsx)(l,{value:e,children:u[e][0]},e)}))})}),(0,s.jsx)(h.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,s.jsx)(w,{mode:S})}),(0,s.jsxs)("div",{className:"flex-container flex-end",children:[(0,s.jsx)(m.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,s.jsx)(m.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},85654:function(e,t,n){"use strict";n.d(t,{Z:function(){return Le}});var a=n(91232),o=n.n(a),g=n(79800),r=n.n(g),i=n(85573),d=n.n(i),h=n(59301),m=n(89780),S=n.n(m),P=n(76374),s=(n(79906),n(6313),n(25717),n(99498),n(25419),n(67549),n(501)),l=n(37712),c=function(e){var t=e.value,n=void 0===t?"":t,a=(e.className,e.showTextOnly,e.showLines,e.style,(0,h.useMemo)((function(){return""}),[n]));return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})},u=n(82242),w=n.n(u),p=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function f(e){var t=e.onActionCallback,n=e.title,a=e.icon,o=e.actionName,g=e.className,r=void 0===g?"":g,i=e.children;return(0,l.jsxs)("a",{title:n,className:r,onClick:function(){t(o)},children:[(0,l.jsx)("i",{className:"".concat(a)}),i]})}var L=function(e){var t=e.watch,n=e.showNullButton,a=e.showNullProgramButton,o=e.onActionCallback,g=e.fullScreen,r=e.insertTemp,i=e.hidetoolBar,d=e.extraUse,h=[].concat(p,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,l.jsxs)("ul",{className:"markdown-toolbar-container",children:[!i&&h.map((function(e,t){return(0,l.jsx)("li",{children:e.actionName?(0,l.jsx)(f,w()(w()({},e),{},{onActionCallback:o})):(0,l.jsx)("span",{className:"v-line"})},t)})),n?(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),d&&(0,l.jsx)("li",{children:d}),(0,l.jsx)("li",{className:"btn-full-screen",children:(0,l.jsx)(f,{icon:"".concat(g?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:g?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},v=n(32552),y=n(78241),x=n(92832),F=n(3113),b={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,l.jsxs)(y.Z,w()(w()({},b),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,l.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,l.jsx)(x.Z,{})}),(0,l.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,l.jsx)(x.Z,{})}),(0,l.jsxs)("div",{className:"flex-container flex-end",children:[(0,l.jsx)(F.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(F.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},G=n(18890),z=n(48347),N=n(43418),C=n(95237),k=n(12840),j=function(e){var t=e.callback,n=e.onCancel,a=document.createElement("canvas"),o=a.getContext("2d");a.width=1e3,a.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,a.width,a.height);var g=a.toDataURL("image/png");return(0,l.jsx)(N.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,l.jsx)(C.Z,{style:{height:"100vh"},children:(0,l.jsx)(k.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:g,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},T=n(7557),A=n.n(T),M=n(41498),_=n.n(M),E=n(37205),D=n.n(E),Z=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var a=0;a<n.length-1;a++){var o=n[a],g=o.actualBounds.y+o.actualBounds.height+e;n[a+1].move(new go.Point(o.actualBounds.x,g))}t.commitTransaction("align Column")},R.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var a=0;a<n.length-1;a++){var o=n[a],g=o.actualBounds.x+o.actualBounds.width+e;n[a+1].move(new go.Point(g,o.actualBounds.y))}t.commitTransaction("align Row")},R.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},R.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},R.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},R.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)-1-R._findGroupDepth(e))})),e.commitTransaction("pushToBack")},R._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){R._assignZOrder(e,t+1,n)}))},R._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,R._findGroupDepth(e))})),t+1}return 0},R.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},R.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},R.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,a=0;if(t.control||t.meta)n=1,a=1;else if(null!==e.grid){var o=e.grid.gridCellSize;a=o.width,n=o.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-a,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+a,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},R.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},R.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,a=this._getAllParts(),o=1/0,g=t,r=0;r<a.length;r++){var i=a[r];if(i!==t&&i.canSelect()){var d=i.actualBounds.center,h=n.directionPoint(d),m=this._angleCloseness(h,e);if(m<=45){var S=n.distanceSquaredPoint(d);(S*=1+Math.sin(m*Math.PI/180))<o&&(o=S,g=i)}}}return g},R.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},R.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(g=t.findTreeParentNode())&&e.select(g)}else if("Up"===n.key){if(null!==(g=t.findTreeParentNode()))if((i=(r=this._sortTreeChildrenByY(g)).indexOf(t))>0){for(var a=r.elt(i-1);null!==a&&a.isTreeExpanded&&!a.isTreeLeaf;){a=this._sortTreeChildrenByY(a).last()}null!==a&&e.select(a)}else e.select(g)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var g,r,i;if(null===(g=t.findTreeParentNode()))break;if((i=(r=this._sortTreeChildrenByY(g)).indexOf(t))<r.length-1){e.select(r.elt(i+1));break}t=g}}var d=e.selection.first();null!==d&&e.scrollToRect(d.actualBounds)}},R.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,a=t.location;return n.y<a.y?-1:n.y>a.y?1:n.x<a.x?-1:n.x>a.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var O=R,I=(n(15378),n(43604)),H=n(82710),K="myPaletteDiv___Xjz2I",U="flowChartWrp____f45r",Y="maxH60___Pd4Re";var V=function(e){var t=e.onCancel,n=e.callback,a=(0,h.useRef)(),o=(0,h.useRef)(),g=(0,h.useRef)(),i=(0,h.useRef)(!1),d=(0,h.useRef)(!1),m=(0,h.useState)(0),S=r()(m,2),P=S[0],s=S[1],c=function(){var e=_()(A()().mark((function e(){var t,o;return A()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.current.makeImage(),e.next=3,(0,H.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){return setTimeout((function(){!function(){var e=Z.bx.make,t="#ff3333",n="#3358ff",r="#25ad23",i="#d533ff",d="#7d33ff",h="#ff6233",m="#ffffff",S="#000000",P="#fffcd5",s="#d5ebff",l="#f2dfe0",c="#a5d2fa",u="#cccccc",w="#b3e6b3",p="#fcbbbd";function f(t,n){var a=function(e,n){e.handled=!0,e.diagram.model.commit((function(a){var o=n.part.adornedPart,g=(new Z.E9).setRectSpot(o.actualBounds,t);g.subtract(o.location),g.scale(2,2),g.x+=130*Math.sign(g.x),g.y+=130*Math.sign(g.y),g.add(o.location),g.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=a.copyNodeData(o.data);a.setGroupKeyForNodeData(r,a.getGroupKeyForNodeData(o.data)),a.addNodeData(r);var i={from:o.key,to:a.getKeyForNodeData(r)};a.addLinkData(i);var d=e.diagram.findNodeForData(r);d.location=g,e.diagram.select(d),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(Z.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(Z.z6.Top)||t.equals(Z.z6.Bottom)?25:18,height:t.equals(Z.z6.Top)||t.equals(Z.z6.Bottom)?18:25,fill:"orange",stroke:m,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:a,contextClick:a})}function L(t){return e(Z.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:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function v(e,t){return function(n,a){n.handled=!0,n.diagram.model.commit((function(n){n.set(a.part.adornedPart.data,e,t)}))}}function y(t,n){return n||(n="color"),e(Z.bn,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:v(n,t),contextClick:v(n,t)})}function x(){return[e("ContextMenuButton",e(Z.s_,"Horizontal",y(m,"fill"),y(P,"fill"),y(s,"fill"),y(l,"fill"))),e("ContextMenuButton",e(Z.s_,"Horizontal",y(u,"fill"),y(w,"fill"),y(c,"fill"),y(p,"fill")))]}function F(){return[e("ContextMenuButton",e(Z.s_,"Horizontal",y(S),y(r),y(n),y(t))),e("ContextMenuButton",e(Z.s_,"Horizontal",y(m),y(i),y(d),y(h)))]}function b(t,n){return n||(n="thickness"),e(Z.bn,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:v(n,t),contextClick:v(n,t)})}function B(t,n){return n||(n="dash"),e(Z.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:v(n,t),contextClick:v(n,t)})}function G(){return[e("ContextMenuButton",e(Z.s_,"Horizontal",b(1),b(2),b(3),b(4))),e("ContextMenuButton",e(Z.s_,"Horizontal",B(null),B([2,4]),B([4,4])))]}function z(t,n){return n||(n="figure"),e(Z.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:v(n,t),contextClick:v(n,t)})}function N(t){return e(Z.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function C(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(Z.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:v("dir",t),contextClick:v("dir",t)})}function k(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var a=n.part.adornedPart;e.set(a.data,t?"toSpot":"fromSpot",Z.z6.stringify(Z.z6.AllSides)),(t?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(Z.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function j(t,n){var a=0,o=Z.z6.RightSide;t.equals(Z.z6.Top)?(a=270,o=Z.z6.TopSide):t.equals(Z.z6.Left)?(a=180,o=Z.z6.LeftSide):t.equals(Z.z6.Bottom)&&(a=90,o=Z.z6.BottomSide),n||(a-=180);var g=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var a=t.part.adornedPart;e.set(a.data,n?"toSpot":"fromSpot",Z.z6.stringify(o)),(n?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(Z.bn,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:a,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:g,contextClick:g})}a.current=new Z.S0(o.current,{padding:20,grid:e(Z.s_,"Grid",e(Z.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(O),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject,setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),a.current.nodeTemplate=e(Z.NB,"Auto",{locationSpot:Z.z6.Center,locationObjectName:"SHAPE",desiredSize:new Z.$u(120,60),minSize:new Z.$u(40,40),resizable:!0,resizeCellSize:new Z.$u(10,10),rotatable:!0},new Z.KX("location","loc",Z.E9.parse).makeTwoWay(Z.E9.stringify),new Z.KX("desiredSize","size",Z.$u.parse).makeTwoWay(Z.$u.stringify),e(Z.bn,{name:"SHAPE",fill:m,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.z6.AllSides,toSpot:Z.z6.AllSides},new Z.KX("figure"),new Z.KX("fill"),new Z.KX("stroke","borderColor"),new Z.KX("strokeWidth","thickness"),new Z.KX("strokeDashArray","dash")),e(Z.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(Z.al,{margin:1,textAlign:"center",overflow:Z.al.OverflowEllipsis,editable:!0},new Z.KX("text").makeTwoWay(),new Z.KX("stroke","color"))),a.current.nodeTemplate.toolTip=e("ToolTip",e(Z.s_,"Vertical",{maxSize:new Z.$u(200,NaN)},e(Z.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Z.KX("text")),e(Z.al,{font:"10pt sans-serif",textAlign:"center"},new Z.KX("text","details")))),a.current.nodeTemplate.selectionAdornmentTemplate=e(Z.uz,"Spot",e(Z.Vm,{padding:10}),f(Z.z6.Top,"TriangleUp"),f(Z.z6.Left,"TriangleLeft"),f(Z.z6.Right,"TriangleRight"),f(Z.z6.Bottom,"TriangleDown"),L({alignment:new Z.z6(.75,0)})),a.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(Z.s_,"Horizontal",z("Rectangle"),z("RoundedRectangle"),z("Ellipse"),z("Diamond"))),e("ContextMenuButton",e(Z.s_,"Horizontal",z("Parallelogram2"),z("ManualOperation"),z("Procedure"),z("Cylinder1"))),e("ContextMenuButton",e(Z.s_,"Horizontal",z("Terminator"),z("CreateRequest"),z("Document"),z("TriangleDown"))),x(),F(),G()),a.current.groupTemplate=e(Z.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Z.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new Z.KX("location","loc",Z.E9.parse).makeTwoWay(Z.E9.stringify),e(Z.s_,"Auto",{name:"BODY"},e(Z.bn,{parameter1:10,fill:m,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.z6.AllSides,toSpot:Z.z6.AllSides},new Z.KX("fill"),new Z.KX("stroke","color"),new Z.KX("strokeWidth","thickness"),new Z.KX("strokeDashArray","dash")),e(Z.Vm,{background:"transparent",margin:20})),e(Z.al,{alignment:Z.z6.Top,alignmentFocus:Z.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Z.KX("text"),new Z.KX("stroke","color"))),a.current.groupTemplate.selectionAdornmentTemplate=e(Z.uz,"Spot",e(Z.s_,"Auto",e(Z.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(Z.Vm,{margin:1.5})),L({alignment:Z.z6.TopRight,alignmentFocus:Z.z6.BottomRight})),a.current.groupTemplate.contextMenu=e("ContextMenu",x(),F(),G()),a.current.linkTemplate=e(Z.rU,{layerName:"Foreground",routing:Z.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Z.KX("fromSpot","fromSpot",Z.z6.parse),new Z.KX("toSpot","toSpot",Z.z6.parse),new Z.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new Z.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new Z.KX("points").makeTwoWay(),e(Z.bn,{strokeWidth:2},new Z.KX("stroke","color"),new Z.KX("strokeWidth","thickness"),new Z.KX("strokeDashArray","dash")),e(Z.bn,{segmentIndex:0,segmentOffset:new Z.E9(15,0),segmentOrientation:Z.rU.OrientAlong,alignmentFocus:Z.z6.Right,figure:"circle",width:10,strokeWidth:0},new Z.KX("fill","color"),new Z.KX("visible","dir",(function(e){return 1===e}))),e(Z.bn,{segmentIndex:-1,segmentOffset:new Z.E9(-10,6),segmentOrientation:Z.rU.OrientPlus90,alignmentFocus:Z.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.KX("fill","color"),new Z.KX("visible","dir",(function(e){return e>=1})),new Z.KX("width","thickness",(function(e){return 7+3*e})),new Z.KX("height","thickness",(function(e){return 7+3*e})),new Z.KX("segmentOffset","thickness",(function(e){return new Z.E9(-15,4+1.5*e)}))),e(Z.bn,{segmentIndex:0,segmentOffset:new Z.E9(15,-6),segmentOrientation:Z.rU.OrientMinus90,alignmentFocus:Z.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.KX("fill","color"),new Z.KX("visible","dir",(function(e){return 2===e})),new Z.KX("width","thickness",(function(e){return 7+3*e})),new Z.KX("height","thickness",(function(e){return 7+3*e})),new Z.KX("segmentOffset","thickness",(function(e){return new Z.E9(-15,4+1.5*e)}))),e(Z.al,{alignmentFocus:new Z.z6(0,1,-4,0),editable:!0},new Z.KX("text").makeTwoWay(),new Z.KX("stroke","color"))),a.current.linkTemplate.selectionAdornmentTemplate=e(Z.uz,e(Z.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new Z.KX("pathPattern","thickness",N)),L({alignmentFocus:new Z.z6(0,0,-6,-4)})),a.current.linkTemplate.contextMenu=e("ContextMenu",F(),G(),e("ContextMenuButton",e(Z.s_,"Horizontal",C(0),C(1),C(2))),e("ContextMenuButton",e(Z.s_,"Horizontal",e(Z.s_,"Spot",k(!1),j(Z.z6.Top,!1),j(Z.z6.Left,!1),j(Z.z6.Right,!1),j(Z.z6.Bottom,!1)),e(Z.s_,"Spot",{margin:new Z.Zt(0,0,0,2)},k(!0),j(Z.z6.Top,!0),j(Z.z6.Left,!0),j(Z.z6.Right,!0),j(Z.z6.Bottom,!0)))));var T=new Z.YI(g.current,{maxSelectionCount:1,linkTemplate:e(Z.rU,{locationSpot:Z.z6.Center,selectionAdornmentTemplate:e(Z.uz,"Link",{locationSpot:Z.z6.Center},e(Z.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(Z.bn,{toArrow:"Standard",stroke:null}))},{routing:Z.rU.AvoidsNodes,curve:Z.rU.JumpOver,corner:5,toShortLength:4},new Z.KX("points"),e(Z.bn,{isPanelMain:!0,strokeWidth:2}),e(Z.bn,{toArrow:"Standard",stroke:null})),model:new Z.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(Z.bn.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});a.current.addDiagramListener("TextEdited",(function(e){var t,n=e.subject.part,o=null===(t=document.activeElement)||void 0===t?void 0:t.value;"string"==typeof o&&""===o.trim()&&a.current.model.commit((function(e){e.set(n.data,"text","未命名"),a.current.commandHandler.stopCommand()}),"increment")})),T.nodeTemplate=e(Z.NB,"Auto",{locationSpot:Z.z6.Center},new Z.KX("location","location",Z.E9.parse).makeTwoWay(Z.E9.stringify),e(Z.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 Z.KX("stroke").makeTwoWay(),new Z.KX("fill").makeTwoWay(),new Z.KX("figure")),e(Z.al,{margin:new Z.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Z.$u(16,16),maxSize:new Z.$u(10,NaN),textAlign:"center",editable:!0},new Z.KX("key").makeTwoWay())),setTimeout((function(){a.current.grid=e(Z.s_,"Grid",e(Z.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),a.current.grid.visible=!0,a.current.grid.gridCellStroke="darkgray",a.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=a.current,a.current}()}),500),s(P+1),function(){a.current=null}}),[]),(0,l.jsx)("div",{ref:d,className:i.current?"".concat(Y," body-overflow-initial"):"body-overflow-initial",children:(0,l.jsx)(N.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!P,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,l.jsxs)(C.Z,{children:[(0,l.jsx)(I.Z,{flex:1,children:"插入流程图"}),(0,l.jsx)(I.Z,{onClick:function(){var e=a.current.selection.first();if(i.current=!i.current,document.activeElement&&e){var t,n=null===(t=document.activeElement)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim();"string"==typeof n&&a.current.model.commit((function(t){t.set(e.data,"text",n||"未命名"),a.current.commandHandler.stopCommand()}),"increment")}s(P+1)},children:(0,l.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,l.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:U,children:[(0,l.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,l.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,l.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,l.jsx)("div",{style:{height:"calc(100% - 50px)"},className:K,ref:g})]}),(0,l.jsx)("div",{style:{flex:1,position:"relative"},children:(0,l.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,l.jsx)("div",{className:"tr",children:(0,l.jsx)(F.ZP,{size:"large",onClick:c,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},W=n(5112),q=n(88897),X=W.ZP.Group,J={margin:"0 8px"},Q=function(e){var t=e.callback,n=e.onCancel;return(0,l.jsxs)(y.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,l.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,l.jsx)("span",{style:J,children:"单元格数:"}),(0,l.jsx)("span",{style:J,children:"行数"}),(0,l.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,l.jsx)(q.Z,{})}),(0,l.jsx)("span",{style:J,children:"列数"}),(0,l.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,l.jsx)(q.Z,{})})]}),(0,l.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,l.jsx)("span",{style:J,children:"对齐方式:"}),(0,l.jsx)(y.Z.Item,{name:"align",children:(0,l.jsxs)(X,{children:[(0,l.jsx)(W.ZP,{value:"default",children:(0,l.jsx)("i",{className:"fa fa-align-justify"})}),(0,l.jsx)(W.ZP,{value:"left",children:(0,l.jsx)("i",{className:"fa fa-align-left"})}),(0,l.jsx)(W.ZP,{value:"center",children:(0,l.jsx)("i",{className:"fa fa-align-center"})}),(0,l.jsx)(W.ZP,{value:"right",children:(0,l.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,l.jsxs)("div",{className:"flex-container flex-end",children:[(0,l.jsx)(F.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(F.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(47503),te=n.n(ee),ne=(0,h.forwardRef)((function(e,t){var n=e.use3d,a=e.width,o=e.height,g=e.callback,i=(e.showSaveButton,(0,h.useRef)()),d=(0,h.useRef)(),m=(0,h.useState)(!1),S=r()(m,2),P=S[0],s=S[1],c=(0,h.useRef)({id:i,appName:"graphing",width:a||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,h.useEffect)((function(){d.current=new(te())(c.current,!0),window.onload=function(){d.current.inject("applet_container")}}),[]);var u=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return g&&g(e),e};return(0,h.useEffect)((function(){c.current.appName=P?"3D":"graphing",d.current.inject("applet_container")}),[P]),(0,h.useEffect)((function(){s(n)}),[n]),(0,h.useImperativeHandle)(t,(function(){return{getImgData:u}})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:i}),(0,l.jsxs)(C.Z,{align:"middle",children:[(0,l.jsx)(I.Z,{flex:1,children:(0,l.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:P,onChange:function(e){return s(e)}})}),(0,l.jsx)(I.Z,{children:(0,l.jsx)(F.ZP,{size:"large",onClick:u,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ae=n(46246),oe=n(8591),ge="link",re="upload-image",ie="add-flowchart",de="draw-image",he="code-block",me="add-table",Se="------------",Pe={default:Se,left:":".concat(Se),center:":".concat(Se,":"),right:"".concat(Se,":")},se=n(4027);var le="@▁▁@",ce=["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 ue(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",pe=d()(d()({},we+"-B","bold"),we+"-I","italic"),fe=d()(d()(d()(d()(d()(d()(d()(d()({},ge,"添加链接"),he,"添加代码块"),re,"添加图片"),de,"添加画图"),ie,"插入流程图"),me,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Le=function(e){var t=e.defaultValue,n=void 0===t?"":t,a=e.onChange,g=e.width,i=void 0===g?"100%":g,m=e.height,u=void 0===m?400:m,w=e.miniToolbar,p=void 0!==w&&w,f=e.isFocus,y=void 0!==f&&f,x=e.watch,F=e.insertTemp,b=e.mode,C=void 0===b?"markdown":b,k=e.id,T=void 0===k?"markdown-editor-id":k,A=e.showResizeBar,M=void 0!==A&&A,_=e.noStorage,E=void 0!==_&&_,D=e.showNullButton,Z=void 0!==D&&D,R=e.showNullProgramButton,O=void 0!==R&&R,I=e.hidetoolBar,H=void 0!==I&&I,K=e.fullScreen,U=void 0!==K&&K,Y=e.onBlur,W=e.onCMBeforeChange,q=e.onFullScreen,X=e.className,J=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,Se=void 0!==te&&te,we=e.disabledFill,Le=void 0!==we&&we,ve=e.placeholder,ye=void 0===ve?"":ve,xe=e.values,Fe=void 0===xe?"":xe,be=e.extraUse,Be=(0,h.useState)(null),Ge=r()(Be,2),ze=Ge[0],Ne=Ge[1],Ce=(0,h.useState)(n),ke=r()(Ce,2),je=ke[0],Te=ke[1],Ae=(0,h.useState)(x),Me=r()(Ae,2),_e=Me[0],Ee=Me[1],De=(0,h.useState)(U),Ze=r()(De,2),Re=Ze[0],Oe=Ze[1],Ie=(0,h.useState)(""),He=r()(Ie,2),Ke=He[0],Ue=He[1],Ye=(0,h.useState)(0),Ve=r()(Ye,2),We=Ve[0],qe=Ve[1],Xe=(0,h.useState)(u),Je=r()(Xe,2),Qe=Je[0],$e=Je[1],et=(0,h.useState)(!1),tt=r()(et,2),nt=(tt[0],tt[1]),at=(0,h.useState)(0),ot=r()(at,2),gt=ot[0],rt=ot[1],it=(0,h.useState)(0),dt=r()(it,2),ht=dt[0],mt=dt[1],St=(0,h.useRef)(),Pt=(0,h.useRef)(),st=(0,h.useRef)(),lt=(0,h.useRef)();(0,h.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Te(Fe),null==ze||ze.setValue(Fe),window.scrollTo(0,e)}),[Fe]),(0,h.useEffect)((function(){null==q||q(Re)}),[Re]),(0,h.useEffect)((function(){if(St.current){var e=function(e,n){if(!ee){var a=n.clipboardData;if(a){var o=a.types.toString(),g=a.items;if("Files"===o||a.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==C)return;try{var r,i=g[1];"file"===(null===(r=g[0])||void 0===r?void 0:r.kind)&&(i=g[0]);var d=i.getAsFile(),h=d.name.split(".").pop();(0,z.I)(d,(function(e){var n,a,o;e.id?(null==d||null===(n=d.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==d||null===(a=d.type)||void 0===a?void 0:a.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="/api/attachments/'.concat(e.id,'"></video>')):(null==d||null===(o=d.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,"?type=").concat(d.type,'&disposition=inline" target="_blank">').concat(d.name,"</a>")):ce.includes(h)?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(d.name,"</a>")):t.replaceSelection("[".concat(d.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=S().fromTextArea(St.current,{mode:C,lineNumbers:!p,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ye):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),a=n.getCursor(),o=n.getLine(a.line),g=o.charAt(a.ch-1),r=o.lastIndexOf("@▁@",a.ch),i=o.lastIndexOf("@▁▁@",a.ch),d=r>i?r:i,h=r>i?3:4;if(-1===le.indexOf(g))return null;if(console.log("change1:",t,e,o,a,d,r,i,g),d>=0&&a.ch-d<5){var m=d+h;return n.replaceRange("",{line:a.line,ch:d},{line:a.line,ch:m}),{line:a.line,ch:m}}return null}(e);n&&t.preventDefault()}})),y&&t.focus(),t.on("paste",e),Se&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var ct=(0,h.useCallback)((function(){Pt.current}),[Qe,Pt,Re]);(0,h.useEffect)((function(){if(ze){var e=function(){var e=new P.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&(ct(),ze.setSize("100%","100%"),ze.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(St.current.parentElement),e}();return function(){var t,n;null!==(t=St.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=St.current)||void 0===n?void 0:n.parentElement)}}}),[ze,ct]),(0,h.useEffect)((function(){if(ze){for(var e=[],t=function(){var t=r()(a[n],2),o=t[0],g=t[1],i=d()({},o,(function(){ut(g)}));e.push(i),ze.addKeyMap(i)},n=0,a=Object.entries(pe);n<a.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var a=n[t];ze.removeKeyMap(a)}}}}),[ze]),(0,h.useEffect)((function(){U!==Re&&Oe(U)}),[U]),(0,se.Z)((function(){if(!E&&We>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(T);e>=We+1e4&&(!t||t!==je)&&(window.sessionStorage.setItem(T,je),nt(!0))}}),1e4),(0,h.useEffect)((function(){Ee(x)}),[ze,x]),(0,h.useEffect)((function(){ze&&y&&ze.focus()}),[ze,y]),(0,h.useEffect)((function(){if(_e&&ze){var e=function(e){var t=e.target;if(lt.current){var n=t.scrollTop/t.scrollHeight;lt.current.scrollTop=lt.current.scrollHeight*n}},t=ze.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[ze,_e]),(0,h.useEffect)((function(){if(ze&&W){var e=function(e,t){W(e,t)};return ze.on("beforeChange",e),function(){ze.off("beforeChange",e)}}}),[ze,W]),(0,h.useEffect)((function(){if(ze&&Y){var e=function(){Y(ze.getValue())};return ze.on("blur",e),function(){ze.off("blur",e)}}}),[ze,Y]),(0,h.useEffect)((function(){if(ze){var e=function(e,t){var n=e.getValue();Te(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),a&&(O?a(n,vt(n)):a(n))};return ze.on("change",e),function(){ze.off("change",e)}}}),[ze,a]),(0,h.useEffect)((function(){if(ze)if(null==n)ze.setValue(""),Te("");else{var e=window.scrollY||window.pageYOffset;n!==ze.getValue()&&(ze.setValue(n),Te(n),ze.setCursor(Se?1:ze.lineCount(),0),window.scrollTo(0,e))}}),[ze,n]);var ut=(0,h.useCallback)((function(e){var t=ze.getCursor(),n=ze.getSelection(),a=n.split("\n");switch(e){case"bold":return ze.replaceSelection("**"+n+"**"),""===n&&ze.setCursor(t.line,t.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+n+"*"),""===n&&ze.setCursor(t.line,t.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+n+"`"),""===n&&ze.setCursor(t.line,t.ch+1),ze.focus();case"inline-latex":return Ue("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+n+"\n```"),ze.setCursor(t.line+1,n.length+1),ze.focus();case"line-break":return ze.replaceSelection("<br/>\n"),ze.focus();case"list-ul":return""===n?ze.replaceSelection("- "+n):ze.replaceSelection(a.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),ze.focus();case"list-ol":return""===n?ze.replaceSelection("1. "+n):ze.replaceSelection(a.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),ze.focus();case"add-null-ch":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("▁"),ze.focus();case"add-signal":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("@▁@"),ze.focus();case"add-multiple":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection(le),ze.focus();case"inster-template-1":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return Ee(!_e),ze.focus();case"trigger-full-screen":return Oe(!Re),ze.focus();case ge:return void Ue(ge);case he:return void Ue(he);case re:return void Ue(re);case de:return void Ue(de);case"maths-latex":return void Ue("maths-latex");case ie:return void Ue(ie);case me:return void Ue(me);default:throw new Error}}),[ze,_e,Re]),wt=(0,h.useCallback)((function(e,t){var n,a,o,g,r;switch(Ue(""),Ke){case ge:var i=e.title,d=e.link;return ze.replaceSelection("[".concat(i,"](").concat(d,")")),ze.focus();case he:var h=e.language,m=e.content;return ze.replaceSelection(["```"+h,m,"```"].join("\n")),ze.focus();case"maths-latex":for(var S=atob(e),P=new Uint8Array(S.length),s=0;s<S.length;s++)P[s]=S.charCodeAt(s);var l=new Blob([P],{type:"image/png"});(0,z.I)(l,(function(e){e.id?ze.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":ze.replaceSelection("`$$"+e+"$$`");break;case re:case de:case"add-flowchart":var c=e.src,u=e.alt,w=t,p=null==w||null===(n=w.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(a=n.pop)||void 0===a?void 0:a.call(n);return(null==w||null===(o=w.type)||void 0===o?void 0:o.indexOf("image"))>-1||null==w||!w.type?u?ze.replaceSelection("![ ".concat(u," ]( ").concat(c,' "').concat(u,'" )')):ze.replaceSelection("![,](".concat(c,")")):(null==w||null===(g=w.type)||void 0===g?void 0:g.indexOf("video"))>-1?ze.replaceSelection('<video width="100%" controls src="'.concat(c,'"></video>')):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?ze.replaceSelection('<a href="'.concat(c,"?type=").concat(w.type,'&disposition=inline" target="_blank">').concat(w.name,"</a>")):ce.includes(p)?ze.replaceSelection('<a href="'.concat(c,'?type=office&disposition=inline" target="_blank">').concat(w.name,"</a>")):ze.replaceSelection("[".concat(w.name,"](").concat(c,")")),ze.focus();case me:for(var f=e.row,L=e.col,v=e.align,y="\n",x=0;x<f;x++){for(var F=[],b=[],B=0;B<L;B++)1===x&&b.push(Pe[v]),F.push(" ");1===x&&(y+="| ".concat(b.join(" | ")," |\n")),y+="| ".concat(F.join(1===L?"":" | ")," |\n")}return ze.replaceSelection(y+"\n"),ze.focus();default:throw new Error}}),[ze,Ke]),pt=(0,h.useMemo)((function(){switch(Ke){case ge:return(0,l.jsx)(B,{callback:wt,onCancel:ft});case he:return(0,l.jsx)(G.Z,{callback:wt,onCancel:ft});case re:return(0,l.jsx)(z.Z,{callback:wt,onCancel:ft});case ie:return(0,l.jsx)(V,{callback:wt,onCancel:ft});case me:return(0,l.jsx)(Q,{callback:wt,onCancel:ft});case"maths-latex":return(0,l.jsx)(ne,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,l.jsx)(ae.Z,{showSaveButton:!0,callback:wt});default:return null}}),[Ke]);function ft(){Ue("")}(0,h.useEffect)((function(){if(st.current){var e=function(e){o=!0,g=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-g;t<0&&(t=0),t>300&&(t=300),$e(u+t+"px")}},a=st.current,o=!1,g=0;return a.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[ze,st]),(0,h.useEffect)((function(){$e(u)}),[u]);var Lt={width:ue(i),height:ue(Qe)},vt=((0,h.useMemo)((function(){if(We){var e=new Date(We),t=e.getHours(),n=e.getMinutes(),a=e.getSeconds();return n=n<10?"0"+n:n,a=a<10?"0"+a:a,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(a)}return 0}),[We]),function(e){var t=[];if(O){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,a){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,h.useEffect)((function(){fe[Ke]&&Ke!==de&&Ke!==ie&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;rt(t),mt(n)}),0)}),[Ke]);var yt=function(e,t,n,a){var o=document.body.clientHeight,g=document.body.clientWidth;return!(e<20&&n>e||e>g-20&&n<e||t<20&&a>t||t>o-20&&a<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,l.jsxs)(h.Fragment,{children:[(0,l.jsx)("div",{className:"markdown-editor-wrapper",ref:Pt,children:(0,l.jsxs)("div",{className:"markdown-editor-container ".concat(J," ").concat(_e?"on-preview":""," ").concat(p?"mini":""," ").concat(Re?"full-screen":""),style:Lt,children:[(0,l.jsx)(L,{insertTemp:F,watch:_e,fullScreen:Re,showNullButton:Z,showNullProgramButton:O,onActionCallback:ut,hidetoolBar:H,extraUse:be}),(0,l.jsxs)("div",{className:"markdown-editor-body",children:[(0,l.jsx)("div",{className:"codemirror-container",children:(0,l.jsx)("textarea",{ref:St,placeholder:ye})}),_e?(0,l.jsxs)("div",{ref:lt,className:"preview-container",children:["stex"===C&&(0,l.jsx)(c,{value:je}),"stex"!==C&&(0,l.jsx)(s.Z,{disabledFill:Le,showProgramFill:O,value:je})]}):null]})]})}),M?(0,l.jsx)("a",{ref:st,className:"editor-resize"}):null,Ke===de&&(0,l.jsx)(j,{callback:wt,onCancel:ft}),Ke===ie&&(0,l.jsx)(V,{callback:wt,onCancel:ft}),(0,l.jsx)(v.Z,{children:fe[Ke]&&Ke!==de&&Ke!==ie?(0,l.jsx)(N.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:gt,top:ht},title:(0,l.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-gt,n=e.clientY-ht;document.body.onmousemove=function(e){var a=e.clientX-t,o=e.clientY-n,g=document.getElementsByClassName("markdown-popup-form")[0],r=window.innerWidth-g.offsetWidth,i=window.innerHeight-g.offsetHeight;a=Math.max(0,Math.min(a,r)),o=Math.max(0,Math.min(o,i)),yt(e.clientX,e.clientY,t,n)&&(rt(a),mt(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:fe[Ke]}),open:!0,onCancel:ft,footer:null,destroyOnClose:!0,width:Ke===ie?"1200px":null,height:Ke===ie?"80vh":null,className:"markdown-popup-form",children:pt}):null})]})}},48347:function(e,t,n){"use strict";n.d(t,{Z:function(){return w},I:function(){return f}});var a=n(82242),o=n.n(a),g=n(79800),r=n.n(g),i=n(78241),d=n(8591),h=n(92832),m=n(3113),S=n(37318),P=n(59301),s=n(37712),l=i.Z.useForm,c={width:280,marginRight:10},u={labelCol:{span:5},wrapperCol:{span:19}},w=function(e){var t=e.callback,n=e.onCancel,a=l(),g=r()(a,1)[0],S=(0,P.useRef)();function w(e,t){-1!==e.status?g.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):d.ZP.error(e.message)}return(0,s.jsxs)(i.Z,o()(o()({form:g},u),{},{className:"upload-image-panel",onFinish:function(e){t(e,S.current)},style:{width:470,overflow:"hidden"},children:[(0,s.jsx)(i.Z.Item,{label:"图片地址",required:!0,children:(0,s.jsxs)("div",{className:"flex-container",children:[(0,s.jsx)(i.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,s.jsx)(h.Z,{style:c})}),(0,s.jsx)(p,{onFileChange:function(e){var t=e.target.files[0];S.current=t,f(t,w)}})]})}),(0,s.jsx)(i.Z.Item,{label:"图片描述",name:"alt",children:(0,s.jsx)(h.Z,{style:{width:264}})}),(0,s.jsxs)(i.Z.Item,{style:{textAlign:"right"},children:[(0,s.jsx)(m.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,s.jsx)(m.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function p(e){var t=e.onFileChange;return(0,s.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,s.jsx)("input",{type:"file",onChange:t})]})}function f(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var a=new window.XMLHttpRequest;a.withCredentials=!0,a.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),a.addEventListener("error",(function(e){console.error(e)}),!1),a.open("POST","".concat(S.KI,"/api/attachments.json")),a.send(n)}},32552:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(82100),o=n.n(a),g=n(29186),r=n.n(g),i=n(80619),d=n.n(i),h=n(47074),m=n.n(h),S=n(59301),P=n(4676),s=function(e){d()(n,e);var t=m()(n);function n(e){var a;o()(this,n),a=t.call(this,e);var g=window.document;return a.node=g.createElement("div"),g.body.appendChild(a.node),a}return r()(n,[{key:"render",value:function(){var e=this.props.children;return(0,P.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(S.Component)},52322:function(e,t,n){"use strict";n(7543);var a=n(57809),o=n(78673),g=n(37712),r=a.default.Option;t.Z=function(e){var t=e.isTheoretical,n=e.onFontSizeChange,i=e.cmFontSize,d=e.cmCodeMode,h=(e.autoFormat,e.onCodeModeChange),m=e.onTabToSpace,S=(e.onAutoFormat,e.formatDocument),P=e.className,s=void 0===P?"":P,l=e.tabToSpace,c=e.children,u=e.code_editor,w=e.challenge;return(0,g.jsxs)("div",{className:"tpi-code-setting ".concat(s),children:[(0,g.jsx)("h3",{children:"代码格式"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"显示模式"}),(0,g.jsxs)(a.default,{bordered:!1,size:"small",value:d,onChange:h,children:[(0,g.jsx)(r,{value:"vs",children:"白色背景"}),(0,g.jsx)(r,{value:"vs-dark",children:"黑色背景"})]})]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"字体大小"}),(0,g.jsxs)(a.default,{bordered:!1,size:"small",value:i,onChange:n,children:[(0,g.jsx)(r,{value:12,children:"12px"}),(0,g.jsx)(r,{value:14,children:"14px"}),(0,g.jsx)(r,{value:16,children:"16px"}),(0,g.jsx)(r,{value:18,children:"18px"}),(0,g.jsx)(r,{value:20,children:"20px"}),(0,g.jsx)(r,{value:22,children:"22px"})]})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"Tab转换"}),(0,g.jsx)(o.Z,{checked:l,onChange:m})]}),(0,g.jsx)("div",{className:"file-item",onClick:S,children:(0,g.jsx)("b",{style:{cursor:"pointer"},children:"格式化代码"})})]})]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:"快捷键"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"保存代码"}),(0,g.jsx)("span",{children:"Ctrl + S"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"唤出快捷键列表"}),(0,g.jsx)("span",{children:"F1 / Alt + F1"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"左右缩进"}),(0,g.jsx)("span",{children:"Ctrl + ]/["})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"跳到匹配的括号"}),(0,g.jsx)("span",{children:"Ctrl + Shift + \\"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"转到行首"}),(0,g.jsx)("span",{children:"Home"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"转到行尾"}),(0,g.jsx)("span",{children:"End"})]})]}),c]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:"快捷键"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实训难易度"}),(0,g.jsx)("span",{children:{1:"简单",2:"中等",3:"困难"}[null==w?void 0:w.difficulty]})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实验环境"}),(0,g.jsx)("span",{children:null==u?void 0:u.name})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实验容器网络"}),(0,g.jsx)("span",{children:null!=u&&u.close_internet?"关闭外网":"开启外网"})]})]})]})]})}},4027:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(59301);function o(e,t){var n=(0,a.useRef)();(0,a.useEffect)((function(){n.current=e})),(0,a.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},50226:function(e,t,n){"use strict";n.r(t),n.d(t,{Types:function(){return Xe},default:function(){return Qe}});var a=n(70236),o=n.n(a),g=n(37205),r=n.n(g),i=n(91232),d=n.n(i),h=n(7557),m=n.n(h),S=n(41498),P=n.n(S),s=n(79800),l=n.n(s),c=n(82242),u=n.n(c),w=n(59301),p="header___N_IdR",f="field___XG_dh",L="oj-form-container___syYzK",v="oj-left-panel___L082x",y="oj-form-info___q0IU5",x="footer___pGCM2",F="result___LM9Ms",b="passText___nUoL4",B="noPassText___ECHHG",G="pass___tDubp",z="noPass___ilYvg",N="test-case-name___MI_KD",C="btn-remove-case___OiaTQ",k="btn_back___FyaSY",j="testJi___NDviK",T="upBtn___FiZX4",A="oj-problems___xb70g",M="row___v036E",_="a___yRaYH",E="b___gWQyu",D="inputTwo___IZ9og",Z="inputOne____NmcT",R="cusModal___fJ5gm",O="oj-custom-large-spin___Aar0g",I="MdEditor___hgoes",H=n(92832),K=n(43418),U=n(36381),Y=n(78241),V=n(8591),W=n(95237),q=n(43604),X=n(71418),J=n(3113),Q=n(2595),$=n(57809),ee=n(88897),te=n(5112),ne=n(24905),ae=n(81327),oe=n(14478),ge=n(85573),re=n.n(ge),ie=n(37712),de=$.default.Option,he=function(e){return e[e.language=0]="language",e[e.difficulty=1]="difficulty",e[e.category=2]="category",e[e.openOrNot=3]="openOrNot",e}({}),me=re()(re()(re()(re()({},he.language,[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}]),he.difficulty,[{title:"简单",key:1},{title:"适中",key:2},{title:"困难",key:3}]),he.category,[{title:"程序设计",key:1},{title:"算法",key:2}]),he.openOrNot,[{title:"公开",key:1},{title:"私有",key:0}]);var Se=n(79265),Pe=n(24334),se=n(15962),le=n(2377),ce=n(85654),ue=n(82710);function we(e){return(0,ue.v_)("practices.json",e)}function pe(e){return(0,ue.U2)("practices/".concat(e,"/edit.json"))}function fe(e,t){return(0,ue.gz)("practices/".concat(e),t)}var Le=n(9266),ve=n(43428),ye=n(31775),xe=n(52322),Fe=n(32552),be=n(64269),Be="code-panel-container___BZjjl",Ge="action-oj-bar___xbXpK",ze="active___EMVKI",Ne={theme:(0,be.G)("cmCodeMode","vs-dark"),fontSize:(0,be.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,be.G)("cmTabToSpace",!0)},Ce=function(e){return e[e.set_font_size=0]="set_font_size",e[e.set_theme=1]="set_theme",e[e.on_tab_to_space=2]="on_tab_to_space",e[e.set_show_editor_setting=3]="set_show_editor_setting",e}(Ce||{});function ke(e,t){switch(t.type){case Ce.set_show_editor_setting:return u()(u()({},e),{},{showEditorSetting:t.payload});case Ce.set_theme:return u()(u()({},e),{},{theme:t.payload});case Ce.set_font_size:return u()(u()({},e),{},{fontSize:t.payload});case Ce.on_tab_to_space:return u()(u()({},e),{},{tabToSpace:t.payload});default:throw new Error}}var je=function(e){var t=e.value,n=e.onChange,a=e.language,o=e.onLanguage,g=e.languageItems,r=e.ActionBarRender,i=void 0===r?function(e){return(0,ie.jsx)(Te,{languageItems:g,onLanguage:o,language:a,onShowCodeSetting:e})}:r,d=(0,w.useReducer)(ke,Ne),h=l()(d,2),m=h[0],S=h[1],P=m.theme,s=m.fontSize,c=m.showEditorSetting,p=m.tabToSpace;console.log(t,a,"value");var f={onFontSizeChange:function(e){S({type:Ce.set_font_size,payload:e}),(0,be.t)("cmFontSize",e)},tabToSpace:p,cmFontSize:s,className:"oj",cmCodeMode:P,onTabToSpace:function(e){S({type:Ce.on_tab_to_space,payload:e}),(0,be.t)("cmTabToSpace",e)},onCodeModeChange:function(e){S({type:Ce.set_theme,payload:e}),(0,be.t)("cmCodeMode",e)}};var L={value:t,language:a,onChange:n,theme:P,height:"calc(100% - 56px)",options:{fontSize:s,insertSpaces:p}};return(0,ie.jsxs)(w.Fragment,{children:[(0,ie.jsxs)("div",{className:Be,children:[i((function(){S({type:Ce.set_show_editor_setting,payload:!0})})),(0,ie.jsx)(ye.ZP,u()({},L),a)]}),(0,ie.jsx)(Fe.Z,{children:(0,ie.jsx)(ve.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:c,onClose:function(){S({type:Ce.set_show_editor_setting,payload:!1})},children:(0,ie.jsx)(xe.Z,u()({},f))})})]})};function Te(e){var t=e.languageItems,n=e.language,a=e.onShowCodeSetting,o=e.onLanguage;return(0,ie.jsxs)("div",{className:Ge,children:[null==t?void 0:t.map((function(e){return(0,ie.jsx)("div",{className:n===(null==e?void 0:e.language)?ze:"",onClick:function(){return o(null==e?void 0:e.language)},children:null==e?void 0:e.language},null==e?void 0:e.language)})),(0,ie.jsx)("a",{onClick:a,children:(0,ie.jsx)("i",{className:"iconfont icon-shezhi"})})]})}var Ae=n(99313),Me="wrap___xTL91",_e="in___eSY86",Ee="btns___UdEGI",De="customModal___CL0OL",Ze=function(e){var t=e.visible,n=e.onOK,a=e.onCancel,o=(0,w.useState)(!1),g=l()(o,2),r=g[0],i=g[1],d=(0,w.useState)(!1),h=l()(d,2),S=h[0],s=h[1],c=(0,w.useState)("1"),u=l()(c,2),p=u[0],f=u[1],L=(0,w.useState)(""),v=l()(L,2),y=v[0],x=v[1],F=(0,w.useState)([]),b=l()(F,2),B=b[0],G=b[1],z=function(){var e=P()(m()().mark((function e(){var a;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y){e.next=3;break}return V.ZP.warning("题目".concat(C,"不能为空")),e.abrupt("return");case 3:return s(!0),e.next=6,(0,ue.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:t,name:y}});case 6:if(0!==(null==(a=e.sent)?void 0:a.status)){e.next=10;break}return n(),e.abrupt("return");case 10:s(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=P()(m()().mark((function e(){var n,a,o=arguments;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:"",i(!0),e.next=4,(0,ue.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:t,search:n}});case 4:a=e.sent,G(a.tag_disciplines||[]),i(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C="practice"===t?"知识点":"来源";return(0,ie.jsx)(K.Z,{afterClose:function(){s(!1),i(!1),x(""),f("1"),G([])},centered:!0,keyboard:!1,width:600,title:"".concat(C,"管理"),open:!!t,className:De,footer:null,onCancel:a,children:(0,ie.jsx)("section",{className:Me,children:(0,ie.jsxs)(Ae.Z,{activeKey:p,onChange:function(e){x(""),f(e),N()},children:[(0,ie.jsxs)(Ae.Z.TabPane,{tab:"新增".concat(C),children:[(0,ie.jsx)(H.Z,{value:y,onChange:function(e){return x(e.target.value)},className:_e,placeholder:"输入".concat(C,"名称不超过20个字"),maxLength:20}),(0,ie.jsxs)("div",{className:Ee,children:[(0,ie.jsx)(J.ZP,{onClick:a,className:"mr20",children:"取消 "}),(0,ie.jsx)(J.ZP,{loading:S,onClick:z,type:"primary",children:"确认新建"})]})]},"1"),(0,ie.jsxs)(Ae.Z.TabPane,{tab:"已有".concat(C),children:[(0,ie.jsx)(H.Z.Search,{allowClear:!0,onSearch:function(e){N(e)},value:y,onChange:function(e){return x(e.target.value)},className:_e,placeholder:"输入".concat(C,"名称进行查询")}),(0,ie.jsx)(Q.Z,{dataSource:B,bordered:!1,loading:r,scroll:B.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:"".concat(C,"名称"),dataIndex:"name",ellipsis:!0},{title:"操作",dataIndex:"action",width:120,render:function(e,n){return(0,ie.jsxs)("span",{children:[(0,ie.jsx)("span",{onClick:function(){return function(e){var t,n=e.name;K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"重命名",content:(0,ie.jsx)("div",{children:(0,ie.jsx)(H.Z,{defaultValue:n,placeholder:"请输入".concat(C,"名称不超过20个字"),maxLength:20,onChange:function(e){n=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(t=P()(m()().mark((function t(){var a;return m()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=3;break}return V.ZP.warning("题目".concat(C,"不能为空")),t.abrupt("return",Promise.reject());case 3:return t.next=5,(0,ue.ZP)("/api/tag_disciplines/".concat(e.id,"/rename.json"),{method:"post",body:{id:e.id,name:n}});case 5:0===(null==(a=t.sent)?void 0:a.status)&&N();case 7:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}(n)},className:"current mr10 c-light-primary",children:"重命名"}),(0,ie.jsx)("span",{onClick:function(){return function(e){var n;K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"删除",content:"practice"===t?(0,ie.jsxs)("div",{children:["确认将题目来源“",(0,ie.jsx)("span",{className:"c-light-primary",children:e.name}),"”删除吗?",(0,ie.jsx)("br",{}),"删除后,会将相关题目中的来源进行清除。"]}):(0,ie.jsxs)("div",{children:["确认将题目知识点“",(0,ie.jsx)("span",{className:"c-light-primary",children:e.name}),"”删除吗?",(0,ie.jsx)("br",{}),"删除后,会将相关题目中的知识点进行清除。"]}),okText:"确认",cancelText:"取消",onOk:(n=P()(m()().mark((function t(){var n;return m()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ue.ZP)("/api/tag_disciplines/".concat(e.id,".json"),{method:"delete",body:{id:e.id}});case 2:0===(null==(n=t.sent)?void 0:n.status)&&N();case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})}(n)},className:"current c-grey-666",children:"删除"})]})}}],pagination:!1})]},"2")]})})})},Re=n(69423),Oe=n(17721),Ie=n(61186),He=n.n(Ie),Ke=n(95972),Ue=n(501),Ye=n(64118),Ve=H.Z.TextArea,We=(K.Z.confirm,U.Z.Panel),qe={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0},Xe=function(e){return e[e.SET_INITAL_DATA=0]="SET_INITAL_DATA",e[e.SET_LOADING=1]="SET_LOADING",e[e.SET_STATUS=2]="SET_STATUS",e}({});function Je(e,t){switch(t.type){case Xe.SET_INITAL_DATA:return u()(u()({},e),t.payload);case Xe.SET_LOADING:return u()(u()({},e),{},{loading:t.payload});case Xe.SET_STATUS:return u()(u()({},e),{},{status:t.payload});default:throw new Error}}var Qe=function(){(0,Se.useLocation)();var e,t,n,a=(0,Se.useParams)().id,o=Y.Z.useForm(),g=l()(o,1)[0],r=(0,w.useState)(),i=l()(r,2),h=i[0],S=i[1],s=(0,w.useState)(!1),c=l()(s,2),f=c[0],v=c[1],y=(0,w.useState)([]),N=l()(y,2),C=N[0],j=N[1],T=(0,w.useState)([]),M=l()(T,2),_=M[0],E=M[1],D=(0,w.useState)([]),Z=l()(D,2),H=Z[0],U=Z[1],$=(0,w.useState)([]),ee=l()($,2),te=ee[0],ne=ee[1],ae=(0,w.useState)([]),oe=l()(ae,2),ge=oe[0],re=oe[1],de=(0,w.useState)("C"),he=l()(de,2),me=he[0],le=he[1],ve=(0,w.useReducer)(Je,qe),ye=l()(ve,2),xe=ye[0],Fe=ye[1],be=xe.loading,Be=xe.data,Ge=xe.user,ze=(xe.status,null==Be?void 0:Be.hack_sets),Ne=null==Be||null===(e=Be.hack)||void 0===e?void 0:e.test_set_average,Ce=(0,w.useState)(!1),ke=l()(Ce,2),Te=ke[0],Ae=ke[1],Me=(0,w.useRef)([]),_e=(0,w.useState)(!1),Ee=l()(_e,2),De=Ee[0],Ze=Ee[1],Oe=(0,w.useState)(!1),Ie=l()(Oe,2),Ye=Ie[0],Ve=Ie[1],We=(0,w.useRef)(!0),Qe=(0,w.useState)({}),et=l()(Qe,2),tt=et[0],nt=et[1];(0,w.useEffect)((function(){return(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),function(){(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}}),[]),(0,w.useEffect)((function(){setTimeout((function(){document.title="在线刷题"}),400)}));var at=function(){var e=P()(m()().mark((function e(){var t,n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ue.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}});case 2:return t=e.sent,e.next=5,(0,ue.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});case 5:n=e.sent,E(t.tag_disciplines||[]),U(n.tag_disciplines||[]);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}],gt=(0,w.useCallback)(P()(m()().mark((function e(){var t,n,o,r,i,d,h,P,s,l,c,w,p,f,L,v,y,x,F,b,B,G,z,N,C;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Fe({type:Xe.SET_LOADING,payload:!0}),!a){e.next=19;break}return e.next=4,pe(a);case 4:t=e.sent,n=t.user,t.language,o=t.practice_sets,r=t.practice_codes,i=t.description,d=t.difficulty,h=t.name,P=t.open_or_not,s=t.time_limit,l=t.test_set_average,c=t.test_set_score,w=t.status,p=t.tag_discipline_ids,f=t.source_discipline_ids,t.item_banks_group_id,L=t.is_file,v=void 0!==L&&L,y=t.hide_actual_output,x=t.review_privilege,F=t.review_description,b=t.submit_rule,nt({review_privilege:x,status:w,review_description:F,name:h}),Ae(y),B=v?[{input:"",output:"",score:100,position:1}]:o,v?(j(o),g.setFieldsValue({hack_sets:B})):j([]),G={loading:!0,user:n,status:w,data:{hack:{difficulty:d,name:h,description:i,open_or_not:P,time_limit:s,test_set_average:l,test_set_score:c,tag_discipline_ids:p,source_discipline_ids:f,is_file:v,submit_rule:b},hack_sets:B}},Fe({type:Xe.SET_INITAL_DATA,payload:G}),S({hack:{difficulty:d,name:h,description:i,open_or_not:P,time_limit:s,test_set_average:l,test_set_score:c,tag_discipline_ids:p,source_discipline_ids:f,is_file:v}}),z=null==r?void 0:r.map((function(e){return u()(u()({},e),{},{code:Pe.Base64.decode(null==e?void 0:e.code)})})),re(z),Me.current=z,e.next=27;break;case 19:return e.next=21,(0,ue.U2)("problems/new.json");case 21:N=e.sent,C=N.user,Fe({type:Xe.SET_INITAL_DATA,payload:{loading:!0,status:0,user:C,data:{hack:{difficulty:"",time_limit:3,description:"#### 题目描述\n现有一个整型数组 `nums`,请编写程序将数组 `nums` 中的所有 `$$0$$` 移动到数组的末尾,但不改变非零元素在数组中的相对位置。请在原数组 `nums` 上进行操作。\n#### 输入输出格式\n**输入格式**\n第一行有一个整数 `numsSize`,表示数组 `nums` 的大小;\n第二行有 `numsSize` 个整数,表示数组 `nums` 的所有元素,每个整数用一个空格隔开。\n**输出格式**\n一行输出数组 `nums` 的所有元素,有 `numsSize` 个整数,每个整数用一个空格隔开。\n#### 输入输出样例1\n**输入**\n`4`\n`0 1 2 3`\n**输出**\n`1 2 3 0`\n**解释(可选)**\nXXXXX\n#### 输入输出样例2\n**输入**\n`5`\n`1 1 0 1 0`\n**输出**\n`1 1 1 0 0`\n**解释(可选)**\nXXXXX\n#### 说明提示\n-`1≤n≤100`",test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),S({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),re(ot),Me.current=ot;case 27:Fe({type:Xe.SET_LOADING,payload:!1});case 28:case"end":return e.stop()}}),e)}))),[a]);function rt(){return rt=P()(m()().mark((function e(t,n){var o,g,r,i,h,S,P,s,l,c,w,p,f,L,y,x,F;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g=u()({},t),r=g.hack_sets,(i=g.hack).hide_actual_output=Te,h=[],S=[],P=0,s=null!=i&&i.is_file?C.map((function(e,t){return u()(u()({},e),{},{position:t+1})})):r.map((function(e){return u()(u()({},e),{},{is_file:!1})})),l=d()(s);try{for(l.s();!(c=l.n()).done;)w=c.value,P+=w.score,w.id&&w.id>=0?h.push(w):S.push(w)}catch(e){l.e(e)}finally{l.f()}if(null!=s&&s.length){e.next=11;break}return V.ZP.error("测试集不能为空"),e.abrupt("return");case 11:if(100===P||i.test_set_score){e.next=14;break}return V.ZP.error("测试集的评分占比之和必须等于100"),e.abrupt("return");case 14:if(null==s||!s.some((function(e){return!e.output}))){e.next=17;break}return V.ZP.error("测试集输出不能为空"),e.abrupt("return");case 17:if(We.current?Ze(!0):Ve(!0),f=null==ge?void 0:ge.map((function(e){return u()(u()({},e),{},{code:Pe.Base64.encode(null==e?void 0:e.code)})})),!a){e.next=25;break}return e.next=22,fe(a,{practice:i,practice_codes:f,practice_sets:S,update_practice_sets:h});case 22:p=e.sent,e.next=28;break;case 25:return e.next=27,we({practice:i,practice_codes:f,practice_sets:s,publish:!We.current});case 27:p=e.sent;case 28:if(Ze(!1),Ve(!1),0!==(null===(o=p)||void 0===o?void 0:o.status)){e.next=46;break}if(null===(L=p)||void 0===L||null===(L=L.similar_practice)||void 0===L||!L.length){e.next=35;break}return v(!0),ne(null===(y=p)||void 0===y?void 0:y.similar_practice),e.abrupt("return");case 35:if(!a){e.next=44;break}if(V.ZP.success("保存成功"),We.current){e.next=42;break}return e.next=40,(0,ue.ZP)("/api/practices/".concat(a,"/start"),{method:"get"});case 40:0===(null==(x=e.sent)?void 0:x.status)&&Se.history.push("/problems/".concat(null==x?void 0:x.identifier,"/oj/").concat(a));case 42:e.next=46;break;case 44:V.ZP.success("新建成功"),Se.history.replace("/problems/".concat(null===(F=p)||void 0===F?void 0:F.identifier,"/ojedit"));case 46:case"end":return e.stop()}}),e)}))),rt.apply(this,arguments)}function it(){Se.history.replace("/problems")}(0,w.useEffect)((function(){try{gt(),at()}catch(e){console.log(e,"----")}}),[]);var dt=function(e){var t=Math.floor(100/e.length),n=t+100%e.length;e=e.map((function(a,o){return o===e.length-1?u()(u()({},a),{},{score:n}):u()(u()({},a),{},{score:t})})),j(e)};(0,w.useEffect)((function(){if(Ne){var e=null==ze?void 0:ze.length,t=Math.floor(100/e),n=100%e;null==ze||ze.map((function(a,o){return a.score=t,a.position=o+1,o===e-1&&(a.score=t+n),a})),Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack_sets:ze})}}),g.setFieldsValue({hack_sets:ze})}}),[Ne]);var ht=function(){var e=P()(m()().mark((function e(t){var n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ue.ZP)("/api/practices/".concat(t,"/start"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(0,Ke.xg)("/problems/".concat(null==n?void 0:n.identifier,"/oj/").concat(t));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mt=function(){var e=P()(m()().mark((function e(){var t,n,o,g,r;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe(a);case 2:t=e.sent,n=t.name,o=t.status,g=t.review_privilege,r=t.review_description,nt({review_privilege:g,status:o,review_description:r,name:n});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),St=function(){var e=P()(m()().mark((function e(){return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"提示",content:"确认将题目《".concat(null==tt?void 0:tt.name,"》的审核通过吗?"),okText:"确认",cancelText:"取消",onOk:function(){var e=P()(m()().mark((function e(){var t;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ue.ZP)("/api/practices/".concat(a,"/review.json"),{method:"post",body:{op:"pass"}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(V.ZP.success("提交成功"),mt());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ie.jsxs)(X.Z,{spinning:be,size:"large",className:O,children:[Be?(0,ie.jsxs)(w.Fragment,{children:[(0,ie.jsxs)("header",{className:p,children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("img",{src:"".concat(Re.Z.IMG_SERVER,"/images/").concat(null==Ge?void 0:Ge.image_url),alt:"user",width:30}),(0,ie.jsx)("span",{children:null==Ge?void 0:Ge.name})]}),(0,ie.jsxs)("h2",{children:[" ",null==Be||null===(t=Be.hack)||void 0===t?void 0:t.name," "]}),a?(0,ie.jsxs)("a",{className:k,onClick:it,children:[" ",(0,ie.jsx)(se.Z,{}),"退出"]}):null]}),(0,ie.jsxs)(Y.Z,{form:g,initialValues:Be,layout:"vertical",className:L,onValuesChange:function(e){S(u()({},g.getFieldsValue()))},onFinish:function(e,t){return rt.apply(this,arguments)},children:[(0,ie.jsx)(Le.Z,{hideResize:!0,className:A,leftChild:(0,ie.jsx)($e,{formValue:h,onRemoveTestCase:function(e){var t=g.getFieldValue("hack_sets"),n=(null==t?void 0:t.length)-1,a=Math.ceil(100/n),o=100%n;t.splice(e,1),null==t||t.map((function(e,t){return Ne&&(e.score=a,t===n-1&&(e.score=a+o)),e.position=t+1,e})),Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack_sets:t})}}),g.setFieldsValue({hack_sets:t})},onAddTestCase:function(){var e=g.getFieldValue("hack_sets"),t=e.length+1,n=Math.floor(100/t),a=100%t;e.map((function(e,t){return Ne&&(e.score=n),e.position=t+1,e})),e.push({input:"",output:"",position:t,score:Ne?n+a:0}),g.setFieldsValue({hack_sets:e}),Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack_sets:e})}})},hack:Be.hack,onChangeScore:function(e){e.target.value||dt(C),Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack:u()(u()({},Be.hack),{},{test_set_score:e.target.value})})}})},onChangehide:function(e){Ae(e.target.checked)},onChangeAverage:function(e){var t=e.target.value;t&&dt(C),Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack:u()(u()({},Be.hack),{},{test_set_average:t})})}})},onChangeFile:function(e){Fe({type:Xe.SET_INITAL_DATA,payload:{data:u()(u()({},Be),{},{hack:u()(u()({},Be.hack),{},{is_file:e.target.value})})}})},uploadData:C,setUploadData:j,handleUploadRatio:dt,ischecked:Te,pointData:_,sourceData:H,getPointData:at}),rightChild:(0,ie.jsx)(je,{value:null==ge||null===(n=ge.find((function(e){return e.language===me})))||void 0===n?void 0:n.code,onChange:function(e){var t,n=null===(t=Me.current)||void 0===t?void 0:t.findIndex((function(e){return e.language===me}));Me.current[n].code=e,re(Me.current)},onLanguage:function(e){le(e)},languageItems:ge,language:me})}),(0,ie.jsxs)("div",{className:x,children:[!!a&&(0,ie.jsxs)("div",{className:F,children:[(0,ie.jsx)("span",{children:"审核结果:"}),null!=tt&&tt.review_privilege?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("div",{onClick:St,className:G,children:"通过"}),(0,ie.jsx)("div",{onClick:function(){var e,t="";K.Z.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"不通过原因",content:(0,ie.jsx)("div",{className:"mt20",children:(0,ie.jsx)(ce.Z,{className:I,defaultValue:t,onChange:function(e){t=e}})}),okText:"确认",cancelText:"取消",onOk:(e=P()(m()().mark((function e(){var n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return V.ZP.warning("不通过原因不能为空"),e.abrupt("return",Promise.reject());case 3:return e.next=5,(0,ue.ZP)("/api/practices/".concat(a,"/review.json"),{method:"post",body:{op:"fail",description:t}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(V.ZP.success("提交成功"),mt());case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:z,children:"不通过"})]}):(0,ie.jsxs)(ie.Fragment,{children:[0===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:b,children:[(0,ie.jsx)("i",{className:"iconfont icon-tongguo"}),"未发布"]}),1===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:b,children:[(0,ie.jsx)("i",{className:"iconfont icon-tongguo"}),"已公开"]}),2===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:b,children:[(0,ie.jsx)("i",{className:"iconfont icon-tongguo"}),"未审批"]}),3===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:b,children:[(0,ie.jsx)("i",{className:"iconfont icon-tongguo"}),"审核中"]}),4===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:b,children:[(0,ie.jsx)("i",{className:"iconfont icon-tongguo"}),"审核完成待公开"]}),5===(null==tt?void 0:tt.status)&&(0,ie.jsxs)("div",{className:B,children:[(0,ie.jsx)("i",{className:"iconfont icon-weitongguo1"}),"审核不通过",(0,ie.jsx)("span",{onClick:function(){var e=K.Z.confirm({icon:null,width:700,className:"".concat(R," custom-modal-divider"),centered:!0,title:(0,ie.jsxs)(W.Z,{children:[(0,ie.jsx)(q.Z,{flex:"1",children:"不通过原因"}),(0,ie.jsx)(q.Z,{children:(0,ie.jsx)("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return e.destroy()}})})]}),content:(0,ie.jsx)("div",{children:(0,ie.jsx)(Ue.Z,{className:"mt20",value:(null==tt?void 0:tt.review_description)||""})})})},children:"查看原因"})]})]})]}),(0,ie.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:it,children:"退出编辑"}),(0,ie.jsx)(J.ZP,{disabled:Ye,loading:De,type:"primary",onClick:function(){We.current=!0,g.submit()},children:"保存 "}),a?(0,ie.jsx)(J.ZP,{disabled:De,loading:Ye,style:{background:"#2FC25B",border:0},type:"primary",onClick:function(){We.current=!1,g.submit()},children:"立即体验"}):(0,ie.jsx)(J.ZP,{disabled:De,loading:Ye,type:"primary",onClick:function(){We.current=!1,g.submit()},children:"保存并发布审核"})]})]})]}):null,(0,ie.jsx)(K.Z,{centered:!0,destroyOnClose:!0,footer:null,open:f,onCancel:function(){return v(!1)},title:"相似性检测",width:"600px",children:(0,ie.jsxs)("div",{children:[(0,ie.jsx)("p",{className:"font14",children:"经系统检测发现,本题目与系统中已创建的题目高度雷同,请调整题目后再进行保存"}),(0,ie.jsx)(Q.Z,{dataSource:te,bordered:!1,scroll:te.length>7?{y:300}:{},columns:[{title:"相似题题目",dataIndex:"name",ellipsis:!0,render:function(e,t){return(0,ie.jsx)("span",{onClick:function(){return ht(null==t?void 0:t.identifier)},style:{textDecorationLine:"underline"},className:"current c-light-primary",children:e})}},{title:"创建时间",dataIndex:"create_time",width:170,render:function(e){var t;return null===(t=He()(e))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm")}}],pagination:!1})]})})]})};function $e(e){var t,n,a=e.ischecked,g=e.formValue,i=e.hack,d=e.onChangeAverage,h=e.onChangeScore,S=e.onChangehide,s=e.onChangeFile,c=e.onAddTestCase,p=e.onRemoveTestCase,L=e.uploadData,x=e.setUploadData,F=e.handleUploadRatio,b=e.pointData,B=e.sourceData,G=e.getPointData,z=i.test_set_average,k=i.test_set_score,A=(0,w.useState)(!1),R=l()(A,2),O=R[0],I=R[1],V=(0,w.useState)(!1),W=l()(V,2),q=W[0],X=W[1];function Q(e){e.stopPropagation()}return(0,ie.jsxs)("div",{className:v,children:[(0,ie.jsxs)("div",{className:y,children:[(0,ie.jsx)(Y.Z.Item,{label:"题目名称",name:["hack","name"],rules:[{required:!0,message:"请输入题目名称"}],className:Z,children:(0,ie.jsx)(H.Z,{bordered:!1,maxLength:60,placeholder:"请输入题目名称",suffix:(0,ie.jsxs)("span",{children:[(null==g||null===(t=g.hack)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.length)||0,"/",(0,ie.jsx)("span",{className:"c-grey-999",children:"60"})]})})}),(0,ie.jsx)(Y.Z.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"请输入描述内容"}],children:(0,ie.jsx)(ce.Z,{placeholder:"请输入题目描述…",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})}),(0,ie.jsxs)("div",{className:M,children:[(0,ie.jsx)("div",{className:_,children:(0,ie.jsx)(Y.Z.Item,{label:"难易度",name:["hack","difficulty"],rules:[{required:!0,message:"请选择难易度"}],children:(0,ie.jsx)($.default,{children:(n=he.difficulty,me[n].map((function(e){return(0,ie.jsxs)(de,{value:e.key,children:[" ",e.title," "]},e.title)})))})})}),(0,ie.jsxs)("div",{className:E,children:[(0,ie.jsx)(Y.Z.Item,{label:"题目来源",name:["hack","source_discipline_ids"],children:(0,ie.jsx)($.default,{placeholder:"选择题目来源",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:function(e){return e.parentNode},children:B.map((function(e){return(0,ie.jsx)($.default.Option,{value:e.id,children:e.name},e.id)}))})}),(0,ie.jsx)(J.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:function(){return function(){if((0,Ye.Ny)())X("practice_source");else{var e,t="";K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"新建来源",content:(0,ie.jsx)("div",{children:(0,ie.jsx)(H.Z,{placeholder:"请输入来源名称不超过20个字",maxLength:20,onChange:function(e){t=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(e=P()(m()().mark((function e(){var n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ue.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:t}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&G();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}}()},children:(0,Ye.Ny)()?"来源管理":"新建来源"})]})]}),(0,ie.jsx)("div",{className:M,children:(0,ie.jsxs)("div",{className:E,style:{width:"100%",marginLeft:0},children:[(0,ie.jsx)(Y.Z.Item,{label:"知识点",rules:[{required:!0,message:"请选择知识点"}],name:["hack","tag_discipline_ids"],children:(0,ie.jsx)($.default,{placeholder:"选择知识点",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:function(e){return e.parentNode},children:b.map((function(e){return(0,ie.jsx)($.default.Option,{value:e.id,children:e.name},e.id)}))})}),(0,ie.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){return function(){if((0,Ye.Ny)())X("practice");else{var e,t="";K.Z.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"新建知识点",content:(0,ie.jsx)("div",{children:(0,ie.jsx)(H.Z,{placeholder:"请输入知识点名称不超过20个字",maxLength:20,onChange:function(e){t=e.target.value}})}),okText:"确认",cancelText:"取消",onOk:(e=P()(m()().mark((function e(){var n;return m()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ue.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:t}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&G();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}}()},children:(0,Ye.Ny)()?"知识点管理":"新建知识点"})]})}),(0,ie.jsx)("div",{className:f,children:(0,ie.jsx)(Y.Z.Item,{label:"单个测试集评测时长限制",name:["hack","time_limit"],rules:[{required:!0,message:"请输入单个测试集评测时长限制"},{type:"number",min:1,message:"最小限制时间是1秒"}],className:D,extra:(0,ie.jsxs)("span",{style:{position:"absolute",left:200,top:11,color:"#333"},children:["秒",(0,ie.jsx)("span",{className:"ml5 c-grey-999",children:"(代码执行所允许的最大时长)"})]}),children:(0,ie.jsx)(ee.Z,{style:{width:185},min:1})})}),(0,ie.jsxs)("div",{className:"tst-case-info",children:[(0,ie.jsxs)("h3",{className:"flex-container",style:{justifyContent:"space-between"},children:[" ","测试用例与系统评分规则",!i.is_file&&(0,ie.jsx)(J.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:c,children:"添加测试用例"})]}),(0,ie.jsx)(Y.Z.Item,{name:["hack","test_set_score"],children:(0,ie.jsxs)(te.ZP.Group,{onChange:h,children:[(0,ie.jsxs)(te.ZP,{value:!0,children:["通过全部测试集",(0,ie.jsxs)("span",{className:"tip",children:[" ","(学员评测,仅当所有测试集都正确时,才获得一次性奖励)"]})]}),(0,ie.jsxs)(te.ZP,{value:!1,children:["通过部分测试集",(0,ie.jsxs)("span",{className:"tip",children:[" ","(学员评测,通过测试集即可获得对应奖励)"]})]})]})}),(0,ie.jsx)(ne.Z,{style:{marginBottom:"5px"},checked:a,onChange:S,children:"隐藏实际输出 (选中,则在学生做题过程中无法看到实际输出结果,仅展示是否评测是否通过)"}),(0,ie.jsx)(Y.Z.Item,{className:j,name:["hack","is_file"],label:"用例类型:",children:(0,ie.jsx)(te.ZP.Group,{onChange:s,children:(0,ie.jsxs)(ae.Z,{direction:"horizontal",children:[(0,ie.jsx)(te.ZP,{value:!1,children:"文本"}),(0,ie.jsx)(te.ZP,{value:!0,children:"文件"})]})})}),(0,ie.jsx)(Y.Z.Item,{label:"评测时空格处理",name:["hack","submit_rule"],rules:[{required:!0,message:"请选择评测时空格处理"}],children:(0,ie.jsxs)(te.ZP.Group,{children:[(0,ie.jsx)(te.ZP,{value:0,children:"不忽略空格"}),(0,ie.jsx)(te.ZP,{value:1,children:"忽略首尾空格"}),(0,ie.jsx)(te.ZP,{value:2,children:"忽略所有空格"})]})}),!i.test_set_score&&(0,ie.jsx)(Y.Z.Item,{name:["hack","test_set_average"],label:"系统评分占比",children:(0,ie.jsxs)(te.ZP.Group,{onChange:d,children:[(0,ie.jsx)(te.ZP,{value:!0,children:"均分比例"}),(0,ie.jsx)(te.ZP,{value:!1,children:"自定义比例"})]})}),i.is_file&&(0,ie.jsxs)("div",{className:T,children:[(0,ie.jsx)(J.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:function(){return I(!0)},children:"批量上传测试用例"}),(0,ie.jsx)(Oe.Y2,{disabled:null==i?void 0:i.test_set_average,inputChange:function(e,t){console.log(e,t);var n=L.map((function(n,a){return a===t?u()(u()({},n),{},{score:e.target.value?Number(e.target.value):0}):n}));x(n)},showScore:!i.test_set_score,data:L,onRemove:function(e,t){var n=r()(L);n.splice(t,1),z?F(n):x(n)}})]}),!i.is_file&&(0,ie.jsx)(Y.Z.List,{name:"hack_sets",children:function(e,t){return o()(t),(0,ie.jsx)(U.Z,{accordion:!0,children:e.map((function(e,t){return(0,ie.jsxs)(We,{header:(0,ie.jsxs)("a",{className:N,children:[(0,ie.jsxs)("span",{children:["测试用例",t+1]}),k?null:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Y.Z.Item,{name:[e.name,"score"],fieldKey:[e.fieldKey,"score"],rules:[{required:!0,message:"请输入测试集".concat(t+1,"评分")}],children:(0,ie.jsx)(ee.Z,{onClick:Q,min:0,max:100,disabled:z})}),(0,ie.jsx)("span",{children:"%"})]})]}),extra:t>0?(0,ie.jsx)("div",{onClick:Q,children:(0,ie.jsx)(oe.Z,{okText:"确定",cancelText:"取消",title:"确定删除测试集\b"+(t+1),onConfirm:function(){p(t)},children:(0,ie.jsx)(le.Z,{className:C})})}):null,children:[(0,ie.jsx)(Y.Z.Item,{label:"输入",name:[e.name,"input"],fieldKey:[e.fieldKey,"input"],children:(0,ie.jsx)(Ve,{})}),(0,ie.jsx)(Y.Z.Item,{label:"输出",name:[e.name,"output"],fieldKey:[e.fieldKey,"output"],rules:[{required:!0,message:"请输入输出内容"}],children:(0,ie.jsx)(Ve,{})})]},"".concat(e.key,"--").concat(t))}))})}})]})]}),(0,ie.jsx)(Oe.ZP,{rootIdentifier:null,visible:O,onClose:function(){return I(!1)},onOK:function(e){var t=L.concat(e);i.test_set_average?F(t):x(t)}}),(0,ie.jsx)(Ze,{visible:q,onCancel:function(){X(!1),G()},onOK:function(){X(!1),G()}})]})}},64269:function(e,t,n){"use strict";n.d(t,{G:function(){return r},t:function(){return g}});var a=n(7062),o=n.n(a);function g(e,t){var n=o().get("__ec");n||(n={}),n[e]=t,o().set("__ec",n)}function r(e,t){var n=o().get("__ec");return n?void 0===n[e]?t:n[e]:t}},7543:function(){},93314:function(e){"use strict";e.exports="data:image/png;base64,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"}}]);